mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-29 00:19:54 +03:00
Merge pull request #8 from Joxit/rg-router
Rg router Add router navigation for taglist and catalog. Route looks like http://mydomaine.com/#!/taglist// for a tag listing and http://mydomaine.com/#!/ for catalog
This commit is contained in:
commit
c51a659bcb
8 changed files with 124 additions and 65 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue