597 Commits

Author SHA1 Message Date
Mossroy
f930652aa7
Merge pull request #406 from kiwix/workaround-serviceworker-state-loss-after-a-while
Workaround serviceworker state loss after a while
2018-09-12 17:19:17 +02:00
Mossroy
387af28bcf Workaround ServiceWorker hanging after a while by keeping it alive periodically.
The MessageChannel is re-created each time.
It prevents the ServiceWorker from being restarted and losing its variables
See #145
2018-09-09 16:46:49 +02:00
Mossroy
ca6d5335ea Add changelog of version 2.3.1 2.3.1 2018-09-08 23:11:52 +02:00
Mossroy
84e7e90f25
Merge pull request #398 from kiwix/No-parallel-decompression
Prevent xzdec_wrapper from decompressing several chunks at a time.
2018-08-09 21:29:01 +02:00
Mossroy
dd4708f722 Prevent xzdec_wrapper from decompressing several chunks at a time.
Fixes #389
2018-08-09 21:24:24 +02:00
Mossroy
6148f6e140
Merge pull request #403 from kiwix/create-nightly-directory-if-missing
Create the nightly remote directory if it does not exist, during CI.
2018-08-04 18:58:49 +02:00
Mossroy
418d3a0ba9 Create the nightly remote directory if it does not exist, during CI.
Fixes #364
2018-08-04 18:54:30 +02:00
Mossroy
d84488105f
Merge pull request #402 from kiwix/add-favicon
Add favicon links in HTML header, to the existing PNG icons.
2018-08-02 09:40:42 +02:00
Mossroy
b775fd7acd Add favicon links in HTML header, to the existing PNG icons.
And remove obsolete favicon.ico (that was still using an evopedia icon).
Fixes #401
2018-07-12 17:04:47 +02:00
Jaifroid
ddaa3586f1
Add more specific mimetype support for images #390 (#391) 2018-06-06 21:12:43 +01:00
Mossroy
a89e462fa9 Change version numbers to start working on 2.4 2018-06-04 22:50:36 +02:00
Mossroy
2dc9dde3e0
Merge pull request #377 from kiwix/changelog-for-v2.3.0
Update Changelog with the content of version 2.3.0
2.3.0
2018-06-04 21:59:41 +02:00
Mossroy
82d81b67d5 Update Changelog with the content of version 2.3.0 2018-06-04 21:54:31 +02:00
Jaifroid
d1d9e49975
Render only when all CSS is fulfilled #381 (#387) 2018-06-01 15:03:08 +01:00
Mossroy
78ee035714
Merge pull request #383 from kiwix/Always-use-iframe-src-in-Service-Worker-mode
In ServiceWorker mode, set the iframe src to display articles.
2018-05-30 21:04:59 +02:00
Mossroy
294facdb55 In ServiceWorker mode, set the iframe src to display articles.
Instead of calling displayArticleInForm like in jQuery mode.
I also removed some tests on jQuery/ServiceWorker modes in displayArticleInForm, as this function is now only used in jQuery mode.
And I renamed it to displayArticleContentInIframe

