summaryrefslogtreecommitdiff
path: root/Cydia.app
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-03-16 15:12:33 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:09:56 +0000
commitdc63e78f274cc5733250b137b1ad09ea248445ff (patch)
treea282d1bba36cf9a444a8e1f8550e1d268abe0b25 /Cydia.app
parente590d1ff0e28b577012d6d98d9600d2f86a7459f (diff)
That was at least interesting.
Diffstat (limited to 'Cydia.app')
-rw-r--r--Cydia.app/Modes/Downgrade.pngbin0 -> 1176 bytes
-rw-r--r--Cydia.app/Modes/Install.pngbin0 -> 2135 bytes
l---------Cydia.app/Modes/New Install.png1
-rw-r--r--Cydia.app/Modes/Purge.pngbin0 -> 2443 bytes
-rw-r--r--Cydia.app/Modes/Reinstall.pngbin0 -> 2013 bytes
-rw-r--r--Cydia.app/Modes/Remove.pngbin0 -> 2552 bytes
-rw-r--r--Cydia.app/Modes/Upgrade.pngbin0 -> 1635 bytes
-rw-r--r--Cydia.app/package.html8
-rw-r--r--Cydia.app/package.js26
9 files changed, 30 insertions, 5 deletions
diff --git a/Cydia.app/Modes/Downgrade.png b/Cydia.app/Modes/Downgrade.png
new file mode 100644
index 0000000..41c0d70
--- /dev/null
+++ b/Cydia.app/Modes/Downgrade.png
Binary files differ
diff --git a/Cydia.app/Modes/Install.png b/Cydia.app/Modes/Install.png
new file mode 100644
index 0000000..a83f354
--- /dev/null
+++ b/Cydia.app/Modes/Install.png
Binary files differ
diff --git a/Cydia.app/Modes/New Install.png b/Cydia.app/Modes/New Install.png
new file mode 120000
index 0000000..3330a1b
--- /dev/null
+++ b/Cydia.app/Modes/New Install.png
@@ -0,0 +1 @@
+Install.png \ No newline at end of file
diff --git a/Cydia.app/Modes/Purge.png b/Cydia.app/Modes/Purge.png
new file mode 100644
index 0000000..795fa19
--- /dev/null
+++ b/Cydia.app/Modes/Purge.png
Binary files differ
diff --git a/Cydia.app/Modes/Reinstall.png b/Cydia.app/Modes/Reinstall.png
new file mode 100644
index 0000000..0b7754c
--- /dev/null
+++ b/Cydia.app/Modes/Reinstall.png
Binary files differ
diff --git a/Cydia.app/Modes/Remove.png b/Cydia.app/Modes/Remove.png
new file mode 100644
index 0000000..1b2e691
--- /dev/null
+++ b/Cydia.app/Modes/Remove.png
Binary files differ
diff --git a/Cydia.app/Modes/Upgrade.png b/Cydia.app/Modes/Upgrade.png
new file mode 100644
index 0000000..631b7ef
--- /dev/null
+++ b/Cydia.app/Modes/Upgrade.png
Binary files differ
diff --git a/Cydia.app/package.html b/Cydia.app/package.html
index 4dc34a8..fdbc835 100644
--- a/Cydia.app/package.html
+++ b/Cydia.app/package.html
@@ -213,6 +213,14 @@
</div>
</fieldset>
+<fieldset class="mode">
+ <a>
+ <img class="icon" id="mode-src"/><div>
+ <label>Package Queue</label>
+ <label id="mode"></label>
+ </div></a>
+</fieldset>
+
<fieldset id="actions">
<a id="settings">
<img class="icon" src="settings.png"/><div>
diff --git a/Cydia.app/package.js b/Cydia.app/package.js
index 200be8b..1a78a8b 100644
--- a/Cydia.app/package.js
+++ b/Cydia.app/package.js
@@ -53,12 +53,15 @@ $(function () {
var id = package.id;
var idc = encodeURIComponent(id);
var name = package.name;
- var regarding = encodeURIComponent("Cydia/APT: " + name);
var icon = 'cydia://package-icon/' + idc;
var api = 'http://cydia.saurik.com/api/';
+ var regarding = function (type) {
+ return encodeURIComponent("Cydia/APT(" + type + "): " + name);
+ };
+
$("#icon").css("background-image", 'url("' + icon + '")');
- $("#reflection").src("cydia://package-icon/" + idc);
+ //$("#reflection").src("cydia://package-icon/" + idc);
$("#name").html(name);
space("#latest", package.latest, 96);
@@ -110,6 +113,14 @@ $(function () {
$("#settings").href("cydia://package-settings/" + idc);
+ var mode = package.mode;
+ if (mode == null)
+ $(".mode").remove();
+ else {
+ $("#mode").html(mode);
+ $("#mode-src").src("Modes/" + mode + ".png");
+ }
+
var warnings = package.warnings;
var length = warnings == null ? 0 : warnings.length;
if (length == 0)
@@ -160,8 +171,13 @@ $(function () {
space("#author", author.name, 160);
if (author.address == null)
$("#author-icon").remove();
- else
- $("#author-href").href("mailto:" + author.address + "?subject=" + regarding);
+ else {
+ var support = package.support;
+ if (support == null)
+ $("#author-href").href("mailto:" + author.address + "?subject=" + regarding("A"));
+ else
+ $("#author-href").href(support);
+ }
}
//$("#notice-src").src("http://saurik.cachefly.net/notice/" + idc + ".html");
@@ -227,7 +243,7 @@ $(function () {
if (maintainer.address == null)
$("#maintainer-icon").remove();
else
- $("#maintainer-href").href("mailto:" + maintainer.address + "?subject=" + regarding);
+ $("#maintainer-href").href("mailto:" + maintainer.address + "?subject=" + regarding("M"));
}
var sponsor = package.sponsor;