mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-05-11 23:05:41 +03:00
feat(riot-v5): upgrade remove-image and copy-to-clipboard
This commit is contained in:
parent
9c303d32c7
commit
669c3399d0
9 changed files with 186 additions and 147 deletions
|
@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
catalog-elements-limit="{ state.catalogElementsLimit }" />
|
||||
</route>
|
||||
<route path="{baseRoute}taglist/(.*)">
|
||||
<tag-list registry-url="{ state.registryUrl }" registry-name="{ state.name }"
|
||||
<tag-list registry-url="{ state.registryUrl }" registry-name="{ state.name }" pull-url="{ state.pullUrl }"
|
||||
image="{ router.getTagListImage() }" show-content-digest="{props.showContentDigest}"
|
||||
is-image-remove-activated="{props.isImageRemoveActivated}"></tag-list>
|
||||
</route>
|
||||
|
@ -73,6 +73,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
''));
|
||||
this.state.name = props.name || stripHttps(props.registryUrl);
|
||||
this.state.catalogElementsLimit = props.catalogElementsLimit || 100000;
|
||||
this.state.pullUrl = this.pullUrl(props);
|
||||
},
|
||||
pullUrl(props) {
|
||||
const url = props.pullUrl ||
|
||||
(props.registryUrl && props.registryUrl.length > 0 && props.registryUrl) ||
|
||||
window.location.host;
|
||||
return stripHttps(url);
|
||||
},
|
||||
baseRoute: '/(\\?[^#]*)?(#!)?(/?)',
|
||||
router,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue