Skip to content

Commit

Permalink
chore: format, use tailwindcss 'size', fix transition props
Browse files Browse the repository at this point in the history
matschik committed Mar 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 06f890a commit ba9422a
Showing 7 changed files with 4,805 additions and 1,925 deletions.
4 changes: 2 additions & 2 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -24,11 +24,11 @@
* Disable this if you'd like to use dynamic types.
*/
"checkJs": true,
"experimentalDecorators": true,
"experimentalDecorators": true
},
/**
* Use global.d.ts instead of compilerOptions.types
* to avoid limiting type declarations.
*/
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"],
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "component-party",
"name": "component-party.dev",
"private": true,
"version": "2.0.0",
"type": "module",
"packageManager": "[email protected]",
"repository": "github:matschik/component-party.dev",
"scripts": {
"dev": "vite",
"build": "vite build",
6,695 changes: 4,787 additions & 1,908 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/App.svelte
Original file line number Diff line number Diff line change
@@ -188,7 +188,7 @@
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="w-4 h-4"
class="size-4"
>
<path
stroke-linecap="round"
@@ -208,17 +208,17 @@
{#if frameworkIdsSelected.size === 0}
<div class="space-y-4">
<div class="flex justify-center">
<ArrowUpIcon class="w-6 h-6 animate-bounce" />
<ArrowUpIcon class="size-6 animate-bounce" />
</div>
<div class="flex justify-center">
<p
class="text-lg opacity-80 flex items-center text-center space-x-3"
>
<img src="/popper.svg" alt="logo" class="w-6 h-6" />
<img src="/popper.svg" alt="logo" class="size-6" />
<span>
Please select a framework to view framework's snippets
</span>
<img src="/popper.svg" alt="logo" class="w-6 h-6" />
<img src="/popper.svg" alt="logo" class="size-6" />
</p>
</div>
</div>
@@ -343,7 +343,7 @@
<img
src="/popper.svg"
alt="logo"
class="w-5 h-5 m-0 inline-block"
class="size-5 m-0 inline-block"
/>
</span>
</div>
8 changes: 4 additions & 4 deletions src/components/AppNotificationCenter.svelte
Original file line number Diff line number Diff line change
@@ -9,11 +9,11 @@
<TransitionWithClass
class="pointer-events-auto overflow-hidden rounded-lg bg-[#181622] border border-[#33323e] shadow-lg ring-1 ring-black ring-opacity-5"
enter="transform ease-out duration-200 transition"
enterfrom="translate-y-2 opacity-0 translate-y-0 translate-x-2"
enterto="translate-y-0 opacity-100 translate-x-0"
enterFrom="translate-y-2 opacity-0 translate-y-0 translate-x-2"
enterTo="translate-y-0 opacity-100 translate-x-0"
leave="transition ease-in duration-100"
leavefrom="opacity-100"
leaveto="opacity-0"
leaveFrom="opacity-100"
leaveTo="opacity-0"
>
<div class="p-4">
<div class="flex items-start">
4 changes: 2 additions & 2 deletions src/components/GithubStarButton.svelte
Original file line number Diff line number Diff line change
@@ -69,14 +69,14 @@
<span
class="space-x-2 flex items-center border-r border-[#373b43] font-medium px-2"
>
<GithubIcon class="w-[1.1rem] h-[1.1rem]" />
<GithubIcon class="size-[1.1rem]" />
<span class="mt-px">Star</span>
</span>
{#if isFetchingStarCount || starCount !== 0}
<div class="h-full flex justify-center items-center pl-3 pr-3 font-medium">
{#if isFetchingStarCount && starCount === 0}
<svg
class="animate-spin h-4 w-4 mx-1"
class="animate-spin size-4 mx-1"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"module": "es2020",
"lib": ["es2018", "dom"],
"paths": {
"@/*": ["src/*"],
},
},
"@/*": ["src/*"]
}
}
}

0 comments on commit ba9422a

Please sign in to comment.