diff --git a/client/components/admin/admin-locale.vue b/client/components/admin/admin-locale.vue index 59cfcb3a..6a6fbd97 100644 --- a/client/components/admin/admin-locale.vue +++ b/client/components/admin/admin-locale.vue @@ -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) diff --git a/client/components/common/page-selector.vue b/client/components/common/page-selector.vue index 73038d6f..ea1ddf6b 100644 --- a/client/components/common/page-selector.vue +++ b/client/components/common/page-selector.vue @@ -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: { diff --git a/client/static/browserconfig.xml b/client/static/browserconfig.xml index e5de2416..36db6f1e 100644 --- a/client/static/browserconfig.xml +++ b/client/static/browserconfig.xml @@ -2,10 +2,8 @@ - - - #ffffff + #1976d2 - \ No newline at end of file + diff --git a/client/static/favicon.ico b/client/static/favicon.ico index 2e145564..b69c4b6f 100644 Binary files a/client/static/favicon.ico and b/client/static/favicon.ico differ diff --git a/client/static/favicons/android-chrome-192x192.png b/client/static/favicons/android-chrome-192x192.png new file mode 100644 index 00000000..5e1f3e5f Binary files /dev/null and b/client/static/favicons/android-chrome-192x192.png differ diff --git a/client/static/favicons/android-chrome-256x256.png b/client/static/favicons/android-chrome-256x256.png new file mode 100644 index 00000000..2965136a Binary files /dev/null and b/client/static/favicons/android-chrome-256x256.png differ diff --git a/client/static/favicons/android-icon-144x144.png b/client/static/favicons/android-icon-144x144.png deleted file mode 100644 index 27dee6e9..00000000 Binary files a/client/static/favicons/android-icon-144x144.png and /dev/null differ diff --git a/client/static/favicons/android-icon-192x192.png b/client/static/favicons/android-icon-192x192.png deleted file mode 100644 index 0f374323..00000000 Binary files a/client/static/favicons/android-icon-192x192.png and /dev/null differ diff --git a/client/static/favicons/android-icon-36x36.png b/client/static/favicons/android-icon-36x36.png deleted file mode 100644 index eac986e4..00000000 Binary files a/client/static/favicons/android-icon-36x36.png and /dev/null differ diff --git a/client/static/favicons/android-icon-48x48.png b/client/static/favicons/android-icon-48x48.png deleted file mode 100644 index 923a8524..00000000 Binary files a/client/static/favicons/android-icon-48x48.png and /dev/null differ diff --git a/client/static/favicons/android-icon-72x72.png b/client/static/favicons/android-icon-72x72.png deleted file mode 100644 index 1eddda15..00000000 Binary files a/client/static/favicons/android-icon-72x72.png and /dev/null differ diff --git a/client/static/favicons/android-icon-96x96.png b/client/static/favicons/android-icon-96x96.png deleted file mode 100644 index 779681a4..00000000 Binary files a/client/static/favicons/android-icon-96x96.png and /dev/null differ diff --git a/client/static/favicons/apple-icon-114x114.png b/client/static/favicons/apple-icon-114x114.png deleted file mode 100644 index fad4133c..00000000 Binary files a/client/static/favicons/apple-icon-114x114.png and /dev/null differ diff --git a/client/static/favicons/apple-icon-120x120.png b/client/static/favicons/apple-icon-120x120.png deleted file mode 100644 index 03240a44..00000000 Binary files a/client/static/favicons/apple-icon-120x120.png and /dev/null differ diff --git a/client/static/favicons/apple-icon-144x144.png b/client/static/favicons/apple-icon-144x144.png deleted file mode 100644 index 27dee6e9..00000000 Binary files a/client/static/favicons/apple-icon-144x144.png and /dev/null differ diff --git a/client/static/favicons/apple-icon-152x152.png b/client/static/favicons/apple-icon-152x152.png deleted file mode 100644 index 206eb41b..00000000 Binary files a/client/static/favicons/apple-icon-152x152.png and /dev/null differ diff --git a/client/static/favicons/apple-icon-180x180.png b/client/static/favicons/apple-icon-180x180.png deleted file mode 100644 index 0c14b900..00000000 Binary files a/client/static/favicons/apple-icon-180x180.png and /dev/null differ diff --git a/client/static/favicons/apple-icon-57x57.png b/client/static/favicons/apple-icon-57x57.png deleted file mode 100644 index d6c7cb8f..00000000 Binary files a/client/static/favicons/apple-icon-57x57.png and /dev/null differ diff --git a/client/static/favicons/apple-icon-60x60.png b/client/static/favicons/apple-icon-60x60.png deleted file mode 100644 index d25ffcfb..00000000 Binary files a/client/static/favicons/apple-icon-60x60.png and /dev/null differ diff --git a/client/static/favicons/apple-icon-72x72.png b/client/static/favicons/apple-icon-72x72.png deleted file mode 100644 index 1eddda15..00000000 Binary files a/client/static/favicons/apple-icon-72x72.png and /dev/null differ diff --git a/client/static/favicons/apple-icon-76x76.png b/client/static/favicons/apple-icon-76x76.png deleted file mode 100644 index 929ed0d5..00000000 Binary files a/client/static/favicons/apple-icon-76x76.png and /dev/null differ diff --git a/client/static/favicons/apple-icon-precomposed.png b/client/static/favicons/apple-icon-precomposed.png deleted file mode 100644 index 934dd198..00000000 Binary files a/client/static/favicons/apple-icon-precomposed.png and /dev/null differ diff --git a/client/static/favicons/apple-icon.png b/client/static/favicons/apple-icon.png deleted file mode 100644 index 934dd198..00000000 Binary files a/client/static/favicons/apple-icon.png and /dev/null differ diff --git a/client/static/favicons/apple-touch-icon.png b/client/static/favicons/apple-touch-icon.png new file mode 100644 index 00000000..bf2a980d Binary files /dev/null and b/client/static/favicons/apple-touch-icon.png differ diff --git a/client/static/favicons/browserconfig.xml b/client/static/favicons/browserconfig.xml new file mode 100644 index 00000000..4642bffc --- /dev/null +++ b/client/static/favicons/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #1976d2 + + + diff --git a/client/static/favicons/favicon-16x16.png b/client/static/favicons/favicon-16x16.png index 34c8b9e3..5cc26490 100644 Binary files a/client/static/favicons/favicon-16x16.png and b/client/static/favicons/favicon-16x16.png differ diff --git a/client/static/favicons/favicon-32x32.png b/client/static/favicons/favicon-32x32.png index 6c5f5aee..d9eabd65 100644 Binary files a/client/static/favicons/favicon-32x32.png and b/client/static/favicons/favicon-32x32.png differ diff --git a/client/static/favicons/favicon-96x96.png b/client/static/favicons/favicon-96x96.png deleted file mode 100644 index 779681a4..00000000 Binary files a/client/static/favicons/favicon-96x96.png and /dev/null differ diff --git a/client/static/favicons/ms-icon-144x144.png b/client/static/favicons/ms-icon-144x144.png deleted file mode 100644 index 27dee6e9..00000000 Binary files a/client/static/favicons/ms-icon-144x144.png and /dev/null differ diff --git a/client/static/favicons/ms-icon-150x150.png b/client/static/favicons/ms-icon-150x150.png deleted file mode 100644 index cecba381..00000000 Binary files a/client/static/favicons/ms-icon-150x150.png and /dev/null differ diff --git a/client/static/favicons/ms-icon-310x310.png b/client/static/favicons/ms-icon-310x310.png deleted file mode 100644 index 4aac03ea..00000000 Binary files a/client/static/favicons/ms-icon-310x310.png and /dev/null differ diff --git a/client/static/favicons/ms-icon-70x70.png b/client/static/favicons/ms-icon-70x70.png deleted file mode 100644 index 0a88bc21..00000000 Binary files a/client/static/favicons/ms-icon-70x70.png and /dev/null differ diff --git a/client/static/favicons/mstile-150x150.png b/client/static/favicons/mstile-150x150.png new file mode 100644 index 00000000..6ef5f28d Binary files /dev/null and b/client/static/favicons/mstile-150x150.png differ diff --git a/client/static/favicons/safari-pinned-tab.svg b/client/static/favicons/safari-pinned-tab.svg new file mode 100644 index 00000000..e74bce59 --- /dev/null +++ b/client/static/favicons/safari-pinned-tab.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/client/static/manifest.json b/client/static/manifest.json index a3511af5..6c2612df 100644 --- a/client/static/manifest.json +++ b/client/static/manifest.json @@ -1,46 +1,20 @@ { - "background_color": "#fbfbfc", - "display": "standalone", - "icons": [ - { - "src": "\/favicons\/android-icon-36x36.png", - "sizes": "36x36", - "type": "image\/png", - "density": "0.75" - }, - { - "src": "\/favicons\/android-icon-48x48.png", - "sizes": "48x48", - "type": "image\/png", - "density": "1.0" - }, - { - "src": "\/favicons\/android-icon-72x72.png", - "sizes": "72x72", - "type": "image\/png", - "density": "1.5" - }, - { - "src": "\/favicons\/android-icon-96x96.png", - "sizes": "96x96", - "type": "image\/png", - "density": "2.0" - }, - { - "src": "\/favicons\/android-icon-144x144.png", - "sizes": "144x144", - "type": "image\/png", - "density": "3.0" - }, - { - "src": "\/favicons\/android-icon-192x192.png", - "sizes": "192x192", - "type": "image\/png", - "density": "4.0" - } - ], - "name": "Wiki", - "short_name": "Wiki", + "name": "Wiki.js", + "short_name": "Wiki.js", "start_url": "/", - "theme_color": "#0288d1" + "icons": [ + { + "src": "/favicons/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/favicons/android-chrome-256x256.png", + "sizes": "256x256", + "type": "image/png" + } + ], + "theme_color": "#1976d2", + "background_color": "#1976d2", + "display": "standalone" } diff --git a/dev/templates/legacy.pug b/dev/templates/legacy.pug index 4e7b7414..4fc51d9c 100644 --- a/dev/templates/legacy.pug +++ b/dev/templates/legacy.pug @@ -4,9 +4,9 @@ html meta(http-equiv='X-UA-Compatible', content='IE=edge') meta(charset='UTF-8') meta(name='viewport', content='user-scalable=yes, width=device-width, initial-scale=1, maximum-scale=5') - meta(name='theme-color', content='#333333') - meta(name='msapplication-TileColor', content='#333333') - meta(name='msapplication-TileImage', content='/favicons/ms-icon-144x144.png') + meta(name='theme-color', content='#1976d2') + meta(name='msapplication-TileColor', content='#1976d2') + meta(name='msapplication-TileImage', content='/favicons/mstile-150x150.png') title= pageMeta.title + ' | ' + config.title @@ -20,11 +20,11 @@ html meta(property='og:site_name', content=config.title) //- Favicon - each favsize in [57, 60, 72, 76, 114, 120, 144, 152, 180] - link(rel='apple-touch-icon', sizes=favsize + 'x' + favsize, href='/favicons/apple-icon-' + favsize + 'x' + favsize + '.png') + link(rel='apple-touch-icon', sizes='180x180', href='/apple-touch-icon.png') link(rel='icon', type='image/png', sizes='192x192', href='/favicons/android-icon-192x192.png') - each favsize in [32, 96, 16] - link(rel='icon', type='image/png', sizes=favsize + 'x' + favsize, href='/favicons/favicon-' + favsize + 'x' + favsize + '.png') + link(rel='icon', type='image/png', sizes='32x32', href='/favicons/favicon-32x32.png') + link(rel='icon', type='image/png', sizes='16x16', href='/favicons/favicon-16x16.png') + link(rel='mask-icon', href='/favicons/safari-pinned-tab.svg', color='#1976d2') link(rel='manifest', href='/manifest.json') //- Icon Set diff --git a/dev/templates/master.pug b/dev/templates/master.pug index 0f4cabd0..c2585364 100644 --- a/dev/templates/master.pug +++ b/dev/templates/master.pug @@ -4,9 +4,9 @@ html(lang=siteConfig.lang) meta(http-equiv='X-UA-Compatible', content='IE=edge') meta(charset='UTF-8') meta(name='viewport', content='user-scalable=yes, width=device-width, initial-scale=1, maximum-scale=5') - meta(name='theme-color', content='#333333') - meta(name='msapplication-TileColor', content='#333333') - meta(name='msapplication-TileImage', content='/favicons/ms-icon-144x144.png') + meta(name='theme-color', content='#1976d2') + meta(name='msapplication-TileColor', content='#1976d2') + meta(name='msapplication-TileImage', content='/favicons/mstile-150x150.png') title= pageMeta.title + ' | ' + config.title @@ -20,11 +20,11 @@ html(lang=siteConfig.lang) meta(property='og:site_name', content=config.title) //- Favicon - each favsize in [57, 60, 72, 76, 114, 120, 144, 152, 180] - link(rel='apple-touch-icon', sizes=favsize + 'x' + favsize, href='/favicons/apple-icon-' + favsize + 'x' + favsize + '.png') + link(rel='apple-touch-icon', sizes='180x180', href='/apple-touch-icon.png') link(rel='icon', type='image/png', sizes='192x192', href='/favicons/android-icon-192x192.png') - each favsize in [32, 96, 16] - link(rel='icon', type='image/png', sizes=favsize + 'x' + favsize, href='/favicons/favicon-' + favsize + 'x' + favsize + '.png') + link(rel='icon', type='image/png', sizes='32x32', href='/favicons/favicon-32x32.png') + link(rel='icon', type='image/png', sizes='16x16', href='/favicons/favicon-16x16.png') + link(rel='mask-icon', href='/favicons/safari-pinned-tab.svg', color='#1976d2') link(rel='manifest', href='/manifest.json') //- Site Properties diff --git a/dev/templates/setup.pug b/dev/templates/setup.pug index 79d2811f..36163e3f 100644 --- a/dev/templates/setup.pug +++ b/dev/templates/setup.pug @@ -4,17 +4,17 @@ html meta(http-equiv='X-UA-Compatible', content='IE=edge') meta(charset='UTF-8') meta(name='viewport', content='user-scalable=yes, width=device-width, initial-scale=1, maximum-scale=5') - meta(name='theme-color', content='#333333') - meta(name='msapplication-TileColor', content='#333333') - meta(name='msapplication-TileImage', content='/favicons/ms-icon-144x144.png') + meta(name='theme-color', content='#1976d2') + meta(name='msapplication-TileColor', content='#1976d2') + meta(name='msapplication-TileImage', content='/favicons/mstile-150x150.png') title Wiki.js Setup //- Favicon - each favsize in [57, 60, 72, 76, 114, 120, 144, 152, 180] - link(rel='apple-touch-icon', sizes=favsize + 'x' + favsize, href='/favicons/apple-icon-' + favsize + 'x' + favsize + '.png') + link(rel='apple-touch-icon', sizes='180x180', href='/apple-touch-icon.png') link(rel='icon', type='image/png', sizes='192x192', href='/favicons/android-icon-192x192.png') - each favsize in [32, 96, 16] - link(rel='icon', type='image/png', sizes=favsize + 'x' + favsize, href='/favicons/favicon-' + favsize + 'x' + favsize + '.png') + link(rel='icon', type='image/png', sizes='32x32', href='/favicons/favicon-32x32.png') + link(rel='icon', type='image/png', sizes='16x16', href='/favicons/favicon-16x16.png') + link(rel='mask-icon', href='/favicons/safari-pinned-tab.svg', color='#1976d2') link(rel='manifest', href='/manifest.json') //- Site Lang