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

+ Repositories of { state.name } +
{ state.length } images
+

+
+
+
+ +
+ + +
\ 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 .
+