diff options
Diffstat (limited to 'MobileCydia.app')
30 files changed, 0 insertions, 1135 deletions
diff --git a/MobileCydia.app/Modes/DOWNGRADE.png b/MobileCydia.app/Modes/DOWNGRADE.png Binary files differdeleted file mode 100644 index 41c0d70..0000000 --- a/MobileCydia.app/Modes/DOWNGRADE.png +++ /dev/null diff --git a/MobileCydia.app/Modes/INSTALL.png b/MobileCydia.app/Modes/INSTALL.png Binary files differdeleted file mode 100644 index a83f354..0000000 --- a/MobileCydia.app/Modes/INSTALL.png +++ /dev/null diff --git a/MobileCydia.app/Modes/NEW_INSTALL.png b/MobileCydia.app/Modes/NEW_INSTALL.png deleted file mode 120000 index 475bda6..0000000 --- a/MobileCydia.app/Modes/NEW_INSTALL.png +++ /dev/null @@ -1 +0,0 @@ -INSTALL.png
\ No newline at end of file diff --git a/MobileCydia.app/Modes/PURGE.png b/MobileCydia.app/Modes/PURGE.png Binary files differdeleted file mode 100644 index 795fa19..0000000 --- a/MobileCydia.app/Modes/PURGE.png +++ /dev/null diff --git a/MobileCydia.app/Modes/REINSTALL.png b/MobileCydia.app/Modes/REINSTALL.png Binary files differdeleted file mode 100644 index 0b7754c..0000000 --- a/MobileCydia.app/Modes/REINSTALL.png +++ /dev/null diff --git a/MobileCydia.app/Modes/REMOVE.png b/MobileCydia.app/Modes/REMOVE.png Binary files differdeleted file mode 100644 index 1b2e691..0000000 --- a/MobileCydia.app/Modes/REMOVE.png +++ /dev/null diff --git a/MobileCydia.app/Modes/UPGRADE.png b/MobileCydia.app/Modes/UPGRADE.png Binary files differdeleted file mode 100644 index 631b7ef..0000000 --- a/MobileCydia.app/Modes/UPGRADE.png +++ /dev/null diff --git a/MobileCydia.app/commercial.png b/MobileCydia.app/commercial.png Binary files differdeleted file mode 100644 index 8599f48..0000000 --- a/MobileCydia.app/commercial.png +++ /dev/null diff --git a/MobileCydia.app/console.png b/MobileCydia.app/console.png Binary files differdeleted file mode 100644 index dba3788..0000000 --- a/MobileCydia.app/console.png +++ /dev/null diff --git a/MobileCydia.app/email.png b/MobileCydia.app/email.png Binary files differdeleted file mode 100644 index 1aa20b3..0000000 --- a/MobileCydia.app/email.png +++ /dev/null diff --git a/MobileCydia.app/expanded.png b/MobileCydia.app/expanded.png Binary files differdeleted file mode 100644 index 9efce56..0000000 --- a/MobileCydia.app/expanded.png +++ /dev/null diff --git a/MobileCydia.app/filesystem.png b/MobileCydia.app/filesystem.png Binary files differdeleted file mode 100644 index 1bb23fe..0000000 --- a/MobileCydia.app/filesystem.png +++ /dev/null diff --git a/MobileCydia.app/id.png b/MobileCydia.app/id.png Binary files differdeleted file mode 100644 index f168812..0000000 --- a/MobileCydia.app/id.png +++ /dev/null diff --git a/MobileCydia.app/loading.html b/MobileCydia.app/loading.html deleted file mode 100644 index 33b2637..0000000 --- a/MobileCydia.app/loading.html +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version="1.0" encoding="UTF-16"?> -<html><head> - <title>Loading</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"/> - <base target="_blank"/> -</head><body> - <div style="padding: 5px 7px"> - <span style="color: #4d4d70; font-weight: normal; font-size: 16px"> - <div style="display: inline-block; background-image: url(menes/indicator-c7ced5-4d4d70.gif); width: 16px; height: 16px; margin: 2px 0 -2px 0"></div> - <span style="margin: 0 4px">Loading...</span> - </span> - </div> -</body></html> diff --git a/MobileCydia.app/manage.html b/MobileCydia.app/manage.html deleted file mode 100644 index 55e7462..0000000 --- a/MobileCydia.app/manage.html +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-16"?> -<html><head> - <title localize="MANAGE"></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"/> - <script type="text/javascript" src="menes/menes.js"></script> - <script type="text/javascript" src="localize.js"></script> - <base target="_blank"/> - - <style> - body { - background: #c7ced5 url(cydia://uikit-image/UIPinstripe.png); - background-size: 7px 1px; - display: table; - font-family: Helvetica; - height: 337px; - margin: 0; - padding: 0; - -webkit-text-size-adjust: none; - -webkit-user-select: none; - } - - div.page { - display: table-cell; - text-align: center; - margin: 0 auto; - vertical-align: middle; - width: 320px; - } - - a.giant-button { - background-color: rgba(0, 0, 0, .15); - -webkit-border-radius: 10px; - color: #193250; - display: block; - margin: 10px; - text-decoration: none; - } - - a.giant-button > img { - display: inline-block; - float: left; - height: 80px; - margin: 10px -10px 0 10px; - width: 80px; - vertical-align: middle; - } - - a.giant-button > div.contents { - display: inline-block; - width: 190px; - margin: 5px 10px 17px 10px; - } - - a.giant-button > div.contents > label { - display: block; - font-size: 28px; - margin: 8px 0 8px 0; - text-align: center; - text-shadow: rgba(200, 200, 200, 0.75) 1px 1px 0; - } - - a.giant-button > div.contents > div { - display: block; - font-size: 14px; - margin-left: 4px; - text-align: center; - } - </style> -</head><body><div class="page"> -<div class="dialog"> - <div class="panel"> - -<a href="cydia://installed" class="giant-button"> - <img src="packages.png"/> - <div class="contents"> - <label localize="PACKAGES"></label> - <div localize="PACKAGES_EX"></div> - </div> -</a> - -<a href="cydia://sources" class="giant-button"> - <img src="sources.png"/> - <div class="contents"> - <label localize="SOURCES"></label> - <div localize="SOURCES_EX"></div> - </div> -</a> - -<a href="cydia://storage" class="giant-button"> - <img src="storage.png"/> - <div class="contents"> - <label localize="STORAGE"></label> - <div localize="STORAGE_EX"></div> - </div> -</a> - - </div> -</div> -</div></body></html> diff --git a/MobileCydia.app/menes/indicator-c7ced5-4d4d70.gif b/MobileCydia.app/menes/indicator-c7ced5-4d4d70.gif Binary files differdeleted file mode 100644 index e41bb96..0000000 --- a/MobileCydia.app/menes/indicator-c7ced5-4d4d70.gif +++ /dev/null diff --git a/MobileCydia.app/package.html b/MobileCydia.app/package.html deleted file mode 100644 index 985b207..0000000 --- a/MobileCydia.app/package.html +++ /dev/null @@ -1,388 +0,0 @@ -<?xml version="1.0" encoding="UTF-16"?> -<html><head> - <title localize="DETAILS"></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="package.js"></script> - <script type="text/javascript" src="localize.js"></script> - <base target="_blank"/> - - <!--script type="text/javascript"> - var count = -1; - var loaded = function() { - if (count++ != 0) - return; - $("#depiction-load").remove(); - $("#depiction-src").css("display", "block"); - } - - var remove = function() { - $(".description").css("display", "block"); - $(".depiction").remove(); - } - </script--> - - <style> - .flip-180 { - -webkit-backface-visibility: hidden; - -webkit-transform: rotateY(180deg); - } - - #icon.flip-180 { - -webkit-transition-duration: 2s; - -webkit-transition-property: transform; - } - - .flip-360 { - -webkit-backface-visibility: hidden; - -webkit-transform: rotateY(360deg); - -webkit-transition-duration: 2s; - -webkit-transition-property: transform; - } - - .fade-out { - opacity: 0; - -webkit-transition-property: opacity; - -webkit-transition-duration: 2s; - } - - .fade-in { - opacity: 1; - -webkit-transition-property: opacity; - -webkit-transition-duration: 2s; - } - - #remove { - margin-top: 7px; - text-align: center; - } - - #indicator { - left: 20px; - position: relative; - top: -5px; - } - - #remove > a { - color: #335588; - text-decoration: none; - } - - #upper-bar { - margin-bottom: 0; - margin-top: 10px; - } - - #lower-bar { - margin-bottom: 10px; - margin-top: 0; - } - - #warnings { - background-color: #ffdddd; - } - - #warnings > div > label { - color: red; - } - - #boundary { - float: left; - height: 64; - width: 64px; - } - - #thumb, - #icon { - background-position: center center; - background-repeat: no-repeat; - height: 64px; - position: absolute; - width: 64px; - } - - #thumb { - -webkit-border-radius: 9px; - } - - /* XXX: this style is out of date */ - #reflection { - height: 59px; - max-width: 60px; - opacity: 0.4; - position: absolute; - -webkit-transform: matrix(1, 0, 0, -1, 0, 0); - width: auto; - } - - #id, #author, #maintainer, #sponsor { - white-space: nowrap; - } - - #header { - background: transparent; - border: none; - position: relative; - } - - #header > div { - padding: 0; - } - - #content { - padding: 5px; - position: absolute; - left: 77px; - width: 232px; - } - - #lower { - margin: 0px 5px; - } - - #name { - margin-bottom: 13px; - font-weight: bold; - font-size: 17px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } - - #latest { - color: #335588; - float: left; - } - - a[href].rating { - background: 107px 7px no-repeat url(menes/chevron.png); - } - - .rating { - /*border: 1px solid #999999;*/ - -webkit-border-radius: 6px; - padding: 7px 7px; - margin: -7px 0px; - float: right; - width: 126px; - } - - .rating .back, - .rating .fore, - .rating .star { - background: url(star.png); - } - - .rating .text { - display: inline-block; - color: #4d4d70; - margin: 0 6px; - vertical-align: top; - } - - #rating-done { - padding-left: 12px; - } - - #rating-none, - #rating-done { - display: none; - } - - #depiction-src, - #notice-src { - height: 1px; - width: 320px; - } - - .invisible * { - visibility: hidden; - } - </style> -</head><body class="pinstripe invisible"> -<panel> - -<fieldset id="header"> - <div> - <div id="boundary"> - <div class="flip-0" id="icon"></div> - <div class="flip-180" id="thumb"></div> - <!--img id="reflection"/--> - </div> - - <div id="content"> - <div id="name"></div> - <div id="latest"></div> - - <a class="rating" id="rating-href"> - <div id="rating-none"> - <div class="star"></div><div class="text" localize="NOT_RATED"></div> - </div><div id="rating-done"> - <div class="fore" id="rating-value"></div> - <div class="back"></div> - </div> - </a> - </div> - </div> -</fieldset> - -<fieldset class="mode"> - <a> - <img class="icon" id="mode-src"/><div> - <label localize="PACKAGE_QUEUE"></label> - <label id="mode"></label> - </div></a> -</fieldset> - -<fieldset id="actions"> - <a id="settings"> - <img class="icon" src="settings.png"/><div> - <label localize="CHANGE_PACKAGE_SETTINGS"></label> - </div></a> - - <a id="author-href" class="author" target="_popup"> - <img id="author-icon" class="icon" src="email.png"/><div> - <label localize="AUTHOR"></label> - <label id="author"></label> - </div></a> - - <!--div class="commercial"> - <img class="icon" src="commercial.png"/><div> - <label>This is a commercial package!</label> - </div></div--> - - <a class="console" href="http://cydia.saurik.com/purpose/console/"> - <img class="icon" src="console.png"/><div> - <label localize="CONSOLE_PACKAGE"></label> - </div></a> - - <a id="application"> - <img class="icon"/><div> - <label class="application"></label> - </div></a> -</fieldset> - -<fieldset class="warnings" id="warnings"> - <div id="warning"> - <img class="icon" src="warning.png"/><div> - <label class="warning"></label> - </div></div> -</fieldset> - -<iframe - class="notice" - id="notice-src" - frameborder="0" - width="320" - height="0" - target="_top" -></iframe> - -<!--iframe - class="activation" - id="activation-src" - frameborder="0" - width="320" - height="0" - target="_top" -></iframe--> - -<!--div id="remove" class="depiction"> - <a href="javascript:remove()">Remove Custom Depiction</a> -</div> - -<hr id="upper-bar" class="depiction"/--> - -<iframe - class="depiction" - id="depiction-src" - frameborder="0" - width="320" - height="0" - target="_top" - onload_="loaded()" -></iframe> - -<!--hr id="lower-bar" class="depiction"/--> - -<block class="description"><p id="description"></p></block> - -<fieldset class="description homepage"> - <a class="homepage" id="homepage-href"> - <img class="icon" src="web.png"/><div> - <label localize="MORE_INFORMATION"></label> - </div></a> -</fieldset> - -<label class="installed" localize="INSTALLED_DETAILS"></label> -<fieldset class="installed"> - <div> - <img class="icon" src="version.png"/><div> - <label localize="VERSION"></label> - <label id="installed"></label> - </div></div> - - <a id="files-href"> - <img class="icon" src="filesystem.png"/><div> - <label localize="FILESYSTEM_CONTENT"></label> - </div></a> -</fieldset> - -<label localize="PACKAGE_DETAILS"></label> -<fieldset> - <div> - <img class="icon" src="id.png"/><div> - <label localize="ID"></label> - <label id="id"></label> - </div></div> - - <div class="section"> - <img id="section-src" class="icon"/><div> - <label localize="SECTION"></label> - <label id="section"></label> - </div></div> - - <div class="size"> - <img class="icon" src="expanded.png"/><div> - <label localize="EXPANDED_SIZE"></label> - <label id="size"></label> - </div></div> - - <a id="maintainer-href" class="maintainer" target="_popup"> - <img id="maintainer-icon" class="icon" src="email.png"/><div> - <label localize="MAINTAINER"></label> - <label id="maintainer"></label> - </div></a> - - <a id="sponsor-href" class="sponsor"> - <img class="icon" src="web.png"/><div> - <label localize="SPONSOR"></label> - <label id="sponsor"></label> - </div></a> - - <!--a class="trusted" id="trusted"> - <img class="icon" src="trusted.png"><div> - <label localize="REPOSITORY_SIGNATURE"></label> - </div></a--> - - <div class="trusted"> - <img class="icon" src="trusted.png"><div> - <label> </label> - <label localize="SIGNED_PACKAGE"></label> - </div></div> -</fieldset> - -<label class="source" localize="SOURCE_DETAILS"></label> -<fieldset class="source"> - <div> - <img class="icon" id="source-src"/><div> - <label id="source-name"></label> - </div></div> - - <div class="source-description" id="source-description"></div> -</fieldset> - -</panel> -</body></html> diff --git a/MobileCydia.app/package.js b/MobileCydia.app/package.js deleted file mode 100644 index 7dee044..0000000 --- a/MobileCydia.app/package.js +++ /dev/null @@ -1,290 +0,0 @@ -/*var package = { - "name": "MobileTerminal", - "latest": "286u-5", - "author": { - "name": "Allen Porter", - "address": "allen.porter@gmail.com" - }, - //"depiction": "http://planet-iphones.com/repository/info/chromium1.3.php", - "depiction": "http://cydia.saurik.com/terminal.html", - "longDescription": "this is a sample description", - "homepage": "http://cydia.saurik.com/terminal.html", - "installed": "286u-4", - "id": "mobileterminal", - "section": "Terminal Support", - "size": 552*1024, - "maintainer": { - "name": "Jay Freeman", - "address": "saurik@saurik.com" - }, - "source": { - "name": "Telesphoreo Tangelo", - "description": "Distribution of Unix Software for the iPhone" - } -};*/ - -function space(selector, html, max) { - var node = $(selector); - node.html(html); - var width = node.width(); - if (width > max) { - var spacing = (max - node.width()) / (html.length - 1) + "px"; - node.css("letter-spacing", spacing); - } -} - -var swap_, swap = function (on, off, time) { - setTimeout(swap_(on, off, time), time); -}; - -swap_ = function (on, off, time) { - return function () { - on.className = 'fade-out'; - off.className = 'fade-in'; - swap(off, on, time); - }; -}; - -$(function () { - if (package == null) - return; - - var id = package.id; - var idc = encodeURIComponent(id); - var name = package.name; - var icon = 'cydia://package-icon/' + idc; - - var api = 'http://cydia.saurik.com/api/'; - var capi = 'http://cache.cydia.saurik.com/api/'; - - var support = package.support; - - var regarding = function (type) { - return encodeURIComponent("Cydia/APT(" + type + "): " + name); - }; - - $("#icon").css("background-image", 'url("' + icon + '")'); - //$("#reflection").src("cydia://package-icon/" + idc); - - $("#name").html($.xml(name)); - space("#latest", $.xml(package.latest), 96); - - $.xhr(capi + 'package/' + idc, 'GET', {}, null, { - success: function (value) { - value = eval(value); - - if (typeof value.notice == "undefined") - $(".notice").addClass("deleted"); - else - $("#notice-src").src(value.notice); - - if (typeof value.rating == "undefined") - $(".rating").addClass("deleted"); - else { - $("#rating-load").addClass("deleted"); - $("#rating-href").href(value.reviews); - - var none = $("#rating-none"); - var done = $("#rating-done"); - - if (value.rating == null) { - none.css("display", "block"); - } else { - done.css("display", "block"); - - $("#rating-value").css('width', 16 * value.rating); - } - } - - if (typeof value.icon != "undefined" && value.icon != null) { - var icon = $("#icon"); - var thumb = $("#thumb"); - - icon[0].className = 'flip-180'; - thumb[0].className = 'flip-360'; - - thumb.css("background-image", 'url("' + value.icon + '")'); - - setTimeout(function () { - icon.addClass("deleted"); - thumb[0].className = 'flip-0'; - }, 2000); - } - }, - - failure: function (status) { - $(".rating").addClass("deleted"); - } - }); - - $("#settings").href("cydia://package/" + idc + "/settings"); - - var mode = package.mode; - if (mode == null) - $(".mode").addClass("deleted"); - else { - $("#mode").html(cydia.localize(mode)); - $("#mode-src").src("Modes/" + mode + ".png"); - } - - var warnings = package.warnings; - var length = warnings == null ? 0 : warnings.length; - if (length == 0) - $(".warnings").addClass("deleted"); - else { - var parent = $("#warnings"); - var child = $("#warning"); - - for (var i = 0; i != length; ++i) { - var clone = child.clone(true); - clone.addClass("inserted"); - parent.append(clone); - clone.xpath("./div/label").html($.xml(warnings[i])); - } - - child.addClass("deleted"); - } - - var applications = package.applications; - var length = applications == null ? 0 : applications.length; - - var child = $("#application"); - - /*if (length != 0) { - var parent = $("#actions"); - - 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]); - } - }*/ - - child.addClass("deleted"); - - var commercial = package.hasTag('cydia::commercial'); - if (!commercial) - $(".commercial").addClass("deleted"); - - var _console = package.hasTag('purpose::console'); - if (!_console) - $(".console").addClass("deleted"); - - var author = package.author; - if (author == null) - $(".author").addClass("deleted"); - else { - space("#author", $.xml(author.name), 160); - if (author.address == null) - $("#author-icon").addClass("deleted"); - else if (support == null) - $("#author-href").href("mailto:" + author.address + "?subject=" + regarding("A")); - else - $("#author-href").href(support); - } - - /*var store = commercial; - if (!store) - $(".activation").addClass("deleted"); - else { - var activation = api + 'activation/' + idc; - $("#activation-src").src(activation); - }*/ - - var depiction = package.depiction; - if (depiction != null) { - $(".description").addClass("deleted"); - $("#depiction-src").src(depiction); - } else { - $(".depiction").addClass("deleted"); - - var description = package.longDescription; - if (description == null) - description = package.shortDescription; - - if (description == null) - $(".description").addClass("deleted"); - else { - description = $.xml(description).replace(/\n/g, "<br/>"); - $("#description").html(description); - } - } - - var homepage = package.homepage; - if (homepage == null) - $(".homepage").addClass("deleted"); - else - $("#homepage-href").href(homepage); - - var installed = package.installed; - if (installed == null) - $(".installed").addClass("deleted"); - else { - $("#installed").html($.xml(installed)); - $("#files-href").href("cydia://package/" + idc + "/files"); - } - - space("#id", $.xml(id), 220); - - var section = package.longSection; - if (section == null) - $(".section").addClass("deleted"); - else { - $("#section-src").src("cydia://section-icon/" + encodeURIComponent(section)); - $("#section").html($.xml(section)); - } - - var size = package.size; - if (size == 0) - $(".size").addClass("deleted"); - else - $("#size").html(size / 1024 + " kB"); - - var maintainer = package.maintainer; - if (maintainer == null) - $(".maintainer").addClass("deleted"); - else { - space("#maintainer", $.xml(maintainer.name), 153); - if (maintainer.address == null) - $("#maintainer-icon").addClass("deleted"); - else if (support == null) - $("#maintainer-href").href("mailto:" + maintainer.address + "?subject=" + regarding("M")); - else - $("#maintainer-href").href(support); - } - - var sponsor = package.sponsor; - if (sponsor == null) - $(".sponsor").addClass("deleted"); - else { - space("#sponsor", $.xml(sponsor.name), 152); - $("#sponsor-href").href(sponsor.address); - } - - var source = package.source; - if (source == null) { - $(".source").addClass("deleted"); - $(".trusted").addClass("deleted"); - } else { - var host = source.host; - - $("#source-src").src("cydia://source-icon/" + encodeURIComponent(host)); - $("#source-name").html($.xml(source.name)); - - if (source.trusted) - $("#trusted").href("cydia://package/" + idc + "/signature"); - else - $(".trusted").addClass("deleted"); - - var description = source.description; - if (description == null) - $(".source-description").addClass("deleted"); - else - $("#source-description").html($.xml(description)); - } - - $("body").removeClass("invisible"); -}); diff --git a/MobileCydia.app/packages.png b/MobileCydia.app/packages.png Binary files differdeleted file mode 100644 index 404fe0c..0000000 --- a/MobileCydia.app/packages.png +++ /dev/null diff --git a/MobileCydia.app/settings.png b/MobileCydia.app/settings.png Binary files differdeleted file mode 100644 index 86f4e78..0000000 --- a/MobileCydia.app/settings.png +++ /dev/null diff --git a/MobileCydia.app/signature.html b/MobileCydia.app/signature.html deleted file mode 100644 index aa113b8..0000000 --- a/MobileCydia.app/signature.html +++ /dev/null @@ -1,16 +0,0 @@ -<?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> - <base target="_blank"/> -</head><body><div class="page"> -<div class="dialog"> - <div class="panel"> - - </div> -</div> -</div></body></html> diff --git a/MobileCydia.app/sources.png b/MobileCydia.app/sources.png Binary files differdeleted file mode 100644 index e8422e4..0000000 --- a/MobileCydia.app/sources.png +++ /dev/null diff --git a/MobileCydia.app/star.png b/MobileCydia.app/star.png Binary files differdeleted file mode 100644 index f762a24..0000000 --- a/MobileCydia.app/star.png +++ /dev/null diff --git a/MobileCydia.app/storage.html b/MobileCydia.app/storage.html deleted file mode 100644 index 55ac5ab..0000000 --- a/MobileCydia.app/storage.html +++ /dev/null @@ -1,237 +0,0 @@ -<?xml version="1.0" encoding="UTF-16"?> -<html><head> - <title localize="STORAGE"></title> - <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"/> - <link rel="stylesheet" type="text/css" href="menes/style.css"/> - <script type="text/javascript" src="menes/menes.js"></script> - <script type="text/javascript" src="storage.js"></script> - <script type="text/javascript" src="localize.js"></script> - <base target="_blank"/> - - <style> - body { - display: table; - font-family: Helvetica; - height: 337px; - margin: 0; - padding: 0; - -webkit-text-size-adjust: none; - -webkit-user-select: none; - } - - div.page { - display: table-cell; - text-align: center; - margin: 0 auto; - vertical-align: middle; - width: 320px; - } - - a.giant-button { - background-color: rgba(0, 0, 0, 0.15); - -webkit-border-radius: 10px; - color: #193250; - display: block; - margin: 8px 10px; - position: relative; - text-decoration: none; - width: 300px; - } - - a.giant-button > piechart { - float: left; - margin: 10px; - vertical-align: middle; - } - - a.giant-button > label { - display: block; - float: left; - font-size: 25px; - margin: 10px 0 4px 4px; - text-align: center; - text-shadow: rgba(200, 200, 200, 0.75) 1px 1px 0; - width: 155px; - } - - a.giant-button > div.text { - display: block; - float: left; - font-size: 14px; - margin-left: 4px; - text-align: center; - width: 155px; - } - - div.key { - display: inline-block; - width: 50%; - } - - a.giant-button > div.legend { - float: left; - font-size: 14px; - left: 15px; - position: absolute; - top: 120px; - width: 290px; - } - - div.key { - margin-bottom: 4px; - } - - piechart { - /*-webkit-transform: rotate(-5deg);*/ - /*-webkit-transform: rotateY(15deg) rotateX(-45deg);*/ - } - - piechart > div { - -webkit-border-radius: 50px; - height: 100px; - overflow: hidden; - position: relative; - width: 100px; - } - - piechart > div > div:first-child { - height: 100px; - overflow: hidden; - position: absolute; - z-index: 102; - width: 51px; - } - - piechart > div > div:last-child { - height: 100px; - overflow: hidden; - position: absolute; - width: 100px; - z-index: 0; - } - - piechart > div div.lslice, - piechart > div div.rslice, - piechart > div div.tslice, - piechart > div div.bslice { - background-color: #4d4d70; - } - - piechart > div div.lslice, - piechart > div div.rslice, - piechart > div div.tslice, - piechart > div div.bslice, - piechart > div div.xslice { - /* XXX: technically, these aren't needed */ - -webkit-border-bottom-left-radius: 50px; - -webkit-border-top-left-radius: 50px; - height: 100px; - position: absolute; - -webkit-transform-origin: 100% 50%; - width: 50px; - } - - piechart > div div.lslice { - z-index: 100; - } - - piechart > div div.rslice, - piechart > div div.tslice, - piechart > div div.bslice { - z-index: 0; - } - - piechart > div div.rslice { - -webkit-transform: rotate(180deg); - } - - piechart > div div.tslice { - -webkit-transform: rotate(90deg); - } - - piechart > div div.bslice { - -webkit-transform: rotate(270deg); - } - - piechart > div > div.nslice { - position: absolute; - text-align: center; - top: 42px; - width: 100px; - z-index: 103; - } - - piechart > div > div.nslice > div { - background-color: rgba(255, 255, 255, 0.7); - -webkit-border-radius: 7px; - display: inline; - color: black; - font-size: 15px; - font-weight: bold; - margin: 0 auto; - padding: 2px 4px; - text-align: center; - } - - div.color { - background-color: black; - border: 1px solid #4d4d70; - display: inline-block; - vertical-align: middle; - } - - div.color > div { - border: 1px solid white; - display: inline-block; - height: 12px; - width: 12px; - } - - div.name { - display: inline-block; - font-size: 14px; - margin-left: 5px; - vertical-align: middle; - } - </style> -</head><body class="pinstripe"> -<panel> - -<a class="giant-button" style="height: 149px"> - <piechart><div> - <div id="system-left"></div> - <div id="system-right"> - <div class="lslice"></div> - <div class="rslice"></div> - <div class="tslice"></div> - <div class="bslice"></div> - </div> - <div class="nslice"><div id="system-size"></div></div> - </div></piechart> - - <label>System</label> - <div class="text">A small partition used to store iPhone OS. Cydia adds a few important programs and libraries.</div> - - <div class="legend" id="system-legend"></div> -</a> - -<a class="giant-button" style="height: 189px"> - <piechart><div> - <div id="private-left"></div> - <div id="private-right"> - <div class="lslice"></div> - <div class="rslice"></div> - <div class="tslice"></div> - <div class="bslice"></div> - </div> - <div class="nslice"><div id="private-size"></div></div> - </div></piechart> - - <label>Private</label> - <div class="text">Most content is stored on this partition: from applications (Cydia and Apple) to multimedia.</div> - - <div class="legend" id="private-legend"></div> -</a> - -</panel> -</body></html> diff --git a/MobileCydia.app/storage.js b/MobileCydia.app/storage.js deleted file mode 100644 index ae8cb85..0000000 --- a/MobileCydia.app/storage.js +++ /dev/null @@ -1,88 +0,0 @@ -var colors = ["#9090e0", "#4d4d70", "#7d7da0", "#7da0e0", "#d0d0f0", "#7070e0"]; - -var list = function (legend, color, name, value) { - legend.append('<div class="key">' + - '<div class="color" style="background-color: ' + color + '"><div></div></div>' + - '<div class="name">' + name + ' (' + Math.round(value * 1000) / 10 + '%)</div>' + - '</div>'); -}; - -console.log(cydia.statfs("/")); - -var cut = function (parent, color, fraction, z) { - var deg = Math.round(360 * fraction); - if (deg < 2) - deg = 2; - parent.append('<div class="xslice" style="' + - 'background-color: ' + color + ';' + - '-webkit-transform: rotate(' + deg + 'deg);' + - 'z-index: ' + z + ';' + - '"></div>'); -}; - -var chart = function (right, left, slices) { - var total = 0; - for (var i = 0; i != slices.length; ++i) { - var slice = slices[i]; - var z = slices.length - i; - if (slice[1] > 0.5) - cut(right, slice[0], total + 0.5, z); - total += slice[1]; - cut(total > 0.5 ? left : right, slice[0], total, z); - } -}; - -var setup = function (name, root, folders) { - var size = $("#" + name + "-size"); - var statfs = cydia.statfs(root); - var kb = statfs[0] * statfs[1] / 1024; - var total = kb / 1024; - - var unit; - if (total < 1000) - unit = 'M'; - else { - total = total / 1024; - unit = 'G' - } - - size.html(Math.round(total * 10) / 10 + " " + unit); - - var legend = $("#" + name + "-legend"); - var used = 0; - - var slices = []; - - if (folders != null) - for (var i = 0; i != folders.length; ++i) { - var folder = folders[i]; - var usage = cydia.du(folder[1]); - if (usage == null) - usage = 0; - var color = colors[i + 2]; - var percent = usage / kb; - list(legend, color, folder[0], percent); - slices.push([color, percent]); - used += usage; - } - - var free = statfs[0] * statfs[2] / 1024; - var other = (kb - free - used) / kb; - - slices.push([colors[0], other]); - chart($("#" + name + "-right"), $("#" + name + "-left"), slices); - - list(legend, colors[0], folders == null ? "Used" : "Other", other); - list(legend, colors[1], "Free", statfs[2] / statfs[1]); -}; - -$(function () { - setup("system", "/", null); - - setup("private", "/private/var", [ - ["Themes", "/Library/Themes/"], - ["iTunes", "/var/mobile/Media/iTunes_Control/"], - ["App Store", "/var/mobile/Applications/"], - ["Camera", "/var/mobile/Media/DCIM/"] - ]); -}); diff --git a/MobileCydia.app/storage.png b/MobileCydia.app/storage.png Binary files differdeleted file mode 100644 index 3cefef0..0000000 --- a/MobileCydia.app/storage.png +++ /dev/null diff --git a/MobileCydia.app/trusted.png b/MobileCydia.app/trusted.png Binary files differdeleted file mode 100644 index de249eb..0000000 --- a/MobileCydia.app/trusted.png +++ /dev/null diff --git a/MobileCydia.app/version.png b/MobileCydia.app/version.png Binary files differdeleted file mode 100644 index fd1eec1..0000000 --- a/MobileCydia.app/version.png +++ /dev/null diff --git a/MobileCydia.app/warning.png b/MobileCydia.app/warning.png Binary files differdeleted file mode 100644 index 8d3e5df..0000000 --- a/MobileCydia.app/warning.png +++ /dev/null diff --git a/MobileCydia.app/web.png b/MobileCydia.app/web.png Binary files differdeleted file mode 100644 index a4f04e3..0000000 --- a/MobileCydia.app/web.png +++ /dev/null |