Fixes #382
2018-05-30 14:58:45 +02:00
Jaifroid
95afdeecb6
Fix 404 errors in http mode #376 (#378) 2018-05-28 13:43:43 +01:00
Mossroy
26112de66c
Merge pull request #380 from kiwix/Avoid-white-page-on-article-load
Avoid white page before displaying article content.
2018-05-27 13:51:25 +02:00
Mossroy
6778fc82c8 Avoid white page before displaying article content.
Fixes #379
2018-05-26 23:10:30 +02:00
Jaifroid
68688c8392
Read CSS as utf8 strings instead of binary (#371) 2018-05-23 14:46:48 +01:00
Jaifroid
68d1a4482a
Fix dead objects and history bugs #369 #368
Also reverts to innerHTML method of injecting the iframe due to incompatibilities of document.write() with Service Worker mode in some browsers. Fixes #361 , #366 , possibly #365.
2018-05-21 08:18:39 +01:00
Jaifroid
bc9eb69fca Ignore 2018-05-09 10:25:47 +01:00
Mossroy
25d7d26bdf
Merge pull request #360 from kiwix/remove-jwt-addon-in-travis
Remove the jwt addon from travis configuration.
2018-04-29 21:38:40 +02:00
Mossroy
d77f64b679 Remove the jwt addon from travis configuration.
Fixes #351
2018-04-29 21:27:12 +02:00
Mossroy
80671947f3
Merge pull request #358 from kiwix/Open-all-headers
Open headers and blocks if they are closed. Fixes #355
2018-04-29 21:19:35 +02:00
Jaifroid
107250eaaa Open headers and blocks if they are closed.
Because they can not be opened with javascript for now.
Fixes #355
2018-04-29 21:13:29 +02:00
Jaifroid
ca740126e7 Use articleContent.write to inject HTML into iframe and eliminate dummyArticle #354 2018-04-16 22:46:05 +01:00
Jaifroid
6bf87b26d3
Make jQuery routines into functions and eliminate unhandled exception #348 2018-03-20 12:26:28 +00:00
Mossroy
b1118a9747
Merge pull request #346 from kiwix/accept-links-with-anchors
Accept links to articles that have an anchor.
2018-03-19 20:58:38 +01:00
Mossroy
7a95cf12af Accept links to articles that have an anchor.
The anchor has to be removed before passing to the ZIM backend

Fixes #344
2018-03-19 20:31:13 +01:00
Mossroy
98d93caf75
Merge pull request #345 from kiwix/http-redirects-on-ZIM-redirects-in-sw-mode
Send an HTTP Redirect in SW mode when there is a ZIM redirect.
2018-03-12 21:27:33 +01:00
Mossroy
1228842a91 Send an HTTP Redirect in SW mode when there is a ZIM redirect.
It is necessary to let the browser know in which directory it is.
Else the relativeslinks can be broken if the original URL is in a
different directory than the final URL.

Fixes #312
2018-03-12 20:34:35 +01:00
Jaifroid
0faae342ee
Void the iframe in readArticle function #341 (#342) 2018-03-12 18:45:20 +00:00
Jaifroid
84452384f8
Cache the CSS content in jQuery mode #355 (#336) 2018-01-23 21:51:29 +00:00
Mossroy
9f60c6bfcd
Merge pull request #334 from kiwix/update-version-numbers-to-start-v2.3
Change version numbers to start working on version 2.3
2018-01-07 13:34:25 +01:00
Mossroy
b9954b2ba8 Change version numbers to start working on version 2.3 2018-01-07 13:02:58 +01:00
Mossroy
d5f4609811
Merge pull request #333 from kiwix/prepare-v2.2.0-release
Fix package creation for a tag, and release date in changelog.
2.2.0
2018-01-07 11:57:11 +01:00
Mossroy
5119a8f093 Fix package creation for a tag, and release date in changelog.
To prepare the v2.2.0 release
2018-01-07 11:46:53 +01:00
Mossroy
f962cd4f3a
Merge pull request #331 from kiwix/minor-fixes-in-about-section
Fix the jQuery version and the visibility of last lines in About section
2018-01-05 14:21:37 +01:00
Mossroy
5d14ff42fa Fix the jQuery version and the visibility of last lines in About section 2018-01-05 13:49:00 +01:00
Mossroy
53a111a000
Merge pull request #330 from kiwix/fix-some-images-in-serviceworker-mode
Fix a regression on some images in ServiceWorker mode.
2018-01-05 13:43:38 +01:00
Mossroy
0e80e6f353 Fix a regression on some images in ServiceWorker mode.
Fixes #329
It was affecting all <img> tags of the first displayed article, only
in ServiceWorker mode.
2018-01-05 12:40:00 +01:00
Mossroy
2a4de89693
Merge pull request #327 from kiwix/update-changelog-for-v2.2
Update README, About section and CHANGELOG.
2018-01-05 11:43:17 +01:00
Mossroy
206a8798be Update README, About section and CHANGELOG.
And some rewording.
In order to prepare a v2.2 release.
2018-01-05 11:38:28 +01:00
Mossroy
3f97a116bc
Merge pull request #326 from kiwix/Rename-readableTitle
Rename readableTitle
2017-12-31 15:43:08 +01:00
Jaifroid
cb5cb6be2f Rename readableTitle
Addresses #325
2017-12-29 16:18:14 +00:00
Mossroy
fe37ac4123
Merge pull request #322 from kiwix/several-browsers-for-UI-tests
Use several browsers for automated unit and UI tests
2017-12-25 21:50:38 +01:00
Mossroy
8e767a76af Run automated unit and UI tests on several browsers.
Latest versions of Firefox, Chrome and Edge
Plus some older browsers : Firefox 45, Chrome 58 and IE11.
For IE11, I had to disable unit tests (not supported).
I also added a fix in UI tests that make them more stable,
and added some file headers.
2017-12-25 21:33:42 +01:00
Mossroy
3c034f983a Fix anchor links, that were broken because of the base tag. (#319)
Regression introduced by #310
It was also the occasion to refactor a bit this part of the code,
and to remove some obsolete code (related to the Evopedia file format)
Fixes #318
Also fixes #313 (handle links with other protocols like geo: tel: etc.)
2017-12-23 20:35:52 +00:00
Jaifroid
7681f61b30
Fixes toolbar alignment #311 (#321) 2017-12-21 22:28:29 +00:00