From 8bbfc5c390c334e66741d5a639d4b17c8fe6fcea Mon Sep 17 00:00:00 2001 From: Joxit Date: Fri, 12 May 2023 07:23:59 +0200 Subject: [PATCH] feat(taglist-order): add new option `taglist-order` --- src/components/docker-registry-ui.riot | 3 +++ src/components/tag-list/tag-list.riot | 9 ++++++--- src/index.html | 2 ++ src/scripts/docker-image.js | 27 -------------------------- 4 files changed, 11 insertions(+), 30 deletions(-) diff --git a/src/components/docker-registry-ui.riot b/src/components/docker-registry-ui.riot index c9d1cc0..c140ece 100644 --- a/src/components/docker-registry-ui.riot +++ b/src/components/docker-registry-ui.riot @@ -55,6 +55,7 @@ along with this program. If not, see . filter-results="{ state.filter }" on-authentication="{ onAuthentication }" use-control-cache-header="{ truthy(props.useControlCacheHeader) }" + taglist-order="{ taglistOrderParser(props.taglistOrder) }" > @@ -129,6 +130,7 @@ along with this program. If not, see . import { stripHttps, getRegistryServers, setRegistryServers, truthy, stringToArray } from '../scripts/utils'; import router from '../scripts/router'; import { loadTheme } from '../scripts/theme'; + import { taglistOrderParser } from '../scripts/taglist-order'; export default { components: { @@ -241,6 +243,7 @@ along with this program. If not, see . version, truthy, stringToArray, + taglistOrderParser, };