feat: remove svg support

This commit is contained in:
Alex 2023-01-28 21:00:57 +00:00
parent 077aa4445a
commit e8790a4d4c

View File

@ -2,18 +2,12 @@
export let type: string;
export let isAbsolute = false;
let githubRawIconUrl =
'https://raw.githubusercontent.com/coollabsio/coolify-community-templates/main/services/icons';
'https://raw.githubusercontent.com/tetrisiq/coolify-community-templates/main/services/icons';
let fallback = '/icons/default.png';
let useFallback: boolean = false;
const handleError = (ev: { target: { src: string } }) => {
if (useFallback) {
ev.target.src = fallback;
} else {
ev.target.src = `${githubRawIconUrl}/${name}.svg`;
useFallback = true;
}
ev.target.src = fallback;
};
const name: any =