diff --git a/rollup.config.js b/rollup.config.js index e5b7275..ba4ba49 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -20,7 +20,7 @@ const plugins = [ nodeResolve(), commonjs(), scss({ output: `./${output}/docker-registry-ui.css`, outputStyle: 'compressed' }), - babel({ babelHelpers: 'bundled', presets: [['@babel/env', { useBuiltIns: 'usage' }]] }), + babel({ babelHelpers: 'bundled', presets: [['@babel/env', { useBuiltIns: 'usage', corejs: { version: "2" } }]] }), html({ template: () => htmlUseref('./src/index.html') }), copy({ targets: [ diff --git a/src/components/docker-registry-ui.riot b/src/components/docker-registry-ui.riot index d3e4605..93b2012 100644 --- a/src/components/docker-registry-ui.riot +++ b/src/components/docker-registry-ui.riot @@ -27,7 +27,7 @@ along with this program. If not, see . catalog-elements-limit="{ state.catalogElementsLimit }" /> - @@ -73,6 +73,13 @@ along with this program. If not, see . '')); 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, diff --git a/src/components/tag-list/copy-to-clipboard.riot b/src/components/tag-list/copy-to-clipboard.riot new file mode 100644 index 0000000..0dfb61c --- /dev/null +++ b/src/components/tag-list/copy-to-clipboard.riot @@ -0,0 +1,55 @@ + + +
+ + + content_copy + +
+ +
\ No newline at end of file diff --git a/src/components/tag-list/remove-image.riot b/src/components/tag-list/remove-image.riot new file mode 100644 index 0000000..0e343b9 --- /dev/null +++ b/src/components/tag-list/remove-image.riot @@ -0,0 +1,78 @@ + + + + delete + + + + + \ No newline at end of file diff --git a/src/components/tag-list/tag-list.riot b/src/components/tag-list/tag-list.riot index 2985e18..641a450 100644 --- a/src/components/tag-list/tag-list.riot +++ b/src/components/tag-list/tag-list.riot @@ -1,5 +1,5 @@ - -
- - - content_copy - -
- -
\ No newline at end of file diff --git a/src/tags/remove-image.riot b/src/tags/remove-image.riot deleted file mode 100644 index 25fbb20..0000000 --- a/src/tags/remove-image.riot +++ /dev/null @@ -1,78 +0,0 @@ - - - - delete - - - -