From: Jay Freeman (saurik) Date: Mon, 14 Mar 2011 14:17:45 +0000 (-0700) Subject: Witness the return of manage.html and cydia://storage. X-Git-Tag: v1.1.0%b7^0 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/76380d62f2508e88f8ee0a4fd43ee7709b5beb4c?ds=inline Witness the return of manage.html and cydia://storage. --- diff --git a/MobileCydia.app/manage.html b/MobileCydia.app/manage.html new file mode 100644 index 00000000..55e7462d --- /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 00000000..404fe0cd 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 00000000..e8422e49 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 00000000..3cefef07 Binary files /dev/null and b/MobileCydia.app/storage.png differ diff --git a/MobileCydia.mm b/MobileCydia.mm index 3e13cbcc..3668fc1d 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]; }