diff options
Diffstat (limited to 'Cydia.app')
-rw-r--r-- | Cydia.app/commercial.png | bin | 0 -> 2379 bytes | |||
-rw-r--r-- | Cydia.app/console.png | bin | 0 -> 1225 bytes | |||
-rw-r--r-- | Cydia.app/expanded.png | bin | 0 -> 6180 bytes | |||
-rw-r--r-- | Cydia.app/filesystem.png | bin | 0 -> 7852 bytes | |||
-rw-r--r-- | Cydia.app/package.html | 105 | ||||
-rw-r--r-- | Cydia.app/package.js | 44 | ||||
-rw-r--r-- | Cydia.app/settings.png | bin | 0 -> 2259 bytes | |||
-rw-r--r-- | Cydia.app/signature.html | 15 | ||||
-rw-r--r-- | Cydia.app/web.png | bin | 0 -> 8234 bytes |
9 files changed, 144 insertions, 20 deletions
diff --git a/Cydia.app/commercial.png b/Cydia.app/commercial.png Binary files differnew file mode 100644 index 0000000..9c411cc --- /dev/null +++ b/Cydia.app/commercial.png diff --git a/Cydia.app/console.png b/Cydia.app/console.png Binary files differnew file mode 100644 index 0000000..08d1869 --- /dev/null +++ b/Cydia.app/console.png diff --git a/Cydia.app/expanded.png b/Cydia.app/expanded.png Binary files differnew file mode 100644 index 0000000..9efce56 --- /dev/null +++ b/Cydia.app/expanded.png diff --git a/Cydia.app/filesystem.png b/Cydia.app/filesystem.png Binary files differnew file mode 100644 index 0000000..1bb23fe --- /dev/null +++ b/Cydia.app/filesystem.png diff --git a/Cydia.app/package.html b/Cydia.app/package.html index fbeb037..ee8597d 100644 --- a/Cydia.app/package.html +++ b/Cydia.app/package.html @@ -71,26 +71,98 @@ #warnings > div > label { color: red; } + + #boundry { + float: left; + width: 60px; + } + + #icon { + height: 59px; + max-width: 60px; + width: auto; + } + + #reflection { + height: 59px; + max-width: 60px; + opacity: 0.4; + position: absolute; + -webkit-transform: matrix(1, 0, 0, -1, 0, 0); + width: auto; + } + + #id { + white-space: nowrap; + } + + #header { + background: transparent; + border: none; + } + + #header > div { + padding: 0; + margin-left: 2px; + } + + #content { + float: right; + margin: auto 0; + } + + #content > div { + margin: 8px; + } + + #name { + font-weight: bold; + } + + #latest { + color: #335588; + } </style> </head><body><div class="page"> <div class="dialog"> <div class="panel"> -<fieldset> - <div> - <img id="icon" class="icon"/> - <label id="name"></label> - <div id="latest"></div> +<fieldset id="header"> + <div class="clearfix"> + <div id="boundry"> + <img id="icon"/> + <!--img id="reflection"/--> + </div> + + <div id="content"> + <div id="name"></div> + <div id="latest"></div> + </div> </div> </fieldset> <fieldset id="actions"> + <a id="settings"> + <img class="icon" src="settings.png"/> + <label>Change Package Settings</label> + </a> + <a id="author-href" class="author"> <img id="author-icon" class="icon" src="email.png"/> <label>Author</label> <div id="author"></div> </a> + <div class="commercial"> + <img class="icon" src="commercial.png"/> + <label>This is a commercial package!</label> + </div> + + <a class="console" href="console.html"> + <img class="icon" src="console.png"/> + <label>This is a console application!</label> + </a> + <a id="application"> <img class="icon"/> <label class="application"></label> @@ -119,14 +191,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 +217,10 @@ <div id="installed"></div> </div> - <a id="files-href"><label>Filesystem Content</label></a> + <a id="files-href"> + <img class="icon" src="filesystem.png"/> + <label>Filesystem Content</label> + </a> </fieldset> <label>Package Details</label> @@ -161,6 +236,7 @@ </div> <div class="size"> + <img class="icon" src="expanded.png"/> <label>Expanded Size</label> <div id="size"></div> </div> @@ -172,14 +248,21 @@ </a> <a id="sponsor-href" class="sponsor"> + <img class="icon" src="web.png"/> <label>Sponsor</label> <div id="sponsor"></div> </a> - <a class="trusted" id="trusted"> + <!--a class="trusted" id="trusted"> <img class="icon" src="trusted.png"> - <label>View Package Signature</label> - </a> + <label>View Repository Signature</label> + </a--> + + <div class="trusted"> + <img class="icon" src="trusted.png"> + <label></label> + <div>This package has been signed.</div> + </div> </fieldset> <label class="source">Source Information</label> diff --git a/Cydia.app/package.js b/Cydia.app/package.js index c44e7dd..e409aa9 100644 --- a/Cydia.app/package.js +++ b/Cydia.app/package.js @@ -30,9 +30,13 @@ $(function () { var regarding = encodeURIComponent("Cydia/APT: " + name); $("#icon").src("cydia://package-icon/" + idc); + $("#reflection").src("cydia://package-icon/" + idc); + $("#name").html(name); $("#latest").html(package.latest); + $("#settings").href("cydia://package-settings/" + idc); + var warnings = package.warnings; var length = warnings == null ? 0 : warnings.length; if (length == 0) @@ -51,12 +55,12 @@ $(function () { var applications = package.applications; var length = applications == null ? 0 : applications.length; - if (length == 0) - $(".applications").remove(); - else { + + var child = $("#application"); + child.remove(); + + /*if (length != 0) { var parent = $("#actions"); - var child = $("#application"); - child.remove(); for (var i = 0; i != length; ++i) { var application = applications[i]; @@ -65,9 +69,24 @@ $(function () { clone.href("cydia://launch/" + application[0]); clone.xpath("label").html("Run " + $.xml(application[1])); clone.xpath("img").src(application[2]); - console.log(0); } - } + }*/ + + var purposes = package.purposes; + var commercial = false; + var _console = false; + if (purposes != null) + for (var i = 0, e = purposes.length; i != e; ++i) { + var purpose = purposes[i]; + if (purpose == "commercial") + commercial = true; + else if (purpose == "console") + _console = true; + } + if (!commercial) + $(".commercial").remove(); + if (!_console) + $(".console").remove(); var author = package.author; if (author == null) @@ -111,7 +130,14 @@ $(function () { $("#files-href").href("cydia://files/" + idc); } - $("#id").html(id); + var nid = $("#id"); + nid.html(id); + var width = nid.width(); + + if (width > 240) { + var spacing = (240.0 - nid.width()) / (id.length - 1) + "px"; + nid.css("letter-spacing", spacing); + } var section = package.section; if (section == null) @@ -152,7 +178,7 @@ $(function () { $("#source-name").html(source.name); if (source.trusted) - /*$("#trusted").href("cydia:///" + idc)*/; + $("#trusted").href("cydia://package-signature/" + idc); else $(".trusted").remove(); diff --git a/Cydia.app/settings.png b/Cydia.app/settings.png Binary files differnew file mode 100644 index 0000000..56a5bd7 --- /dev/null +++ b/Cydia.app/settings.png diff --git a/Cydia.app/signature.html b/Cydia.app/signature.html new file mode 100644 index 0000000..0e3a811 --- /dev/null +++ b/Cydia.app/signature.html @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-16"?> +<html><head> + <title>Signature</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="signature.js"></script> +</head><body><div class="page"> +<div class="dialog"> + <div class="panel"> + + </div> +</div> +</div></body></html> diff --git a/Cydia.app/web.png b/Cydia.app/web.png Binary files differnew file mode 100644 index 0000000..a4f04e3 --- /dev/null +++ b/Cydia.app/web.png |