652 Commits

Author SHA1 Message Date
Mossroy
2de1354218 Add some more info in the webextension manifest 2017-04-05 17:57:26 +02:00
Mossroy
adcbd35db4 Merge pull request #192 from kiwix/basic_webextension
Basic webextension
2017-04-03 16:16:14 +02:00
Mossroy
d414c84c1d Change creation date in file header 2017-04-03 15:56:45 +02:00
Mossroy
dbb8fac984 Add more icon sizes to match browsers recommendations.
Based on https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/browser_action#Choosing_icon_sizes and stackoverflow.com/questions/20424425/recommended-size-of-icon-for-google-chrome-extension/35731422
2017-04-03 15:49:23 +02:00
Mossroy
2b4e325ab9 Make the extension compatible with Chromium/Chrome 2017-04-03 15:02:15 +02:00
Mossroy
a5df777f2c First attempt to create a WebExtension for Firefox.
See #187
2017-04-03 15:02:15 +02:00
Mossroy
a947c3f45c Merge pull request #191 from kiwix/replace-peter-x-travis-sauce-credentials
Replace peter-x travis sauce credentials
2017-04-03 14:22:44 +02:00
Mossroy
44bb8997ab Attempt to make nightwatch use the sauce credentials parameters 2017-04-03 14:14:34 +02:00
Mossroy
9d61ef47d9 Fix my encrypted sauce key. 2017-04-03 14:06:54 +02:00
Mossroy
f0efdf1f78 Add my encrypted sauce key. 2017-04-03 12:48:43 +02:00
Mossroy
c7438b516a Try to remove the peter-x Travis Sauce credentials.
Because it's probably unsecure to let them in the source code.
And because they probably have been changed, and do not work any more.
2017-04-03 11:49:16 +02:00
Mossroy
db483bf0d1 Merge pull request #190 from kiwix/serviceworker_fetch_eventhandler_on_init
Add the event listeners in the initial eval of the ServiceWorker script.
2017-04-03 11:34:52 +02:00
Mossroy
9b4745acf2 Add the event listeners in the initial eval of the ServiceWorker script.
This is required by a modification of the ServiceWorker spec, that is
being enforced by recent browsers.
Cf https://bugzilla.mozilla.org/show_bug.cgi?id=1181127 for Firefox
Fixes #189
2017-03-05 17:24:40 +01:00
Mossroy
44bcaf0840 Merge pull request #182 from kiwix/issue113
Handle articles spread among several split ZIM files.
Add a unit test to check that it works
2016-10-28 16:02:29 +02:00
mossroy
d8c3817ae0 Restore wikipedia_en_ray_charles_2015-06.zim for travis
This file is needed for Travis CI builds, through nightwatch
2016-10-28 15:52:00 +02:00
Mossroy
85c8f0146a Merge pull request #180 from kiwix/testing
Automated testing using travis, nightwatch and sourcelabs.
2016-10-28 15:03:40 +02:00
Peter
7339187c46 Simple UI test. 2016-10-03 23:52:49 +02:00
Peter
95eb610838 Ability to inject remote archives for testing. 2016-10-03 23:52:17 +02:00
Peter
5a9f9af111 Fix tests. 2016-10-03 16:59:36 +02:00
Peter
1c62fe4578 Add key. 2016-10-03 15:40:25 +02:00
Peter
a6ce668147 Add test for split article. 2016-10-02 18:14:14 +02:00
Peter
dd6b17210d Make zim tests use split archive. 2016-10-02 18:14:14 +02:00
Peter
bd8be4cfb7 Bugfix: return correct array type. 2016-10-02 18:14:14 +02:00
Peter
201b06b10e Remove invalid todo. 2016-10-02 18:14:14 +02:00
Peter
7718566744 Fix size calculation. 2016-06-27 00:49:57 +02:00
Peter
f8f045f4e1 Properly wait on all promises to resolve. 2016-06-27 00:49:57 +02:00
mossroy
431632e168 Minor changes to prepare a release of version 2.0 beta. 2.0-beta 2016-06-26 14:43:59 +02:00
Mossroy
a9ba9cde1c Merge pull request #174 from kiwix/issue113
Basic support of splitted ZIM files
2016-06-26 14:08:30 +02:00
mossroy
7c57934007 Revert the attempt to read a file slice that would be split among several ZIM files, for now.
Because of performance regression.
I created issue #181 to handle this in the future.
+ minor cosmetic fixes in the code.
2016-06-26 14:03:54 +02:00
Peter
4064b18456 Full splitted ZIM file support. 2016-06-26 00:24:51 +02:00
Peter
ce59ad5449 Automated testing using travis, nightwatch and sourcelabs. 2016-06-25 19:13:29 +02:00
mossroy
a4ed6b8f45 Basic support of splitted ZIM files with DeviceStorage API.
Fixes #113, even if there are some TODOs
2016-06-21 21:22:03 +02:00
mossroy
815c9e9f48 Modify the welcome message (when no archive has been found) to talk about Kiwix instead of Evopedia.
Fixes #171
2016-06-19 16:19:00 +02:00
Mossroy
4889456b52 Merge pull request #170 from kiwix/warn-service-worker-mode-unstable
Warn the user that the Service Worker mode is unstable for now
2016-06-15 16:45:06 +02:00
Mossroy
1aa606397f Merge pull request #169 from kiwix/fix-redirection-bugs
Fix in the redirection algorithm, that was leading to the wrong article.
2016-06-15 16:44:50 +02:00
Mossroy
bc263ceebd Merge pull request #168 from kiwix/issue141
The random article feature must not display titles with a namespace!=A
2016-06-15 16:44:29 +02:00
mossroy
eb0a6d39ab Initial work on #113 (handle splitted ZIM files).
It basically works on desktop, but not yet with DeviceStorage.
To be done :
- handle DeviceStorage
- fix for the case where the content is splitted into 2 (or more) files
2016-05-10 23:17:53 +02:00
mossroy
56d31f43d6 Minor update of README. 2016-04-29 22:47:34 +02:00
mossroy
f60155ef9e Add explanations in README on how to use the app in this beta state.
On a Firefox OS device (without the Marketplace)
And on a standard desktop browser
2016-04-29 22:39:42 +02:00
mossroy
ef269f1e84 Add warnings if the users selects the Service Worker mode.
It's still unstable for now (see #145).
If the user confirms he wants to use this mode, a cookie is set, so that he
is not warned again in the next 24 hours
2016-04-29 17:09:45 +02:00
mossroy
344c84deef Fix in the redirection algorithm, that was leading to the wrong article.
The redirection algorithm was considering the redirectTarget as a TitleIndex
instead of a UrlIndex.
That was sometimes causing some infinite loops, and often opened the wrong
article when clicking on a link.

