feat: view page layout (wip) + footer component + fixes
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user