From f72e030dad3720cea40bee9002f53f63dcf23b0e Mon Sep 17 00:00:00 2001 From: Joxit Date: Mon, 2 May 2016 23:49:35 +0200 Subject: [PATCH 1/2] [taglist] Add taglist card tag --- catalog.tag | 4 +-- index.html | 2 ++ script.js | 5 ++-- style.css | 2 +- taglist.tag | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 89 insertions(+), 5 deletions(-) create mode 100644 taglist.tag diff --git a/catalog.tag b/catalog.tag index f7ac4f8..8d460c4 100644 --- a/catalog.tag +++ b/catalog.tag @@ -16,7 +16,7 @@ --> -
+

Repositories of { registryUI.url() }

@@ -25,7 +25,7 @@ class="mdl-spinner mdl-js-spinner is-active section-centerd">
diff --git a/index.html b/index.html index 9d2fe80..660f360 100644 --- a/index.html +++ b/index.html @@ -51,6 +51,7 @@
+
@@ -64,6 +65,7 @@
+ diff --git a/script.js b/script.js index 2e82ee0..671bc11 100644 --- a/script.js +++ b/script.js @@ -19,6 +19,7 @@ registryUI.url = function () { return localStorage.getItem('registryServer'); } var catalog = {}; - - +registryUI.taglist = {}; +registryUI.content = 'catalog'; riot.mount('catalog'); +riot.mount('taglist'); diff --git a/style.css b/style.css index 1682244..d23225e 100644 --- a/style.css +++ b/style.css @@ -19,7 +19,7 @@ padding-bottom: 8px; } -.catalog { +.catalog, .taglist { padding: 16px; } diff --git a/taglist.tag b/taglist.tag new file mode 100644 index 0000000..3014f65 --- /dev/null +++ b/taglist.tag @@ -0,0 +1,81 @@ + + + +
+
+
+

Tags of { registryUI.url() + '/' + registryUI.taglist.name }

+
+
+
    +
  • + { item } +
  • +
+
+
+
+ +
+
+ + + +
From 7f008b87f374707141bd1d821a64aa65bfa0b3e5 Mon Sep 17 00:00:00 2001 From: Joxit Date: Tue, 3 May 2016 00:08:39 +0200 Subject: [PATCH 2/2] [taglist] Add back fonctionnality, go to catalog again. --- catalog.tag | 68 ++++++++++++++++++++++++++++------------------------- script.js | 2 +- taglist.tag | 1 + 3 files changed, 38 insertions(+), 33 deletions(-) diff --git a/catalog.tag b/catalog.tag index 8d460c4..676bf4e 100644 --- a/catalog.tag +++ b/catalog.tag @@ -37,40 +37,44 @@ diff --git a/script.js b/script.js index 671bc11..ce095cd 100644 --- a/script.js +++ b/script.js @@ -20,6 +20,6 @@ registryUI.url = function () { } var catalog = {}; registryUI.taglist = {}; -registryUI.content = 'catalog'; riot.mount('catalog'); riot.mount('taglist'); + diff --git a/taglist.tag b/taglist.tag index 3014f65..07341e8 100644 --- a/taglist.tag +++ b/taglist.tag @@ -19,6 +19,7 @@
+ arrow_back

Tags of { registryUI.url() + '/' + registryUI.taglist.name }