]>
git.saurik.com Git - cydia.git/blob - Cydia.app/package.js
2 "name": "MobileTerminal",
5 "name": "Allen Porter",
6 "address": "allen.porter@gmail.com"
8 //"depiction": "http://planet-iphones.com/repository/info/chromium1.3.php",
9 "depiction": "http://cydia.saurik.com/terminal.html",
10 "description": "this is a sample description",
11 "homepage": "http://cydia.saurik.com/terminal.html",
12 "installed": "286u-4",
13 "id": "mobileterminal",
14 "section": "Terminal Support",
17 "name": "Jay Freeman",
18 "address": "saurik@saurik.com"
21 "name": "Telesphoreo Tangelo",
22 "description": "Distribution of Unix Software for the iPhone"
28 var name
= package.name
;
29 var regarding
= encodeURIComponent("Cydia/APT: " + name
);
31 $("#name").html(name
);
32 $("#latest").html(package.latest
);
34 var author
= package.author
;
36 $(".author").remove();
38 $("#author").html(author
.name
);
39 $("#author-href").href("mailto:" + author
.address
+ "?subject=" + regarding
);
42 //$("#notice-src").src("http://saurik.cachefly.net/notice/" + encodeURIComponent(id) + ".html");
44 var depiction
= package.depiction
;
45 if (depiction
== null)
46 $(".depiction").remove();
48 $(".description").display("none");
49 $("#depiction-src").src(depiction
);
52 var description
= package.description
;
53 if (description
== null)
54 description
= package.tagline
;
56 description
= description
.replace(/\n/g, "<br/>");
57 $("#description").html(description
);
59 var homepage
= package.homepage
;
61 $(".homepage").remove();
63 $("#homepage-href").href(homepage
);
65 var installed
= package.installed
;
66 if (installed
== null)
67 $(".installed").remove();
69 $("#installed").html(installed
);
70 $("#files-href").href("cydia://files/" + id
);
75 var section
= package.section
;
77 $(".section").remove();
79 $("#section").html(package.section
);
81 var size
= package.size
;
85 $("#size").html(size
/ 1024 + " kB");
87 var maintainer
= package.maintainer
;
88 if (maintainer
== null)
89 $(".maintainer").remove();
91 $("#maintainer").html(maintainer
.name
);
92 $("#maintainer-href").href("mailto:" + maintainer
.address
+ "?subject=" + regarding
);
95 var sponsor
= package.sponsor
;
97 $(".sponsor").remove();
99 $("#sponsor").html(sponsor
.name
);
100 $("#sponsor-href").href(sponsor
.address
);
103 var source
= package.source
;
104 if (source
== null) {
105 $(".source").remove();
106 $(".trusted").remove();
108 $("#source-name").html(source
.name
);
111 $(".trusted").remove();
113 var description
= source
.description
;
114 if (description
== null)
115 $(".source-description").remove();
117 $("#source-description").html(description
);