feat: favicon + manifest update + page selector locale switch fix

This commit is contained in:
NGPixel
2019-10-18 17:31:28 -04:00
parent d786423aa7
commit f8c3aef7bd
38 changed files with 71 additions and 71 deletions

View File

@@ -93,9 +93,9 @@
v-avatar.blue.white--text(tile, size='40', v-html='data.item.code.toUpperCase()')
v-list-item-content
v-list-item-title(v-html='data.item.name')
v-list-item-sub-title(v-html='data.item.nativeName')
v-list-item-subtitle(v-html='data.item.nativeName')
v-list-item-action
v-checkbox(:input-value='data.tile.props.value', color='primary', value)
v-checkbox(:input-value='data.attrs.inputValue', color='primary', value)
v-flex(lg6 xs12)
v-card.animated.fadeInUp.wait-p4s
v-toolbar(color='teal', dark, dense, flat)

View File

@@ -28,6 +28,7 @@
div(style='height:400px;')
vue-scroll(:ops='scrollStyle')
v-treeview(
:key='`pageTree` + treeViewCacheId'
:active.sync='currentNode'
:open.sync='openNodes'
:items='tree'
@@ -55,7 +56,7 @@
color='primary'
)
template(v-for='(page, idx) of currentPages')
v-list-item(:key='page.id', :value='page.path')
v-list-item(:key='`page` + page.id', :value='page.path')
v-list-item-icon: v-icon mdi-file-document-box
v-list-item-title {{page.title}}
v-divider(v-if='idx < pages.length - 1')
@@ -131,6 +132,7 @@ export default {
},
data() {
return {
treeViewCacheId: 0,
searchLoading: false,
currentLocale: siteConfig.lang,
currentFolderPath: '',
@@ -234,6 +236,22 @@ export default {
if (!_.isEmpty(newValue)) {
this.currentPath = newValue
}
},
currentLocale (newValue, oldValue) {
this.$nextTick(() => {
this.tree = [
{
id: 0,
title: '/ (root',
children: []
}
]
this.currentNode = [0]
this.openNodes = [0]
this.pages = []
this.all = []
this.treeViewCacheId += 1
})
}
},
methods: {