diff --git a/package.json b/package.json
index 1fa4412..775b7dd 100644
--- a/package.json
+++ b/package.json
@@ -32,6 +32,7 @@
"rollup": "^2.34.2",
"rollup-plugin-app-utils": "^1.0.6",
"rollup-plugin-commonjs": "^10.1.0",
+ "rollup-plugin-copy": "^3.4.0",
"rollup-plugin-riot": "^5.0.0",
"rollup-plugin-scss": "^2.6.1",
"rollup-plugin-serve": "^1.1.0",
diff --git a/rollup.config.js b/rollup.config.js
index 3fb8cbe..674c216 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -9,6 +9,7 @@ import serve from 'rollup-plugin-serve';
import html from '@rollup/plugin-html';
import htmlUseref from './rollup/html-useref';
import json from '@rollup/plugin-json';
+import copy from 'rollup-plugin-copy'
const useServe = process.env.ROLLUP_SERVE === 'true';
const output = useServe ? '.serve' : 'dist';
@@ -21,6 +22,12 @@ const plugins = [
scss({ output: `./${output}/docker-registry-ui.css`, outputStyle: 'compressed' }),
babel({ babelHelpers: 'bundled', presets: ['@babel/env'] }),
html({ template: () => htmlUseref('./src/index.html') }),
+ copy({
+ targets: [
+ { src: 'src/fonts', dest: `${output}` },
+ { src: 'src/images', dest: `${output}` },
+ ]
+ })
];
if (useServe) {
diff --git a/src/components/catalog/catalog.riot b/src/components/catalog/catalog.riot
new file mode 100644
index 0000000..550eb81
--- /dev/null
+++ b/src/components/catalog/catalog.riot
@@ -0,0 +1,107 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/docker-registry-ui.riot b/src/components/docker-registry-ui.riot
index 514f9f6..ecbf074 100644
--- a/src/components/docker-registry-ui.riot
+++ b/src/components/docker-registry-ui.riot
@@ -21,6 +21,8 @@ along with this program. If not, see .
+
@@ -41,13 +43,23 @@ along with this program. If not, see .
} from '../../package.json';
import MaterialNavbar from 'riot-mui/src/material-elements/material-navbar/material-navbar.riot';
import MaterialFooter from 'riot-mui/src/material-elements/material-footer/material-footer.riot';
+ import Catalog from './catalog/catalog.riot';
+ import {
+ stripHttps
+ } from '../scripts/utils';
export default {
components: {
MaterialNavbar,
- MaterialFooter
+ MaterialFooter,
+ Catalog
+ },
+ onBeforeMount(props) {
+ this.state.registryUrl = props.registryUrl || (window.location.origin + window.location.pathname.replace(/\/+$/,
+ ''));
+ this.state.name = props.name || stripHttps(props.registryUrl);
+ this.state.catalogElementsLimit = props.catalogElementsLimit || 100000;
},
- onMounted() {},
version
}
diff --git a/src/index.html b/src/index.html
index e265a20..e264c3b 100644
--- a/src/index.html
+++ b/src/index.html
@@ -34,7 +34,55 @@
-
+
@@ -63,4 +111,4 @@
-