87 Commits

Author SHA1 Message Date
mossroy
8200762f74 Add a simple CSS to use "rem" sizes. Fixes #8
Prefix all the rules in the mediawiki CSS, so that they only apply inside the "articleContent" div
Add back/forward buttons. Fixes #1
2013-07-11 22:40:27 +02:00
mossroy
da03c7c309 Remove appcache from manifest, as it is not supported by packaged apps 2013-07-11 21:31:56 +02:00
mossroy
646a245658 Small fix for links to articles prefixed by ./ , such as links to special pages of Wikipedia (categories etc). 2013-07-10 22:52:24 +02:00
mossroy
ff2c085bc6 Handle links to articles prefixed by ./ , such as links to special pages of Wikipedia (categories etc). Fixes #16
Handle missing articles by displaying a message to the user
2013-07-10 22:30:46 +02:00
mossroy
3f97d298a9 Re-implement the normalization function exactly as the original application, so that it really matches the title order in titles.idx.
Fixes #20
2013-07-10 18:21:31 +02:00
mossroy
cfb5495532 Convert the character ° to _ when normalizing the titles.
Fixes #7
2013-07-09 13:44:48 +02:00
mossroy
a1f8a3a5fc Externalize utf8 encoding/decoding functions
Revert to a String comparison in the Title search instead of comparing the byte arrays : it gives the same result and probably uses more CPU
2013-07-09 13:24:25 +02:00
mossroy
63aec21065 If we find the exact title when doing the binary search, it's no use searching more.
It's a small optimization.
2013-07-08 13:59:27 +02:00
mossroy
7eeafe4d84 Change the comparison algorithm of titles when searching through the index.
We use a comparison of byte arrays instead of String comparison.
2013-07-08 13:56:58 +02:00
mossroy
8cedce59aa Code reformat with Netbeans 2013-07-01 15:57:16 +02:00
mossroy
a920c0deb4 Remove unnecessary global variables 2013-06-28 23:27:37 +02:00
mossroy
2aea085dcc Replace "const" with "var" because it does not seem to be standard enough for Netbeans 2013-06-28 23:17:57 +02:00
mossroy
cb801bafa4 Add link to the github bugtracker in the About section 2013-06-19 12:00:37 +02:00
mossroy
76e6fdcd6e Redirect links to other languages of the article to the online version of wikipedia
Fixes #15
2013-06-18 09:58:53 +02:00
mossroy
97dadfdd76 Add commented lines to monitor the time spent in bzip2 decompression 2013-06-18 09:33:28 +02:00
mossroy
49a12b8faf Add MediaWiki CSS 2013-06-09 23:29:43 +02:00
mossroy
5953bcc316 Implement math images loaded from dump, contributed by
christian@evopedia.info
2013-06-09 22:34:15 +02:00
mossroy
82dec4d423 Patch contributed by christian@evopedia.info, to improve performance of
title searching in the dump
So far, we were reading the title file till its end. In fact, we only
need a very small part of it. This should really reduce I/O and memory
consumption while searching for titles
2013-06-08 13:21:13 +02:00
mossroy
fd38c7edc0 Slightly improve waiting messages 2013-06-08 13:06:11 +02:00
mossroy
0216003660 Merge branch 'master' of ssh://github.com/mossroy/evopedia-html5
Conflicts:
	index.html
	js/app.js
