From 1bad64443d5e3bbe1e6dd27f07a8b2b6eee185ef Mon Sep 17 00:00:00 2001 From: Joxit Date: Tue, 1 Dec 2020 00:34:10 +0100 Subject: [PATCH] refactor: rename *.tag to *.riot and add new FAQ question --- README.md | 3 ++ gulpfile.js | 4 +-- src/index.html | 36 +++++++++---------- src/tags/{app.tag => app.riot} | 0 ...talog-element.tag => catalog-element.riot} | 0 src/tags/{catalog.tag => catalog.riot} | 0 ...o-clipboard.tag => copy-to-clipboard.riot} | 0 src/tags/dialogs/{add.tag => add.riot} | 0 src/tags/dialogs/{change.tag => change.riot} | 0 src/tags/dialogs/{menu.tag => menu.riot} | 0 src/tags/dialogs/{remove.tag => remove.riot} | 0 ...t-digest.tag => image-content-digest.riot} | 0 src/tags/{image-date.tag => image-date.riot} | 0 src/tags/{image-size.tag => image-size.riot} | 0 src/tags/{image-tag.tag => image-tag.riot} | 0 src/tags/{pagination.tag => pagination.riot} | 0 .../{remove-image.tag => remove-image.riot} | 0 ...ory-button.tag => tag-history-button.riot} | 0 ...y-element.tag => tag-history-element.riot} | 0 .../{tag-history.tag => tag-history.riot} | 0 src/tags/{taglist.tag => taglist.riot} | 0 21 files changed, 23 insertions(+), 20 deletions(-) rename src/tags/{app.tag => app.riot} (100%) rename src/tags/{catalog-element.tag => catalog-element.riot} (100%) rename src/tags/{catalog.tag => catalog.riot} (100%) rename src/tags/{copy-to-clipboard.tag => copy-to-clipboard.riot} (100%) rename src/tags/dialogs/{add.tag => add.riot} (100%) rename src/tags/dialogs/{change.tag => change.riot} (100%) rename src/tags/dialogs/{menu.tag => menu.riot} (100%) rename src/tags/dialogs/{remove.tag => remove.riot} (100%) rename src/tags/{image-content-digest.tag => image-content-digest.riot} (100%) rename src/tags/{image-date.tag => image-date.riot} (100%) rename src/tags/{image-size.tag => image-size.riot} (100%) rename src/tags/{image-tag.tag => image-tag.riot} (100%) rename src/tags/{pagination.tag => pagination.riot} (100%) rename src/tags/{remove-image.tag => remove-image.riot} (100%) rename src/tags/{tag-history-button.tag => tag-history-button.riot} (100%) rename src/tags/{tag-history-element.tag => tag-history-element.riot} (100%) rename src/tags/{tag-history.tag => tag-history.riot} (100%) rename src/tags/{taglist.tag => taglist.riot} (100%) diff --git a/README.md b/README.md index 6be3526..2d3b091 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,9 @@ This web user interface uses [Riot](https://github.com/Riot/riot) the react-like - 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)) - I deleted images through the UI, but they are still present on the server. How can I delete them? - When you delete an image with the UI, only the reference is deleted and not the content. To remove dangling images, you need to run the garbage collector of the registry with the command `registry garbage-collect config.yml` or `docker exec registry registry garbage-collect config.yml`. (see [#77](https://github.com/Joxit/docker-registry-ui/issues/77) [#147](https://github.com/Joxit/docker-registry-ui/issues/147)) +- Why when I delete one tag, all tags with the same SHA are deleted ? + - This a docker registry API limitation, there is only one way to [delete images with tag](https://docs.docker.com/registry/spec/api/#deleting-an-image), it's by its `name` and its `manifest` (it's a sha of the content). So when you delete a tag, this will delete all tags of this image with the same SHA/manifest. + Need more informations ? Try my [examples](https://github.com/Joxit/docker-registry-ui/tree/master/examples) or open an issue. diff --git a/gulpfile.js b/gulpfile.js index 515d254..f8deb15 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -16,7 +16,7 @@ const useref = require('gulp-useref'); const injectVersion = require('gulp-inject-version'); const merge = require('stream-series'); -const allTags = ['src/tags/*.tag', 'src/tags/dialogs/*.tag']; +const allTags = ['src/tags/*.riot', 'src/tags/dialogs/*.riot']; const allScripts = [ 'src/scripts/http.js', @@ -24,7 +24,7 @@ const allScripts = [ 'src/scripts/utils.js' ]; -const staticTags = ['src/tags/*.tag']; +const staticTags = ['src/tags/*.riot']; const staticScripts = [ 'src/scripts/http.js', diff --git a/src/index.html b/src/index.html index fb756ce..91d7af5 100644 --- a/src/index.html +++ b/src/index.html @@ -43,24 +43,24 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/src/tags/app.tag b/src/tags/app.riot similarity index 100% rename from src/tags/app.tag rename to src/tags/app.riot diff --git a/src/tags/catalog-element.tag b/src/tags/catalog-element.riot similarity index 100% rename from src/tags/catalog-element.tag rename to src/tags/catalog-element.riot diff --git a/src/tags/catalog.tag b/src/tags/catalog.riot similarity index 100% rename from src/tags/catalog.tag rename to src/tags/catalog.riot diff --git a/src/tags/copy-to-clipboard.tag b/src/tags/copy-to-clipboard.riot similarity index 100% rename from src/tags/copy-to-clipboard.tag rename to src/tags/copy-to-clipboard.riot diff --git a/src/tags/dialogs/add.tag b/src/tags/dialogs/add.riot similarity index 100% rename from src/tags/dialogs/add.tag rename to src/tags/dialogs/add.riot diff --git a/src/tags/dialogs/change.tag b/src/tags/dialogs/change.riot similarity index 100% rename from src/tags/dialogs/change.tag rename to src/tags/dialogs/change.riot diff --git a/src/tags/dialogs/menu.tag b/src/tags/dialogs/menu.riot similarity index 100% rename from src/tags/dialogs/menu.tag rename to src/tags/dialogs/menu.riot diff --git a/src/tags/dialogs/remove.tag b/src/tags/dialogs/remove.riot similarity index 100% rename from src/tags/dialogs/remove.tag rename to src/tags/dialogs/remove.riot diff --git a/src/tags/image-content-digest.tag b/src/tags/image-content-digest.riot similarity index 100% rename from src/tags/image-content-digest.tag rename to src/tags/image-content-digest.riot diff --git a/src/tags/image-date.tag b/src/tags/image-date.riot similarity index 100% rename from src/tags/image-date.tag rename to src/tags/image-date.riot diff --git a/src/tags/image-size.tag b/src/tags/image-size.riot similarity index 100% rename from src/tags/image-size.tag rename to src/tags/image-size.riot diff --git a/src/tags/image-tag.tag b/src/tags/image-tag.riot similarity index 100% rename from src/tags/image-tag.tag rename to src/tags/image-tag.riot diff --git a/src/tags/pagination.tag b/src/tags/pagination.riot similarity index 100% rename from src/tags/pagination.tag rename to src/tags/pagination.riot diff --git a/src/tags/remove-image.tag b/src/tags/remove-image.riot similarity index 100% rename from src/tags/remove-image.tag rename to src/tags/remove-image.riot diff --git a/src/tags/tag-history-button.tag b/src/tags/tag-history-button.riot similarity index 100% rename from src/tags/tag-history-button.tag rename to src/tags/tag-history-button.riot diff --git a/src/tags/tag-history-element.tag b/src/tags/tag-history-element.riot similarity index 100% rename from src/tags/tag-history-element.tag rename to src/tags/tag-history-element.riot diff --git a/src/tags/tag-history.tag b/src/tags/tag-history.riot similarity index 100% rename from src/tags/tag-history.tag rename to src/tags/tag-history.riot diff --git a/src/tags/taglist.tag b/src/tags/taglist.riot similarity index 100% rename from src/tags/taglist.tag rename to src/tags/taglist.riot