579 Commits

Author SHA1 Message Date
Jaifroid
7244bf07a5 Lower BLOCK_SIZE
Former-commit-id: 7210af7e40780f3fa3e2c372d647f30c8c36f872 [formerly 13637dfa4fa65771cdc090e72df76541c014aa43]
Former-commit-id: 69a5473537b7665b5c0ffe3e5a9e6b990637caa2
2020-03-04 12:13:48 +00:00
Jaifroid
43a61dd17a Increase cache * 8
Former-commit-id: dbaa8f75e48db81352709c28344c749f4524598e [formerly ea19b56483bb223da7d18ba04dc45d6b360c6079]
Former-commit-id: 69a77eb6781fbc92524b82bd348f217ab4f38e0a
2020-03-03 23:04:45 +00:00
Jaifroid
b0a8de7ca0 Revert use of Response (no advantage)
Former-commit-id: 67670b7433fcbb107b5b96ec3195365fd721eeb8 [formerly f7ff53c22de3eac1c754e28d49b4961aa4fd2210]
Former-commit-id: 43ce5692ac696fadc47cc7a441e8938d73f5ad76
2020-03-03 21:55:33 +00:00
Jaifroid
6303cf1deb Experimental values to make app more usable in Android
Former-commit-id: e03519005523bf69135bb13b36833fac22ef0e19 [formerly da95a8b023c8095871ccb90620412bbb20a65386]
Former-commit-id: 6adcfc5dde845e998465e33dd251e40bb8e067d3
2020-03-03 21:25:03 +00:00
Jaifroid
509ee610c2 Add new Blob.arrayBuffer method
Former-commit-id: bdb97550a8558a6e0364a10db061aa8cdff5075b [formerly d3df633a0bbe50087aad6cf234887f76c6a8fa79]
Former-commit-id: 28155de28dffa940acceb866b203d6b143501374
2020-03-01 10:59:42 +00:00
Jaifroid
5e2377393e Further Promise regularization
Former-commit-id: 10e1d922eb1ab86d606ebe7738ba8c969afc4051 [formerly b1b0163ac2b3caa94de618e77e0933d933a7cc7c]
Former-commit-id: 9d354176b5dcac52d957d5434771fa3c1070ee61
2020-03-01 09:28:02 +00:00
Jaifroid
a8c97c86a7 Update Q to v1.5.1
Former-commit-id: 6e74d289f07ac8153af5313e68ebd5011cc1fd4b [formerly 4cab4adf1ddc2e96da8ea6f412d79239dda76728]
Former-commit-id: a19454dcd69799a56546d99ce19f5526f7fc7ab4
2020-03-01 09:05:24 +00:00
Jaifroid
3534459e9c Prevent error in Electron due to NWJS code
Former-commit-id: 38afb9bb4c3848b63cf4ae45b3e3142200b71db5 [formerly 7ea10eb85b2a1f4857da1a6a20b67dc23d69b732]
Former-commit-id: 3a61d478b45485e21da399b12edc7519efff9579
2020-02-26 16:02:47 +00:00
Jaifroid
cc8688fa2d Add improvements from nwjs branch
Former-commit-id: c2a1e9fb7dc342699cd324dc40a9cbe89df1c8ae [formerly ea1d60c4aa9df2c813cd918d3eb6ec7317694b86]
Former-commit-id: 851ab23f17e00c7a422645bee147769c4cef0bd0
2020-02-26 09:55:30 +00:00
Jaifroid
6321aca286 Define buffer correctly for electron
Former-commit-id: fbbc37a0aaab7e85ab4ec22d9b46f812f02bda38 [formerly 95ac2adf2b138d795166ec1fe64ee807f39cc39b]
Former-commit-id: a64bb361be02c94a679fe4431c440eb31b308457
2020-02-15 17:35:18 +00:00
Jaifroid
df6d26a066 Make fs.read compatible with filecache
Former-commit-id: 38f9dc7c7f825a77969ad55d7c4d25e4dc1aef22 [formerly a2c490caa3e19bab560b1f231b9985a881f170e9]
Former-commit-id: dd3ec30dc2ed7ce373eb2c2dcb3bb7f0629de83e
2020-02-15 17:35:18 +00:00
Jaifroid
b18f4b3956 Cache file format and tweak
Former-commit-id: 297445b0f1e27c60a19eda324dadd9b5323b051a [formerly da25e0009e4a0fb4b1ab99497801908a54efa02a]
Former-commit-id: 85d9f6bd97f4c50f3ce62d8300d0fda4aa545b39
2020-02-03 09:21:22 +00:00
Jaifroid
d6e0807fe5 Increase cache to 4 MiB
Former-commit-id: a2274338ed65851b4dc2366b49e2dbbc5d3dff71 [formerly 3522730387c976c31e9a0495a99be98f9c6d8205]
Former-commit-id: 4630821d2614e936ad14075e6e5c4155d5f8537e
2020-02-02 23:25:37 +00:00
Jaifroid
c622a0994f Optimize cache for search
Former-commit-id: 7b0b1a7ebc636156c31abe0218c69b869c5c1ced [formerly 797a3b9a362bef1bbd71410ed632fd2e5a5bfc9f]
Former-commit-id: c9721464282cbb87f69b128ab5e8002d9606d642
2020-02-02 22:49:36 +00:00
Jaifroid
f02890641d Update filecache.js
Former-commit-id: bae40d088edccb38bd62618450fdd56c6a6a0214 [formerly 77a7ba11d95ee149f61c867bf3aba0708e193aa4]
Former-commit-id: 0efeb21cc65e7f1270faed23e23205659e970cb5
2020-02-02 18:58:06 +00:00
Jaifroid
16468f5955 Improve usage of cache for split files
Former-commit-id: 994b9bb84c0011136afe7d62bcf90d1a0441c80f [formerly 63ac12deb056daa0d61661e32b40ce62475b5876]
Former-commit-id: b7e26d5ee3cc0d60d45f87c44c02b19f9008b0e7
2020-02-02 18:34:24 +00:00
Jaifroid
0915dba2a1 Add a 2MB filecache (speeds up binary search)
Former-commit-id: 8a2a4d4ac72c41b7184e8b0fa19a2e416156d988 [formerly 98fe8edd29a736261220879b278828eebfe4d886]
Former-commit-id: d6821d750e8137d89bcfc60e2e8adacd787f1575
2020-02-02 16:44:32 +00:00
Jaifroid
1829399560 Refactor deprecated Promise patterns
Former-commit-id: e5c04a1b74f6d3966f417eac5877c8f3c8cf242d [formerly 55758bc977941dee22ad775dc1a194861ba0fbb9]
Former-commit-id: 53998f482d0ee6a506cac9a4858b813092208821
2020-02-01 09:53:58 +00:00
Jaifroid
3dc24fbaed Better cache message
Former-commit-id: 84312019e159ef14c80637746d20db73195b7e40 [formerly 677ee594bd1a90471b45de50f5f317c32cb00d0e]
Former-commit-id: 275d30ea1fb18673922f1d68150260da630cb64e
2020-01-31 10:30:50 +00:00
Jaifroid
9e222e80d5 Add least-recently-used cache
Former-commit-id: e5245e8531c4a8f7803f3f07fa149f129982482c [formerly 7eebd8358e6b669ae66911a01598816544ddb61c]
Former-commit-id: edf4621a41c332b29d78782f0d66e6325825a3e0
2020-01-30 23:47:45 +00:00
Jaifroid
31cccfd338 Remove broken links to Portable version of archives
Former-commit-id: 068f02297e325127a39de703b9d415b7f8821364 [formerly eb5d2fc0189ec81dc90fabb1820f42555a68ad9d]
Former-commit-id: 76e5e9ef01764a3dbaaf1c2396897131055c4a28
2020-01-22 22:59:24 +00:00
Jaifroid
130b423c26 Correct location string
Former-commit-id: 65a4c1e9a59bfab78ce0a374b24cd270a52f8a30 [formerly 6d6554b8576ad72b09c4649c1b7bcffe157034c3]
Former-commit-id: d5ad4c5121bcb5e665d98817319bdfaa1c7f1c17
2020-01-19 13:11:51 +00:00
Jaifroid
87f28083b2 Intuitive toolbar hiding like in Android app
Former-commit-id: a69af97113d525e02df1d187468fb5f76009890c [formerly e20011fc1db5fe1f78d5aab7d53d6176747f1538]
Former-commit-id: 2563915c87786bf79dc23686b5c62fa349d2f7ab
2020-01-18 22:58:28 +00:00
Jaifroid
7fe7de329c Port upstream PR that allows use of special characters in search
Former-commit-id: 4c2ba23b7f81e50f64421a3c078c406e9c4fac72 [formerly 558243560bf19d0cfe5951deafce9e8b80c5783b]
Former-commit-id: 7c3b7a3f4a942813118f95a80c9506e7de9e5e07
2020-01-01 12:00:46 +00:00
Jaifroid
4d586723b0 Correct display of standard dark-mode SVGs
Former-commit-id: 6ef3c0fb3cdac21ad45f3bea3624796b55403733 [formerly 4e9bb9f2c131f609140a010e0e4af4f22fb02962]
Former-commit-id: adcfb5908e1d2c5ed32a0df7617b89ebcadc4e85
2019-12-29 17:56:17 +00:00
Jaifroid
4d9cf4695d Fix broken display of MathML when there are no images in the document
Former-commit-id: 8e5397d0aa6655e24a5c1a049ab7f80e47284985 [formerly 1674afb4ad3e84dc391345f1a94d880e25974bcd]
Former-commit-id: 2c487839063561e0f6f6bc6db5032bf4e1b00746
2019-12-29 15:30:18 +00:00
Jaifroid
3768aa386f Prevent top bar or search-in-article being hidden if selected
Former-commit-id: 610a973aa1dbbb734113ebc99f89ff7c06b127d8 [formerly 8672b40e1ef9ab8cded34b9cc20336535d2d5b61]
Former-commit-id: 9ac91b31b3895c7fadeaa36b3efe38341cef837d
2019-12-28 19:24:39 +00:00
Jaifroid
8cc039e460 Fix broken display of download library
Former-commit-id: 95183549581293e09fa25d8d61d0bafc66fe5daf [formerly 6d8de9b403b554cc9569705ddeec0766a132f792]
Former-commit-id: 16fbac1929fba81b8e40ab68d729034cfc1b9234
2019-12-28 17:11:13 +00:00
Jaifroid
23beda71e7 Improvement to image load timings
Former-commit-id: 696cb6c585de64c55f6be609a5d82a238305c03f [formerly c85e36c0a1e3dbe88b71a40379905387801ee66b]
Former-commit-id: 3a900d28c0f20b780c058608a995581e2c0eddda
2019-11-03 17:05:58 +00:00
Jaifroid
8d7a5af0a6 Some preparations for 0.9.9.95 release
Former-commit-id: 547be1955585b73af163cebcce0a483cff655411 [formerly e2c31e6ebb853ad645ef15dfb3586a0cf084911a]
Former-commit-id: 5ea92ee27130259a79788a69a168d594cf5e2bb5
2019-10-01 18:06:16 +01:00
Jaifroid
984469873a Move badly encoded ZIM logic to work with SW
Former-commit-id: b35dfaeb08056f812b03d4558c97b3e6e86bd069 [formerly 388c52d75f874ba0ade8efe20220b7bf6d1715f8]
Former-commit-id: b23bdf59962135088b402adc7be0f86ea624bcc7
2019-08-26 16:02:09 +01:00
Jaifroid
804ba7fa9d Improve print filtering
Former-commit-id: b7afba1b3c1a8d2e02ebd736d6bc81d82f28234c [formerly a2ccde6b15c9690ce4257477247bde16da3bbb86]
Former-commit-id: c3fcbae293ebafd9ec6401135e3bae917359a1f5
2019-08-17 13:11:59 +01:00
Jaifroid
2ed1aca9bf Tweak styles and filters
Former-commit-id: 51200745bdb523fef4a3da561cec5ce2baa6f0c4 [formerly 29d49cd301afdf3513e5eb18ac092167fd2b96b9]
Former-commit-id: fee227e7e79395f208c7af5bfdca2aa767502b97
2019-08-17 11:57:19 +01:00
Jaifroid
63e78d6dc0 Tweaks to styles for newstyle ZIMs
Former-commit-id: 955517a58f182079dbc75c7f4d285ab8fd823162 [formerly 9042d7cca1334fb2c33152b46344a7a10818e4f5]
Former-commit-id: c18dc6d618a01b830885b68d6166c76bb14cb118
2019-08-16 17:56:25 +01:00
Jaifroid
fb43217fc2 Stop critical looping in print routine
Former-commit-id: 5ff3f1ce945f984d39d43220aa67bf1bee2c21d1 [formerly 534fa939e287eb9583ab6b9545a0cfe4bdca47d6]
Former-commit-id: 9072c20973b691b28fc99f8467c54fcd488597ec
2019-08-16 16:07:15 +01:00
Jaifroid
576349c293 Tweak print filtering to support details-summary sections
Former-commit-id: 228dc14558689a237e20e631ff95545d09d3a559 [formerly c9f2d320d261525990fd4e5e10c17e81d99d29cf]
Former-commit-id: 56fb3d2ebde4b7cae319b0267db9893c8fe89fc3
2019-08-16 09:28:23 +01:00
Jaifroid
2f496b5b0a Fix image extraction in SW mode
Former-commit-id: 693de5df87ec03a06c26a9dde983d7c1f3291dc9 [formerly e975c240d3d057eaa5d2f636b3d637dc8b83a7af]
Former-commit-id: ff4011727e746e476b678b10e8227c8fc332f13f
2019-08-15 18:30:31 +01:00
Jaifroid
25d4bd7a10 Streamline extraction code
Former-commit-id: 8948d09c66ecff9ae1d1e6dfd8670248d0739e7b [formerly 77abfd83d9efc7b1ebd14225a733600ea2180e9e]
Former-commit-id: c4c2c2b412411b27c993068fe943375e678a2802
2019-08-15 16:47:21 +01:00
Jaifroid
cdfd110a20 Improve printing (SW mode 90% supported)
Former-commit-id: 92daec36598cc29a417f0673a8504e11f61c55c4 [formerly 75406548a259495df5ca6fb03de97f856e30a3d2]
Former-commit-id: 04b1727f06e6b296cde8b09b51780fe0ac90d59b
2019-08-15 16:46:32 +01:00
Jaifroid
3e7ca51946 Improve cookie detection
Still  not perfect: doesn't test for session-only cookies...


