2018-08-06 03:03:46 +00:00
|
|
|
<template lang="pug">
|
2018-08-11 22:16:56 +00:00
|
|
|
v-footer.justify-center(:color='color', inset)
|
2018-08-06 03:03:46 +00:00
|
|
|
.caption.grey--text.text--darken-1
|
2018-08-13 04:12:44 +00:00
|
|
|
span(v-if='company && company.length > 0') {{ $t('common:footer.copyright', { company: company, year: currentYear, interpolation: { escapeValue: false } }) }} |
|
|
|
|
span {{ $t('common:footer.poweredBy') }} #[a(href='https://wiki.js.org', ref='nofollow') Wiki.js]
|
2018-08-06 03:03:46 +00:00
|
|
|
|
|
|
|
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 }}
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { get, sync } from 'vuex-pathify'
|
|
|
|
|
|
|
|
export default {
|
2018-08-11 22:16:56 +00:00
|
|
|
props: {
|
|
|
|
altbg: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
}
|
|
|
|
},
|
2018-08-06 03:03:46 +00:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
currentYear: (new Date()).getFullYear()
|
|
|
|
}
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
company: get('site/company'),
|
|
|
|
notification: get('notification'),
|
|
|
|
darkMode: get('site/dark'),
|
2018-08-11 22:16:56 +00:00
|
|
|
notificationState: sync('notification@isActive'),
|
|
|
|
color() {
|
|
|
|
if (this.altbg) {
|
|
|
|
return 'altbg'
|
|
|
|
} else if (!this.darkMode) {
|
|
|
|
return 'grey lighten-3'
|
|
|
|
} else {
|
|
|
|
return ''
|
|
|
|
}
|
|
|
|
}
|
2018-08-06 03:03:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
2018-08-11 22:16:56 +00:00
|
|
|
|
|
|
|
<style lang="scss">
|
2018-08-13 04:12:44 +00:00
|
|
|
.v-footer {
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.altbg {
|
|
|
|
background: mc('theme', 'primary');
|
2018-08-11 22:16:56 +00:00
|
|
|
|
2018-08-13 04:12:44 +00:00
|
|
|
span {
|
|
|
|
color: mc('blue', '300');
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: mc('blue', '200');
|
|
|
|
}
|
2018-08-11 22:16:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|