Mossroy
a3d3c76659
Merge pull request #241 from kiwix/readme_on_old_features_and_rewording_of_title_vs_direntry
...
Readme on old features and rewording of title vs direntry
2017-05-28 23:03:21 +02:00
Mossroy
25cda11420
Reword titleName to title, and remove DirEntry.name() and .getReadableName().
...
To help understanding the code.
2017-05-28 16:27:19 +02:00
Mossroy
e521f9dac0
Remove the zimArchive._dirEntryToTitleObject function to simplify.
2017-05-28 12:20:11 +02:00
Mossroy
c091922246
Remove the concept of Title (remaining from Evopedia archive structure).
...
As suggested in #218
2017-05-28 11:39:51 +02:00
Mossroy
2b7ff70ff5
Minor update README to talk about old removed features.
...
As suggested in #218
2017-05-27 23:13:15 +02:00
Mossroy
bf007b449e
Merge pull request #239 from sharun-s/fix177
...
Fixes #177 History Navigation
2017-05-26 23:17:28 +02:00
sharun-s
a50196b151
Fixes #177 History Navigation
...
"article URL" should have been used instead of "article Title" when saving browser history state. But when these terms are being read from the DirEntry "article Namespace" is being prepended to url and stored as url. The fix is to stop doing this prepending. That keeps it consistent to the reader when "DirEntry.url" is reqd and when "DirEntry.namespace + '/' + DirEntry.url" is required. Further details here
Changes:
www/js/zimDirEntry.js
url should not hold namespace + url
www/js/app.js
In gotoRandom, handleTitleClick, gotoMainArticle
now passes title.url instead of title.name() to pushBrowserHistoryState
www/js/app.js, tests/tests.js
Replaced occurances of title.url with title.namespace + title.url
2017-05-27 02:29:28 +05:30
Mossroy
3d40e68c02
Merge pull request #237 from kiwix/copy-firefox-extension-from-previous-nightly-if-already-signed
...
Copy signed Firefox extension from previous nightly if already signed.
2017-05-24 14:50:07 +02:00
Mossroy
713aa94f3a
Copy signed Firefox extension from previous nightly if already signed.
...
Mozilla does not allow to sign a version that has already been signed.
This is an issue in nightly builds when nothing has been commited in the
last day.
The workaround commited here is to copy the signed extension of this
same version from other nightly folders
Fixes #217
2017-05-24 14:44:30 +02:00
Mossroy
5cd33d2d0b
Merge pull request #236 from kiwix/fix-attempt-travis-nightwatch-sometimes-failing
...
add and adjust waitForElementVisible calls in nightwatch.
2017-05-22 21:18:59 +02:00
Mossroy
528e5e26ac
add and adjust waitForElementVisible calls in nightwatch.
...
To try to solve Travis failures. See #228
2017-05-22 21:12:23 +02:00
sharun-s
228657a24e
Fixes #131 Unit Testing on Chrome. ( #233 )
...
* Fixes #131 Unit Testing on Chrome.
Requires Chrome to be started with --allow-file-access-from-files when opening tests.html.
Chrome does not support xhr for the "file://"" protocol (which is used by the tests), unless the flag is set.
Easiest way (on windows) is to create a Chrome shortcut with the flag in local directory.
Tests also work on Firefox and Edge.
Changes:
zimFile.js:
fileArray.sort() in fn fromFileArray needs to be passed a comparision function to sort blob objects by "name".
Chrome was sorting blob objects differently than Firefox and Edge.
Reading the first 80 bytes of the fileArray[0] to retrieve zim header details then would fail causing tests to fail.
NOTE: If array size is 10 or less the blob sort order is the same across all 3 browsers.
So best to test with larger than 10 blobs.
tests/tests.js:
* Removed xhr.status==200 check in makeblobrequest.
It fails in Chrome. Even though the blobs are read xhr.status is set to 0.
Probably related to "file://" handling policy.
* toSource() in the load Image 'm/RayCharles_AManAndHisSoul.jpg' test is non-standard. Works only in FF. Changed to toString().
* Updated QUnit to 2.3.2 as QUnit.asyncTest is deprecated. Removed old files.
tests/tests.html:
* Updated to use QUnit 2.3.2 files.
2017-05-20 16:36:21 +02:00
Kelson
fc6b7ae5a4
Merge pull request #232 from kiwix/uppercase_wikipedia_wikimedia_words_in_UI_and_README
...
Change case of wikipedia and wikimedia words in UI and README.
2017-05-12 12:59:50 +02:00
Mossroy
7aee9a006f
Change case of wikipedia and wikimedia words in UI and README.
...
There must be an uppercase as the first letter.
Fixes #225
2017-05-11 22:33:37 +02:00
Mossroy
9d07f50117
Merge pull request #231 from kiwix/waitForElementVisible_title_nightwatch
...
Add a waitForElementVisible for the expected article in UI tests
2017-05-11 22:32:54 +02:00
Mossroy
9c03d22c71
Add a waitForElementVisible for the expected article in UI tests
...
To try to solve Travis failures. See #228
2017-05-11 22:29:41 +02:00
Mossroy
47fe67daeb
Merge pull request #227 from kiwix/readme_injection_modes
...
Add info in README about the injection modes.
2017-05-10 14:52:53 +02:00
Mossroy
b8043d9832
Add info in README about the injection modes.
...
A suggested in #218
2017-05-10 14:44:55 +02:00
Mossroy
c693362c8a
Merge pull request #226 from kiwix/remove-legacy-unused-code
...
Remove legacy unused code for Evopedia and Cordova/Phonegap
2017-05-10 14:43:48 +02:00
Mossroy
3001087849
Remove Cordova/Phonegap code.
...
Fixes #223
And rename osabstraction.js to abstractFilesystemAccess.js, to make its purpose more clear
2017-05-07 23:00:30 +02:00
Mossroy
563090c615
Drop Evopedia archive compatibility.
...
And remove the corresponding legacy code.
And rename abstractBackend to zimArchiveLoader
Fixes #195
2017-05-07 22:59:01 +02:00
Mossroy
877f5ee6e9
Merge pull request #224 from kiwix/english_copy_editing
...
I've had a go at trying to improve the introductory guidance.
2017-05-06 22:00:49 +02:00
Julian Harty
9e0ee5be76
I've had a go at trying to improve the introductory guidance. It might
...
be worth rethinking the introduction and instructions as we use quite
technical terms and concepts.
2017-05-06 19:11:44 +01:00
Julian Harty
8e01b18b75
Merge pull request #222 from kiwix/more_info_incompatible_ZIMs
...
Add user info on which ZIM files are compatible.
2017-05-06 16:24:12 +01:00
Mossroy
bb83e83811
Add user info on which ZIM files are compatible.
...
To avoid users from being frustrated by incompatible ZIM files like in #220
Fixes #221
2017-05-06 13:45:52 +02:00
Mossroy
bbe7610427
Merge pull request #216 from kiwix/remove-evopedia-strings-in-headers
...
Replace "Evopedia" strings by "Kiwix" in all file headers.
2017-04-09 10:17:28 +02:00
Mossroy
bf6fd95f22
Replace "Evopedia" strings by "Kiwix" in all file headers.
...
Fixes #165
2017-04-09 10:12:24 +02:00
Mossroy
06efc5fe5a
Merge pull request #215 from kiwix/travis-nightly-builds
...
Make Travis package/deploy only on cron, and change Firefox id.
2017-04-08 21:25:58 +02:00
Mossroy
8dcf5e9b68
Make Travis package/deploy only on cron, and change Firefox id.
...
The firefox extension id is kiwix-html5-unlisted by default.
The new package_listed_firefox_extension.sh allows to change this id
and upload a package ready to be submitted to Mozilla.
Fixes #213
2017-04-08 21:21:34 +02:00
Mossroy
fa85e31e2c
Merge pull request #214 from kiwix/filter-on-file-picker
...
Filter the file extensions the user can select in the input type file.
2017-04-08 19:44:13 +02:00
Mossroy
68f903dde0
Filter the file extensions the user can select in the input type file.
...
Fixes #211
2017-04-08 19:38:40 +02:00
Mossroy
3fadcae6f2
Merge pull request #212 from kiwix/load-welcome-page
...
Display the main page of the archive in the Home section.
2.0.0rc1
2.0.0
2017-04-08 16:48:36 +02:00
Mossroy
d60a85a703
Display the main page of the archive in the Home section.
...
Instead of a blank page. Fixes #126
It does not apply to Evopedia archives
2017-04-08 16:42:06 +02:00
Mossroy
81bf91c8c4
Merge pull request #204 from kiwix/travis-packaging
...
Scripts to automatically package the extensions for Firefox and Chrome.
2017-04-08 16:15:25 +02:00
Mossroy
05eae79a9a
Point the browser extensions directly to www/index.html.
...
It avoids adding the /index.html in the packages, which simply redirects to /www/index.html
2017-04-08 16:12:31 +02:00
Mossroy
f1fff391e5
Scripts to package the extensions for Firefox and Chrome.
...
Can be run locally or on Travis
2017-04-08 16:12:31 +02:00
Mossroy
70a08a0f54
Minor changes in About section, and in the error message on geolocation.
2017-04-07 22:03:03 +02:00
Mossroy
da2435831b
Merge pull request #210 from kiwix/fix-README-for-browser-extensions
...
Update README and About section to reflect the new target of this app.
2017-04-07 20:21:04 +02:00
Mossroy
36ca4eebbb
Update README and About section to reflect the new target of this app.
...
The main target is now browser extensions, not Firefox OS
(even if it's still compatible with).
Fixes #208
2017-04-07 17:51:16 +02:00
Mossroy
7a18ce9d6c
Merge pull request #206 from kiwix/first-fixes-for-stackexchange
...
First fixes for stackexchange archive
2017-04-07 09:38:58 +02:00
Mossroy
9ba2cc5bca
Remove an old feature of Evopedia causing issues for stackexchange.
...
Fixes #199
2017-04-06 17:27:51 +02:00
Mossroy
2bf1d1fda2
Fix loading dependencies in jQuery mode when the articles are in subdirectories.
2017-04-06 17:27:51 +02:00
Mossroy
7cb4118ff0
Merge pull request #203 from kiwix/generic-kiwix-travis-credentials
...
Use the kiwix saucelabs account instead of mine.
Fixes #200
2017-04-05 18:20:01 +02:00
Mossroy
c9baecd8c9
Use the kiwix saucelabs account instead of mine.
2017-04-05 18:16:24 +02:00
Mossroy
9f31580385
Modify search textbox placeholder to be more generic.
...
"Search" instead of "Search wikipedia".
Fixes #201
2017-04-05 18:07:44 +02:00
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