mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-22 19:27:55 +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
|
// 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")) {
|
if (!fs.existsSync("../backend/.env")) {
|
||||||
fs.writeFileSync("../backend/.env", "")
|
fs.writeFileSync("../backend/.env", "")
|
||||||
|
@ -250,7 +250,7 @@ async function init() {
|
||||||
execSync("cd ../frontend && yarn install --frozen-lockfile", () => {
|
execSync("cd ../frontend && yarn install --frozen-lockfile", () => {
|
||||||
console.log("yarn install complete (frontend)")
|
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?", {
|
const option = await input.confirm(".env already exists, overwrite?", {
|
||||||
default: false
|
default: false
|
||||||
})
|
})
|
||||||
|
@ -300,9 +300,8 @@ async function init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
} catch (e) {
|
} catch {
|
||||||
console.log(e)
|
console.log("System user already exists.")
|
||||||
console.log("Users already exist.")
|
|
||||||
}
|
}
|
||||||
console.log("DB templates applied")
|
console.log("DB templates applied")
|
||||||
console.log("Admin user creation")
|
console.log("Admin user creation")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "colubrina-chat",
|
"name": "colubrina-chat",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"author": "Troplo <troplo@troplo.com>",
|
"author": "Troplo <troplo@troplo.com>",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
|
|
|
@ -298,7 +298,7 @@
|
||||||
<v-app-bar app color="bg">
|
<v-app-bar app color="bg">
|
||||||
<v-app-bar-nav-icon
|
<v-app-bar-nav-icon
|
||||||
@click.stop="$store.state.drawer = !$store.state.drawer"
|
@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>
|
></v-app-bar-nav-icon>
|
||||||
<button
|
<button
|
||||||
style="display: none"
|
style="display: none"
|
||||||
|
|
|
@ -119,6 +119,7 @@ export default {
|
||||||
Vue.axios.defaults.headers.common["Authorization"] = res.data.session
|
Vue.axios.defaults.headers.common["Authorization"] = res.data.session
|
||||||
this.$store.commit("setToken", res.data.session)
|
this.$store.commit("setToken", res.data.session)
|
||||||
await this.$store.dispatch("getUserInfo")
|
await this.$store.dispatch("getUserInfo")
|
||||||
|
this.$store.dispatch("getChats")
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.$socket.disconnect()
|
this.$socket.disconnect()
|
||||||
this.$socket.connect()
|
this.$socket.connect()
|
||||||
|
|
Loading…
Reference in a new issue