From 73b3a94bfc4e55010cf6e918f4c0e4c38c591a77 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Mon, 12 May 2025 20:57:31 +0100 Subject: [PATCH] Update cached Open Textbook of Medicine page --- .../Open_Textbook_of_Medicine2 | 172 +++++++++--------- www/js/init.js | 9 +- 2 files changed, 93 insertions(+), 88 deletions(-) diff --git a/www/A/Wikipedia%3AWikiProject_Medicine/Open_Textbook_of_Medicine2 b/www/A/Wikipedia%3AWikiProject_Medicine/Open_Textbook_of_Medicine2 index 4ff3838b..9b840f91 100644 --- a/www/A/Wikipedia%3AWikiProject_Medicine/Open_Textbook_of_Medicine2 +++ b/www/A/Wikipedia%3AWikiProject_Medicine/Open_Textbook_of_Medicine2 @@ -72,92 +72,6 @@ Please bear in mind that this is volunteer generated content. While we try our best to make it as accurate as possible, it is not perfect. Thus we request that you use common sense when consulting this app.

- - - - - - - - - - @@ -381,6 +295,92 @@ + + + + + + + + + +
diff --git a/www/js/init.js b/www/js/init.js index e151ca1f..6d2e12f7 100644 --- a/www/js/init.js +++ b/www/js/init.js @@ -73,14 +73,19 @@ params['appVersion'] = '3.5.8'; // DEV: Manually update this version when there params['packagedFile'] = getSetting('packagedFile') || ''; // For packaged Kiwix JS (e.g. with Wikivoyage file), set this to the filename (for split files, give the first chunk *.zimaa) and place file(s) in default storage params['archivePath'] = 'archives'; // The directory containing the packaged archive(s) (relative to app's root directory) params['fileVersion'] = getSetting('fileVersion') || ''; // This will be displayed in the app - optionally include date of ZIM file -// List of known start pages cached in the FS - ensure these strings are double-URI-encoded, as they will be decoded once in the app + +// List of known start pages cached in the FS - ensure these strings are double-URI-encoded, and then store the file itself with single- +// URI-enoding. This string will be decoded once in the app. E.g. the file name "A/Wikipedia:WikiProject_Medicine/Open_Textbook_of_Medicine2" +// should be stored in the directory as "A/Wikipedia%3AWikiProject_Medicine/Open_Textbook_of_Medicine2" (since we can't store colons in some +// file systems), and the string "A/Wikipedia%253AWikiProject_Medicine/Open_Textbook_of_Medicine2" will be decoded to this // before being passed to the Service Worker params['cachedStartPages'] = { 'wikipedia_en_medicine-app_maxi': 'A/Wikipedia%253AWikiProject_Medicine/Open_Textbook_of_Medicine2', wikipedia_en_medicine_maxi: 'A/Wikipedia%253AWikiProject_Medicine/Open_Textbook_of_Medicine2', - // 'mdwiki_en_all_maxi': 'A/Wikipedia:WikiProject_Medicine/Open_Textbook_of_Medicine2', + mdwiki_en_all_maxi: 'A/Wikipedia%253AWikiProject_Medicine/Open_Textbook_of_Medicine2', wikivoyage_en_all_maxi: 'A/Main_Page' }; + params['win7ElectronVersion'] = '22.3'; // KEEP UP TO DATE!!! This is the last minor version to support Win 7/8/8.1. Auto-update is embargoed for values starting with this. params['kiwixDownloadServer'] = 'https://download.kiwix.org/zim/'; // Include final slash params['kiwixDownloadMirrors'] = ['https://ftp.fau.de/kiwix/zim/', 'https://mirrors.dotsrc.org/kiwix/zim/', 'https://www.mirrorservice.org/sites/download.kiwix.org/zim/', 'https://md.mirrors.hacktegic.com/kiwix-md/zim/', 'https://library.kiwix.org'];