diff --git a/README.md b/README.md index 7c2c226..c87ad53 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ Some env options are available for use this interface for **only one server** (w - `CATALOG_DEFAULT_EXPANDED`: Expand by default all repositories in catalog (see [#302](https://github.com/Joxit/docker-registry-ui/issues/302)). (default: `false`). Since 2.5.0 - `CATALOG_MIN_BRANCHES`: Set the minimum repository/namespace to expand (e.g. `joxit/docker-registry-ui` `joxit/` is the repository/namespace). Can be 0 to disable branching. (see [#319](https://github.com/Joxit/docker-registry-ui/pull/319)). (default: `1`). Since 2.5.0 - `CATALOG_MAX_BRANCHES`: Set the maximum repository/namespace to expand (e.g. `joxit/docker-registry-ui` `joxit/` is the repository/namespace). Can be 0 to disable branching. (see [#319](https://github.com/Joxit/docker-registry-ui/pull/319)). (default: `1`). Since 2.5.0 +- `TAGLIST_PAGE_SIZE`: Set the number of tags to display in one page. (default: `100`). Since 2.5.0 There are some examples with [docker-compose](https://docs.docker.com/compose/) and docker-registry-ui as proxy [here](https://github.com/Joxit/docker-registry-ui/tree/main/examples/ui-as-proxy/) or docker-registry-ui as standalone [here](https://github.com/Joxit/docker-registry-ui/tree/main/examples/ui-as-standalone/). diff --git a/bin/90-docker-registry-ui.sh b/bin/90-docker-registry-ui.sh index 94fd0ab..be486ca 100755 --- a/bin/90-docker-registry-ui.sh +++ b/bin/90-docker-registry-ui.sh @@ -15,6 +15,7 @@ sed -i "s~\${TAGLIST_ORDER}~${TAGLIST_ORDER}~" index.html sed -i "s~\${CATALOG_DEFAULT_EXPANDED}~${CATALOG_DEFAULT_EXPANDED}~" index.html sed -i "s~\${CATALOG_MIN_BRANCHES}~${CATALOG_MIN_BRANCHES}~" index.html sed -i "s~\${CATALOG_MAX_BRANCHES}~${CATALOG_MAX_BRANCHES}~" index.html +sed -i "s~\${TAGLIST_PAGE_SIZE}~${TAGLIST_PAGE_SIZE}~" index.html grep -o 'THEME[A-Z_]*' index.html | while read e; do sed -i "s~\${$e}~$(printenv $e)~" index.html diff --git a/src/components/docker-registry-ui.riot b/src/components/docker-registry-ui.riot index 1ea7032..5ce16db 100644 --- a/src/components/docker-registry-ui.riot +++ b/src/components/docker-registry-ui.riot @@ -74,6 +74,7 @@ along with this program. If not, see . on-authentication="{ onAuthentication }" use-control-cache-header="{ truthy(props.useControlCacheHeader) }" taglist-order="{ props.taglistOrder }" + tags-per-page="{ props.tagsPerPage }" > diff --git a/src/components/tag-list/tag-list.riot b/src/components/tag-list/tag-list.riot index 4762f33..ca9e7b2 100644 --- a/src/components/tag-list/tag-list.riot +++ b/src/components/tag-list/tag-list.riot @@ -39,7 +39,10 @@ along with this program. If not, see . - + . on-notify="{ props.onNotify }" filter-results="{ props.filterResults }" on-authentication="{ props.onAuthentication }" + tags-per-page="{ props.tagsPerPage }" > - +