Compare commits

...

12 Commits

Author SHA1 Message Date
Redon
7fbddadd63
Merge 03a613474e into 0b1776c00e 2024-09-09 10:08:12 +08:00
Pablo Hdez
0b1776c00e
Merge pull request #405 from 1weiho/fix/fetch-fail-keep-loading
Some checks failed
⚙️ Check app / vitest (push) Has been cancelled
⚙️ Check app / svgs-size (push) Has been cancelled
🚀 Deploy API / Deploy (push) Has been cancelled
Fix: cancel the loading state after the react component fetch fails
2024-09-08 19:00:44 +01:00
Yiwei Ho
84977d7f6d fix: after the react component fetch fails, it should cancel the loading state 2024-09-09 00:50:26 +08:00
Pablo Hdez
1093b962cd
Merge pull request #404 from Pyr33x/main
Some checks are pending
⚙️ Check app / vitest (push) Waiting to run
⚙️ Check app / svgs-size (push) Waiting to run
🚀 Deploy API / Deploy (push) Waiting to run
feat: back with some little things 😄
2024-09-08 13:42:14 +01:00
pyr33x
3fefbf4bbb just in case for screen readers 2024-09-07 21:42:27 +03:30
pyr33x
7ac4fca29d it's not active anymore 2024-09-07 21:34:04 +03:30
pyr33x
34839ed492 chore: add stripe to payment category 2024-09-07 21:27:15 +03:30
pheralb
244744488f 🎨 Add pointer-events-none to img 2024-09-04 11:30:14 +01:00
pheralb
575d483cf6 📦 Add Raspberry PI SVG 2024-09-04 11:26:13 +01:00
pheralb
510c543216 🤔 Add `Hardware` category 2024-09-04 11:25:53 +01:00
pheralb
a7d2640dac 🫡 Delete raycast warning 2024-09-04 11:22:41 +01:00
ChenZhoYu
03a613474e fix: excess parameter 2024-06-05 09:12:15 +08:00
7 changed files with 16 additions and 60 deletions

View File

@ -113,6 +113,7 @@
description: `${error ?? ''}`, description: `${error ?? ''}`,
duration: 5000 duration: 5000
}); });
isLoading = false;
return; return;
} }

View File

@ -52,7 +52,7 @@
let moreTagsOptions = false; let moreTagsOptions = false;
// Global Images Styles: // Global Images Styles:
const globalImageStyles = 'mb-4 mt-2 h-10 select-none'; const globalImageStyles = 'mb-4 mt-2 h-10 select-none pointer-events-none';
</script> </script>
<div <div
@ -102,7 +102,11 @@
<div class="flex items-center space-x-1 justify-center"> <div class="flex items-center space-x-1 justify-center">
{#if Array.isArray(svgInfo.category)} {#if Array.isArray(svgInfo.category)}
{#each svgInfo.category.slice(0, maxVisibleCategories) as c, index} {#each svgInfo.category.slice(0, maxVisibleCategories) as c, index}
<a href={`/directory/${c.toLowerCase()}`} class={badgeStyles}>{c}</a> <a
href={`/directory/${c.toLowerCase()}`}
class={badgeStyles}
title={`This icon is part of the ${svgInfo.category} category`}>{c}</a
>
{/each} {/each}
{#if svgInfo.category.length > maxVisibleCategories} {#if svgInfo.category.length > maxVisibleCategories}

View File

@ -1,49 +0,0 @@
<script lang="ts">
import { browser } from '$app/environment';
import { buttonStyles } from '@/ui/styles';
import { cn } from '@/utils/cn';
import RaycastIcon from './icons/raycastIcon.svelte';
import { ArrowUpLeft, ArrowUpRight, X } from 'lucide-svelte';
import XIcon from './icons/xIcon.svelte';
let warning = false;
let warningName = 'svgl_warning_raycast_message';
const initialValue = browser ? window.localStorage.getItem(warningName) : true;
</script>
{#if !warning && !initialValue}
<div
class="flex items-center w-full justify-between md:flex-row flex-col md:space-x-2 space-x-0 space-y-2 md:space-y-0 py-2 px-3 bg-neutral-100/60 dark:bg-neutral-800/40 text-neutral-700 dark:text-neutral-300 border-b border-neutral-200 dark:border-neutral-800"
>
<div class="flex items-center space-x-2">
<RaycastIcon
iconSize={22}
className="mr-1 flex-shrink-0 text-rose-600 dark:text-rose-500 animate-pulse"
/>
<p>
Update your <strong>Raycast</strong> extension to the latest version to use the new SVGL API.
</p>
</div>
<div class="flex items-center space-x-2">
<a
href="https://x.com/1weiho/status/1828077090824241445"
class={cn(buttonStyles, 'h-10 text-sm')}
target="_blank"
>
<XIcon iconSize={14} />
<span>How to update</span>
<ArrowUpRight size={14} strokeWidth={2} />
</a>
<button
class={cn(buttonStyles, 'h-10 text-sm')}
on:click={() => {
localStorage.setItem(warningName, 'true');
warning = true;
}}
>
<X size={14} strokeWidth={2} />
<span>Close</span>
</button>
</div>
</div>
{/if}

View File

@ -2010,7 +2010,7 @@ export const svgs: iSVG[] = [
}, },
{ {
title: 'Stripe', title: 'Stripe',
category: 'Software', category: ['Software', 'Payment'],
route: '/library/stripe.svg', route: '/library/stripe.svg',
url: 'https://stripe.com/' url: 'https://stripe.com/'
}, },
@ -2508,12 +2508,6 @@ export const svgs: iSVG[] = [
}, },
url: 'https://www.markdownguide.org/' url: 'https://www.markdownguide.org/'
}, },
{
title: 'Movie Web',
category: 'Entertainment',
route: '/library/movie-web.svg',
url: 'https://movie-web.app/'
},
{ {
title: 'Radix UI', title: 'Radix UI',
category: 'Library', category: 'Library',
@ -2914,5 +2908,11 @@ export const svgs: iSVG[] = [
category: ['Google', 'Software'], category: ['Google', 'Software'],
route: '/library/Google_Colaboratory.svg', route: '/library/Google_Colaboratory.svg',
url: 'https://colab.research.google.com/' url: 'https://colab.research.google.com/'
},
{
title: 'Raspberry PI',
category: ['Hardware', 'Software'],
route: '/library/raspberry_pi.svg',
url: 'https://www.raspberrypi.com/'
} }
]; ];

View File

@ -30,7 +30,6 @@
// Layout: // Layout:
import Navbar from '@/components/navbar.svelte'; import Navbar from '@/components/navbar.svelte';
import WarningRaycast from '@/components/warningRaycast.svelte';
</script> </script>
<ModeWatcher /> <ModeWatcher />
@ -88,7 +87,6 @@
</aside> </aside>
<div class="ml-0 md:ml-56 pb-6"> <div class="ml-0 md:ml-56 pb-6">
<Warning /> <Warning />
<WarningRaycast />
<Transition pathname={data.pathname}> <Transition pathname={data.pathname}>
<slot /> <slot />
</Transition> </Transition>

View File

@ -2,6 +2,7 @@ export type tCategory =
| 'All' | 'All'
| 'AI' | 'AI'
| 'Software' | 'Software'
| 'Hardware'
| 'Library' | 'Library'
| 'Hosting' | 'Hosting'
| 'Framework' | 'Framework'

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.2 KiB