Skip to content

Commit

Permalink
chore(icon): Rename icon name
Browse files Browse the repository at this point in the history
also take downstream changes to upstream
redhat-developer/devspaces#518
eclipse-che/che#19771

Change-Id: Ifa745375b20b56c38b87c723862d67b61757976b
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
  • Loading branch information
benoitf committed Jun 13, 2021
1 parent c63f253 commit 55f7852
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .ci/openshift-ci/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ RUN chmod g+rwX /usr/local/bin/entrypoint.sh /usr/local/bin/rhel.entrypoint.sh
COPY --from=builder /che-plugin-registry/README.md /che-plugin-registry/.htaccess /var/www/html/
COPY --from=builder /che-plugin-registry/output/v3 /var/www/html/v3
COPY --from=builder /che-plugin-registry/v3/plugins/.htaccess /var/www/html/v3/plugins/
COPY --from=builder /che-plugin-registry/v3/images/eclipse-che-logo.png /var/www/html/v3/images/
COPY --from=builder /che-plugin-registry/v3/images/default.png /var/www/html/v3/images/

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["/usr/local/bin/rhel.entrypoint.sh"]
Expand Down
2 changes: 1 addition & 1 deletion .ci/openshift-ci/build/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ RUN cp /che-plugin-registry/.ci/openshift-ci/build/entrypoint.sh /usr/bin/ && \
cp /che-plugin-registry/.htaccess /usr/local/apache2/htdocs/ && \
cp -r /che-plugin-registry/output/v3 /usr/local/apache2/htdocs/v3 && \
cp /che-plugin-registry/v3/plugins/.htaccess /usr/local/apache2/htdocs/v3/plugins/ && \
cp /che-plugin-registry/v3/images/eclipse-che-logo.png /usr/local/apache2/htdocs/v3/images/ && \
cp /che-plugin-registry/v3/images/default.png /usr/local/apache2/htdocs/v3/images/ && \
rm -rf /che-plugin-registry

