From a879e1ff32bfaa8b5bd1e7e435c7e40236560999 Mon Sep 17 00:00:00 2001 From: Jean-Luc Tibaux Date: Mon, 25 Jul 2022 17:03:00 +0000 Subject: [PATCH] add missing icons required by French/modern theme --- src/routes.js | 5 ++++- src/utils.js | 2 +- .../w/skins/Vector/resources/common/images/bullet-icon.svg | 4 ++++ static/wikipedia_styles_light_fr.css | 6 +++--- 4 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 static/w/skins/Vector/resources/common/images/bullet-icon.svg diff --git a/src/routes.js b/src/routes.js index b8974c3..e7ceb52 100644 --- a/src/routes.js +++ b/src/routes.js @@ -54,7 +54,7 @@ module.exports = (app, utils) => { return res.sendStatus(404) } - if(req.url.startsWith('/static/images/project-logos/') || req.url === '/static/images/mobile/copyright/wikipedia.png') { + if(req.url.startsWith('/static/images/project-logos/') || req.url === '/static/images/mobile/copyright/wikipedia.png' || req.url === '/static/apple-touch/wikipedia.png') { return res.sendFile(wikilessLogo()) } @@ -71,6 +71,9 @@ module.exports = (app, utils) => { if(req.url.includes('-ko.svg')) { custom_lang = 'ko' } + if(req.url.includes('-vi.svg')) { + custom_lang = 'vi' + } const custom_logo = customLogos(req.url, custom_lang) if(custom_logo) { diff --git a/src/utils.js b/src/utils.js index c118773..deb5f63 100644 --- a/src/utils.js +++ b/src/utils.js @@ -75,7 +75,7 @@ module.exports = function(redis) { // load custom language specific languages let lang_suffix = '' - let load_custom_styles = ['de', 'fr', 'ko'] + let load_custom_styles = ['de', 'fr', 'ko', 'vi'] if(load_custom_styles.includes(lang)) { lang_suffix = '_' + lang diff --git a/static/w/skins/Vector/resources/common/images/bullet-icon.svg b/static/w/skins/Vector/resources/common/images/bullet-icon.svg new file mode 100644 index 0000000..fccb6ab --- /dev/null +++ b/static/w/skins/Vector/resources/common/images/bullet-icon.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/static/wikipedia_styles_light_fr.css b/static/wikipedia_styles_light_fr.css index 753723d..617bc24 100644 --- a/static/wikipedia_styles_light_fr.css +++ b/static/wikipedia_styles_light_fr.css @@ -2748,9 +2748,9 @@ a.mw-ui-button:focus { url(/w/load.php?modules=skins.vector.icons&image=language&format=original&skin=vector&version=3vgeg); } .mw-ui-icon-wikimedia-language-progressive:before { - background-image: url(/w/load.php?modules=skins.vector.icons&image=language&variant=progressive&format=rasterized&skin=vector&version=3vgeg); - background-image: linear-gradient(transparent, transparent), - url(/w/load.php?modules=skins.vector.icons&image=language&variant=progressive&format=original&skin=vector&version=3vgeg); + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E language %3C/title%3E%3Cg fill='%2336c'%3E%3Cpath d='M20 18h-1.44a.61.61 0 0 1-.4-.12.81.81 0 0 1-.23-.31L17 15h-5l-1 2.54a.77.77 0 0 1-.22.3.59.59 0 0 1-.4.14H9l4.55-11.47h1.89zm-3.53-4.31L14.89 9.5a11.62 11.62 0 0 1-.39-1.24q-.09.37-.19.69l-.19.56-1.58 4.19zm-6.3-1.58a13.43 13.43 0 0 1-2.91-1.41 11.46 11.46 0 0 0 2.81-5.37H12V4H7.31a4 4 0 0 0-.2-.56C6.87 2.79 6.6 2 6.6 2l-1.47.5s.4.89.6 1.5H0v1.33h2.15A11.23 11.23 0 0 0 5 10.7a17.19 17.19 0 0 1-5 2.1q.56.82.87 1.38a23.28 23.28 0 0 0 5.22-2.51 15.64 15.64 0 0 0 3.56 1.77zM3.63 5.33h4.91a8.11 8.11 0 0 1-2.45 4.45 9.11 9.11 0 0 1-2.46-4.45z'/%3E%3C/g%3E%3C/svg%3E") /* url(/w/load.php?modules=skins.vector.icons&image=language&variant=progressive&format=rasterized&skin=vector&version=3vgeg)*/ ; + background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E language %3C/title%3E%3Cg fill='%2336c'%3E%3Cpath d='M20 18h-1.44a.61.61 0 0 1-.4-.12.81.81 0 0 1-.23-.31L17 15h-5l-1 2.54a.77.77 0 0 1-.22.3.59.59 0 0 1-.4.14H9l4.55-11.47h1.89zm-3.53-4.31L14.89 9.5a11.62 11.62 0 0 1-.39-1.24q-.09.37-.19.69l-.19.56-1.58 4.19zm-6.3-1.58a13.43 13.43 0 0 1-2.91-1.41 11.46 11.46 0 0 0 2.81-5.37H12V4H7.31a4 4 0 0 0-.2-.56C6.87 2.79 6.6 2 6.6 2l-1.47.5s.4.89.6 1.5H0v1.33h2.15A11.23 11.23 0 0 0 5 10.7a17.19 17.19 0 0 1-5 2.1q.56.82.87 1.38a23.28 23.28 0 0 0 5.22-2.51 15.64 15.64 0 0 0 3.56 1.77zM3.63 5.33h4.91a8.11 8.11 0 0 1-2.45 4.45 9.11 9.11 0 0 1-2.46-4.45z'/%3E%3C/g%3E%3C/svg%3E"); + /*url(/w/load.php?modules=skins.vector.icons&image=language&variant=progressive&format=original&skin=vector&version=3vgeg);*/ } .mw-ui-icon-wikimedia-sandbox:before { background-image: url(/w/load.php?modules=skins.vector.icons&image=sandbox&format=rasterized&skin=vector&version=3vgeg);