From 28649c6893602404cc00c859de8c20eed10984b7 Mon Sep 17 00:00:00 2001 From: Joxit Date: Wed, 1 Jun 2016 20:06:33 +0200 Subject: [PATCH] [rg-router] Add router for taglist and catalog --- app.tag | 28 +++++++++++++++++ catalog.tag | 13 ++++++-- index.html | 5 +-- package.json | 3 +- script.js | 1 + taglist.tag | 89 ++++++++++++++++++++++++++++------------------------ 6 files changed, 92 insertions(+), 47 deletions(-) create mode 100644 app.tag diff --git a/app.tag b/app.tag new file mode 100644 index 0000000..db7f529 --- /dev/null +++ b/app.tag @@ -0,0 +1,28 @@ + + + + + + diff --git a/catalog.tag b/catalog.tag index 5fc0d5b..edc2a69 100644 --- a/catalog.tag +++ b/catalog.tag @@ -16,14 +16,14 @@ --> -
+

Repositories of { registryUI.url() }

    -
  • +
  • send { item } @@ -39,6 +39,7 @@ diff --git a/index.html b/index.html index 0de3690..cf5ff73 100644 --- a/index.html +++ b/index.html @@ -40,8 +40,7 @@
    - - +
    @@ -61,7 +60,9 @@ + + diff --git a/package.json b/package.json index 6e40005..6412084 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "material-design-lite": "^1.1", "material-design-icons": "^2.2", "dialog-polyfill": "^0.4", - "riot": "^2.3" + "riot": "^2.3", + "riotgear-router": "^1.3.1" } } diff --git a/script.js b/script.js index c186cae..ba579b8 100644 --- a/script.js +++ b/script.js @@ -57,3 +57,4 @@ riot.mount('taglist'); riot.mount('add'); riot.mount('change'); riot.mount('menu'); +riot.mount('app'); diff --git a/taglist.tag b/taglist.tag index 23edda2..0c97c8e 100644 --- a/taglist.tag +++ b/taglist.tag @@ -16,15 +16,15 @@ --> -
    +
    - + arrow_back

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

    -
    +
    @@ -48,48 +48,52 @@