Merge branch 'main' into travelperk
@@ -28,9 +28,9 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PUBLIC_SVGL_VERSION: v5
|
PUBLIC_SVGL_VERSION: v5
|
||||||
|
|
||||||
svgs-size:
|
check-svgs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: 📦 SVGs Size
|
name: 📦 Check SVGs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -42,3 +42,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Check SVGs size
|
- name: Check SVGs size
|
||||||
run: pnpm check:size
|
run: pnpm check:size
|
||||||
|
|
||||||
|
- name: Check unused SVGs
|
||||||
|
run: pnpm check:data
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||||
"check:size": "tsx ./utils/check-size.ts",
|
"check:size": "tsx ./utils/check-size.ts",
|
||||||
|
"check:data": "tsx ./utils/check-data.ts",
|
||||||
"check:links": " lychee --base . ./src/data/svgs.ts --cache --max-cache-age 3d . --include 'https://svgl.app'",
|
"check:links": " lychee --base . ./src/data/svgs.ts --cache --max-cache-age 3d . --include 'https://svgl.app'",
|
||||||
"fix:viewbox": "tsx ./utils/fix-viewbox.ts",
|
"fix:viewbox": "tsx ./utils/fix-viewbox.ts",
|
||||||
"format": "prettier --write \"src/**/*.{ts,js,md,svelte}\" --cache",
|
"format": "prettier --write \"src/**/*.{ts,js,md,svelte}\" --cache",
|
||||||
|
|||||||
@@ -4040,4 +4040,17 @@ export const svgs: iSVG[] = [
|
|||||||
url: "https://www.travelperk.com/",
|
url: "https://www.travelperk.com/",
|
||||||
brandUrl: "https://www.travelperk.com/media/",
|
brandUrl: "https://www.travelperk.com/media/",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "Sanity",
|
||||||
|
category: ["CMS", "Software"],
|
||||||
|
route: {
|
||||||
|
light: "/library/sanity-light.svg",
|
||||||
|
dark: "/library/sanity-dark.svg",
|
||||||
|
},
|
||||||
|
wordmark: {
|
||||||
|
light: "/library/sanity-wordmark-light.svg",
|
||||||
|
dark: "/library/sanity-wordmark-dark.svg",
|
||||||
|
},
|
||||||
|
url: "https://www.sanity.io/",
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="226" height="128" viewBox="156 156 200 200"><path d="M338.156 305.71a14.867 14.867 0 1 1 14.864-14.87 14.886 14.886 0 0 1-14.864 14.87m-164.311 0a14.867 14.867 0 1 1 14.864-14.87 14.884 14.884 0 0 1-14.864 14.87m169.642-89.546 29.708-51.455a6.182 6.182 0 1 0-10.704-6.188l-30.084 52.105c-23.005-10.5-48.842-16.346-76.41-16.346s-53.402 5.855-76.407 16.346l-30.081-52.105a6.181 6.181 0 1 0-10.707 6.18l29.712 51.463c-51.016 27.748-85.91 79.394-91.014 140.413h357c-5.11-61.02-40-112.665-91.013-140.413" fill="#3ddc84"/></svg>
|
|
||||||
|
Before Width: | Height: | Size: 569 B |
@@ -1,3 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" version="1.0" viewBox="0 0 1280 1024">
|
|
||||||
<path fill="#f1f1f1" fill-rule="evenodd" d="M422 534.9c-4.1-5.6-11.1-10.3-19.6-10.3-15.7 0-27 12.1-27 28.5s11.3 28.5 27 28.5c7.3 0 14.2-3.2 17.8-6.3.2-.2.4-.5.4-.8v-8.9c0-.6-.4-1-1-1h-20.2c-.8 0-1.5-.7-1.5-1.5V550c0-.8.7-1.5 1.5-1.5h36.2v-19.6l-11.7 6.5c-.7.3-1.4.1-1.9-.5zm-170 9.3h21.6c6.2 0 10-3.5 10-9.1 0-5.3-3.9-9.1-10-9.1H252c-.7 0-1.3.6-1.3 1.4v15.5c0 .7.6 1.3 1.3 1.3zm87.7 51.1c0 .7-.5 1.2-1.2 1.2h-15.9c-.7 0-1.2-.5-1.2-1.2v-84.4c0-.7.5-1.2 1.2-1.2h15.9c.7 0 1.2.5 1.2 1.2v84.4zm-66.2-85.6h4.1c16.4 0 24.7 10.5 24.7 22.1 0 9-4.7 15.7-10.9 18.6-.7.3-.9 1.1-.6 1.8.1.3.4.5.7.6 7.3 3 12.5 10.9 12.5 20.1 0 13.1-8.5 23.6-25 23.6h-45.3c-.7 0-1.3-.6-1.3-1.4v-55l-116.8 86.4c-2.2 1.7-1.1 5.2 1.7 5.2h315.5c1.6 0 2.9-1.3 2.9-2.9v-43.7c-8.4 8-19.5 12.9-33.2 12.9-25.2 0-45.8-17.6-45.8-44.9 0-27.5 20.6-44.9 45.8-44.9 15.9 0 26.5 7.3 33.2 16.1V395.6c0-1.6-1.3-2.9-2.8-2.9-.6 0-1.2.2-1.7.6-.2 0-157.7 116.4-157.7 116.4zM252 580.3h22.3c6.8 0 10.9-3.6 10.9-9.9 0-5.5-3.9-9.9-10.9-9.9H252c-.7 0-1.3.6-1.3 1.4V579c0 .6.6 1.3 1.3 1.3zm275.1-2.7-9.8-5.2c-.6-.3-1.4-.1-1.8.5-4.2 6.6-11.8 11.5-20.2 11.5-16.4 0-28.6-13.3-28.6-31.4 0-18.3 12.2-31.4 28.6-31.4 8.3 0 16 4.8 20.2 11.5.4.6 1.2.9 1.8.5l9.8-5.4c.7-.4 1-1.3.6-2 0 0 0-.1-.1-.1-6.2-9.8-16.4-18.1-32.3-18.1-24.5 0-43.5 18.1-43.5 44.9 0 26.7 19 44.9 43.5 44.9 15.9 0 26-8.4 32.4-18.3.4-.7.3-1.6-.4-2-.1.2-.1.1-.2.1zm51.4 6.9c-16.8 0-27.5-13.5-27.5-31.4 0-18 10.7-31.4 27.5-31.4 16.7 0 27.5 13.4 27.5 31.4-.1 17.8-10.9 31.4-27.5 31.4zm-11.8-74.8c-18.5 5-30.6 21.8-30.6 43.4 0 25.9 17.5 44.9 42.4 44.9 21.2 0 37.1-13.9 41.3-34.2 6.8-32.9-21.9-62.5-53.1-54.1zm157.2 0h-18.8c-.8 0-1.6.5-1.9 1.3l-22.8 59.6-22.9-59.6c-.3-.8-1.1-1.3-1.9-1.3h-18.8c-.6 0-1 .5-1 1v84.8c0 .6.4 1 1 1h13c.6 0 1-.5 1-1v-66L677 596c.1.3.4.5.7.5h5.5c.3 0 .6-.2.7-.5l26.1-66.6v66c0 .6.4 1 1 1h13c.6 0 1-.5 1-1v-84.8c0-.5-.5-.9-1.1-.9.1 0 .1 0 0 0zm192.7 0h-55.7c-.9 0-1.6.7-1.6 1.6V595c0 .9.7 1.6 1.6 1.6h55.7c.9 0 1.5-.7 1.5-1.6v-10.3c0-.9-.7-1.6-1.5-1.6h-40.7c-.9 0-1.6-.7-1.6-1.6v-21.1c0-.9.7-1.6 1.6-1.6h39.8c.9 0 1.6-.7 1.6-1.6V547c0-.9-.7-1.6-1.6-1.6h-39.8c-.9 0-1.6-.7-1.6-1.6v-19.2c0-.9.7-1.6 1.6-1.6h40.7c.9 0 1.5-.7 1.5-1.6v-10.3c0-.7-.7-1.4-1.5-1.4zm58.7 40.9h-19.2c-.9 0-1.5-.7-1.5-1.6v-24.5c0-.9.7-1.6 1.5-1.6h19.2c8.5 0 14.7 5.3 14.7 13.7 0 8.6-6.2 14-14.7 14zm11.8 11.3c9.6-2.4 18.3-10.8 18.3-25.1 0-16.1-11.2-27.2-28.2-27.2H941c-.9 0-1.5.7-1.5 1.5v83.7c0 .9.7 1.6 1.5 1.6h12c.9 0 1.5-.7 1.5-1.6v-29.3c0-.9.7-1.6 1.5-1.6h12.6c.5 0 1 .3 1.3.8l18 30.9c.3.5.8.8 1.3.8h13.8c.9 0 1.5-.7 1.5-1.6 0-.3-.1-.6-.2-.8l-18.5-29.9c-.3-.8.3-1.9 1.3-2.2zm136.6-38.8h40.7c.8 0 1.5-.7 1.5-1.5v-10.3c0-.8-.7-1.5-1.5-1.5h-55.8c-.8 0-1.5.7-1.5 1.5V595c0 .9.7 1.5 1.5 1.5h55.8c.8 0 1.5-.7 1.5-1.5v-10.3c0-.8-.7-1.5-1.5-1.5h-40.7c-.8 0-1.5-.7-1.5-1.5v-21.1c0-.9.7-1.5 1.5-1.5h39.8c.8 0 1.5-.7 1.5-1.5V547c0-.8-.7-1.5-1.5-1.5h-39.8c-.8 0-1.5-.7-1.5-1.5v-19.3c0-1 .7-1.6 1.5-1.6zm-31.9 54.2-9.8-5.2c-.7-.3-1.4-.1-1.8.5-4.2 6.6-11.8 11.5-20.2 11.5-16.4 0-28.6-13.3-28.6-31.4 0-18.3 12.2-31.4 28.6-31.4 8.3 0 16 4.8 20.2 11.5.4.6 1.2.9 1.8.5l9.8-5.4c.7-.4 1-1.3.6-2 0 0 0-.1-.1-.1-6.2-9.8-16.4-18.1-32.3-18.1-24.5 0-43.5 18.1-43.5 44.9 0 26.7 19 44.9 43.5 44.9 15.9 0 26-8.4 32.4-18.3.4-.7.3-1.6-.4-2-.1.1-.2.1-.2.1zm-256.6-67.6h-18.9c-.8 0-1.6.5-1.9 1.3l-22.8 59.6-22.9-59.6c-.3-.8-1.1-1.3-1.9-1.3H748c-.6 0-1 .5-1 1v84.8c0 .6.5 1 1 1h13c.6 0 1-.5 1-1v-66l26.2 66.6c.1.3.4.5.7.5h5.4c.3 0 .6-.2.7-.5l26.1-66.6v66c0 .6.4 1 1 1h13c.6 0 1-.5 1-1v-84.8c.1-.6-.4-1-.9-1-.1 0-.1 0 0 0z" clip-rule="evenodd"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 3.5 KiB |
@@ -1,3 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" version="1.0" viewBox="0 0 1280 1024">
|
|
||||||
<path fill="#1d1d1b" fill-rule="evenodd" d="M422 534.9c-4.1-5.6-11.1-10.3-19.6-10.3-15.7 0-27 12.1-27 28.5s11.3 28.5 27 28.5c7.3 0 14.2-3.2 17.8-6.3.2-.2.4-.5.4-.8v-8.9c0-.6-.4-1-1-1h-20.2c-.8 0-1.5-.7-1.5-1.5V550c0-.8.7-1.5 1.5-1.5h36.2v-19.6l-11.7 6.5c-.7.3-1.4.1-1.9-.5zm-170 9.3h21.6c6.2 0 10-3.5 10-9.1 0-5.3-3.9-9.1-10-9.1H252c-.7 0-1.3.6-1.3 1.4v15.5c0 .7.6 1.3 1.3 1.3zm87.7 51.1c0 .7-.5 1.2-1.2 1.2h-15.9c-.7 0-1.2-.5-1.2-1.2v-84.4c0-.7.5-1.2 1.2-1.2h15.9c.7 0 1.2.5 1.2 1.2v84.4zm-66.2-85.6h4.1c16.4 0 24.7 10.5 24.7 22.1 0 9-4.7 15.7-10.9 18.6-.7.3-.9 1.1-.6 1.8.1.3.4.5.7.6 7.3 3 12.5 10.9 12.5 20.1 0 13.1-8.5 23.6-25 23.6h-45.3c-.7 0-1.3-.6-1.3-1.4v-55l-116.8 86.4c-2.2 1.7-1.1 5.2 1.7 5.2h315.5c1.6 0 2.9-1.3 2.9-2.9v-43.7c-8.4 8-19.5 12.9-33.2 12.9-25.2 0-45.8-17.6-45.8-44.9 0-27.5 20.6-44.9 45.8-44.9 15.9 0 26.5 7.3 33.2 16.1V395.6c0-1.6-1.3-2.9-2.8-2.9-.6 0-1.2.2-1.7.6-.2 0-157.7 116.4-157.7 116.4zM252 580.3h22.3c6.8 0 10.9-3.6 10.9-9.9 0-5.5-3.9-9.9-10.9-9.9H252c-.7 0-1.3.6-1.3 1.4V579c0 .6.6 1.3 1.3 1.3zm275.1-2.7-9.8-5.2c-.6-.3-1.4-.1-1.8.5-4.2 6.6-11.8 11.5-20.2 11.5-16.4 0-28.6-13.3-28.6-31.4 0-18.3 12.2-31.4 28.6-31.4 8.3 0 16 4.8 20.2 11.5.4.6 1.2.9 1.8.5l9.8-5.4c.7-.4 1-1.3.6-2 0 0 0-.1-.1-.1-6.2-9.8-16.4-18.1-32.3-18.1-24.5 0-43.5 18.1-43.5 44.9 0 26.7 19 44.9 43.5 44.9 15.9 0 26-8.4 32.4-18.3.4-.7.3-1.6-.4-2-.1.2-.1.1-.2.1zm51.4 6.9c-16.8 0-27.5-13.5-27.5-31.4 0-18 10.7-31.4 27.5-31.4 16.7 0 27.5 13.4 27.5 31.4-.1 17.8-10.9 31.4-27.5 31.4zm-11.8-74.8c-18.5 5-30.6 21.8-30.6 43.4 0 25.9 17.5 44.9 42.4 44.9 21.2 0 37.1-13.9 41.3-34.2 6.8-32.9-21.9-62.5-53.1-54.1zm157.2 0h-18.8c-.8 0-1.6.5-1.9 1.3l-22.8 59.6-22.9-59.6c-.3-.8-1.1-1.3-1.9-1.3h-18.8c-.6 0-1 .5-1 1v84.8c0 .6.4 1 1 1h13c.6 0 1-.5 1-1v-66L677 596c.1.3.4.5.7.5h5.5c.3 0 .6-.2.7-.5l26.1-66.6v66c0 .6.4 1 1 1h13c.6 0 1-.5 1-1v-84.8c0-.5-.5-.9-1.1-.9.1 0 .1 0 0 0zm192.7 0h-55.7c-.9 0-1.6.7-1.6 1.6V595c0 .9.7 1.6 1.6 1.6h55.7c.9 0 1.5-.7 1.5-1.6v-10.3c0-.9-.7-1.6-1.5-1.6h-40.7c-.9 0-1.6-.7-1.6-1.6v-21.1c0-.9.7-1.6 1.6-1.6h39.8c.9 0 1.6-.7 1.6-1.6V547c0-.9-.7-1.6-1.6-1.6h-39.8c-.9 0-1.6-.7-1.6-1.6v-19.2c0-.9.7-1.6 1.6-1.6h40.7c.9 0 1.5-.7 1.5-1.6v-10.3c0-.7-.7-1.4-1.5-1.4zm58.7 40.9h-19.2c-.9 0-1.5-.7-1.5-1.6v-24.5c0-.9.7-1.6 1.5-1.6h19.2c8.5 0 14.7 5.3 14.7 13.7 0 8.6-6.2 14-14.7 14zm11.8 11.3c9.6-2.4 18.3-10.8 18.3-25.1 0-16.1-11.2-27.2-28.2-27.2H941c-.9 0-1.5.7-1.5 1.5v83.7c0 .9.7 1.6 1.5 1.6h12c.9 0 1.5-.7 1.5-1.6v-29.3c0-.9.7-1.6 1.5-1.6h12.6c.5 0 1 .3 1.3.8l18 30.9c.3.5.8.8 1.3.8h13.8c.9 0 1.5-.7 1.5-1.6 0-.3-.1-.6-.2-.8l-18.5-29.9c-.3-.8.3-1.9 1.3-2.2zm136.6-38.8h40.7c.8 0 1.5-.7 1.5-1.5v-10.3c0-.8-.7-1.5-1.5-1.5h-55.8c-.8 0-1.5.7-1.5 1.5V595c0 .9.7 1.5 1.5 1.5h55.8c.8 0 1.5-.7 1.5-1.5v-10.3c0-.8-.7-1.5-1.5-1.5h-40.7c-.8 0-1.5-.7-1.5-1.5v-21.1c0-.9.7-1.5 1.5-1.5h39.8c.8 0 1.5-.7 1.5-1.5V547c0-.8-.7-1.5-1.5-1.5h-39.8c-.8 0-1.5-.7-1.5-1.5v-19.3c0-1 .7-1.6 1.5-1.6zm-31.9 54.2-9.8-5.2c-.7-.3-1.4-.1-1.8.5-4.2 6.6-11.8 11.5-20.2 11.5-16.4 0-28.6-13.3-28.6-31.4 0-18.3 12.2-31.4 28.6-31.4 8.3 0 16 4.8 20.2 11.5.4.6 1.2.9 1.8.5l9.8-5.4c.7-.4 1-1.3.6-2 0 0 0-.1-.1-.1-6.2-9.8-16.4-18.1-32.3-18.1-24.5 0-43.5 18.1-43.5 44.9 0 26.7 19 44.9 43.5 44.9 15.9 0 26-8.4 32.4-18.3.4-.7.3-1.6-.4-2-.1.1-.2.1-.2.1zm-256.6-67.6h-18.9c-.8 0-1.6.5-1.9 1.3l-22.8 59.6-22.9-59.6c-.3-.8-1.1-1.3-1.9-1.3H748c-.6 0-1 .5-1 1v84.8c0 .6.5 1 1 1h13c.6 0 1-.5 1-1v-66l26.2 66.6c.1.3.4.5.7.5h5.4c.3 0 .6-.2.7-.5l26.1-66.6v66c0 .6.4 1 1 1h13c.6 0 1-.5 1-1v-84.8c.1-.6-.4-1-.9-1-.1 0-.1 0 0 0z" clip-rule="evenodd"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 3.5 KiB |
@@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd" viewBox="0 0 512 512"><rect fill="#CC9B7A" width="512" height="512" rx="104.187" ry="105.042"/><path fill="#1F1F1E" fill-rule="nonzero" d="M318.663 149.787h-43.368l78.952 212.423 43.368.004-78.952-212.427zm-125.326 0l-78.952 212.427h44.255l15.932-44.608 82.846-.004 16.107 44.612h44.255l-79.126-212.427h-45.317zm-4.251 128.341l26.91-74.701 27.083 74.701h-53.993z"/></svg>
|
|
||||||
|
Before Width: | Height: | Size: 558 B |
@@ -1 +0,0 @@
|
|||||||
<svg width="834" height="236" viewBox="0 0 834 236" fill="none" xmlns="http://www.w3.org/2000/svg" class="h-6 w-24"><path d="M266 119.5C266 181.632 215.632 232 153.5 232C91.368 232 41 181.632 41 119.5C41 57.368 91.368 7 153.5 7C215.632 7 266 57.368 266 119.5Z" fill="currentColor"></path><mask id="mask0_46_2" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="41" y="7" width="225" height="225"><path d="M266 119.5C266 181.632 215.632 232 153.5 232C91.368 232 41 181.632 41 119.5C41 57.368 91.368 7 153.5 7C215.632 7 266 57.368 266 119.5Z" fill="currentColor"></path></mask><g mask="url(#mask0_46_2)"><ellipse cx="153" cy="124.5" rx="58" ry="57.5" fill="white"></ellipse><path d="M185 -10H211V181H185V-10Z" fill="white"></path></g><path d="M397.25 213.75C385.25 213.75 374.833 211.083 366 205.75C357.167 200.417 350.25 192.917 345.25 183.25C340.417 173.417 338 161.917 338 148.75C338 135.417 340.5 123.75 345.5 113.75C350.5 103.583 357.583 95.6667 366.75 90C376.083 84.3333 387.083 81.5 399.75 81.5C407.583 81.5 414.833 82.9167 421.5 85.75C428.333 88.5833 433.583 92.3333 437.25 97V22H475.75V210.5H439.5L437.5 194.5C434.167 200.167 428.833 204.833 421.5 208.5C414.333 212 406.25 213.75 397.25 213.75ZM406.5 178.5C412.5 178.5 417.75 177.25 422.25 174.75C426.917 172.083 430.5 168.417 433 163.75C435.667 158.917 437 153.417 437 147.25C437 140.917 435.667 135.417 433 130.75C430.5 126.083 426.917 122.5 422.25 120C417.75 117.333 412.5 116 406.5 116C400.5 116 395.25 117.333 390.75 120C386.25 122.667 382.75 126.333 380.25 131C377.917 135.667 376.75 141.083 376.75 147.25C376.75 153.417 377.917 158.833 380.25 163.5C382.75 168.167 386.25 171.833 390.75 174.5C395.25 177.167 400.5 178.5 406.5 178.5Z" fill="currentColor"></path><path d="M587.662 85.5H626.162C626.162 85.5 626.162 148.5 626.162 164C626.162 179.5 623.786 191.5 616.5 200.5C609.214 209.5 594 213.75 582.162 213.75C570.324 213.75 564.412 213.75 564.412 213.75C564.412 213.75 556.662 213.75 549.162 213.75C534.995 213.75 523.745 209.333 515.412 200.5C507.245 191.5 503.162 179.333 503.162 164V85.5H541.662V150C541.662 160.167 543.495 167.667 547.162 172.5C550.829 177.167 556.579 179.5 564.412 179.5C572.745 179.5 578.662 177.25 582.162 172.75C585.829 168.083 587.662 160.667 587.662 150.5V85.5Z" fill="currentColor"></path><path d="M691.303 210.5H655.053V22H693.553V100C697.386 94.3333 703.053 89.8333 710.553 86.5C718.219 83 726.553 81.25 735.553 81.25C747.219 81.25 757.303 84.0833 765.803 89.75C774.469 95.4167 781.136 103.333 785.803 113.5C790.469 123.667 792.803 135.583 792.803 149.25C792.803 162.083 790.219 173.417 785.053 183.25C780.053 192.917 772.969 200.417 763.803 205.75C754.803 211.083 744.386 213.75 732.553 213.75C723.886 213.75 715.969 212 708.803 208.5C701.803 204.833 696.636 200.167 693.303 194.5L691.303 210.5ZM693.803 147.25C693.803 153.417 695.053 158.917 697.553 163.75C700.219 168.417 703.803 172.083 708.303 174.75C712.969 177.25 718.303 178.5 724.303 178.5C730.469 178.5 735.719 177.167 740.053 174.5C744.553 171.833 747.969 168.167 750.303 163.5C752.803 158.833 754.053 153.417 754.053 147.25C754.053 141.083 752.803 135.667 750.303 131C747.969 126.333 744.553 122.667 740.053 120C735.719 117.333 730.469 116 724.303 116C718.303 116 712.969 117.333 708.303 120C703.803 122.5 700.219 126.083 697.553 130.75C695.053 135.417 693.803 140.917 693.803 147.25Z" fill="currentColor"></path></svg>
|
|
||||||
|
Before Width: | Height: | Size: 3.3 KiB |
@@ -1,3 +0,0 @@
|
|||||||
<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M47.8477 21.3779L44.9064 24.3192L41.9652 21.3779L44.9064 18.4366L33.143 6.67323L30.2017 9.6145L27.2605 6.67323L30.2017 3.73195L27.2605 0.790673L0.79067 27.2605L3.73195 30.2017L6.67322 27.2605L9.6145 30.2017L6.67322 33.143L18.4383 44.9081L21.3796 41.9668L24.3209 44.9081L21.3796 47.8494L24.3209 50.7907L50.7907 24.3209L47.8477 21.3779ZM12.5625 27.2672L9.6145 24.3192L12.5558 21.3779L15.497 24.3192L12.5625 27.2672ZM18.4451 21.3847L15.497 18.4366L18.4366 15.4971L21.3779 18.4383L18.4451 21.3847ZM24.3276 15.5021L21.3796 12.5541L24.3192 9.6145L27.2605 12.5558L24.3276 15.5021ZM27.2605 41.9652L24.3192 39.0239L27.2605 36.0826L30.2017 39.0239L27.2605 41.9652ZM33.143 36.0826L30.2017 33.1413L33.1413 30.2017L36.0826 33.143L33.143 36.0826ZM39.0256 30.2001L36.0843 27.2588L39.0239 24.3192L41.9652 27.2605L39.0256 30.2001Z" fill="#945DCC"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 944 B |
|
Before Width: | Height: | Size: 7.7 KiB |
@@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><rect width="512" height="512" rx="15%" fill="#f50"/><path d="m59 270-3 22 3 22c0 2 3 2 3 0l3-22-3-22c0-3-3-3-3 0zm18-14c0-3-3-3-3 0l-5 36 4 35c0 3 4 3 4 0l4-35zm59-30-3 66 2 40c0 8 7 8 7 0l4-40-4-66c0-5-6-5-6 0zm-31 22-4 44 3 40c0 6 5 6 5 0l4-40-4-44c0-3-4-3-4 0zm70 84 3-40-3-88c0-6-7-6-7 0l-3 88 2 40c0 8 8 8 8 0zm68 0 2-40-2-102c0-7-10-7-10 0l-2 102 2 40c0 8 10 8 10 0zm-34 0 3-40-3-89c0-6-9-6-9 0l-2 89 2 40c0 8 9 8 9 0zm-83 0 3-40-3-41c0-3-6-3-6 0l-3 41 3 40c0 7 6 7 6 0zm-33 0 4-40-4-43c0-3-4-3-4 0l-4 43 4 40c0 4 4 4 4 0zm124-125-2 85 1 40c0 8 10 8 10 0l2-40-2-85c0-7-9-7-9 0zm-58 125 3-40-3-81c0-6-7-6-7 0l-3 81 2 40c0 8 8 8 8 0zm33 0 3-40-3-91c0-6-8-6-8 0l-3 91 3 40c0 8 8 8 8 0zm196-89c-5-57-64-94-118-73-4 2-5 3-5 6v156c0 3 2 6 5 6h137c27 0 49-22 49-49 0-37-35-57-68-46zm-138-62-3 111 3 40c0 8 10 8 10 0l3-40-3-111c0-7-10-7-10 0z" fill="#fff"/></svg>
|
|
||||||
|
Before Width: | Height: | Size: 924 B |
@@ -1 +0,0 @@
|
|||||||
<svg width="800px" height="800px" viewBox="-9 0 274 274" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid"><g><path d="M145.726081,42.0651946 L145.726081,84.1347419 L218.586952,126.204312 L218.586952,84.1347419 L145.726081,42.0651946 Z M-1.98726454e-07,84.1347419 L-1.98726454e-07,126.204312 L36.4304238,147.234755 L36.4304238,105.169527 L-1.98726454e-07,84.1347419 Z M109.291294,105.169527 L72.8608701,126.204312 L72.8608701,252.404316 L109.291294,273.439101 L109.291294,189.304303 L145.726081,210.339088 L145.726081,168.26954 L109.291294,147.234755 L109.291294,105.169527 Z" fill="#E55B2D"></path><path d="M145.726081,42.0651946 L36.4304238,105.169527 L36.4304238,147.234755 L109.291294,105.169527 L109.291294,147.234755 L145.726081,126.204312 L145.726081,42.0651946 Z M255.021717,63.0999794 L218.586952,84.1347419 L218.586952,126.204312 L255.021717,105.169527 L255.021717,63.0999794 Z M182.156505,147.234755 L145.726081,168.26954 L145.726081,210.339088 L182.156505,189.304303 L182.156505,147.234755 Z M145.726081,210.339088 L109.291294,189.304303 L109.291294,273.439101 L145.726081,252.404316 L145.726081,210.339088 Z" fill="#ED8E24"></path><path d="M145.726081,-3.41864288e-05 L-1.98726454e-07,84.1347419 L36.4304238,105.169527 L145.726081,42.0651946 L218.586952,84.1347419 L255.021717,63.0999794 L145.726081,-3.41864288e-05 Z M145.726081,126.204312 L109.291294,147.234755 L145.726081,168.26954 L182.156505,147.234755 L145.726081,126.204312 Z" fill="#F8BF3C"></path></g></svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,65 @@
|
|||||||
|
import { readdir, unlink } from "fs/promises";
|
||||||
|
import { join } from "path";
|
||||||
|
import { readFileSync } from "fs";
|
||||||
|
|
||||||
|
// ⚙️ Settings:
|
||||||
|
const svgDir = join(process.cwd(), "static", "library");
|
||||||
|
const dataFile = join(process.cwd(), "src", "data", "svgs.ts");
|
||||||
|
const DELETE_UNUSED = false;
|
||||||
|
|
||||||
|
async function checkUnusedSVGs(): Promise<void> {
|
||||||
|
try {
|
||||||
|
const files = await readdir(svgDir);
|
||||||
|
const svgFiles = files.filter((file) => file.endsWith(".svg"));
|
||||||
|
const dataContent = readFileSync(dataFile, "utf-8");
|
||||||
|
const unusedFiles: { filename: string; path: string }[] = [];
|
||||||
|
|
||||||
|
for (const file of svgFiles) {
|
||||||
|
if (!dataContent.includes(file)) {
|
||||||
|
unusedFiles.push({
|
||||||
|
filename: file,
|
||||||
|
path: `/library/${file}`,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (unusedFiles.length === 0) {
|
||||||
|
console.log("✅ All SVG files are being used in data/svgs.ts");
|
||||||
|
} else {
|
||||||
|
console.log(
|
||||||
|
`⚠️ Found ${unusedFiles.length}/${svgFiles.length} unused SVG file(s) in /static/library:`,
|
||||||
|
);
|
||||||
|
console.table(unusedFiles);
|
||||||
|
|
||||||
|
if (DELETE_UNUSED) {
|
||||||
|
console.log("\n🗑️ Deleting unused files...");
|
||||||
|
let deletedCount = 0;
|
||||||
|
|
||||||
|
for (const file of unusedFiles) {
|
||||||
|
try {
|
||||||
|
const filePath = join(svgDir, file.filename);
|
||||||
|
await unlink(filePath);
|
||||||
|
deletedCount++;
|
||||||
|
console.log(`- Deleted: ${file.filename}`);
|
||||||
|
} catch (error) {
|
||||||
|
console.error(`- Error: failed to delete ${file.filename}:`, error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(`\n✅ Successfully deleted ${deletedCount} file(s).`);
|
||||||
|
} else {
|
||||||
|
console.log(
|
||||||
|
"\n💡 To delete these files, set DELETE_UNUSED = true in the script.",
|
||||||
|
);
|
||||||
|
throw new Error(
|
||||||
|
`❌ Error: Found ${unusedFiles.length} unused SVG file(s). Please check the list above.`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error("❌ Error:", error);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
checkUnusedSVGs();
|
||||||