mossroy
20ea0f0c3e
Use CSS for visual API availability, instead of hardcoding the color
2015-08-29 14:21:13 +02:00
mossroy
cfc0ffad36
Merge branch 'serviceworker_in_frame'
...
When the serviceworker API or messagechannel API is unavailable, the code
falls back to the jQuery method.
And the iframe now works not so badly.
So I think it's now useless to keep different branches
2015-08-29 13:21:12 +02:00
mossroy
4697162c43
Reduce the size of the top & bottom elements when on a small screen
...
These elements stay visible when the article content is scrolled
(because of the iframe).
Reducing their size gives more space to the article content itself
It looks like the bare minimum without implementing #120 (make the top
elements disappear/reappear when the article content is scrolled)
2015-08-29 13:18:01 +02:00
mossroy
66d21129f3
More fix for the "top" button in the bottom bar
...
so that it also works in the About section
2015-08-29 12:16:02 +02:00
mossroy
df98ce0cfb
Fix the button in the bottom bar that jumps to the top of the article.
...
+ fix a few warnings in javascript code
2015-08-29 12:03:22 +02:00
mossroy
ec88459a79
Use input type=search for the prefix field.
...
Instead of type=text, so that it is recognized as such in Firefox OS
(slightly different keyboard)
2015-08-22 21:59:07 +02:00
mossroy
2746433574
Merge branch 'article_in_iframe' into serviceworker_in_frame
...
So that the iframe fits in the whole available height
2015-08-16 15:33:58 +02:00
mossroy
0e6c84da39
IFrame resizing, so that it fits the whole available height
2015-08-16 15:25:19 +02:00
mossroy
adb714b4ae
Add config for requirejs autocompletion in NetBeans IDE.
...
Works well in NetBeans 8.1 beta
2015-08-16 13:25:01 +02:00
mossroy
82ca9ff18c
Add config for requirejs autocompletion in NetBeans IDE.
...
Works well in NetBeans 8.1 beta
2015-08-16 13:24:08 +02:00
mossroy
b83b07a22d
Add config for requirejs autocompletion in NetBeans IDE.
...
Works well in NetBeans 8.1 beta
2015-08-13 13:58:19 +02:00
mossroy
b8c5717299
Minor fix in the way we unregister the ServiceWorker for Evopedia archives
2015-07-19 09:34:20 +02:00
mossroy
21564f2a2f
Minor improvements in API and ServiceWorker state detection
...
+ unregister the ServiceWorker if we use an Evopedia archive
+ disable any DOM parsing when using the ServiceWorker
+ minor improvements in regular expressions usage : we should compile them only once
2015-07-18 23:53:02 +02:00
mossroy
bd4ccbc1c2
Display messageChannel API availability in Configuration section.
...
And make it more visual for both APIs, with green/red font color
2015-07-18 21:33:31 +02:00
mossroy
08cebf7782
Refactoring for the bi-directional messaging between the ServiceWorker and app.js : it now works properly
...
Article redirects are also handled properly.
But it's still quick and dirty and dependencies can't be read from the backend : I send a dummy JPEG image for any JPEG image, and reject every javascript dependency (because Firefox nightly does not like to have no answer on javascript queries)
2015-07-12 12:12:06 +02:00
mossroy
2c6151821d
Some rework to start handling other contents than articles (does not work yet)
2015-07-12 10:42:17 +02:00
mossroy
4609d16f5d
Initial support for reading articles from the backend through the ServiceWorker
...
Redirects are not supported for now, and dependencies are not properly handled either
2015-07-11 21:17:36 +02:00
mossroy
abfa242c8d
First working bi-directional communication between the service worker and app.js
...
It's still with dummy contents, and in "quick and dirty" mode
2015-07-11 13:38:03 +02:00
mossroy
a6232986db
Work-in-progress to test communication between the ServiceWorker and the backend through a MessageChannel
...
It does not work at all for now
2015-06-28 17:38:43 +02:00
mossroy
6a4702fb51
First attempt to send a message to the ServiceWorker
...
+ minor log changes
2015-06-21 15:15:13 +02:00
mossroy
3f203cbb9e
Merge branch 'master' into serviceworker_in_frame, to switch to Ray Charle ZIM file for unit tests
2015-06-20 16:15:15 +02:00
mossroy
5bbae17ffd
Merge branch 'master' into article_in_iframe, to switch to Ray Charles ZIM file
2015-06-20 16:14:01 +02:00
mossroy
1f699cb7c3
Minor improvement of the ServiceWorker status in configuration section
2015-06-20 16:11:44 +02:00
mossroy
db8a3ecb85
Display the status of ServiceWorker in the configuration section, and disable it for Evopedia archives, for now
2015-06-20 16:08:46 +02:00
mossroy
cfdb3225a9
Switch to the Ray Charles ZIM file for unit tests
...
It's the one used by Kiwix team
2015-06-10 10:37:20 +02:00
mossroy
1a9dd1732b
Merge branch 'article_in_iframe' into serviceworker_in_frame, to handle redirects properly
2015-06-10 10:18:21 +02:00
mossroy
b816313311
Merge branch 'master' into article_in_iframe, to handle redirects properly
2015-06-10 10:16:24 +02:00
mossroy
1ba3efd039
Fix handling of redirects
2015-06-10 10:09:15 +02:00
Mossroy
fa6a4c8e01
Merge pull request #118 from evopedia/zim_redirects
...
Handle redirects in ZIM archives.
2015-06-10 10:06:11 +02:00
Peter
9e442763f9
Handle redirects.
2015-06-07 21:05:45 +02:00
mossroy
5143e776da
Some more prototype testing on ServiceWorkers, that makes sure we manage to inject binary data in the article (an image, here)
2015-06-07 17:12:51 +02:00
mossroy
9080c51ad0
Use requirejs to access javascript libraries inside the service worker
2015-06-07 14:56:34 +02:00
mossroy
2d2c8c3278
First attempt to use a service worker
2015-06-06 17:54:26 +02:00
mossroy
a46395a9ad
Temporarily inject a sample CSS (that simply adds a grey background) when using a ZIM archive
2015-05-09 23:01:54 +02:00
mossroy
cd03870f00
Fix detection if mediawiki CSS should be applied or not
2015-05-09 22:17:04 +02:00
mossroy
bd3befad13
Display the article content in an iframe instead of a div.
...
It allows to apply the mediawiki CSS only if using an Evopedia archive, not for ZIM.
And, for ZIM archives, it should allow in the future to apply a CSS/JS contained in the ZIM archive itself
2015-05-09 22:08:39 +02:00
mossroy
b28afd374f
First simple unit test on a ZIM archive
2015-05-07 23:07:47 +02:00
mossroy
e2fc103ec2
Fix CRLF git behavior on binary files
2015-05-03 09:44:48 +02:00
mossroy
3c0d7e6331
Add test ZIM file
2015-05-03 09:36:46 +02:00
mossroy
9893ed9e1a
Missing upgraded files for bootstrap
2015-05-02 18:50:30 +02:00
mossroy
c960e7ae36
Preliminary work on #108 : implementing unit tests on the ZIM backend.
...
The test does not pass for the moment
2015-04-26 16:35:02 +02:00
mossroy
ac4054f5ae
Allow selection of a ZIM file from a file select, when DeviceStorage is not available
2015-04-26 14:24:36 +02:00
mossroy
ecaa7da0f9
Minor upgrades to the latest versions of Bootstrap and QUnit libraries
2015-04-26 13:46:25 +02:00
mossroy
3f00ea581d
Merge branch 'zim_backend'
2015-04-26 11:29:14 +02:00
mossroy
e0411408d9
Revert to jQuery API for archive scanning (it was not working properly with Q)
...
+ change version number
+ minor cleanup
2015-04-26 11:28:50 +02:00
Mossroy
191f138fe5
Merge pull request #102 from evopedia/integrate_zim_reader
...
ZIM backend initial implementation by peter-x
2015-04-26 11:26:45 +02:00
Peter
9359290f50
Basic support for zim files.
2015-04-21 00:00:37 +02:00
Peter
003569001a
Abstracted access to archive backend.
2015-04-20 23:48:28 +02:00
mossroy
deba204d0e
Update version number to 1.1.4
v1.1.4
2015-01-29 21:12:46 +01:00
mossroy
e58dce7005
Fix a bug with wiktionary archives, that prevents links between articles to work properly
...
Fixes #101
That came from the fact that there was some javascript code inside the html articles.
When populating the div with this html content with jQuery, it tries to run this javascript with an eval() call.
But eval() calls are forbidden in packaged applications
2015-01-29 21:12:06 +01:00