Browse Source

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

pull/1134/head
NGPixel 5 years ago
parent
commit
f8c3aef7bd
38 changed files with 70 additions and 70 deletions
  1. 4
      client/components/admin/admin-locale.vue
  2. 20
      client/components/common/page-selector.vue
  3. 6
      client/static/browserconfig.xml
  4. BIN
      client/static/favicon.ico
  5. BIN
      client/static/favicons/android-chrome-192x192.png
  6. BIN
      client/static/favicons/android-chrome-256x256.png
  7. BIN
      client/static/favicons/android-icon-144x144.png
  8. BIN
      client/static/favicons/android-icon-192x192.png
  9. BIN
      client/static/favicons/android-icon-36x36.png
  10. BIN
      client/static/favicons/android-icon-48x48.png
  11. BIN
      client/static/favicons/android-icon-72x72.png
  12. BIN
      client/static/favicons/android-icon-96x96.png
  13. BIN
      client/static/favicons/apple-icon-114x114.png
  14. BIN
      client/static/favicons/apple-icon-120x120.png
  15. BIN
      client/static/favicons/apple-icon-144x144.png
  16. BIN
      client/static/favicons/apple-icon-152x152.png
  17. BIN
      client/static/favicons/apple-icon-180x180.png
  18. BIN
      client/static/favicons/apple-icon-57x57.png
  19. BIN
      client/static/favicons/apple-icon-60x60.png
  20. BIN
      client/static/favicons/apple-icon-72x72.png
  21. BIN
      client/static/favicons/apple-icon-76x76.png
  22. BIN
      client/static/favicons/apple-icon-precomposed.png
  23. BIN
      client/static/favicons/apple-icon.png
  24. BIN
      client/static/favicons/apple-touch-icon.png
  25. 9
      client/static/favicons/browserconfig.xml
  26. BIN
      client/static/favicons/favicon-16x16.png
  27. BIN
      client/static/favicons/favicon-32x32.png
  28. BIN
      client/static/favicons/favicon-96x96.png
  29. BIN
      client/static/favicons/ms-icon-144x144.png
  30. BIN
      client/static/favicons/ms-icon-150x150.png
  31. BIN
      client/static/favicons/ms-icon-310x310.png
  32. BIN
      client/static/favicons/ms-icon-70x70.png
  33. BIN
      client/static/favicons/mstile-150x150.png
  34. 1
      client/static/favicons/safari-pinned-tab.svg
  35. 58
      client/static/manifest.json
  36. 14
      dev/templates/legacy.pug
  37. 14
      dev/templates/master.pug
  38. 14
      dev/templates/setup.pug

4
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)

