diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-14 07:17:45 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-14 07:41:21 -0700 |
commit | 76380d62f2508e88f8ee0a4fd43ee7709b5beb4c (patch) | |
tree | c8aaf521f119230b3874a1a7656ecba91b01f1f1 | |
parent | 2d5f3bfcb480536bdc9ecca29ce50267078d3f73 (diff) |
Witness the return of manage.html and cydia://storage.v1.1.0%b7
-rw-r--r-- | MobileCydia.app/manage.html | 100 | ||||
-rw-r--r-- | MobileCydia.app/packages.png | bin | 0 -> 8884 bytes | |||
-rw-r--r-- | MobileCydia.app/sources.png | bin | 0 -> 22251 bytes | |||
-rw-r--r-- | MobileCydia.app/storage.png | bin | 0 -> 14343 bytes | |||
-rw-r--r-- | MobileCydia.mm | 10 |
5 files changed, 107 insertions, 3 deletions
diff --git a/MobileCydia.app/manage.html b/MobileCydia.app/manage.html new file mode 100644 index 0000000..55e7462 --- /dev/null +++ b/MobileCydia.app/manage.html @@ -0,0 +1,100 @@ +<?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/packages.png b/MobileCydia.app/packages.png Binary files differnew file mode 100644 index 0000000..404fe0c --- /dev/null +++ b/MobileCydia.app/packages.png diff --git a/MobileCydia.app/sources.png b/MobileCydia.app/sources.png Binary files differnew file mode 100644 index 0000000..e8422e4 --- /dev/null +++ b/MobileCydia.app/sources.png diff --git a/MobileCydia.app/storage.png b/MobileCydia.app/storage.png Binary files differnew file mode 100644 index 0000000..3cefef0 --- /dev/null +++ b/MobileCydia.app/storage.png diff --git a/MobileCydia.mm b/MobileCydia.mm index 3e13cbc..3668fc1 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -6546,7 +6546,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { - (id) init { if ((self = [super init]) != nil) { - [self setURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/#!/manage/", UI_]]]; + [self setURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"manage" ofType:@"html"]]]; } return self; } @@ -6571,13 +6571,13 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [delegate_ queue]; } -- (UIBarButtonItem *) customButton { +- (UIBarButtonItem *) rightButton { return Queuing_ ? [[[UIBarButtonItem alloc] initWithTitle:UCLocalize("QUEUE") style:UIBarButtonItemStyleDone target:self action:@selector(queueButtonClicked) - ] autorelease] : [super customButton]; + ] autorelease] : nil; } - (void) queueStatusDidChange { @@ -9498,6 +9498,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { controller = [[[ManageController alloc] init] autorelease]; } + if ([base isEqualToString:@"storage"]) { + controller = [[[CydiaWebViewController alloc] initWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/storage/", UI_]]] autorelease]; + } + if ([base isEqualToString:@"sources"]) { controller = [[[SourcesController alloc] initWithDatabase:database_] autorelease]; } |