Permalink
Browse files

Added OpenDataSpace to Samples

Added Applications table to All_Samples
Added NotRIM table to All_Repos
  • Loading branch information...
1 parent 60ef239 commit 3aacfc03f5549ebe1e2b6eb3916fe9518a89cba9 @pelegri pelegri committed Aug 21, 2012
Showing with 120 additions and 72 deletions.
  1. +4 −4 All_Repos.json
  2. +14 −0 All_Repos.md
  3. +17 −1 All_Samples.json
  4. +15 −1 All_Samples.md
  5. +54 −64 js/All_Repos.js
  6. +16 −2 js/All_Samples.js
View
@@ -7,7 +7,7 @@
"branchinfo": "A description of the branches",
"note": "More details about the repository",
"warning": "Special considerations",
- "tags": [ "an array of tags", "reserved tags are:", "extension", "html5", "native", "java", "air", "cascades", "bb10", "playbook", "client", "server" ]
+ "tags": [ "an array of tags", "reserved tags are:", "extension", "html5", "native", "java", "air", "cascades", "bb10", "playbook", "client", "server", "notrim" ]
},
"Alice": {
"desc": "A Lightweight Independent CSS Engine",
@@ -248,19 +248,19 @@
},
"OpenDataSpace-BBJava": {
"desc": "The OpenSource Edition of the java-based client for SSP Europe's SecureDataSpace",
- "url": "http://github.com/blackberry/opendataspace-cascades",
+ "url": "http://github.com/blackberry/opendataspace-bbjava",
"type": "java",
"branches": ["master"],
"note": "This repo is not led by Research in Motion but by SSP Europe",
- "tags": [ "java", "samples", "application" ]
+ "tags": [ "java", "samples", "application", "notrim" ]
},
"OpenDataSpace-Cascades": {
"desc": "The OpenSource Edition of the Cascades-based client for SSP Europe's SecureDataSpace",
"url": "http://github.com/blackberry/opendataspace-cascades",
"type": "native",
"branches": ["master"],
"note": "This repo is not led by Research in Motion but by SSP Europe",
- "tags": [ "native", "samples", "application", "cascades", "bb10" ]
+ "tags": [ "native", "samples", "application", "cascades", "bb10", "notrim" ]
},
"OggVorbis": {
"desc": "Ogg Vorbis encoder and container",
View
@@ -14,7 +14,9 @@ jsfile: All_Repos.js
<li><a href="#repoHtml5">HTML5 Repos</a></li>
<li><a href="#repoNative">Native Repos</a></li>
<li><a href="#repoAir">Adobe AIR Repos</a></li>
+<li><a href="#repoJava">Java Repos</a></li>
<li><a href="#repoOther">Other Repos</a></li>
+<li><a href="#repoNotRim">Not by RIM</a></li>
</ul>
</div>
@@ -66,8 +68,20 @@ We welcome your feedback on how to best present information on our Repositories.
<a href="#top">Back to top</a>
+<div id="repoJava">
+<a href="repoJava"><h2>Java Repositories</h2></a>
+</div>
+
+<a href="#top">Back to top</a>
+
<div id="repoOther">
<a href="repoOther"><h2>Other Repositories</h2></a>
</div>
<a href="#top">Back to top</a>
+
+<div id="repoNotRim">
+<a href="repoNotRim"><h2>Repositories Not led by RIM</h2></a>
+</div>
+
+<a href="#top">Back to top</a>
View
@@ -8,7 +8,7 @@
"warning": "optional warning",
"collection": "number of samples in the collection",
"wiki": "wiki page with more details - still being discussed",
- "tags": [ "an array of tags", "reserved tags are:", "extension", "html5", "native", "java", "air", "cascades", "bb10", "playbook", "client", "server" ]
+ "tags": [ "an array of tags", "reserved tags are:", "extension", "html5", "native", "java", "air", "cascades", "bb10", "playbook", "client", "server", "app", "notrim", "rim" ]
},
"Accelerometer": {
"desc": "How to handle updates from the accelerometer sensor",
@@ -587,6 +587,22 @@
"note": "Samples are intended to be included in the jQuery Mobile Cookbook",
"tags": [ "html5", "client", "bb10", "jquery"]
},
+ "OpenDataSpace-BBJava": {
+ "desc": "The OpenSource Edition of the java-based client for SSP Europe's SecureDataSpace",
+ "url": "http://github.com/blackberry/opendataspace-bbjava",
+ "repo": "OpenDataSpace-BBJava",
+ "repourl": "http://github.com/blackberry/opendataspace-bbjava",
+ "note": "<p>This is a production-ready application</p><p>This project is led by SPP Europe</p>",
+ "tags": [ "java", "client", "bbos", "app", "notrim" ]
+ },
+ "OpenDataSpace-Cascades": {
+ "desc": "The OpenSource Edition of the Cascades-based client for SSP Europe's SecureDataSpace",
+ "url": "http://github.com/blackberry/opendataspace-cascades",
+ "repo": "OpenDataSpace-Cascades",
+ "repourl": "http://github.com/blackberry/opendataspace-cascades",
+ "note": "<p>This is a production-ready application</p><p>This project is led by SPP Europe</p>",
+ "tags": [ "cascades", "client", "bb10", "app", "notrim" ]
+ },
"OpenGLES2-ProgrammingGuide": {
"desc": "Port of the samples from the OpenGL ES 2 Programming Guide",
"url": "https://github.com/blackberry/OpenGLES-samples/tree/master/OpenGLES2-ProgrammingGuide",
View
@@ -20,6 +20,7 @@ jsfile: All_Samples.js
<li><a href="#samplesOtherClient">Other Client Samples</a></li>
REMOVE end -->
<li><a href="#samplesServer">Other Samples</a></li>
+<li><a href="#allApps">Applications</a></li>
</ul>
</div>
@@ -171,11 +172,24 @@ We always welcome your feedback on how to best present information in this and r
REMOVE until here -->
-
<div class="dynContent">
<div id="samplesOther">
<a href="samplesOther"><h2>Other Samples</h2></a>
</div>
<a href="#top">Back to top</a>
+</div>
+
+<div class="dynContent">
+<div id="allApps">
+<a href="allApps"><h2>Applications</h2></a>
+
+<p>
+The samples listed in this table are actually production-ready applications.
+</p>
+
+</div>
+
+
+<a href="#top">Back to top</a>
</div>
View
@@ -52,7 +52,7 @@ $.tablesorter.addWidget({
*
* portTag - "yes", "no", "any"
* samplesTag - "yes", "no", "any"
- * typeTag - "html5", "native", "air", "other", "any"
+ * typeTag - "html5", "native", "air", "java", "other", "any", "notrim"
*
* Should rewrite with callback funtions on columns and tags
*/
@@ -94,6 +94,7 @@ function parseRepoData(data,
return true; /* skip this item */
}
+
if ( ( $.inArray("html5", val.tags) < 0) && ( typeTag === "html5") ) {
return true; /* skip this item */
}
@@ -103,12 +104,20 @@ function parseRepoData(data,
if ( ( $.inArray("air", val.tags) < 0) && (typeTag === "air") ) {
return true; /* skip this item */
}
+ if ( ( $.inArray("java", val.tags) < 0) && (typeTag === "java") ) {
+ return true; /* skip this item */
+ }
if ( ( ( $.inArray("air", val.tags) >= 0) ||
( $.inArray("html5", val.tags) >= 0) ||
+ ( $.inArray("java", val.tags) >= 0) ||
( $.inArray("native", val.tags) >= 0) ) && (typeTag === "other") ) {
return true; /* skip this item */
}
+ if ( ( $.inArray("notrim", val.tags) < 0) && (typeTag === "notrim") ) {
+ return true; /* skip this item */
+ }
+
items.push('<tr>' +
/* Start Row */
@@ -187,12 +196,6 @@ $(document).ready(function(){
$.getJSON('/Community/All_Repos.json', function(data) {
- /* Table of Port Repos */
-
- /* Parse JSON data into items
- * column: port, samples, type / tags: port, samples, type */
- items = parseRepoData(data, false, false, true, "yes", "any", "any");
-
/* Stats */
var repoCount = 0;
@@ -206,81 +209,68 @@ $(document).ready(function(){
$("#stats-repocount").html(repoCount); // Inject
- /* Inject into page */
- $('<table/>', {
- 'id': 'repoPortsTable',
- html: items.join('')
- }).appendTo('#repoPorts').addClass("tablesorter");
+ /* Common actions per table */
- $("#repoPortsTable").tablesorter({
- widgets: ['zebra', 'repeatHeaders'] // Stripping looking
+ function injectAndSort(items, name) {
+ if (items.length > 1) {
+ // Inject into page
+ $('<table/>', {
+ 'id': name+'Table',
+ html: items.join('')
+ }).appendTo('#'+name).addClass("tablesorter");
+
+ $("#"+name+"Table").tablesorter({
+ widgets: ['zebra', 'repeatHeaders'] // Stripping looking
+ });
+ }
+ }
- });
- /* Table of HTML5 Repos */
-
- /* Parse JSON data into items
- * column: port, samples, type / tags: port, samples, type */
- items = parseRepoData(data, true, true, false, "any", "any", "html5");
+ /* Table of Port Repos */
- /* Inject into page */
- $('<table/>', {
- 'id': 'repoHtml5Table',
- html: items.join('')
- }).appendTo('#repoHtml5').addClass("tablesorter");
+ injectAndSort(parseRepoData(data, false, false, true, "yes", "any", "any"),
+ // port, samples, type / tags: port, samples, type
+ "repoPorts");
- $("#repoHtml5Table").tablesorter({
- widgets: ['zebra', 'repeatHeaders'] // Stripping looking
- });
+ /* Table of HTML5 Repos */
+ injectAndSort(parseRepoData(data, true, true, false, "any", "any", "html5"),
+ // port, samples, type / tags: port, samples, type
+ "repoHtml5");
+
/* Table of Native Repos */
- /* Parse JSON data into items
- * column: port, samples, type / tags: port, samples, type */
- items = parseRepoData(data, true, true, false, "any", "any", "native");
-
- /* Inject into page */
- $('<table/>', {
- 'id': 'repoNativeTable',
- html: items.join('')
- }).appendTo('#repoNative').addClass("tablesorter");
-
- $("#repoNativeTable").tablesorter({
- widgets: ['zebra', 'repeatHeaders'] // Stripping looking
- });
+ injectAndSort(parseRepoData(data, true, true, false, "any", "any", "native"),
+ // port, samples, type / tags: port, samples, type
+ "repoNative");
/* Table of AIR Repos */
- /* Parse JSON data into items
- * column: port, samples, type / tags: port, samples, type */
- items = parseRepoData(data, true, true, false, "any", "any", "air");
+ injectAndSort(parseRepoData(data, true, true, false, "any", "any", "air"),
+ // port, samples, type / tags: port, samples, type
+ "repoAir");
- /* Inject into page */
- $('<table/>', {
- 'id': 'repoAirTable',
- html: items.join('')
- }).appendTo('#repoAir').addClass("tablesorter");
+ /* Table of Java Repos */
- $("#repoAirTable").tablesorter({
- widgets: ['zebra', 'repeatHeaders'] // Stripping looking
- });
+ injectAndSort(parseRepoData(data, true, true, false, "any", "any", "java"),
+ // port, samples, type / tags: port, samples, type
+ "repoJava");
/* Table of Other Repos */
- /* Parse JSON data into items
- * column: port, samples, type / tags: port, samples, type */
- items = parseRepoData(data, true, true, true, "any", "any", "other");
+ injectAndSort(parseRepoData(data, true, true, true, "any", "any", "other"),
+ // port, samples, type / tags: port, samples, type
+ "repoOther");
- /* Inject into page */
- $('<table/>', {
- 'id': 'repoOtherTable',
- html: items.join('')
- }).appendTo('#repoOther').addClass("tablesorter");
+ /* Table of Repos not led by RIM */
- /* Sort the tables */
- $("#repoOtherTable").tablesorter({
- widgets: ['zebra', 'repeatHeaders'] // Stripping looking
- });
+ injectAndSort(parseRepoData(data, true, true, true, "any", "any", "notrim"),
+ // port, samples, type / tags: port, samples, type
+ "repoNotRim");
+
+
+
+ /* ============ */
/* Add the tooltips */
$("span.question, span.warning").hover(function() {
View
@@ -162,7 +162,7 @@ $.tablesorter.addWidget({
* showTagsData
* -- only one of showNativeColumn and showBB10Column can be true
*
- * typeTag - "html5", "native", "air", "java", "otherclient", "other",
+ * typeTag - "html5", "native", "air", "java", "otherclient", "app", "other",
* extensionTag - true/false
*
* return - items
@@ -214,6 +214,9 @@ function parseRepoData(data,
var isAir = ($.inArray("air", val.tags) >= 0);
var isCascades = ($.inArray("cascades", val.tags) >= 0);
+ var isApp = ($.inArray("app", val.tags) >= 0);
+ var isNotRIM = ($.inArray("notrim", val.tags) >= 0);
+
var isBB10 = ($.inArray("bb10", val.tags) >= 0);
var isPlayBook = ($.inArray("playbook", val.tags) >= 0);
@@ -245,7 +248,12 @@ function parseRepoData(data,
// Other, non-client, samples
if ( (typeTag === "other") &&
- (isClient || isExtension || isHtml5 || isNative || isJava || isAir )) {
+ (isClient || isExtension || isHtml5 || isNative || isJava || isAir || isApp )) {
+ return true; // skip
+ }
+
+ // Special Categories
+ if ( (typeTag === "app") && (! isApp) ) {
return true; // skip
}
@@ -525,6 +533,12 @@ $(document).ready(function(){
// showTypeColumn, showBB10Column, showNativeColumn, showTagsData, typeTag
"samplesOther");
+ /* Applications */
+
+ injectAndSort(parseRepoData(data, false, false, false, true, "app", false),
+ // showTypeColumn, showBB10Column, showNativeColumn, showTagsData, typeTag
+ "allApps");
+
/* ========= */
/* Add the tooltips */

0 comments on commit 3aacfc0

Please sign in to comment.