]> git.saurik.com Git - cydia.git/commitdiff
Witness the return of manage.html and cydia://storage. v1.1.0%b7
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 14 Mar 2011 14:17:45 +0000 (07:17 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 14 Mar 2011 14:41:21 +0000 (07:41 -0700)
MobileCydia.app/manage.html [new file with mode: 0644]
MobileCydia.app/packages.png [new file with mode: 0644]
MobileCydia.app/sources.png [new file with mode: 0644]
MobileCydia.app/storage.png [new file with mode: 0644]
MobileCydia.mm

diff --git a/MobileCydia.app/manage.html b/MobileCydia.app/manage.html
new file mode 100644 (file)
index 0000000..55e7462
--- /dev/null
@@ -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
new file mode 100644 (file)
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 (file)
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 (file)
index 0000000..3cefef0
Binary files /dev/null and b/MobileCydia.app/storage.png differ
index 3e13cbcc07eac22a5978aa87a1b1d69d2d50b5d8..3668fc1d552d1427d736d5d80b4977909d9f1d6f 100644 (file)
@@ -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];
         }