mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-30 08:59:54 +03:00
feat(riot-v5): export docker image class and utils function
This commit is contained in:
parent
ea21483346
commit
7beac85f25
4 changed files with 210 additions and 31 deletions
|
@ -1,4 +1,4 @@
|
|||
import { route, router, getCurrentRoute } from '@riotjs/route';
|
||||
import { router, getCurrentRoute } from '@riotjs/route';
|
||||
|
||||
function baseUrl() {
|
||||
return getCurrentRoute().replace(/#!(.*)/, '');
|
||||
|
@ -11,4 +11,7 @@ export default {
|
|||
taglist(image) {
|
||||
router.push(`${baseUrl()}#!/taglist/${image}`);
|
||||
},
|
||||
getTagListImage() {
|
||||
return getCurrentRoute().replace(/^.*(#!)?\/?taglist\//, '');
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue