diff --git a/client/app.js b/client/app.js
index edb36000..fe6edf32 100644
--- a/client/app.js
+++ b/client/app.js
@@ -19,6 +19,7 @@ import Hammer from 'hammerjs'
import moment from 'moment'
import VueMoment from 'vue-moment'
import VueTour from 'vue-tour'
+import VueTreeNavigation from 'vue-tree-navigation'
import store from './store'
// ====================================
@@ -100,6 +101,7 @@ Vue.use(VeeValidate, { events: '' })
Vue.use(Vuetify)
Vue.use(VueMoment, { moment })
Vue.use(VueTour)
+Vue.use(VueTreeNavigation)
Vue.prototype.Velocity = Velocity
@@ -136,7 +138,7 @@ let bootstrap = () => {
const i18n = localization.init()
window.WIKI = new Vue({
- el: '#app',
+ el: '#root',
components: {},
mixins: [helpers],
provide: apolloProvider.provide(),
diff --git a/client/components/admin.vue b/client/components/admin.vue
index d8ccea6d..ff4f5ddf 100644
--- a/client/components/admin.vue
+++ b/client/components/admin.vue
@@ -80,12 +80,7 @@
diff --git a/client/components/admin/admin-theme.vue b/client/components/admin/admin-theme.vue
index d25cf630..b36da7fe 100644
--- a/client/components/admin/admin-theme.vue
+++ b/client/components/admin/admin-theme.vue
@@ -108,7 +108,7 @@ export default {
}
},
computed: {
- darkMode: sync('admin/theme@dark')
+ darkMode: sync('site/dark')
},
mounted() {
this.darkModeInitial = this.darkMode
diff --git a/client/components/common/nav-footer.vue b/client/components/common/nav-footer.vue
index d266aa5f..6ff7bd14 100644
--- a/client/components/common/nav-footer.vue
+++ b/client/components/common/nav-footer.vue
@@ -1,5 +1,5 @@
- v-footer.justify-center(:color='darkMode ? "" : "grey lighten-3"', inset)
+ v-footer.justify-center(:color='color', inset)
.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
@@ -20,6 +20,12 @@
import { get, sync } from 'vuex-pathify'
export default {
+ props: {
+ altbg: {
+ type: Boolean,
+ default: false
+ }
+ },
data() {
return {
currentYear: (new Date()).getFullYear()
@@ -29,7 +35,26 @@ export default {
company: get('site/company'),
notification: get('notification'),
darkMode: get('site/dark'),
- notificationState: sync('notification@isActive')
+ notificationState: sync('notification@isActive'),
+ color() {
+ if (this.altbg) {
+ return 'altbg'
+ } else if (!this.darkMode) {
+ return 'grey lighten-3'
+ } else {
+ return ''
+ }
+ }
}
}
+
+
diff --git a/client/components/login.vue b/client/components/login.vue
index 56baa56e..7deca056 100644
--- a/client/components/login.vue
+++ b/client/components/login.vue
@@ -1,6 +1,5 @@
v-app
- nav-header
.login
.login-container(:class='{ "is-expanded": strategies.length > 1, "is-loading": isLoading }')
.login-mascot
@@ -35,20 +34,7 @@
input(type='text', ref='iptTFA', v-model='securityCode', :placeholder='$t("auth:tfa.placeholder")', @keyup.enter='verifySecurityCode')
button.button.is-blue.is-fullwidth(@click='verifySecurityCode')
span {{ $t('auth:tfa.verifyToken') }}
- .login-copyright
- span {{ $t('common:footer.poweredBy') }}
- a(href='https://wiki.js.org', rel='external', title='Wiki.js') 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(altbg)