20
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: {

6
client/static/browserconfig.xml

@ -2,10 +2,8 @@
<browserconfig>
<msapplication>
<tile>
<square70x70logo src="/favicons/ms-icon-70x70.png"/>
<square150x150logo src="/favicons/ms-icon-150x150.png"/>
<square310x310logo src="/favicons/ms-icon-310x310.png"/>
<TileColor>#ffffff</TileColor>
<TileColor>#1976d2</TileColor>
</tile>
</msapplication>
</browserconfig>
</browserconfig>

BIN
client/static/favicon.ico

Before After

BIN
client/static/favicons/android-chrome-192x192.png

Before After
Width: 192  |  Height: 192  |  Size: 9.3 KiB

BIN
client/static/favicons/android-chrome-256x256.png

Before After
Width: 256  |  Height: 256  |  Size: 14 KiB

BIN
client/static/favicons/android-icon-144x144.png

Before After
Width: 144  |  Height: 144  |  Size: 8.8 KiB

BIN
client/static/favicons/android-icon-192x192.png

Before After
Width: 192  |  Height: 192  |  Size: 12 KiB

BIN
client/static/favicons/android-icon-36x36.png

Before After
Width: 36  |  Height: 36  |  Size: 2.0 KiB

BIN
client/static/favicons/android-icon-48x48.png

Before After
Width: 48  |  Height: 48  |  Size: 2.6 KiB

BIN
client/static/favicons/android-icon-72x72.png

Before After
Width: 72  |  Height: 72  |  Size: 3.9 KiB

BIN
client/static/favicons/android-icon-96x96.png

Before After
Width: 96  |  Height: 96  |  Size: 5.4 KiB

BIN
client/static/favicons/apple-icon-114x114.png

Before After
Width: 114  |  Height: 114  |  Size: 6.4 KiB

BIN
client/static/favicons/apple-icon-120x120.png

Before After
Width: 120  |  Height: 120  |  Size: 6.9 KiB

BIN
client/static/favicons/apple-icon-144x144.png

Before After
Width: 144  |  Height: 144  |  Size: 8.8 KiB

BIN
client/static/favicons/apple-icon-152x152.png

Before After
Width: 152  |  Height: 152  |  Size: 9.6 KiB

BIN
client/static/favicons/apple-icon-180x180.png

Before After
Width: 180  |  Height: 180  |  Size: 12 KiB

BIN
client/static/favicons/apple-icon-57x57.png

Before After
Width: 57  |  Height: 57  |  Size: 3.0 KiB

BIN
client/static/favicons/apple-icon-60x60.png

Before After
Width: 60  |  Height: 60  |  Size: 3.2 KiB

BIN
client/static/favicons/apple-icon-72x72.png

Before After
Width: 72  |  Height: 72  |  Size: 3.9 KiB

BIN
client/static/favicons/apple-icon-76x76.png

Before After
Width: 76  |  Height: 76  |  Size: 4.1 KiB

BIN
client/static/favicons/apple-icon-precomposed.png

Before After
Width: 192  |  Height: 192  |  Size: 13 KiB

BIN
client/static/favicons/apple-icon.png

Before After
Width: 192  |  Height: 192  |  Size: 13 KiB

BIN
client/static/favicons/apple-touch-icon.png

Before After
Width: 180  |  Height: 180  |  Size: 7.5 KiB

9
client/static/favicons/browserconfig.xml

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#1976d2</TileColor>
</tile>
</msapplication>
</browserconfig>

BIN
client/static/favicons/favicon-16x16.png

Before After
Width: 16  |  Height: 16  |  Size: 1.4 KiB Width: 16  |  Height: 16  |  Size: 1.0 KiB

BIN
client/static/favicons/favicon-32x32.png

Before After
Width: 32  |  Height: 32  |  Size: 1.8 KiB Width: 32  |  Height: 32  |  Size: 1.8 KiB

BIN
client/static/favicons/favicon-96x96.png

Before After
Width: 96  |  Height: 96  |  Size: 5.4 KiB

BIN
client/static/favicons/ms-icon-144x144.png

Before After
Width: 144  |  Height: 144  |  Size: 8.8 KiB

BIN
client/static/favicons/ms-icon-150x150.png

Before After
Width: 150  |  Height: 150  |  Size: 9.3 KiB

BIN
client/static/favicons/ms-icon-310x310.png

Before After
Width: 310  |  Height: 310  |  Size: 27 KiB

BIN
client/static/favicons/ms-icon-70x70.png

Before After
Width: 70  |  Height: 70  |  Size: 3.8 KiB

BIN
client/static/favicons/mstile-150x150.png

Before After
Width: 270  |  Height: 270  |  Size: 6.0 KiB

1
client/static/favicons/safari-pinned-tab.svg

@ -0,0 +1 @@
<svg version="1" xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 300.000000 300.000000"><path d="M250 43.3c-2.5 2.7-8.1 7.9-12.5 11.4l-8 6.3-1.2-3.7c-.7-2-1.5-3.8-1.7-4-.2-.2-2.4 3.4-5 8-4.5 8-5.3 8.8-14.5 15.1-14 9.4-18.6 14.3-33.6 35.9-6.6 9.5-11.6 15.4-19 22.2l-10 9.3v-6.4c0-5.9.2-6.4 2.6-7.3 5.4-1.9 8.1-7.7 4-8.8-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3z"/></svg>

58
client/static/manifest.json

@ -1,46 +1,20 @@
{
"background_color": "#fbfbfc",
"display": "standalone",
"name": "Wiki.js",
"short_name": "Wiki.js",
"start_url": "/",
"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"
}
{
"src": "/favicons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/favicons/android-chrome-256x256.png",
"sizes": "256x256",
"type": "image/png"
}
],
"name": "Wiki",
"short_name": "Wiki",
"start_url": "/",
"theme_color": "#0288d1"
"theme_color": "#1976d2",
"background_color": "#1976d2",
"display": "standalone"
}

14
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

14
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

14
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

Loading…
Cancel
Save