diff --git a/add.tag b/add.tag index 01476bc..15f9ab2 100644 --- a/add.tag +++ b/add.tag @@ -47,6 +47,7 @@ registryUI.addServer(registryUI.addTag.addServer.value); } registryUI.addTag.addServer.value = ''; + rg.router.go('home'); registryUI.addTag.dialog.close(); }; registryUI.addTag.close = function () { diff --git a/app.tag b/app.tag new file mode 100644 index 0000000..98c9f78 --- /dev/null +++ b/app.tag @@ -0,0 +1,41 @@ + + + + + + diff --git a/catalog.tag b/catalog.tag index 5fc0d5b..2f44473 100644 --- a/catalog.tag +++ b/catalog.tag @@ -16,14 +16,14 @@ --> -
+

Repositories of { registryUI.url() }

-
+
    -
  • +
  • send { item } @@ -38,15 +38,15 @@
diff --git a/change.tag b/change.tag index bc234de..02471b5 100644 --- a/change.tag +++ b/change.tag @@ -10,7 +10,7 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . --> @@ -42,6 +42,7 @@ }); registryUI.changeTag.show = function () { registryUI.changeTag.update(); + registryUI.changeTag.serverList.value = registryUI.url();; registryUI.changeTag.dialog.showModal(); }; registryUI.changeTag.change = function () { @@ -49,6 +50,7 @@ registryUI.changeServer(registryUI.changeTag.serverList.value); } registryUI.changeTag.serverList.value = ''; + rg.router.go('home'); registryUI.changeTag.dialog.close(); }; registryUI.changeTag.close = function () { 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 4764554..24c316f 100644 --- a/script.js +++ b/script.js @@ -48,10 +48,9 @@ registryUI.changeServer = function(url) { } registryServer.splice(index, 1); registryServer = [url].concat(registryServer); - registryUI.registryServer.servers = registryServer; localStorage.setItem('registryServer', JSON.stringify(registryServer)); } -var catalog = {}; +registryUI.catalog = {}; registryUI.taglist = {}; riot.mount('catalog'); @@ -59,3 +58,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..ee0f0c1 100644 --- a/taglist.tag +++ b/taglist.tag @@ -16,15 +16,15 @@ --> -
+
- + arrow_back

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

-
+
@@ -48,48 +48,53 @@