This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/src/App.vue

77 lines
1.7 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>
<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 ...
</div>
2019-05-22 12:51:57 +00:00
</v-app>
2019-05-21 15:41:19 +00:00
</template>
<script>
2019-06-20 16:04:08 +00:00
import Menu from "./components/Menu";
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>