Difference between revisions of "Zimit"

Jump to navigation Jump to search
15 bytes added ,  15:02, 23 May 2023
Line 21: Line 21:
* the SW is installed on the welcome page. If any page is loaded and the SW still not loaded, a redirection to the homepage will happen to load the SW and then automatically come back to the original page. Do achieve to do that, each page HEAD node is modify to insert the appropriate piece of Javascript at the time of the warc 2 zim conversion.
* the SW is installed on the welcome page. If any page is loaded and the SW still not loaded, a redirection to the homepage will happen to load the SW and then automatically come back to the original page. Do achieve to do that, each page HEAD node is modify to insert the appropriate piece of Javascript at the time of the warc 2 zim conversion.
* In the reader Wabac.js, there is only one specific part related to ZIM content structure and this is in "RemoteWARCProxy". This part knows how to retrieve content from the specific ZIM storage backend. For the rest the code is the same as before.
* In the reader Wabac.js, there is only one specific part related to ZIM content structure and this is in "RemoteWARCProxy". This part knows how to retrieve content from the specific ZIM storage backend. For the rest the code is the same as before.
* Regarding URL rewriting itself, we have two kinds which are both data-driven:
* Regarding URL rewriting itself, we have two kinds:
** The static URL rewriting which is done with Wombat
** The static URL rewriting which is done with Wombat (mostly code-driven)
** The Fuzzy matching which is done within the ServiceWorker
** The Fuzzy matching which is done within the ServiceWorker (mostly data-driven)
* The URL rewriting is done at two levels:
* The URL rewriting is done at two levels:
** When the javascript code calls specific Browsers API, these calls are superseeded and ultimatively call Wonbat
** When the javascript code calls specific Browsers API, these calls are superseeded and ultimatively call Wonbat

Navigation menu