feat: view page layout (wip) + footer component + fixes

This commit is contained in:
Nicolas Giard
2018-08-05 23:03:46 -04:00
parent 47dcc90fb7
commit 5620419d05
11 changed files with 139 additions and 50 deletions

View File

@@ -22,24 +22,11 @@
transition(name='profile-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 Powered by 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 { mapState } from 'vuex'
/* global WIKI, siteConfig */
@@ -71,11 +58,6 @@ export default {
}
},
computed: {
...mapState(['notification']),
notificationState: {
get() { return this.notification.isActive },
set(newState) { this.$store.commit('updateNotificationState', newState) }
},
darkMode() { return siteConfig.darkMode }
},
router