Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme on old features and rewording of title vs direntry #241

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ Technically, after reading an article from a ZIM file, there is a need to "injec

This application is released under the GPL v3 license. See http://www.gnu.org/licenses/ or the included LICENSE-GPLv3.txt file
The source code can be found at https://github.com/kiwix/kiwix-html5
Unit tests can be run by opening tests.html file on Firefox.
Unit tests can be run by opening tests.html file on Firefox (or Chromium/Chrome with some tweaks).

The first versions of this application were originally part of the Evopedia project: http://www.evopedia.info (now discontinued)
These first versions were targeting Firefox OS (now discontinued too : we're not lucky ;-) ).
The first versions of this application were originally part of the Evopedia project: http://www.evopedia.info (now discontinued). There was a "articles nearby" feature, that was able to find articles around your location. It has been deleted from the source code with everything related to Evopedia (but still in git history in versions<=2.0.0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be I think more readable and stick in memory of devs as a simple list rather than a para.

Useful Features Unavailable in Current Build:

  1. Evopedia archive support
  2. Find Articles Nearby (Geo based search)
  3. Firefox OS port
  4. Phonegap/Cordova port (incomplete)
    Please consult Git History for reference.

These first versions were targeting Firefox OS (now discontinued too : we're not lucky ;-) ).
Some Phonegap/Cordova port had been started but never finished (see in git history in versions<=2.0.0).
12 changes: 6 additions & 6 deletions browser-tests/nightwatch_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ module.exports = {
.execute(function() {
window.setRemoteArchive('https://kiwix.github.io/kiwix-html5/tests/wikipedia_en_ray_charles_2015-06.zim');
})
.waitForElementVisible('#formTitleSearch', 20000)
.waitForElementVisible('#searchTitles', 20000)
.waitForElementVisible('#formArticleSearch', 20000)
.waitForElementVisible('#searchArticles', 20000)
.setValue('#prefix', "Ray")
.click('#searchTitles')
.waitForElementVisible('#titleList', 20000)
.click('#searchArticles')
.waitForElementVisible('#articleList', 20000)
.useXpath()
.waitForElementVisible("//div[@id='titleList']/a[text()='Ray Charles']", 20000)
.click("//div[@id='titleList']/a[text()='Ray Charles']")
.waitForElementVisible("//div[@id='articleList']/a[text()='Ray Charles']", 20000)
.click("//div[@id='articleList']/a[text()='Ray Charles']")
.useCss()
.frame('articleContent')
.waitForElementPresent('#mweQ', 2000000)
Expand Down
178 changes: 89 additions & 89 deletions tests/tests.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion www/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
padding-left: 1px !important;
}

#searchingForTitles .floating {
#searchingForArticles .floating {
position: relative;
z-index: 10;
top: 20px;
Expand Down
18 changes: 6 additions & 12 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@


<div class="container">
<form id="formTitleSearch">
<form id="formArticleSearch">
<div class="row">
<span class="nopadding col-md-offset-1 col-sm-offset-1 col-md-8 col-sm-8 col-xs-7">
<span class="input-group">
<input type="search" id="prefix" placeholder="Search..." class="form-control" />
<span class="input-group-btn">
<a class="btn btn-default" id="searchTitles"><span class="glyphicon glyphicon-search"></span></a>
<a class="btn btn-default" id="searchArticles"><span class="glyphicon glyphicon-search"></span></a>
</span>
</span>
</span>
Expand All @@ -82,7 +82,7 @@
</span>
</span>
</div>
<div id="searchingForTitles" class="floating" style="display: none;">
<div id="searchingForArticles" class="floating" style="display: none;">
<img src="img/spinner.gif" alt="Please wait..." />
</div>
</form>
Expand Down Expand Up @@ -223,15 +223,9 @@ <h2>Expert settings</h2>
</div>

<!-- List of articles matching the typed prefix -->
<div id="titleListWithHeader" class="container">
<span id="titleListHeaderMessage"></span>
<span id="suggestEnlargeMaxDistance" style="display: none;">
&nbsp;You can <a id="btnEnlargeMaxDistance">look more far away</a>
</span>
<span id="suggestReduceMaxDistance" style="display: none;">
&nbsp;You can <a id="btnReduceMaxDistance">look closer</a> to your location
</span>
<div id="titleList" class="list-group">
<div id="articleListWithHeader" class="container">
<span id="articleListHeaderMessage"></span>
<div id="articleList" class="list-group">
</div>
</div>
<div id="readingArticle" style="display: none;" class="container">
Expand Down
Loading