nav-footer.vue 922 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template lang="pug">
  2. v-footer.justify-center(:color='darkMode ? "" : "grey lighten-3"', inset)
  3. .caption.grey--text.text--darken-1
  4. span(v-if='company && company.length > 0') {{ $t('common:footer.copyright', { company: company, year: currentYear }) }} |&nbsp;
  5. span {{ $t('common:footer.poweredBy') }} Wiki.js
  6. v-snackbar(
  7. :color='notification.style'
  8. bottom,
  9. right,
  10. multi-line,
  11. v-model='notificationState'
  12. )
  13. .text-xs-left
  14. v-icon.mr-3(dark) {{ notification.icon }}
  15. span {{ notification.message }}
  16. </template>
  17. <script>
  18. import { get, sync } from 'vuex-pathify'
  19. export default {
  20. data() {
  21. return {
  22. currentYear: (new Date()).getFullYear()
  23. }
  24. },
  25. computed: {
  26. company: get('site/company'),
  27. notification: get('notification'),
  28. darkMode: get('site/dark'),
  29. notificationState: sync('notification@isActive')
  30. }
  31. }
  32. </script>