feat: view page layout (wip) + footer component + fixes

This commit is contained in:
Nicolas Giard
2018-08-05 23:03:46 -04:00
parent 47dcc90fb7
commit 5620419d05
11 changed files with 139 additions and 50 deletions

View File

@@ -75,26 +75,11 @@
transition(name='admin-router')
router-view
v-footer.py-2.justify-center(app, absolute, :color='darkMode ? "" : "grey lighten-3"', inset, height='auto')
.caption.grey--text.text--darken-1
span(v-if='company && company.length > 0') {{ $t('common:footer.copyright', { company: company, year: currentYear }) }} | 
span {{ $t('common:footer.poweredBy') }} Wiki.js
v-snackbar(
:color='notification.style'
bottom,
right,
multi-line,
v-model='notificationState'
)
.text-xs-left
v-icon.mr-3(dark) {{ notification.icon }}
span {{ notification.message }}
nav-footer
</template>
<script>
import VueRouter from 'vue-router'
import { get, sync } from 'vuex-pathify'
import adminStore from '@/store/admin'
@@ -133,16 +118,9 @@ export default {
i18nOptions: { namespaces: 'admin' },
data() {
return {
currentYear: (new Date()).getFullYear(),
adminDrawerShown: true
}
},
computed: {
company: get('site/company'),
notification: get('notification'),
darkMode: get('admin/theme@dark'),
notificationState: sync('notification@isActive')
},
router
}
</script>