keksAccountGUI/src/App.vue

80 lines
1.9 KiB
Vue
Raw Normal View History

2019-05-21 15:41:19 +00:00
<template>
2019-07-17 12:44:05 +00:00
<v-app style="background-color:#ffffff">
2019-06-20 16:04:08 +00:00
<div v-if="$store.getters.getAllDataLoaded">
<Menu></Menu>
2019-11-22 11:06:33 +00:00
<MenuMobile></MenuMobile>
2019-05-22 12:51:57 +00:00
2019-06-20 16:04:08 +00:00
<v-content style="background-color: #fff;">
<router-view></router-view>
</v-content>
</div>
<div v-if="!$store.getters.getAllDataLoaded">
Loading ...
2019-09-24 14:46:02 +00:00
<div v-if="$store.getters.getError">
Es gab einen Fehler, bitte probiere es später nochmal
</div>
2019-06-20 16:04:08 +00:00
</div>
2019-05-22 12:51:57 +00:00
</v-app>
2019-05-21 15:41:19 +00:00
</template>
<script>
2019-08-11 18:48:02 +00:00
import Menu from "./components/Menu2";
2019-06-20 16:04:08 +00:00
import MenuMobile from "./components/MenuMobile"
2019-05-21 15:41:19 +00:00
export default {
2019-05-22 12:51:57 +00:00
name: 'App',
2019-05-21 15:41:19 +00:00
components: {
2019-06-20 16:04:08 +00:00
'Menu': Menu,
'MenuMobile': MenuMobile
2019-05-22 12:51:57 +00:00
},
data () {
return {
big: true,
bgcolor: "transparent",
flat: true,
nameBig: '',
nameSmall: '',
menu: [
{ icon: 'home', title: 'Login' },
{ icon: 'info', title: 'Invited' },
{ icon: 'warning', title: 'Register' }
],
menu2: [
{ icon: 'home', title: 'Apps' },
{ icon: 'info', title: 'Admin' },
{ icon: 'warning', title: 'Account' }
]
}
},
computed: {
setting: (name) => {
//this.$store.getters.getSettingValue(this.$store.state, name);
}
},
methods: {
2019-06-20 16:04:08 +00:00
/*handleScroll: function (evt, el) {
2019-05-22 12:51:57 +00:00
if(evt.pageY > 100) {
this.big = false;
this.bgcolor = "#fff";
this.flat = false;
} else {
this.big = true;
this.bgcolor = "transparent";
this.flat = true;
}
2019-06-20 16:04:08 +00:00
}*/
2019-05-22 12:51:57 +00:00
},
mounted: function () {
2019-06-20 16:04:08 +00:00
this.$store.dispatch('checkAccount');
console.log("MOUNTED");
2019-05-22 12:51:57 +00:00
this.$store.dispatch('getSettings').then(() => {
this.nameBig = this.$store.getters.getSettingValue("name_big");
this.nameSmall = this.$store.getters.getSettingValue("name_small");
});
2019-05-21 15:41:19 +00:00
}
}
</script>