2013-06-08 13:00:46 +02:00
mossroy
ec5e4cd2f0 Display spinner icon when asynchronous tasks are done 2013-06-06 22:05:58 +02:00
mossroy
a537d0da21 Display spinner icon when asynchronous tasks are done 2013-06-06 14:09:04 +02:00
mossroy
ff6072bb26 Minor modifications in the About section of the main page 2013-06-04 13:08:38 +02:00
mossroy
a684fec345 Trim the search string before using it to find matching titles
Firefox OS autocompletion adds a space after each word it autocompletes,
so the title search was failing when using that feature (or simply if
you type a space at the end of your search string)
2013-06-04 12:23:25 +02:00
mossroy
8b752aed89 Fix in the algorithm, by handling the escape bits of the Title file 2013-06-04 12:16:33 +02:00
mossroy
3f382a572a Remove "Install" button
In any case, Evopdia needs access to DeviceStorage, so it needs to be
a privileged webapp. As such, it has to be signed and distributed
through an app store. If I understood correctly, it will never be
installable via un simple Install button on a web page. See
https://wiki.mozilla.org/Apps/Security#Installed_privileged_application
2013-06-04 10:53:45 +02:00
mossroy
50e62b618e Disable the CSS for now, because it causes display issues in the HTML
articles
2013-06-04 10:40:12 +02:00
mossroy
9c6c2120ee Remove unnecessary comment in index.html 2013-06-03 14:16:07 +02:00
mossroy
73e0f3a6b2 Simplify the structure, remove volo, nodes.js and tools
This reflects the changes from https://github.com/mozilla/mortar-app-stub/ (commits of May 23, 2013)
2013-06-03 14:13:29 +02:00
mossroy
3018f9e162 Scan for archive files anywhere on the sdcard (not only in a /evopedia directory) 2013-06-03 13:22:39 +02:00
mossroy
69256e089c Let the user choose the archive he wants to use, among the ones found on
the sdcard
2013-06-02 10:04:42 +02:00
mossroy
9eb9e9c01a Implement scanning of sdcard content, in order to find the archives on
it
2013-06-01 20:45:26 +02:00
mossroy
203735b931 Small fix for archives that have more then 10 dump files 2013-05-30 13:12:18 +02:00
mossroy
d3a30a40de Merge branch 'master' of https://github.com/mossroy/evopedia-html5
Conflicts:
	www/index.html
	www/js/app.js
2013-05-28 11:13:00 +02:00
mossroy
b35482fa1b Hide the explanations on the main page. They can be shown with an
"About" button
2013-05-28 10:54:12 +02:00
mossroy
2954f06c95 Implement the browser history handling, with HTML5 pushState 2013-05-26 19:27:12 +02:00
mossroy
3618f9bcd3 Slightly improved the error handling, so that to :
- avoid some infinite loops
- display the error message when an unexpected error occurs
2013-05-26 16:24:34 +02:00
mossroy
59ba7bf1cc Optimization of the algorithm that reads an article, so that it does not
read the entire dump for a single article.
It was causing crashes on devices (probably because they don't have
enough memory), and was very slow, even on a computer.
Now, the algorithm reads the file by chunks of 128 KB. Usually, 128 KB
seems to be enough to read the entire article
2013-05-20 16:16:16 +02:00
mossroy
f643192a9b Fix some handling of non-ASCII letters and spaces 2013-05-10 18:04:48 +02:00
mossroy
9463eb41a1 Remove unused debug zone
Slightly improve the case when a redirected article is not found (which
seems to happen in some dumps)
2013-05-10 17:05:44 +02:00
mossroy
fb8408e878 Small fixes for links inside an article 2013-05-10 16:45:25 +02:00
mossroy
ecf48a0d41 Some more fixes in the search algorithm 2013-05-10 16:18:31 +02:00
mossroy
5457ab0f51 Fixes in the search algorithm 2013-05-10 15:18:34 +02:00
mossroy
12f2b7187b Add a slightly more generic way to read title and data files on a real device 2013-05-06 15:37:35 +02:00
mossroy
707d45fb2a Small fix to make it work on an actual device (it does not seem to accept reading files from input type=file) 2013-05-06 13:12:18 +02:00
mossroy
03b33afc63 Some minor improvements in the unit tests 2013-04-01 17:33:31 +02:00
mossroy
7eadf1c921 Add some unit tests with QUnit 2013-04-01 16:29:30 +02:00
mossroy
d1457fc2bf Small changes in the title search algorithm 2013-03-15 16:46:05 +01:00
mossroy
7802cbf3b8 Big refactoring of the code, in a more object-oriented way.
But I could not push it as much as I would like : the FileReader API is asynchronous, which prevents some implementations (ex : a constructor in a class cannot read files)
The title searching is not very accurate for now, which is why the links do not work very well for now
2013-03-15 13:03:48 +01:00
mossroy
6c5020b42a Filter article names that really start with the prefix (has to be improved with a normalizer before comparing strings) 2013-03-14 18:16:32 +01:00