From 178cd5a59d5a530b1c1204be7d6c07e43c0e5c8f Mon Sep 17 00:00:00 2001 From: Joxit Date: Mon, 11 May 2020 11:13:07 +0200 Subject: [PATCH] chore: move electron to examples folder --- README.md | 7 +++++-- {electron => examples/electron}/.gitignore | 0 {electron => examples/electron}/README.md | 0 .../electron}/authentication/index.html | 0 .../electron}/authentication/index.tsx | 0 .../electron}/doc/assets/authentication.gif | Bin {electron => examples/electron}/index.js | 0 {electron => examples/electron}/package.json | 2 +- package.json | 2 +- 9 files changed, 7 insertions(+), 4 deletions(-) rename {electron => examples/electron}/.gitignore (100%) rename {electron => examples/electron}/README.md (100%) rename {electron => examples/electron}/authentication/index.html (100%) rename {electron => examples/electron}/authentication/index.tsx (100%) rename {electron => examples/electron}/doc/assets/authentication.gif (100%) rename {electron => examples/electron}/index.js (100%) rename {electron => examples/electron}/package.json (94%) diff --git a/README.md b/README.md index 4f61e6e..bab4bab 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,8 @@ This web user interface uses [Riot](https://github.com/Riot/riot) the react-like - This fixes the issue [#88](https://github.com/Joxit/docker-registry-ui/issues/88). More about this in [#113](https://github.com/Joxit/docker-registry-ui/issues/113). - Why DELETE fails with 401 status code (using Basic Auth) ? - This is caused by a bug in docker registry, I suggest to have your UI on the same domain than your registry e.g. registry.example.com/ui/. (see [#104](https://github.com/Joxit/docker-registry-ui/issues/104)). +- Can I use the docker registry ui as a standalone application (with Electron) ? + - Yes, check out the example [here](https://github.com/Joxit/docker-registry-ui/tree/master/examples/electron). (see [#129](https://github.com/Joxit/docker-registry-ui/pull/129)) Need more informations ? Try my [examples](https://github.com/Joxit/docker-registry-ui/tree/master/examples) or open an issue. @@ -237,7 +239,7 @@ auth: ## Standalone Application If you do not want to install the docker-registry-ui on your server, you may -check out the [Electron](electron/README.md) standalone application. +check out the [Electron](examples/electron/README.md) standalone application. ## All examples @@ -249,4 +251,5 @@ check out the [Electron](electron/README.md) standalone application. - [Use docker-registry-ui with HTTPS](https://github.com/Joxit/docker-registry-ui/tree/master/examples/issue-20) ([#20](https://github.com/Joxit/docker-registry-ui/issues/20)) - [Unable to push image when docker-registry-ui is used as a proxy on non 80 port](https://github.com/Joxit/docker-registry-ui/tree/master/examples/issue-88) ([#88](https://github.com/Joxit/docker-registry-ui/issues/88)) - [Add custom headers bases on environment variable and/or file when the ui is used as proxy](https://github.com/Joxit/docker-registry-ui/tree/master/examples/proxy-headers) ([#89](https://github.com/Joxit/docker-registry-ui/pull/89)) -- [UI showing same sha256 content digest for all tags + Delete is not working](https://github.com/Joxit/docker-registry-ui/tree/master/examples/issue-116) ([#116](https://github.com/Joxit/docker-registry-ui/issues/116)) \ No newline at end of file +- [UI showing same sha256 content digest for all tags + Delete is not working](https://github.com/Joxit/docker-registry-ui/tree/master/examples/issue-116) ([#116](https://github.com/Joxit/docker-registry-ui/issues/116)) +- [Electron-based Standalone Application](https://github.com/Joxit/docker-registry-ui/tree/master/examples/electron) ([#129](https://github.com/Joxit/docker-registry-ui/pull/129)) \ No newline at end of file diff --git a/electron/.gitignore b/examples/electron/.gitignore similarity index 100% rename from electron/.gitignore rename to examples/electron/.gitignore diff --git a/electron/README.md b/examples/electron/README.md similarity index 100% rename from electron/README.md rename to examples/electron/README.md diff --git a/electron/authentication/index.html b/examples/electron/authentication/index.html similarity index 100% rename from electron/authentication/index.html rename to examples/electron/authentication/index.html diff --git a/electron/authentication/index.tsx b/examples/electron/authentication/index.tsx similarity index 100% rename from electron/authentication/index.tsx rename to examples/electron/authentication/index.tsx diff --git a/electron/doc/assets/authentication.gif b/examples/electron/doc/assets/authentication.gif similarity index 100% rename from electron/doc/assets/authentication.gif rename to examples/electron/doc/assets/authentication.gif diff --git a/electron/index.js b/examples/electron/index.js similarity index 100% rename from electron/index.js rename to examples/electron/index.js diff --git a/electron/package.json b/examples/electron/package.json similarity index 94% rename from electron/package.json rename to examples/electron/package.json index 8564b03..08f3b2b 100644 --- a/electron/package.json +++ b/examples/electron/package.json @@ -10,7 +10,7 @@ "build": "parcel build -d dist/authentication -t electron --public-url ./ authentication/index.html", "rebuild": "electron-rebuild -f -w keytar", "package": "electron-packager --overwrite .", - "sync": "copyfiles ../dist/* ../dist/**/* out", + "sync": "copyfiles ../../dist/* ../../dist/**/* ./examples/out", "dist": "npm run rebuild && npm run sync && npm run build && npm run package" }, "dependencies": { diff --git a/package.json b/package.json index c339131..a3eb1a9 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.4.8", "scripts": { "build": "./node_modules/gulp/bin/gulp.js build", - "build:electron": "npm run build && cd electron && npm install && npm run dist" + "build:electron": "npm run build && cd examples/electron && npm install && npm run dist" }, "repository": { "type": "git",