feat(riot-v5): upgrade remove-image and copy-to-clipboard

This commit is contained in:
Joxit 2021-03-16 21:44:42 +01:00
parent 9c303d32c7
commit 669c3399d0
No known key found for this signature in database
GPG key ID: F526592B8E012263
9 changed files with 186 additions and 147 deletions

View file

@ -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,