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:
Jones Magloire 2016-06-08 22:42:58 +02:00
commit c51a659bcb
8 changed files with 124 additions and 65 deletions

View file

@ -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');