From 76380d62f2508e88f8ee0a4fd43ee7709b5beb4c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 14 Mar 2011 07:17:45 -0700 Subject: Witness the return of manage.html and cydia://storage. --- MobileCydia.app/manage.html | 100 +++++++++++++++++++++++++++++++++++++++++++ MobileCydia.app/packages.png | Bin 0 -> 8884 bytes MobileCydia.app/sources.png | Bin 0 -> 22251 bytes MobileCydia.app/storage.png | Bin 0 -> 14343 bytes MobileCydia.mm | 10 +++-- 5 files changed, 107 insertions(+), 3 deletions(-) create mode 100644 MobileCydia.app/manage.html create mode 100644 MobileCydia.app/packages.png create mode 100644 MobileCydia.app/sources.png create mode 100644 MobileCydia.app/storage.png 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 @@ + + + + + + + + + + +
+ +
diff --git a/MobileCydia.app/packages.png b/MobileCydia.app/packages.png new file mode 100644 index 0000000..404fe0c Binary files /dev/null and b/MobileCydia.app/packages.png differ diff --git a/MobileCydia.app/sources.png b/MobileCydia.app/sources.png new file mode 100644 index 0000000..e8422e4 Binary files /dev/null and b/MobileCydia.app/sources.png differ diff --git a/MobileCydia.app/storage.png b/MobileCydia.app/storage.png new file mode 100644 index 0000000..3cefef0 Binary files /dev/null and b/MobileCydia.app/storage.png differ 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]; } -- cgit v1.2.3