2018-08-06 03:03:46 +00:00
|
|
|
<template lang="pug">
|
2018-10-08 04:17:31 +00:00
|
|
|
v-footer.justify-center(:color='bgColor', inset)
|
2020-05-11 04:40:51 +00:00
|
|
|
.caption.grey--text(:class='$vuetify.theme.dark ? `text--lighten-1` : `text--darken-1`')
|
2023-02-17 01:45:55 +00:00
|
|
|
template(v-if='footerOverride')
|
|
|
|
span {{footerOverride}} |
|
|
|
|
template(v-else-if='company && company.length > 0 && contentLicense !== ``')
|
2020-02-23 20:20:55 +00:00
|
|
|
span(v-if='contentLicense === `alr`') {{ $t('common:footer.copyright', { company: company, year: currentYear, interpolation: { escapeValue: false } }) }} |
|
|
|
|
span(v-else) {{ $t('common:footer.license', { company: company, license: $t('common:license.' + contentLicense), interpolation: { escapeValue: false } }) }} |
|
2018-08-13 04:12:44 +00:00
|
|
|
span {{ $t('common:footer.poweredBy') }} #[a(href='https://wiki.js.org', ref='nofollow') Wiki.js]
|
2018-08-06 03:03:46 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2019-06-08 00:04:35 +00:00
|
|
|
import { get } from 'vuex-pathify'
|
2018-08-06 03:03:46 +00:00
|
|
|
|
|
|
|
export default {
|
2018-08-11 22:16:56 +00:00
|
|
|
props: {
|
2018-10-08 04:17:31 +00:00
|
|
|
color: {
|
|
|
|
type: String,
|
|
|
|
default: 'grey lighten-3'
|
|
|
|
},
|
|
|
|
darkColor: {
|
|
|
|
type: String,
|
|
|
|
default: 'grey darken-3'
|
2018-08-11 22:16:56 +00:00
|
|
|
}
|
|
|
|
},
|
2018-08-06 03:03:46 +00:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
currentYear: (new Date()).getFullYear()
|
|
|
|
}
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
company: get('site/company'),
|
2020-02-23 20:20:55 +00:00
|
|
|
contentLicense: get('site/contentLicense'),
|
2023-02-17 01:45:55 +00:00
|
|
|
footerOverride: get('site/footerOverride'),
|
2018-10-08 04:17:31 +00:00
|
|
|
bgColor() {
|
2020-04-05 22:51:48 +00:00
|
|
|
if (!this.$vuetify.theme.dark) {
|
2018-10-08 04:17:31 +00:00
|
|
|
return this.color
|
2018-08-11 22:16:56 +00:00
|
|
|
} else {
|
2018-10-08 04:17:31 +00:00
|
|
|
return this.darkColor
|
2018-08-11 22:16:56 +00:00
|
|
|
}
|
|
|
|
}
|
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>
|