mwoffliner 1.17.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +355 -62
- package/docs/functional_architecture.md +34 -38
- package/extensions/wiktionary_fr.js +18 -17
- package/jest.config.cjs +2 -2
- package/lib/DOMUtils.js +0 -1
- package/lib/DOMUtils.js.map +1 -1
- package/lib/Downloader.d.ts +39 -31
- package/lib/Downloader.js +418 -349
- package/lib/Downloader.js.map +1 -1
- package/lib/Dump.d.ts +24 -10
- package/lib/Dump.js +95 -50
- package/lib/Dump.js.map +1 -1
- package/lib/Gadgets.d.ts +2 -1
- package/lib/Gadgets.js +7 -5
- package/lib/Gadgets.js.map +1 -1
- package/lib/Logger.d.ts +6 -6
- package/lib/Logger.js +33 -33
- package/lib/Logger.js.map +1 -1
- package/lib/MediaWiki.d.ts +14 -31
- package/lib/MediaWiki.js +119 -172
- package/lib/MediaWiki.js.map +1 -1
- package/lib/RedisStore.d.ts +3 -3
- package/lib/RedisStore.js +21 -23
- package/lib/RedisStore.js.map +1 -1
- package/lib/S3.js +1 -1
- package/lib/S3.js.map +1 -1
- package/lib/Templates.d.ts +3 -10
- package/lib/Templates.js +5 -14
- package/lib/Templates.js.map +1 -1
- package/lib/cli.js +7 -6
- package/lib/cli.js.map +1 -1
- package/lib/config.d.ts +10 -16
- package/lib/config.js +33 -55
- package/lib/config.js.map +1 -1
- package/lib/error.manager.d.ts +2 -2
- package/lib/error.manager.js +42 -49
- package/lib/error.manager.js.map +1 -1
- package/lib/i18n.d.ts +2 -0
- package/lib/i18n.js +53 -0
- package/lib/i18n.js.map +1 -0
- package/lib/mutex.d.ts +2 -1
- package/lib/mutex.js +2 -1
- package/lib/mutex.js.map +1 -1
- package/lib/mwoffliner.lib.js +370 -222
- package/lib/mwoffliner.lib.js.map +1 -1
- package/lib/parameterList.d.ts +20 -8
- package/lib/parameterList.js +30 -18
- package/lib/parameterList.js.map +1 -1
- package/lib/renderers/abstract.renderer.d.ts +48 -55
- package/lib/renderers/abstract.renderer.js +377 -98
- package/lib/renderers/abstract.renderer.js.map +1 -1
- package/lib/renderers/action-parse.renderer.d.ts +22 -3
- package/lib/renderers/action-parse.renderer.js +123 -81
- package/lib/renderers/action-parse.renderer.js.map +1 -1
- package/lib/renderers/renderer.builder.js +6 -69
- package/lib/renderers/renderer.builder.js.map +1 -1
- package/lib/renderers/rendering.context.d.ts +2 -3
- package/lib/renderers/rendering.context.js +6 -14
- package/lib/renderers/rendering.context.js.map +1 -1
- package/lib/sanitize-argument.d.ts +7 -4
- package/lib/sanitize-argument.js +99 -41
- package/lib/sanitize-argument.js.map +1 -1
- package/lib/util/FileManager.d.ts +36 -0
- package/lib/util/FileManager.js +246 -0
- package/lib/util/FileManager.js.map +1 -0
- package/lib/util/RedisKvs.js +4 -4
- package/lib/util/RedisKvs.js.map +1 -1
- package/lib/util/RedisQueue.js +1 -1
- package/lib/util/RedisQueue.js.map +1 -1
- package/lib/util/builders/url/action-parse.director.d.ts +2 -2
- package/lib/util/builders/url/action-parse.director.js +7 -7
- package/lib/util/builders/url/action-parse.director.js.map +1 -1
- package/lib/util/builders/url/api.director.d.ts +2 -4
- package/lib/util/builders/url/api.director.js +10 -17
- package/lib/util/builders/url/api.director.js.map +1 -1
- package/lib/util/builders/url/base.director.d.ts +0 -4
- package/lib/util/builders/url/base.director.js +0 -25
- package/lib/util/builders/url/base.director.js.map +1 -1
- package/lib/util/builders/url/basic.director.d.ts +1 -1
- package/lib/util/builders/url/basic.director.js +1 -1
- package/lib/util/builders/url/web.director.d.ts +1 -1
- package/lib/util/builders/url/web.director.js +2 -2
- package/lib/util/builders/url/web.director.js.map +1 -1
- package/lib/util/categories.d.ts +5 -5
- package/lib/util/categories.js +175 -174
- package/lib/util/categories.js.map +1 -1
- package/lib/util/const.d.ts +4 -8
- package/lib/util/const.js +9 -17
- package/lib/util/const.js.map +1 -1
- package/lib/util/customCssJs.d.ts +6 -0
- package/lib/util/customCssJs.js +70 -0
- package/lib/util/customCssJs.js.map +1 -0
- package/lib/util/dump.d.ts +15 -4
- package/lib/util/dump.js +282 -86
- package/lib/util/dump.js.map +1 -1
- package/lib/util/index.d.ts +1 -1
- package/lib/util/index.js +1 -1
- package/lib/util/index.js.map +1 -1
- package/lib/util/metaData.js.map +1 -1
- package/lib/util/misc.d.ts +23 -13
- package/lib/util/misc.js +90 -59
- package/lib/util/misc.js.map +1 -1
- package/lib/util/mw-api.d.ts +7 -5
- package/lib/util/mw-api.js +167 -221
- package/lib/util/mw-api.js.map +1 -1
- package/lib/util/pageListMainPage.d.ts +3 -0
- package/lib/util/pageListMainPage.js +10 -0
- package/lib/util/pageListMainPage.js.map +1 -0
- package/lib/util/pages.d.ts +30 -0
- package/lib/util/pages.js +146 -0
- package/lib/util/pages.js.map +1 -0
- package/lib/util/rewriteUrls.d.ts +2 -2
- package/lib/util/rewriteUrls.js +33 -31
- package/lib/util/rewriteUrls.js.map +1 -1
- package/lib/util/savePages.d.ts +8 -0
- package/lib/util/savePages.js +182 -0
- package/lib/util/savePages.js.map +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/offliner-definition.json +178 -90
- package/package.json +50 -49
- package/res/page_list_home.js +20 -0
- package/res/{article_not_found.svg → page_not_found.svg} +1 -1
- package/res/script.js +30 -45
- package/res/style.css +52 -68
- package/res/templates/download_error_placeholder.html +7 -8
- package/res/templates/javaScript.html +19 -0
- package/res/templates/pageFallback.html +9 -7
- package/res/templates/pageVector2022.html +9 -7
- package/res/templates/pageVectorLegacy.html +9 -7
- package/res/templates/{article_list_home.html → page_list_home.html} +1 -2
- package/translation/ar.json +21 -21
- package/translation/bn.json +1 -1
- package/translation/de.json +46 -19
- package/translation/en.json +54 -21
- package/translation/es.json +17 -19
- package/translation/fi.json +23 -3
- package/translation/fr.json +57 -21
- package/translation/he.json +8 -6
- package/translation/ia.json +19 -19
- package/translation/id.json +13 -13
- package/translation/it.json +13 -8
- package/translation/ko.json +55 -3
- package/translation/lb.json +5 -2
- package/translation/mk.json +5 -5
- package/translation/nl.json +57 -22
- package/translation/or.json +2 -2
- package/translation/pt.json +2 -2
- package/translation/qqq.json +55 -22
- package/translation/ru.json +2 -2
- package/translation/sc.json +2 -2
- package/translation/sk.json +62 -0
- package/translation/sl.json +54 -21
- package/translation/sv.json +20 -19
- package/translation/sw.json +45 -2
- package/translation/zh-hans.json +56 -22
- package/translation/zh-hant.json +26 -19
- package/lib/renderers/abstractDesktop.render.d.ts +0 -12
- package/lib/renderers/abstractDesktop.render.js +0 -67
- package/lib/renderers/abstractDesktop.render.js.map +0 -1
- package/lib/renderers/abstractMobile.render.d.ts +0 -12
- package/lib/renderers/abstractMobile.render.js +0 -54
- package/lib/renderers/abstractMobile.render.js.map +0 -1
- package/lib/renderers/rest-api.renderer.d.ts +0 -7
- package/lib/renderers/rest-api.renderer.js +0 -68
- package/lib/renderers/rest-api.renderer.js.map +0 -1
- package/lib/renderers/visual-editor.renderer.d.ts +0 -7
- package/lib/renderers/visual-editor.renderer.js +0 -76
- package/lib/renderers/visual-editor.renderer.js.map +0 -1
- package/lib/renderers/wikimedia-desktop.renderer.d.ts +0 -4
- package/lib/renderers/wikimedia-desktop.renderer.js +0 -7
- package/lib/renderers/wikimedia-desktop.renderer.js.map +0 -1
- package/lib/renderers/wikimedia-mobile.renderer.d.ts +0 -19
- package/lib/renderers/wikimedia-mobile.renderer.js +0 -243
- package/lib/renderers/wikimedia-mobile.renderer.js.map +0 -1
- package/lib/util/articleListMainPage.d.ts +0 -3
- package/lib/util/articleListMainPage.js +0 -10
- package/lib/util/articleListMainPage.js.map +0 -1
- package/lib/util/articles.d.ts +0 -26
- package/lib/util/articles.js +0 -102
- package/lib/util/articles.js.map +0 -1
- package/lib/util/builders/url/desktop.director.d.ts +0 -8
- package/lib/util/builders/url/desktop.director.js +0 -15
- package/lib/util/builders/url/desktop.director.js.map +0 -1
- package/lib/util/builders/url/mobile.director.d.ts +0 -8
- package/lib/util/builders/url/mobile.director.js +0 -15
- package/lib/util/builders/url/mobile.director.js.map +0 -1
- package/lib/util/builders/url/rest-api.director.d.ts +0 -8
- package/lib/util/builders/url/rest-api.director.js +0 -18
- package/lib/util/builders/url/rest-api.director.js.map +0 -1
- package/lib/util/builders/url/visual-editor.director.d.ts +0 -9
- package/lib/util/builders/url/visual-editor.director.js +0 -18
- package/lib/util/builders/url/visual-editor.director.js.map +0 -1
- package/lib/util/saveArticles.d.ts +0 -8
- package/lib/util/saveArticles.js +0 -411
- package/lib/util/saveArticles.js.map +0 -1
- package/res/article_list_home.js +0 -24
- package/res/content.parsoid.css +0 -196
- package/res/inserted_style.css +0 -45
- package/res/templates/categories.html +0 -11
- package/res/templates/lead_section_wrapper.html +0 -6
- package/res/templates/pageWikimediaDesktop.html +0 -24
- package/res/templates/pageWikimediaMobile.html +0 -24
- package/res/templates/section_wrapper.html +0 -5
- package/res/templates/subcategories.html +0 -23
- package/res/templates/subpages.html +0 -17
- package/res/templates/subsection_wrapper.html +0 -5
- package/res/webpHandler.js +0 -165
- package/res/wm_mobile_override_script.js +0 -15
- package/res/wm_mobile_override_style.css +0 -20
- package/translation/br.json +0 -8
- package/translation/dag.json +0 -9
- package/translation/es-formal.json +0 -29
- package/translation/ha.json +0 -10
- package/translation/hi.json +0 -9
- package/translation/ig.json +0 -10
- package/translation/kaa.json +0 -9
- package/translation/nb.json +0 -9
- package/translation/nqo.json +0 -8
- package/translation/pt-br.json +0 -10
- package/translation/ro.json +0 -9
- package/translation/scn.json +0 -8
- package/translation/sq.json +0 -9
- package/translation/te.json +0 -9
- package/translation/tn.json +0 -9
- package/translation/tr.json +0 -10
package/translation/br.json
DELETED
package/translation/dag.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@metadata": {
|
|
3
|
-
"authors": [
|
|
4
|
-
"Kalakpagh"
|
|
5
|
-
]
|
|
6
|
-
},
|
|
7
|
-
"DISCLAIMER": "Lahabali ŋɔ nyɛla din yina ${creator}. Sabbu ŋɔ nyɛla ${license} nima ni saɣi n-ti shɛli. Din pahira zalikpana ni tooi zali zaŋ n-ti pɔhim zuɣu fasara nima.",
|
|
8
|
-
"LAST_EDITED_ON": "Bahigu maliniŋ nyɛ ${date}"
|
|
9
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@metadata": {
|
|
3
|
-
"authors": [
|
|
4
|
-
"Camachevaz"
|
|
5
|
-
]
|
|
6
|
-
},
|
|
7
|
-
"DISCLAIMER": "Este artículo es proveído por ${creator}. El texto está disponible bajo ${license} a menos que se exprese distinto. Se pueden aplicar términos adicionales para los archivos de medios.",
|
|
8
|
-
"LAST_EDITED_ON": "Editado por última vez el ${date}",
|
|
9
|
-
"LICENSE_UNKNOWN": "una licencia desconocida",
|
|
10
|
-
"DOWNLOAD_ERRORS_HEADING": "Ups. Artículo no encontrado.",
|
|
11
|
-
"DOWNLOAD_ERRORS_MESSAGE": "El artículo solicitado ${articleTitle} no está disponible dentro de este ZIM, no fue posible recuperarlo de ${server}.",
|
|
12
|
-
"DOWNLOAD_ERRORS_LINE1_DELETED_ARTICLE": "Este artículo fue eliminado después de que compilamos la lista de artículos para recuperar pero antes de que la obtuviéramos para compilar el ZIM que navega.",
|
|
13
|
-
"DOWNLOAD_ERRORS_LINE1_CLIENT_SIDE_TIMEOUT": "Cuando el ZIM que explora fue compilado, el servidor ${server} falló en proporcionar detalles sobre este artículo HTML en tiempo y forma.",
|
|
14
|
-
"DOWNLOAD_ERRORS_LINE1_WIKIMEDIA_DESKTOP_API_HTML_500_ERROR": "Cuando el ZIM que explora fue compilado, el servidor ${server} falló en generar el contenido HTML de este artículo y devolvió en error HTTP 500.",
|
|
15
|
-
"DOWNLOAD_ERRORS_LINE1_WIKIMEDIA_DESKTOP_API_HTML_504_UPSTREAM_TIMEOUT": "Cuando el ZIM que explora fue compilado, se agotó el tiempo de espera del servidor ${server} mientras generaba el contenido HTML de este artículo y devolvió un error HTTP 504.",
|
|
16
|
-
"DOWNLOAD_ERRORS_LINE1_ACTION_PARSE_UPSTREAM_TIMEOUT": "Cuando el ZIM que explora fue compilado, se agotó el tiempo de espera de la API ActionParse del servidor ${server} mientras procesaba este artículo y devolvió un error HTTP 504",
|
|
17
|
-
"DOWNLOAD_ERRORS_LINE1_ACTION_PARSE_HTML_503_ERROR": "Cuando el ZIM que explora fue compilado, la API ActionParse del servidor ${server} presentó un error HTTP 503 mientras proporcionaba los detalles acerca de este artículo HTML.",
|
|
18
|
-
"DOWNLOAD_ERRORS_LINE1_ACTION_PARSE_BAD_REVISION_ERROR": "Cuando el ZIM que explora fue compilado, la API ActionParse del servidor ${server} presentó un error de mala revisión de ID mientras proporcionaba detalles acerca de este artículo HTML.",
|
|
19
|
-
"DOWNLOAD_ERRORS_LINE1_ACTION_PARSE_UNREACHABLE_EXCEPTION_ERROR": "Cuando el ZIM que explora fue compilado, la API ActionParse del servidor ${server} presentó un error de excepción inalcanzable mientras proporcionaba detalles acerca de este artículo HTML.",
|
|
20
|
-
"DOWNLOAD_ERRORS_LINE1_ACTION_PARSE_INVARIANT_EXCEPTION_ERROR": "Cuando el ZIM que explora fue compilado, la API ActionParse del servidor ${server} presentó un error de excepción invariante mientras proporcionaba los detalles acerca de este artículo HTML.",
|
|
21
|
-
"DOWNLOAD_ERRORS_LINE1_ACTION_PARSE_PARSOID_RESOURCE_LIMIT_EXCEEDED": "Cuando el ZIM que explora fue compilado, la API ActionParse del servidor ${server} presentó un error vinculado a exceder los límites de recursos de Parsoid mientras proporcionaba detalles de este artículo HTML.",
|
|
22
|
-
"DOWNLOAD_ERRORS_LINE1_ACTION_PARSE_GENERIC_INTERNAL_API_ERROR": "Cuando el ZIM que explora fue compilado, la API ActionParse del servidor ${server} presentó un error de API interno mientras proporcionaba detalles de este artículo HTML.",
|
|
23
|
-
"DOWNLOAD_ERRORS_LINE1_ACTION_PARSE_INTERNAL_API_TYPE_ERROR": "Cuando el ZIM que explora fue compilado, la API ActionParse del servidor ${server} presentó un error interno de tipo de API mientras proporcionaba detalles de este artículo HTML.",
|
|
24
|
-
"DOWNLOAD_ERRORS_LINE1_ACTION_PARSE_INVALID_ARGUMENT_EXCEPTION_ERROR": "Cuando el ZIM que explora fue compilado, la API ActionParse del servidor ${server} presentó un error de excepción de argumento mientras proporcionaba detalles de este artículo HTML.",
|
|
25
|
-
"DOWNLOAD_ERRORS_LINE1_ACTION_PARSE_TRUNCATED_RESPONSE": "Cuando el ZIM que explora fue compilado, la API ActionParse del servidor ${server} falló en proporcionar detalles acerca de este artículo HTML porque el artículo es demasiado grande. Probablemente alguien debería separar este artículo en múltiples artículos más pequeños en el servidor ${server}.",
|
|
26
|
-
"DOWNLOAD_ERRORS_LINE1_ACTION_PARSE_EMPTY_500_RESPONSE": "Cuando el ZIM que explora fue compilado, la API ActionParse del servidor ${server} falló en proporcionar detalles de este artículo HTML devolviendo una respuesta vacía.",
|
|
27
|
-
"DOWNLOAD_ERRORS_LINE2": "El artículo faltante fue reemplazado por la página provisional que está viendo en este momento.",
|
|
28
|
-
"DOWNLOAD_ERRORS_LINE3": "Esperemos que el asunto sea resuelto en el servidor ${server} y que nuestra siguiente versión de este ZIM contenga este artículo."
|
|
29
|
-
}
|
package/translation/ha.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@metadata": {
|
|
3
|
-
"authors": [
|
|
4
|
-
"El-hussain14",
|
|
5
|
-
"Rofiatmustapha12"
|
|
6
|
-
]
|
|
7
|
-
},
|
|
8
|
-
"DISCLAIMER": "An bayar da wannan labarin daga ${creator}. Rubutun yana da lasisi a ƙarƙashin ${license}. Ƙarin sharuɗɗa na iya aiki don fayilolin mai jarida.",
|
|
9
|
-
"LAST_EDITED_ON": "Gyaran ƙarshe akan ${date}"
|
|
10
|
-
}
|
package/translation/hi.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@metadata": {
|
|
3
|
-
"authors": [
|
|
4
|
-
"Juuz0"
|
|
5
|
-
]
|
|
6
|
-
},
|
|
7
|
-
"DISCLAIMER": "यह आलेख ${creator} से जारी किया गया है। पाठ को ${license} के अंतर्गत लाइसेंसीकृत किया गया है। मीडिया फ़ाइलों के लिए अतिरिक्त शर्तें लागू हो सकती हैं।",
|
|
8
|
-
"LAST_EDITED_ON": "अंतिम बार ${date} को संपादित किया गया"
|
|
9
|
-
}
|
package/translation/ig.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@metadata": {
|
|
3
|
-
"authors": [
|
|
4
|
-
"Accuratecy051",
|
|
5
|
-
"Oby Ezeilo"
|
|
6
|
-
]
|
|
7
|
-
},
|
|
8
|
-
"DISCLAIMER": "Ewepụtara akụkọ a n'aka ${creator}. Enyere ikike ederede n'okpuru ${license}. Usoro mgbakwunye nwere ike itinye maka faịlụ mgbasa ozi.",
|
|
9
|
-
"LAST_EDITED_ON": "ụbọchị ikpeazụ edeziri ya bụ na ${date}"
|
|
10
|
-
}
|
package/translation/kaa.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@metadata": {
|
|
3
|
-
"authors": [
|
|
4
|
-
"Inabat Allanova"
|
|
5
|
-
]
|
|
6
|
-
},
|
|
7
|
-
"DISCLAIMER": "Bul maqala ${creator} tárepinen berilgen. Tekst ${license} licenziyası astında licenziyalanǵan. Media fayllarına qosımsha shártler qollanılıwı múmkin.",
|
|
8
|
-
"LAST_EDITED_ON": "Aqırǵı márte ${date} sánesinde redaktorlanǵan"
|
|
9
|
-
}
|
package/translation/nb.json
DELETED
package/translation/nqo.json
DELETED
package/translation/pt-br.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@metadata": {
|
|
3
|
-
"authors": [
|
|
4
|
-
"Klgor1803",
|
|
5
|
-
"Robertpontes"
|
|
6
|
-
]
|
|
7
|
-
},
|
|
8
|
-
"DISCLAIMER": "Esse artigo foi publicado por ${creator}. O texto é licenciado sobre a ${license}. Termos adicionar podem ser aplicados aos arquivos de mídia.",
|
|
9
|
-
"LAST_EDITED_ON": "Ultima edição em ${date}"
|
|
10
|
-
}
|
package/translation/ro.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@metadata": {
|
|
3
|
-
"authors": [
|
|
4
|
-
"MSClaudiu"
|
|
5
|
-
]
|
|
6
|
-
},
|
|
7
|
-
"DISCLAIMER": "Acest articol este emis de la ${creator}. Textul este licențiat sub ${license}. Se pot aplica termeni suplimentari pentru fișierele media.",
|
|
8
|
-
"LAST_EDITED_ON": "Ultima editare pe ${date}"
|
|
9
|
-
}
|
package/translation/scn.json
DELETED
package/translation/sq.json
DELETED
package/translation/te.json
DELETED
package/translation/tn.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@metadata": {
|
|
3
|
-
"authors": [
|
|
4
|
-
"Sekhomba"
|
|
5
|
-
]
|
|
6
|
-
},
|
|
7
|
-
"DISCLAIMER": "Padi ye e gatisitswe gotswa ko ${creator}. Mokwalo o gatisitswe kafa tlase ga ${license}. Melawana ya tlaleletsa e ka diragala mo ditseleng tsa media.",
|
|
8
|
-
"LAST_EDITED_ON": "E gatisitswe la bofelo ka ${date}"
|
|
9
|
-
}
|
package/translation/tr.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@metadata": {
|
|
3
|
-
"authors": [
|
|
4
|
-
"Hedda",
|
|
5
|
-
"SaldırganSincap"
|
|
6
|
-
]
|
|
7
|
-
},
|
|
8
|
-
"DISCLAIMER": "Bu madde ${creator} tarafından yayımlanmıştır. Aksi belirtilmedikçe metin ${license} lisansı altında kullanılabilir. Medya dosyaları için ek koşullar geçerli olabilir.",
|
|
9
|
-
"LAST_EDITED_ON": "Son düzenleme ${date} tarihinde yapıldı"
|
|
10
|
-
}
|