9a6d6eb734
This reverts commit efdad0102c.
59 lines
1.3 KiB
Vue
59 lines
1.3 KiB
Vue
<template>
|
|
<div class="app" :class="getClassList()">
|
|
<template v-if="isAuthenticated">
|
|
<!--<app-navigation />-->
|
|
<div class="app-main">
|
|
<router-view></router-view>
|
|
</div>
|
|
<!--<app-overlays />
|
|
<app-notifications />-->
|
|
</template>
|
|
<!--<app-login v-else />-->
|
|
</div>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
import '../Sass/app.scss'
|
|
//import AppNavigation from 'zero/navigation.vue'
|
|
//import AppLogin from 'zero/pages/login/login.vue'
|
|
//import AppOverlays from 'zero/components/overlays/overlay-holder.vue'
|
|
//import AppNotifications from 'zero/components/notifications/notification-holder.vue'
|
|
import AuthApi from 'zero/services/auth.js';
|
|
import EventHub from 'zero/services/eventhub';
|
|
import 'zero/vue.config.js'
|
|
import 'zero/axios.config.js'
|
|
import 'zero/zero.config.js'
|
|
|
|
export default {
|
|
name: 'app',
|
|
|
|
//components: { AppNavigation, AppOverlays, AppLogin, AppNotifications },
|
|
|
|
data: () => ({
|
|
isAuthenticated: false
|
|
}),
|
|
|
|
created()
|
|
{
|
|
EventHub.on('authenticated', isAuthenticated =>
|
|
{
|
|
this.isAuthenticated = isAuthenticated;
|
|
});
|
|
|
|
AuthApi.setUser(zero.user);
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
getClassList()
|
|
{
|
|
return {
|
|
'is-preview': this.$route.name === 'preview'
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|
|
</script> |