Former-commit-id: e15897f2c8868e75b1f69f6c5542353515441261 [formerly 4ac21dd677fd3d9aa301be2396afe3277ab29807]
Former-commit-id: 96a6fc0b37e7d13fd4860dd268e6d891ab87463a
2019-08-15 16:46:32 +01:00
Jaifroid
a333560ad4 Style tweak and less logging
Former-commit-id: cbaa4006ead8882f38c77c213500ba4fb02c93ab [formerly a81e9e92bacc64a27ce991f3850b803644c07065]
Former-commit-id: 1a7738de3de435efc5cce4f190e0d363149af4b1
2019-08-15 16:46:31 +01:00
Jaifroid
163f566734 Delete redundant code
Former-commit-id: 3be68a8c077c73958eeaf8baf02154bd8fe41691 [formerly e1ff2c5bc6b2fff01a46eec04326de4f040a0758]
Former-commit-id: 12367ee180e618d7a0147a3c4ca02af9e2349796
2019-08-14 21:48:33 +01:00
Jaifroid
48feb321dd Add printing support for Electron
Former-commit-id: f314e97b107afa74f75184dfaf34646b662d85c0 [formerly 8b5816abdaf824d988014114327ebfd8a8156bf5]
Former-commit-id: c39a936276525df0de503435cd563a468e9fa138
2019-08-14 19:28:34 +01:00
Jaifroid
a48933084d Fix critical loading page loop and various typos
Former-commit-id: 2b90792c29e2c5f7080d3b5f86a95a4d6b972e22 [formerly 424568deb8d362edd388d5b41e83f6a0a2305afb]
Former-commit-id: ebf9a6c741bd51a917c713e0a54d4a5d51b90291
2019-08-13 22:51:44 +01:00
Jaifroid
2534667af5 Support cookies with file:// access in Edgium
Former-commit-id: de58278fd0b51182440564310511edf6a7e99976 [formerly eeab3f49983f99946c620ff8b006723bf2d9a2bc]
Former-commit-id: 153b1f278c457a98cc271654d37e61ee0ea8e271
2019-08-13 12:27:26 +01:00
Jaifroid
0c712e1156 Streamline and share common code
Former-commit-id: 98cba71bd2e2a84964c4ae7637b97ad42a8a2ef3 [formerly b2cb360104072dca04deb5e5413b233115d05542]
Former-commit-id: 93f7d9adae9a8cb8c0e771c159c94dc94b966fe1
2019-08-13 12:13:21 +01:00
Jaifroid
dcf5c345be Use closure for file reads
Former-commit-id: 1106b44ae0f3b38c799ca127241d296c0668c5d0 [formerly e99b7fa65ec13e8d13e1844cfa7d483480ffc99a]
Former-commit-id: bd5ce54d32735fa296f8bbc1bf1c5d5723782296
2019-08-13 12:13:18 +01:00
Jaifroid
90e6044fb2 Fix critical display error with non Wikimedia ZIMs
Former-commit-id: b12176bf99c375afbb5af6f47c3419126a864164 [formerly 6a1951e4ae983eac527e05f70d444b39fc29d7ba]
Former-commit-id: e51499ea39bc119a79989f11770785445e5796cc
2019-08-08 18:43:59 +01:00
Jaifroid
b77eae3362 Iron out display bugs
Former-commit-id: 659b71e1b32ed348ad65987c319ea9de52ec456d [formerly 5a7834b18965f6647d8014a04f0e88e68b2ba6e7]
Former-commit-id: e005060d07ef3b98fa8519bae02e7e144764f472
2019-08-08 18:02:51 +01:00
Jaifroid
0afc3ea834 Correct prefix for newstyle
Former-commit-id: ff0412eb5e38485a65a36ae13a6e0d2fe9ea9a82 [formerly 14eed5b8e7fe48bd09ad61ea2f5ab03a964058ef]
Former-commit-id: 2880f43f37245d5bb8c25a22d7b21a7d4474ab53
2019-08-08 15:20:42 +01:00