aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--assets/biblez60.pngbin0 -> 5185 bytes
-rw-r--r--assets/clock.pngbin0 -> 586 bytes
-rw-r--r--assets/facebook_32.pngbin0 -> 888 bytes
-rw-r--r--assets/info.pngbin0 -> 678 bytes
-rw-r--r--assets/twitter_32.pngbin0 -> 1089 bytes
-rwxr-xr-xbuildApp.sh2
-rw-r--r--manifest.deploy7
-rw-r--r--manifest.webapp2
-rw-r--r--source/App.js10
-rw-r--r--source/about.js35
-rw-r--r--source/main.js9
-rw-r--r--source/package.js1
12 files changed, 60 insertions, 6 deletions
diff --git a/assets/biblez60.png b/assets/biblez60.png
new file mode 100644
index 0000000..22eef41
--- /dev/null
+++ b/assets/biblez60.png
Binary files differ
diff --git a/assets/clock.png b/assets/clock.png
new file mode 100644
index 0000000..5e7beec
--- /dev/null
+++ b/assets/clock.png
Binary files differ
diff --git a/assets/facebook_32.png b/assets/facebook_32.png
new file mode 100644
index 0000000..24d7f41
--- /dev/null
+++ b/assets/facebook_32.png
Binary files differ
diff --git a/assets/info.png b/assets/info.png
new file mode 100644
index 0000000..c78fcba
--- /dev/null
+++ b/assets/info.png
Binary files differ
diff --git a/assets/twitter_32.png b/assets/twitter_32.png
new file mode 100644
index 0000000..38d0545
--- /dev/null
+++ b/assets/twitter_32.png
Binary files differ
diff --git a/buildApp.sh b/buildApp.sh
index 615320b..e827d94 100755
--- a/buildApp.sh
+++ b/buildApp.sh
@@ -1,3 +1,5 @@
#!/bin/sh
sh tools/deploy.sh
cp manifest.deploy deploy/biblez-ng/manifest.webapp
+cd deploy/biblez-ng/
+zip -r ../biblez.zip ./
diff --git a/manifest.deploy b/manifest.deploy
index 98eb8e8..4e13cbc 100644
--- a/manifest.deploy
+++ b/manifest.deploy
@@ -1,10 +1,13 @@
{
"name": "BibleZ",
"version": "1.0",
- "description": "BibleZ is an easy to use offline bible reader app for your FirefoxOS device! Enjoy the full bible at your fingertips! Features: * many available bibles in different languages (e.g. ESV, KJV, NET (free version), ...) * notes * bookmarks * highlights * history of last read scriptures * no internet connection required (only for downloading modules). BibleZ is based on the SWORD Project (http://crosswire.org) and licenced under GPLv3. If you have any problems with this app just send an eMail to info@zefanjas.de!",
+ "description": "BibleZ is an easy to use offline bible reader app for your FirefoxOS device! Enjoy the full bible at your fingertips. <b>Features:</b> <ul><li>many available bibles in different languages (e.g. ESV, KJV, NET (free version), ...)</li><li>notes</li><li>bookmarks</li><li>highlights</li><li>history of last read scriptures</li><li>no internet connection required (only for downloading modules)</li></ul> BibleZ is based on the SWORD Project (http://crosswire.org) and licenced under GPLv3. If you have any problems with this app just send an eMail to <a href:mailto:info@zefanjas.de>info@zefanjas.de</a>!",
"launch_path": "/index.html",
"icons": {
- "128": "/assets/biblez128.png"
+ "128": "/assets/biblez128.png",
+ "60": "/assets/biblez60.png",
+ "256": "/assets/biblez256.png",
+ "512": "/assets/biblez512.png"
},
"developer": {
"name": "zefanjas",
diff --git a/manifest.webapp b/manifest.webapp
index d957a41..ebed5db 100644
--- a/manifest.webapp
+++ b/manifest.webapp
@@ -1,5 +1,5 @@
{
- "name": "BibleZ",
+ "name": "BibleZ Debug",
"version": "1.0",
"description": "BibleZ is an easy to use offline bible reader app for your FirefoxOS device! Enjoy the full bible at your fingertips! Features: * many available bibles in different languages (e.g. ESV, KJV, NET (free version), ...) * notes * bookmarks * highlights * history of last read scriptures * no internet connection required (only for downloading modules). BibleZ is based on the SWORD Project (http://crosswire.org) and licenced under GPLv3. If you have any problems with this app just send an eMail to info@zefanjas.de!",
"launch_path": "/debug.html",
diff --git a/source/App.js b/source/App.js
index 1f98230..8aa1e2a 100644
--- a/source/App.js
+++ b/source/App.js
@@ -17,14 +17,16 @@ enyo.kind({
onModuleChanged: "handleChangeModule",
onOpenPreferences: "openPreferences",
onOpenNotes: "openNotes",
- onOpenDataView: "openDataView"
+ onOpenDataView: "openDataView",
+ onOpenAbout: "openAbout"
},
{name: "moduleManager", kind: "biblez.moduleManager", onBack: "handleBack", onInstalled: "handleInstalledModule"},
{name: "bcSelector", kind: "biblez.bcSelector", onSelect: "handlePassageSelect", onBack: "handleBack"},
{name: "moduleManagerDesktop", kind: "biblez.moduleManagerDesktop", onBack: "handleBack", onInstalled: "handleInstalledModule"},
{name: "settings", kind: "biblez.settings", onBack: "handleBack", onChange: "handleSettings"},
{name: "notes", kind: "biblez.notes", onBack: "handleBack", onChange: "handleNote"},
- {name: "dataView", kind: "biblez.dataView", onBack: "handleBack", onVerse: "handleVerse"}
+ {name: "dataView", kind: "biblez.dataView", onBack: "handleBack", onVerse: "handleVerse"},
+ {name: "about", kind: "biblez.about", onBack: "handleBack"}
]}
],
@@ -109,6 +111,10 @@ enyo.kind({
this.$.main.handlePassage(inEvent.osisRef);
this.$.panel.setIndex(0);
return true;
+ },
+
+ openAbout: function (inSender, inEvent) {
+ this.$.panel.setIndex(7);
}
});
diff --git a/source/about.js b/source/about.js
new file mode 100644
index 0000000..8f724e7
--- /dev/null
+++ b/source/about.js
@@ -0,0 +1,35 @@
+enyo.kind({
+ name: "biblez.about",
+ kind: "enyo.FittableRows",
+ fit: true,
+ events: {
+ onBack: "",
+ },
+ components: [
+ {kind: "onyx.MoreToolbar", layoutKind:"FittableColumnsLayout", components: [
+ {kind: "onyx.IconButton", src: "assets/back.png", ontap: "handleBack"},
+ {content: $L("About BibleZ")}
+ ]},
+ {kind: "enyo.Scroller", fit: true, touch: true, components: [
+ {classes: "settings-container", style: "text-align: center;", components: [
+ {tag: "img", src: "assets/biblez128.png"},
+ {allowHtml: true, content: "BibleZ is based on <a href='https://github.com/zefanja/swordjs' target='_blank'>swordjs</a>, a Javascript library to access the bible modules from the <a href='http://crosswire.org/sword' target='_blank'>SWORD Project</a>.<br><br>BibleZ is licenced under the GPLv3. (<a href='https://github.com/zefanja/biblez-ng' target='_blank'>Source Code</a>)"},
+ {tag: "br"},
+ {tag: "span", content: "<a href='https://twitter.com/biblez' target='_blank'><img src='assets/twitter_32.png'></a>", allowHtml: true, style: "margin: 5px;"},
+ {tag: "span", content: "<a href='https://www.facebook.com/zefanjas' target='_blank'><img src='assets/facebook_32.png'></a>", allowHtml: true, style: "margin: 5px;"},
+ {tag: "br"},
+ {kind: "onyx.Button", content: "Send eMail", ontap: "handleMail", classes: "onyx-affirmative", style: "margin-top: 10px;"}
+ ]},
+
+
+ ]}
+ ],
+
+ handleMail: function () {
+ window.location = "mailto:info@zefanjas.de";
+ },
+
+ handleBack: function() {
+ this.doBack();
+ }
+}); \ No newline at end of file
diff --git a/source/main.js b/source/main.js
index ef7c489..0a3a283 100644
--- a/source/main.js
+++ b/source/main.js
@@ -8,7 +8,8 @@ enyo.kind({
onModuleChanged: "",
onOpenBC: "",
onOpenNotes: "",
- onOpenDataView: ""
+ onOpenDataView: "",
+ onOpenAbout: ""
},
published: {
passage: ""
@@ -58,6 +59,10 @@ enyo.kind({
{action: "preferences", components: [
{kind: "onyx.IconButton", src: "assets/settings.png"},
{content: $L("Preferences"), classes: "menu-label"}
+ ]},
+ {action: "about", components: [
+ {kind: "onyx.IconButton", src: "assets/info.png"},
+ {content: $L("About"), classes: "menu-label"}
]}
]}
]},
@@ -473,6 +478,8 @@ enyo.kind({
this.doOpenModuleManager();
else if(inEvent.originator.action === "preferences")
this.doOpenPreferences();
+ else if(inEvent.originator.action === "about")
+ this.doOpenAbout();
else
this.doOpenDataView({section: inEvent.originator.action});
},
diff --git a/source/package.js b/source/package.js
index 42060fb..dcc8158 100644
--- a/source/package.js
+++ b/source/package.js
@@ -14,5 +14,6 @@ enyo.depends(
"settings.js",
"notes.js",
"dataView.js",
+ "about.js",
"App.js"
);