ENTRYPOINT ["/usr/bin/entrypoint.sh"]
Expand Down
2 changes: 1 addition & 1 deletion build/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ COPY ./build/dockerfiles/entrypoint.sh /usr/bin/
COPY README.md .htaccess /usr/local/apache2/htdocs/
COPY output/v3 /usr/local/apache2/htdocs/v3
COPY v3/plugins/.htaccess /usr/local/apache2/htdocs/v3/plugins/
COPY v3/images/eclipse-che-logo.png /usr/local/apache2/htdocs/v3/images/
COPY v3/images/default.png /usr/local/apache2/htdocs/v3/images/
RUN chmod -R g+rwX /usr/local/apache2
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
CMD ["httpd-foreground"]
2 changes: 1 addition & 1 deletion build/dockerfiles/rhel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RUN chmod g+rwX /usr/local/bin/entrypoint.sh /usr/local/bin/rhel.entrypoint.sh
COPY README.md .htaccess /var/www/html/
COPY output/v3 /var/www/html/v3
COPY v3/plugins/.htaccess /var/www/html/v3/plugins/
COPY v3/images/eclipse-che-logo.png /var/www/html/v3/images/
COPY v3/images/default.png /var/www/html/v3/images/

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["/usr/local/bin/rhel.entrypoint.sh"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export class CheTheiaPluginsYamlWriter {
@named('EMBED_VSIX')
private embedVsix: boolean;

public static readonly DEFAULT_ICON = '/v3/images/eclipse-che-logo.png';
// Path relative to plugin registry ROOT
// https://plugin-registry-eclipse-che.apps-crc.testing/v3
//
// It must work also for single root deployments
// https://che-eclipse-che.apps-crc.testing/plugin-registry/v3
public static readonly DEFAULT_ICON = '/images/default.png';

convertIdToPublisherAndName(id: string): [string, string] {
const values = id.split('/');
Expand All @@ -53,7 +58,7 @@ export class CheTheiaPluginsYamlWriter {
const fileExtensionIcon = path.extname(path.basename(iconFile)).toLowerCase();
const destIconFileName = `${data.metadata.publisher}-${data.metadata.name}-icon${fileExtensionIcon}`;
await fs.copyFile(iconFile, path.resolve(imagesFolder, destIconFileName));
icon = `/v3/images/${destIconFileName}`;
icon = `/images/${destIconFileName}`;
} else {
icon = CheTheiaPluginsYamlWriter.DEFAULT_ICON;
}
Expand Down
2 changes: 1 addition & 1 deletion tools/build/src/meta-yaml/meta-yaml-writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class MetaYamlWriter {
//
// It must work also for single root deployments
// https://che-eclipse-che.apps-crc.testing/plugin-registry/v3
public static readonly DEFAULT_ICON = '/images/eclipse-che-logo.png';
public static readonly DEFAULT_ICON = '/images/default.png';

convertIdToPublisherAndName(id: string): [string, string] {
const values = id.split('/');
Expand Down
2 changes: 1 addition & 1 deletion tools/build/tests/_data/meta/che-theia-meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: Che Editor
displayName: theia-ide
title: Eclipse Theia development version.
description: 'Eclipse Theia, get the latest release each day.'
icon: /v3/images/eclipse-che-logo.png
icon: /images/default.png
category: Editor
repository: 'https://github.com/eclipse-che/che-theia'
firstPublicationDate: '2019-03-07'
Expand Down
2 changes: 1 addition & 1 deletion tools/build/tests/_data/meta/machine-exec-plugin-meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: Che Plugin
displayName: Che machine-exec Service
title: Che machine-exec Service
description: Che Plug-in with che-machine-exec service to provide creation terminal or tasks for Eclipse Che workspace containers.
icon: /v3/images/eclipse-che-logo.png
icon: /images/default.png
category: Other
repository: 'https://github.com/eclipse/che-machine-exec/'
firstPublicationDate: '2019-11-07'
Expand Down
2 changes: 1 addition & 1 deletion tools/build/tests/_data/meta/no-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: Che Editor
displayName: no-container
title: Eclipse Theia development version.
description: 'Eclipse Theia, get the latest release each day.'
icon: /v3/images/eclipse-che-logo.png
icon: /images/default.png
category: Editor
repository: 'https://github.com/eclipse-che/che-theia'
firstPublicationDate: '2019-03-07'
Expand Down
2 changes: 1 addition & 1 deletion tools/build/tests/_data/meta/vscode-extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: VS Code extension
displayName: omnisharp-theia-plugin
title: omnisharp-theia-plugin
description: omnisharp-theia-plugin
icon: /v3/images/eclipse-che-logo.png
icon: /images/default.png
category: Other
repository: 'https://github.com/redhat-developer/omnisharp-theia-plugin'
firstPublicationDate: '2019-12-03'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ metadata:
categories:
- Programming Languages
repository: 'http://fake-repository'
icon: /v3/images/my-publisher-my-name-icon.png
icon: /images/my-publisher-my-name-icon.png
sidecar:
image: foo
dependencies:
Expand Down Expand Up @@ -154,7 +154,7 @@ metadata:
categories:
- Programming Languages
repository: 'http://fake-repository'
icon: /v3/images/eclipse-che-logo.png
icon: /images/default.png
sidecar:
image: foo
dependencies:
Expand Down Expand Up @@ -231,7 +231,7 @@ metadata:
categories:
- Programming Languages
repository: 'http://fake-repository'
icon: /v3/images/eclipse-che-logo.png
icon: /images/default.png
sidecar:
image: foo
preferences:
Expand Down
14 changes: 7 additions & 7 deletions tools/build/tests/meta-yaml/meta-yaml-writer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ type: VS Code extension
displayName: display-name
title: my-title
description: my-description
icon: /images/eclipse-che-logo.png
icon: /images/default.png
category: Programming Languages
repository: 'http://fake-repository'
firstPublicationDate: '2019-01-01'
Expand Down Expand Up @@ -239,7 +239,7 @@ type: VS Code extension
displayName: display-name
title: my-title
description: my-description
icon: /images/eclipse-che-logo.png
icon: /images/default.png
category: Programming Languages
repository: 'http://fake-repository'
firstPublicationDate: '2019-01-01'
Expand Down Expand Up @@ -319,7 +319,7 @@ type: VS Code extension
displayName: display-name
title: my-title
description: my-description
icon: /images/eclipse-che-logo.png
icon: /images/default.png
category: Programming Languages
repository: 'http://fake-repository'
firstPublicationDate: '2019-01-01'
Expand Down Expand Up @@ -379,7 +379,7 @@ type: VS Code extension
displayName: display-name
title: my-title
description: my-description
icon: /images/eclipse-che-logo.png
icon: /images/default.png
category: Programming Languages
repository: 'http://fake-repository'
firstPublicationDate: '2019-01-01'
Expand Down Expand Up @@ -417,7 +417,7 @@ spec: {}
displayName: 'minimal-endpoint',
title: 'minimal-endpoint',
description: 'minimal-endpoint',
icon: '/v3/images/eclipse-che-logo.png',
icon: '/images/default.png',
category: 'Other',
repository: 'http://fake-repository',
firstPublicationDate: '2019-01-01',
Expand Down Expand Up @@ -473,7 +473,7 @@ spec: {}
displayName: 'minimal-endpoint',
title: 'minimal-endpoint',
description: 'minimal-endpoint',
icon: '/v3/images/eclipse-che-logo.png',
icon: '/images/default.png',
category: 'Other',
repository: 'http://fake-repository',
firstPublicationDate: '2019-01-01',
Expand Down Expand Up @@ -515,7 +515,7 @@ spec: {}
displayName: 'minimal-endpoint',
title: 'minimal-endpoint',
description: 'minimal-endpoint',
icon: '/v3/images/eclipse-che-logo.png',
icon: '/images/default.png',
category: 'Other',
repository: 'http://fake-repository',
firstPublicationDate: '2019-01-01',
Expand Down
File renamed without changes

0 comments on commit 55f7852

Please sign in to comment.