mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-22 11:17:56 +11:00
1.0.2
This commit is contained in:
parent
79efc4ac34
commit
94f1381a43
4 changed files with 7 additions and 7 deletions
|
@ -196,7 +196,7 @@ async function configureDotEnv() {
|
|||
}
|
||||
|
||||
// write everything back to the file system
|
||||
fs.writeFileSync("../.env", ENV_VARS.join(os.EOL))
|
||||
fs.writeFileSync("../backend/.env", ENV_VARS.join(os.EOL))
|
||||
}
|
||||
if (!fs.existsSync("../backend/.env")) {
|
||||
fs.writeFileSync("../backend/.env", "")
|
||||
|
@ -250,7 +250,7 @@ async function init() {
|
|||
execSync("cd ../frontend && yarn install --frozen-lockfile", () => {
|
||||
console.log("yarn install complete (frontend)")
|
||||
})
|
||||
if (fs.existsSync(path.join(__dirname, "../.env"))) {
|
||||
if (fs.existsSync(path.join(__dirname, "../backend/.env"))) {
|
||||
const option = await input.confirm(".env already exists, overwrite?", {
|
||||
default: false
|
||||
})
|
||||
|
@ -300,9 +300,8 @@ async function init() {
|
|||
}
|
||||
}
|
||||
)
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
console.log("Users already exist.")
|
||||
} catch {
|
||||
console.log("System user already exists.")
|
||||
}
|
||||
console.log("DB templates applied")
|
||||
console.log("Admin user creation")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "colubrina-chat",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"private": true,
|
||||
"author": "Troplo <troplo@troplo.com>",
|
||||
"license": "GPL-3.0",
|
||||
|
|
|
@ -298,7 +298,7 @@
|
|||
<v-app-bar app color="bg">
|
||||
<v-app-bar-nav-icon
|
||||
@click.stop="$store.state.drawer = !$store.state.drawer"
|
||||
v-if="$vuetify.breakpoint.mobile"
|
||||
v-if="$vuetify.breakpoint.mobile || !$store.state.drawer"
|
||||
></v-app-bar-nav-icon>
|
||||
<button
|
||||
style="display: none"
|
||||
|
|
|
@ -119,6 +119,7 @@ export default {
|
|||
Vue.axios.defaults.headers.common["Authorization"] = res.data.session
|
||||
this.$store.commit("setToken", res.data.session)
|
||||
await this.$store.dispatch("getUserInfo")
|
||||
this.$store.dispatch("getChats")
|
||||
this.loading = false
|
||||
this.$socket.disconnect()
|
||||
this.$socket.connect()
|
||||
|
|
Loading…
Reference in a new issue