mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-27 15:39:54 +03:00
fix(demo): multi-arch image example is now working
This commit is contained in:
parent
026f65abc6
commit
840a00e32b
4 changed files with 4 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,3 +6,4 @@ registry-data
|
||||||
_site
|
_site
|
||||||
*.orig
|
*.orig
|
||||||
.serve/
|
.serve/
|
||||||
|
demo/v2
|
||||||
|
|
2
dist/docker-registry-ui.js
vendored
2
dist/docker-registry-ui.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "docker-registry-ui",
|
"name": "docker-registry-ui",
|
||||||
"version": "2.0.6",
|
"version": "2.0.7",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "ROLLUP_SERVE=true rollup -c -w",
|
"start": "ROLLUP_SERVE=true rollup -c -w",
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
|
|
|
@ -98,7 +98,7 @@ export class DockerImage {
|
||||||
oReq.addEventListener('loadend', function () {
|
oReq.addEventListener('loadend', function () {
|
||||||
if (this.status == 200 || this.status == 202) {
|
if (this.status == 200 || this.status == 202) {
|
||||||
const response = JSON.parse(this.responseText);
|
const response = JSON.parse(this.responseText);
|
||||||
if (response.mediaType === 'application/vnd.docker.distribution.manifest.list.v2+json' && !response.layers) {
|
if (response.mediaType === 'application/vnd.docker.distribution.manifest.list.v2+json' && self.opts.list) {
|
||||||
self.trigger('list', response);
|
self.trigger('list', response);
|
||||||
const manifest = response.manifests[0];
|
const manifest = response.manifests[0];
|
||||||
const image = new DockerImage(self.name, manifest.digest, { ...self.opts, list: false });
|
const image = new DockerImage(self.name, manifest.digest, { ...self.opts, list: false });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue