summaryrefslogtreecommitdiff
path: root/Cydia.app
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-10-14 02:59:16 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:08:50 +0000
commitaffeffc797be156742cbd8efe899ba74dd719b0d (patch)
tree3059ee1d346bf0d989b330309e1c80da476192b9 /Cydia.app
parentc390d3ab34d681832980e545b276467787a70d0a (diff)
Checkpointing Cydia before futzing with cydia://package-cion/.
Diffstat (limited to 'Cydia.app')
-rw-r--r--Cydia.app/Purposes/commercial.pngbin0 -> 789 bytes
-rw-r--r--Cydia.app/Sections.plist12
-rw-r--r--Cydia.app/Sections/Blanks.pngbin0 -> 897 bytes
-rw-r--r--Cydia.app/Sources/cy.sosiphone.com.pngbin0 -> 3127 bytes
-rw-r--r--Cydia.app/Sources/cydia.ifoneguide.nl.pngbin0 -> 3464 bytes
l---------Cydia.app/Sources/repo.neolinus.org.png1
-rw-r--r--Cydia.app/Sources/steffwiz.com.pngbin0 -> 6333 bytes
-rw-r--r--Cydia.app/confirm.html36
-rw-r--r--Cydia.app/confirm.js55
-rw-r--r--Cydia.app/email.pngbin0 -> 2426 bytes
-rw-r--r--Cydia.app/error.html2
-rw-r--r--Cydia.app/manage.html2
-rw-r--r--Cydia.app/menes/menes.js51
-rw-r--r--Cydia.app/menes/style.css33
-rw-r--r--Cydia.app/package.html38
-rw-r--r--Cydia.app/package.js52
-rw-r--r--Cydia.app/warning.pngbin0 -> 5000 bytes
17 files changed, 253 insertions, 29 deletions
diff --git a/Cydia.app/Purposes/commercial.png b/Cydia.app/Purposes/commercial.png
new file mode 100644
index 0000000..ba66d4b
--- /dev/null
+++ b/Cydia.app/Purposes/commercial.png
Binary files differ
diff --git a/Cydia.app/Sections.plist b/Cydia.app/Sections.plist
index a3d0c8a..33754ed 100644
--- a/Cydia.app/Sections.plist
+++ b/Cydia.app/Sections.plist
@@ -3,12 +3,6 @@
<plist version="1.0">
<dict>
- <key>Tweaks_2.0</key>
- <dict>
- <key>Rename</key>
- <string>Tweaks</string>
- </dict>
-
<key>Themes_(SummerBoard)</key>
<dict>
<key>Rename</key>
@@ -21,6 +15,12 @@
<string>Utilities</string>
</dict>
+ <key>SMS</key>
+ <dict>
+ <key>Rename</key>
+ <string>Messaging</string>
+ </dict>
+
<key>CarrierBundle</key>
<dict>
<key>Rename</key>
diff --git a/Cydia.app/Sections/Blanks.png b/Cydia.app/Sections/Blanks.png
new file mode 100644
index 0000000..7c0c2a0
--- /dev/null
+++ b/Cydia.app/Sections/Blanks.png
Binary files differ
diff --git a/Cydia.app/Sources/cy.sosiphone.com.png b/Cydia.app/Sources/cy.sosiphone.com.png
new file mode 100644
index 0000000..b848d95
--- /dev/null
+++ b/Cydia.app/Sources/cy.sosiphone.com.png
Binary files differ
diff --git a/Cydia.app/Sources/cydia.ifoneguide.nl.png b/Cydia.app/Sources/cydia.ifoneguide.nl.png
new file mode 100644
index 0000000..7027801
--- /dev/null
+++ b/Cydia.app/Sources/cydia.ifoneguide.nl.png
Binary files differ
diff --git a/Cydia.app/Sources/repo.neolinus.org.png b/Cydia.app/Sources/repo.neolinus.org.png
new file mode 120000
index 0000000..6556351
--- /dev/null
+++ b/Cydia.app/Sources/repo.neolinus.org.png
@@ -0,0 +1 @@
+ispaziorepo.com.png \ No newline at end of file
diff --git a/Cydia.app/Sources/steffwiz.com.png b/Cydia.app/Sources/steffwiz.com.png
new file mode 100644
index 0000000..28937ad
--- /dev/null
+++ b/Cydia.app/Sources/steffwiz.com.png
Binary files differ
diff --git a/Cydia.app/confirm.html b/Cydia.app/confirm.html
new file mode 100644
index 0000000..a98a8d6
--- /dev/null
+++ b/Cydia.app/confirm.html
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-16"?>
+<html><head>
+ <title>Confirm</title>
+ <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"/>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <link rel="stylesheet" type="text/css" href="menes/style.css"/>
+ <script type="text/javascript" src="menes/menes.js"></script>
+ <script type="text/javascript" src="confirm.js"></script>
+</head><body><div class="page">
+<div class="dialog">
+ <div class="panel" id="panel">
+ <label>Statistics</label>
+ <fieldset>
+ <div class="downloading">
+ <label>Downloading</label>
+ <div id="downloading"></div>
+ </div>
+
+ <div class="resuming">
+ <label>Resuming At</label>
+ <div id="resuming"></div>
+ </div>
+
+ <div>
+ <label id="disk-key"></label>
+ <div id="disk-value"></div>
+ </div>
+ </fieldset>
+
+ <label>Modifications</label>
+ <fieldset id="modifications">
+ </fieldset>
+ </div>
+</div>
+
+</div></body></html>
diff --git a/Cydia.app/confirm.js b/Cydia.app/confirm.js
new file mode 100644
index 0000000..579c3f5
--- /dev/null
+++ b/Cydia.app/confirm.js
@@ -0,0 +1,55 @@
+$(function () {
+ var downloading = sizes[0];
+ if (downloading == "0.0B")
+ $(".downloading").remove();
+ else
+ $("#downloading").html($.xml(downloading));
+
+ var resuming = sizes[1];
+ if (resuming == "0.0B")
+ $(".resuming").remove();
+ else
+ $("#resuming").html($.xml(resuming));
+
+ var size = sizes[2];
+ var negative;
+
+ if (size.charAt(0) != '-')
+ negative = false;
+ else {
+ negative = true;
+ size = size.substr(1);
+ }
+
+ $("#disk-key").html(negative ? "Disk Freeing" : "Disk Using");
+ $("#disk-value").html($.xml(size));
+
+ var keys = [
+ "Install",
+ "Reinstall",
+ "Upgrade",
+ "Downgrade",
+ "Remove"
+ ];
+
+ for (var i = 0; i != 5; ++i) {
+ var list = changes[i];
+ var length = list.length;
+
+ if (length != 0) {
+ $("#modifications").append("<div>" +
+ "<label>" + keys[i] + "</label>" +
+ "<div id=\"i" + i + "\"></div>" +
+ "</div>");
+
+ var value = "";
+ for (var j = 0; j != length; ++j) {
+ if (j != 0)
+ value += "<br/>";
+ value += $.xml(list[j]);
+ }
+
+ $("#i" + i).html(value);
+ }
+ }
+});
diff --git a/Cydia.app/email.png b/Cydia.app/email.png
new file mode 100644
index 0000000..85cfef4
--- /dev/null
+++ b/Cydia.app/email.png
Binary files differ
diff --git a/Cydia.app/error.html b/Cydia.app/error.html
index f72240d..bbdf891 100644
--- a/Cydia.app/error.html
+++ b/Cydia.app/error.html
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-16"?>
<html><head>
<title>Network Error</title>
- <meta name="viewport" content="width=320, minimum-scale=1.0, maximum-scale=1.0"/>
+ <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style>
diff --git a/Cydia.app/manage.html b/Cydia.app/manage.html
index ebda79a..62833e6 100644
--- a/Cydia.app/manage.html
+++ b/Cydia.app/manage.html
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-16"?>
<html><head>
<title>Manage</title>
- <meta name="viewport" content="width=320, minimum-scale=1.0, maximum-scale=1.0"/>
+ <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style>
diff --git a/Cydia.app/menes/menes.js b/Cydia.app/menes/menes.js
index f0070bc..f314227 100644
--- a/Cydia.app/menes/menes.js
+++ b/Cydia.app/menes/menes.js
@@ -5,7 +5,6 @@ var _assert = function (expr) {
throw message;
}
}
-
// Compatibility {{{
if (typeof Array.prototype.push != "function")
Array.prototype.push = function (value) {
@@ -39,6 +38,16 @@ var $ = function (arg, doc) {
}
};
+$.xml = function (value) {
+ return value
+ .replace(/&/, "&amp;")
+ .replace(/</, "&lt;")
+ .replace(/>/, "&gt;")
+ .replace(/"/, "&quot;")
+ .replace(/'/, "&apos;")
+ ;
+}
+
$.type = function (value) {
var type = typeof value;
@@ -120,7 +129,7 @@ $.prototype = {
},
append: function (html) {
- $.each(this, function (node) {
+ $.each(this, $.type(html) == "string" ? function (node) {
var doc = $.document(node);
// XXX: implement wrapper system
@@ -131,9 +140,19 @@ $.prototype = {
var child = div.childNodes[0];
node.appendChild(child);
}
+ } : function (node) {
+ $.each(html, function (value) {
+ node.appendChild(value);
+ });
});
},
+ clone: function (deep) {
+ return $($.map(this, function (node) {
+ return node.cloneNode(deep);
+ }));
+ },
+
descendants: function (expression) {
var descendants = $([]);
@@ -154,6 +173,25 @@ $.prototype = {
return $($.map(this, function (node) {
return node.parentNode;
}));
+ },
+
+ xpath: function (expression) {
+ var value = $([]);
+
+ $.each(this, function (node) {
+ var doc = $.document(node);
+ var result = doc.evaluate(expression, node, null, XPathResult.ANY_TYPE, null);
+
+ if (result.resultType == XPathResult.UNORDERED_NODE_ITERATOR_TYPE)
+ for (;;) {
+ var next = result.iterateNext();
+ if (next == null)
+ break;
+ value.add([next]);
+ }
+ });
+
+ return value;
}
};
@@ -212,6 +250,15 @@ $.inject({
}
},
+ id: {
+ get: function (node) {
+ return node.id;
+ },
+ set: function (node, value) {
+ node.id = value;
+ }
+ },
+
src: {
get: function (node) {
return node.src;
diff --git a/Cydia.app/menes/style.css b/Cydia.app/menes/style.css
index 2be2531..ce6cd53 100644
--- a/Cydia.app/menes/style.css
+++ b/Cydia.app/menes/style.css
@@ -85,7 +85,7 @@ hr {
}
.dialog > .panel {
- background: #c8c8c8 url(pinstripes.png);
+ background: #c7ced5 url(pinstripes.png);
padding: 1px 0 1px 0;
}
@@ -103,6 +103,10 @@ strong {
font-weight: bold
}
+pre {
+ letter-spacing: -2px;
+}
+
/* #toolbar {{{ */
.dialog > .toolbar {
background: url(toolbar.png) #6d84a2 repeat-x;
@@ -173,7 +177,7 @@ strong {
.dialog > .panel > fieldset > div {
border-top: 1px solid #999999;
min-height: 19px;
- padding: 11px 17px;
+ padding: 12px 17px 11px 17px;
}
.dialog > .panel > fieldset > a:first-child,
@@ -196,11 +200,17 @@ strong {
text-align: center;
}
-.dialog > .panel > fieldset > div > p:first-child {
+.dialog > .panel > fieldset > div > ul {
+ margin-left: -20px;
+}
+
+.dialog > .panel > fieldset > div > p:first-child,
+.dialog > .panel > fieldset > div > ul:first-child {
margin-top: 0;
}
-.dialog > .panel > fieldset > div > p:last-child {
+.dialog > .panel > fieldset > div > p:last-child,
+.dialog > .panel > fieldset > div > ul:last-child {
margin-bottom: 0;
}
@@ -212,7 +222,7 @@ strong {
.dialog > .panel > fieldset > div > select {
font-size: 16px;
- margin: -4px -10px -5px 86px;
+ margin: -5px -10px -5px 86px;
width: 190px;
}
@@ -222,8 +232,8 @@ strong {
color: #193250;
font-size: 16px;
height: 45px;
- margin: -12px -18px;
- padding: 12px 10px 0 111px;
+ margin: -13px -18px;
+ padding: 13px 10px 0 111px;
width: 302px;
}
@@ -241,6 +251,7 @@ strong {
.dialog > .panel > fieldset > a > label,
.dialog > .panel > fieldset > div > label {
font-weight: bold;
+ padding: 1px 0 0 0;
position: absolute;
}
@@ -251,6 +262,14 @@ strong {
.dialog > .panel > fieldset > a > label + div,
.dialog > .panel > fieldset > div > label + div {
color: #335588;
+ float: right;
text-align: right;
}
+
+.dialog > .panel > img {
+ display: block;
+ margin: 9px auto 4px auto;
+ height: auto;
+ width: 300px;
+}
/* }}} */
diff --git a/Cydia.app/package.html b/Cydia.app/package.html
index 5ea2f48..6399067 100644
--- a/Cydia.app/package.html
+++ b/Cydia.app/package.html
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-16"?>
<html><head>
<title>Details</title>
- <meta name="viewport" content="width=320, minimum-scale=1.0, maximum-scale=1.0"/>
+ <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="menes/style.css"/>
<script type="text/javascript" src="menes/menes.js"></script>
@@ -26,10 +26,6 @@
</script>
<style>
- body {
- background: #c8c8c8 url(menes/pinstripes.png);
- }
-
#remove {
margin-top: 7px;
text-align: center;
@@ -67,6 +63,14 @@
margin-bottom: 10px;
margin-top: 0;
}
+
+ #warnings {
+ background-color: #ffdddd;
+ }
+
+ #warnings > div > label {
+ color: red;
+ }
</style>
</head><body><div class="page">
<div class="dialog">
@@ -74,14 +78,31 @@
<fieldset>
<div>
+ <img id="icon" class="icon"/>
<label id="name"></label>
<div id="latest"></div>
</div>
+</fieldset>
+<fieldset id="actions">
<a id="author-href" class="author">
+ <img id="author-icon" class="icon" src="email.png"/>
<label>Author</label>
<div id="author"></div>
</a>
+
+ <a id="application">
+ <img class="icon"/>
+ <label class="application"></label>
+ </a>
+</fieldset>
+
+<label class="warnings">Warnings</label>
+<fieldset class="warnings" id="warnings">
+ <div id="warning">
+ <img class="icon" src="warning.png"/>
+ <label class="warning"></label>
+ </div>
</fieldset>
<div id="notice" class="notice"><iframe
@@ -98,14 +119,14 @@
<hr id="upper-bar" class="depiction"/-->
-<div id="depiction" class="depiction"><iframe
+<div id="depiction" class="depiction"><!--iframe
id="depiction-src"
frameborder="0"
width="320"
height="0"
target="_top"
onLoad="loaded()"
-></iframe></div>
+></iframe--></div>
<!--hr id="lower-bar" class="depiction"/-->
@@ -145,7 +166,8 @@
</div>
<a id="maintainer-href" class="maintainer">
- <label>Maintainer</label>
+ <img id="maintainer-icon" class="icon" src="email.png"/>
+ <label>Contact</label>
<div id="maintainer"></div>
</a>
diff --git a/Cydia.app/package.js b/Cydia.app/package.js
index 480ec01..52025a9 100644
--- a/Cydia.app/package.js
+++ b/Cydia.app/package.js
@@ -25,21 +25,62 @@
$(function () {
var id = package.id;
+ var idc = encodeURIComponent(id);
var name = package.name;
var regarding = encodeURIComponent("Cydia/APT: " + name);
+ $("#icon").src("cydia://package-icon/" + idc);
$("#name").html(name);
$("#latest").html(package.latest);
+ var warnings = package.warnings;
+ var length = warnings == null ? 0 : warnings.length;
+ if (length == 0)
+ $(".warnings").remove();
+ else {
+ var parent = $("#warnings");
+ var child = $("#warning");
+ child.remove();
+
+ for (var i = 0; i != length; ++i) {
+ var clone = child.clone(true);
+ parent.append(clone);
+ clone.xpath("label").html($.xml(warnings[i]));
+ }
+ }
+
+ var applications = package.applications;
+ var length = applications == null ? 0 : applications.length;
+ if (length == 0)
+ $(".applications").remove();
+ else {
+ var parent = $("#actions");
+ var child = $("#application");
+ child.remove();
+
+ for (var i = 0; i != length; ++i) {
+ var application = applications[i];
+ var clone = child.clone(true);
+ parent.append(clone);
+ clone.href("cydia://launch/" + application[0]);
+ clone.xpath("label").html("Run " + $.xml(application[1]));
+ clone.xpath("img").src(application[2]);
+ console.log(0);
+ }
+ }
+
var author = package.author;
if (author == null)
$(".author").remove();
else {
$("#author").html(author.name);
- $("#author-href").href("mailto:" + author.address + "?subject=" + regarding);
+ if (author.address == null)
+ $("#author-icon").remove();
+ else
+ $("#author-href").href("mailto:" + author.address + "?subject=" + regarding);
}
- //$("#notice-src").src("http://saurik.cachefly.net/notice/" + encodeURIComponent(id) + ".html");
+ //$("#notice-src").src("http://saurik.cachefly.net/notice/" + idc + ".html");
var depiction = package.depiction;
if (depiction == null)
@@ -67,7 +108,7 @@ $(function () {
$(".installed").remove();
else {
$("#installed").html(installed);
- $("#files-href").href("cydia://files/" + id);
+ $("#files-href").href("cydia://files/" + idc);
}
$("#id").html(id);
@@ -89,7 +130,10 @@ $(function () {
$(".maintainer").remove();
else {
$("#maintainer").html(maintainer.name);
- $("#maintainer-href").href("mailto:" + maintainer.address + "?subject=" + regarding);
+ if (maintainer.address == null)
+ $("#maintainer-icon").remove();
+ else
+ $("#maintainer-href").href("mailto:" + maintainer.address + "?subject=" + regarding);
}
var sponsor = package.sponsor;
diff --git a/Cydia.app/warning.png b/Cydia.app/warning.png
new file mode 100644
index 0000000..8d3e5df
--- /dev/null
+++ b/Cydia.app/warning.png
Binary files differ