feat(riot-v5): export docker image class and utils function

This commit is contained in:
Joxit 2021-03-07 11:24:50 +01:00
parent ea21483346
commit 7beac85f25
No known key found for this signature in database
GPG key ID: F526592B8E012263
4 changed files with 210 additions and 31 deletions

View file

@ -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\//, '');
}
};