Fixes #106
Fixes #133
2016-04-29 14:36:39 +02:00
mossroy
59ec612b40 The random article feature must not display titles with a namespace!=A.
When randomly selecting a title, we could end up on a content with any namespace
For example images, javascript, CSS etc.
Now, if this happens, we randomly select another title, until we find a content
with namespace 'A' (i.e an article)
2016-04-29 13:47:07 +02:00
mossroy
f6ad260867 Add unit test for "America, the Beautiful" article redirection.
The expected redirection behavior is described on #106
2016-04-29 08:59:56 +02:00
mossroy
0c2f340029 Merge branch 'unit-tests-on-redirection-issues' of github.com:kiwix/kiwix-html5 2016-04-29 08:46:21 +02:00
mossroy
cff5461f52 Fix a bug in unit tests, that appeared with recent versions of browsers.
Recent versions of Firefox and Chromium did not like the way I was
trying to find the webworker_bzip2.js file in 2 different possible locations
(because the path is slightly different when running from a unit test)
I changed this hack by another one : use a global variable that stores the
prefix of this path, with a different value in a unit test.
There should be a better way to do that, but this is only needed for legacy
Evopedia archives. So it's not worth spending too much time on things that
are now discontinued.
2016-04-27 22:44:11 +02:00
mossroy
e8c87980a0 Upgrade QUnit to 1.23.1 instead of 1.20.0 2016-04-27 22:02:50 +02:00
Mossroy
e5f4ae0b13 Merge pull request #167 from kiwix/issue156-empty-articles-on-big-ZIM
Fix integer computation on ZIM backend to make it work on big ZIM files.
2016-02-24 15:56:16 +01:00
mossroy
263b4ef96c Add unit tests for 2 redirection issues : #133 and #106
These unit tests are currently failing, and might help solving the issue(s) underneath
2016-02-08 22:15:47 +01:00
mossroy
c8bb00c69c Fix integer computation on ZIM backend to make it work on big ZIM files.
Fixes #156
The performance can probably be optimized
2016-02-08 21:35:34 +01:00
Mossroy
9c3d960ba0 Merge pull request #164 from kiwix/issue154-rebranding-kiwix
Initial rebranding to kiwix
2016-01-19 14:11:57 +01:00