parent
5276a46afa
commit
3c60ad4f14
3 changed files with 15 additions and 4 deletions
|
|
@ -7,6 +7,8 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import config from "./assets/config";
|
||||
|
||||
export default {
|
||||
name: "App",
|
||||
mounted() {
|
||||
|
|
@ -31,7 +33,7 @@ export default {
|
|||
return this.$store.state.auth.user;
|
||||
},
|
||||
title() {
|
||||
var title = "Keanu Weblite";
|
||||
var title = config.appName;
|
||||
if (this.$matrix.notificationCount > 0) {
|
||||
title += " [" + this.$matrix.notificationCount + "]";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"appName": "Keanu Weblite",
|
||||
"defaultServer": "https://neo.keanu.im",
|
||||
"useShortCodeStickers": false,
|
||||
"analytics": {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,15 @@ module.exports = {
|
|||
? './'
|
||||
: './',
|
||||
|
||||
devServer: {
|
||||
https: true
|
||||
},
|
||||
chainWebpack: config => {
|
||||
config.plugin('html').tap(args => {
|
||||
var c = require("./src/assets/config.json");
|
||||
args[0].title = c.appName;
|
||||
return args;
|
||||
})
|
||||
},
|
||||
|
||||
devServer: {
|
||||
//https: true
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue