From 5587d0f9961c9e9b5d07ff730934ab95a8485ae2 Mon Sep 17 00:00:00 2001 From: Allen Zhang Date: Tue, 22 Oct 2024 16:53:16 +0800 Subject: [PATCH 1/2] feat(plugins): Update favicon (#67) use website [icon](https://github.com/swc-project/website/blob/main/public/favicon/favicon.ico) --- apps/swc-plugins/app/favicon.ico | Bin 25931 -> 15086 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/apps/swc-plugins/app/favicon.ico b/apps/swc-plugins/app/favicon.ico index 718d6fea4835ec2d246af9800eddb7ffb276240c..df83fbb22e24ab84b26a23433749a90f4150bb06 100644 GIT binary patch literal 15086 zcmeHOX;f5Kwl2j)^O6;{^RzWDL1L1QiAlunPK>j0h;fc_9&p4V8Yi3(K}Nx-!~rJ~ zH8?;aAcIIDU2z&$4mxLN9cm|C|^echc!@;an%w+V$n_bh zXy=>DYY!{?UpoVK2J8&j8L%^8XTZ*YodG)ob_V|c3r?XhiIemBX_E^0 zeiI7$XIrlSR{h?!CWpUVZ+fHejiyO`Zd#_iQ)_YVU1xdJc2ESp2K+g|uLhi94EU98 zXV|yEf5C%ApiIB6ltexs&pIpW#CulT@t@{Nf%GJWQsj!W(l2uKVV9Z z&@d&Jmw{iMP{98*zKB0J&Sd-ZZ?*qHjrE21t~TxHd#$Mv_~kygEXrH8miuqjS&qM1 zZ+S(#7x)(dzjPvv$Y5fWSj6afIwPO6j67r1vs=%qoqx^7=gD$c;MaeaBD0_ZnNCzG zbfQL~oux7@$`ol%rkFA7vJf>hTTtA~L^^a+qQkc&3b-cHG&4_QO}4TzX4{*;)c$~K zYnOgC*3g5wzNO=J{T zz(}79{AX1e_!s|D`>PFd*Ut^Ie&q$3g_bCEvQi=UY?;<)OLVA0ro&Y-%|#z(UlwR* zl|-R8Wm-`z(jqf(TovhHokWw0ZS=9(c3@Jo(%csNeM_ z>T{#1;GLV6OYhcN)PTS7H2iK8z1H}^)N)@-?Hk2L!T)Vh`Hc3b0e_5|?h&g#({kM{ zQR%w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GxhBsp@SUU60-rfc$=wb>zdJzXS&-5(NRRodFk;Kxk!S(O(a0e7oY=E( zAyS;Ow?6Q&XA+cnkCb{28_1N8H#?J!*$MmIwLq^*T_9-z^&UE@A(z9oGYtFy6EZef LrJugUA?W`A8`#=m From a3889a338813ae17388e848aa15d819bad8e681a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Wed, 23 Oct 2024 12:25:29 +0900 Subject: [PATCH 2/2] chore(ci): Fix CI (#68) --- .changeset/curly-cameras-drive.md | 5 + apps/swc-plugins/.eslintignore | 3 - apps/swc-plugins/.eslintrc.json | 8 - apps/swc-plugins/.gitignore | 39 -- apps/swc-plugins/README.md | 36 -- apps/swc-plugins/app/(home)/page.tsx | 33 -- apps/swc-plugins/app/api-client-provider.tsx | 38 -- .../app/api/auth/[...nextauth]/route.ts | 2 - apps/swc-plugins/app/api/trpc/[trpc]/route.ts | 3 - .../app/api/update/runtimes/route.ts | 13 - .../app/api/update/wasm-plugins/route.ts | 13 - apps/swc-plugins/app/client-providers.tsx | 13 - apps/swc-plugins/app/favicon.ico | Bin 15086 -> 0 bytes apps/swc-plugins/app/globals.css | 69 --- apps/swc-plugins/app/import/ranges/page.tsx | 46 -- apps/swc-plugins/app/import/runtime/route.ts | 76 ---- apps/swc-plugins/app/import/swc_core/route.ts | 29 -- apps/swc-plugins/app/layout.tsx | 31 -- apps/swc-plugins/app/loading.tsx | 7 - apps/swc-plugins/app/robots.ts | 11 - .../app/versions/from-core/[version]/page.tsx | 19 - .../from-plugin-runner/[version]/page.tsx | 19 - apps/swc-plugins/app/versions/layout.tsx | 28 -- .../components/compat-range-header.tsx | 47 -- .../components/compat-range-tables.tsx | 97 ----- .../versions/range/[compatRangeId]/page.tsx | 27 -- .../versions/range/components/range-table.tsx | 61 --- apps/swc-plugins/app/versions/range/page.tsx | 19 - apps/swc-plugins/components.json | 17 - apps/swc-plugins/components/dynamic.tsx | 17 - apps/swc-plugins/components/logo/index.tsx | 15 - apps/swc-plugins/components/logo/swc.svg | 12 - .../components/runtime-version-selector.tsx | 52 --- apps/swc-plugins/components/select.tsx | 196 --------- .../components/table-container.tsx | 29 -- apps/swc-plugins/components/ui/accordion.tsx | 58 --- .../components/ui/alert-dialog.tsx | 141 ------ apps/swc-plugins/components/ui/alert.tsx | 62 --- .../components/ui/aspect-ratio.tsx | 7 - apps/swc-plugins/components/ui/avatar.tsx | 50 --- apps/swc-plugins/components/ui/badge.tsx | 36 -- apps/swc-plugins/components/ui/breadcrumb.tsx | 115 ----- apps/swc-plugins/components/ui/button.tsx | 57 --- apps/swc-plugins/components/ui/calendar.tsx | 68 --- apps/swc-plugins/components/ui/card.tsx | 86 ---- apps/swc-plugins/components/ui/carousel.tsx | 263 ----------- apps/swc-plugins/components/ui/chart.tsx | 407 ------------------ apps/swc-plugins/components/ui/checkbox.tsx | 30 -- .../swc-plugins/components/ui/collapsible.tsx | 11 - apps/swc-plugins/components/ui/command.tsx | 158 ------- .../components/ui/context-menu.tsx | 200 --------- apps/swc-plugins/components/ui/dialog.tsx | 122 ------ apps/swc-plugins/components/ui/drawer.tsx | 118 ----- .../components/ui/dropdown-menu.tsx | 203 --------- apps/swc-plugins/components/ui/form.tsx | 179 -------- apps/swc-plugins/components/ui/hover-card.tsx | 29 -- apps/swc-plugins/components/ui/input-otp.tsx | 71 --- apps/swc-plugins/components/ui/input.tsx | 25 -- apps/swc-plugins/components/ui/label.tsx | 26 -- apps/swc-plugins/components/ui/menubar.tsx | 242 ----------- .../components/ui/navigation-menu.tsx | 128 ------ apps/swc-plugins/components/ui/pagination.tsx | 117 ----- apps/swc-plugins/components/ui/popover.tsx | 31 -- apps/swc-plugins/components/ui/progress.tsx | 28 -- .../swc-plugins/components/ui/radio-group.tsx | 44 -- apps/swc-plugins/components/ui/resizable.tsx | 45 -- .../swc-plugins/components/ui/scroll-area.tsx | 50 --- apps/swc-plugins/components/ui/select.tsx | 160 ------- apps/swc-plugins/components/ui/separator.tsx | 33 -- apps/swc-plugins/components/ui/sheet.tsx | 138 ------ apps/swc-plugins/components/ui/skeleton.tsx | 15 - apps/swc-plugins/components/ui/slider.tsx | 28 -- apps/swc-plugins/components/ui/sonner.tsx | 30 -- apps/swc-plugins/components/ui/switch.tsx | 29 -- apps/swc-plugins/components/ui/table.tsx | 120 ------ apps/swc-plugins/components/ui/tabs.tsx | 55 --- apps/swc-plugins/components/ui/textarea.tsx | 24 -- apps/swc-plugins/components/ui/toast.tsx | 129 ------ apps/swc-plugins/components/ui/toaster.tsx | 43 -- .../components/ui/toggle-group.tsx | 61 --- apps/swc-plugins/components/ui/toggle.tsx | 45 -- apps/swc-plugins/components/ui/tooltip.tsx | 30 -- apps/swc-plugins/components/ui/use-toast.ts | 192 --------- apps/swc-plugins/data/ranges.json | 66 --- apps/swc-plugins/lib/abilities.ts | 79 ---- apps/swc-plugins/lib/api/auth.ts | 42 -- .../swc-plugins/lib/api/compatRange/router.ts | 375 ---------------- apps/swc-plugins/lib/api/compatRange/zod.ts | 8 - apps/swc-plugins/lib/api/router.ts | 20 - apps/swc-plugins/lib/api/runtimes/router.ts | 57 --- apps/swc-plugins/lib/api/server.ts | 180 -------- apps/swc-plugins/lib/api/updater/router.ts | 178 -------- apps/swc-plugins/lib/api/users/router.ts | 11 - apps/swc-plugins/lib/auth.ts | 12 - apps/swc-plugins/lib/auth/user-context.tsx | 120 ------ apps/swc-plugins/lib/base/index.ts | 133 ------ apps/swc-plugins/lib/fonts.ts | 13 - apps/swc-plugins/lib/hooks/use-user.ts | 9 - apps/swc-plugins/lib/prisma/.gitignore | 1 - apps/swc-plugins/lib/prisma/client.ts | 18 - apps/swc-plugins/lib/prisma/index.ts | 2 - apps/swc-plugins/lib/server.ts | 176 -------- apps/swc-plugins/lib/trpc/web-client.ts | 6 - apps/swc-plugins/lib/type-utils.ts | 10 - apps/swc-plugins/lib/utils.ts | 11 - apps/swc-plugins/mocks/empty.ts | 1 - apps/swc-plugins/next.config.mjs | 8 - apps/swc-plugins/package.json | 103 ----- apps/swc-plugins/postcss.config.mjs | 8 - apps/swc-plugins/prisma/schema.prisma | 220 ---------- apps/swc-plugins/public/next.svg | 1 - apps/swc-plugins/public/vercel.svg | 1 - apps/swc-plugins/scripts/import-swc-core.mjs | 54 --- apps/swc-plugins/tailwind.config.ts | 80 ---- apps/swc-plugins/tsconfig.json | 26 -- 115 files changed, 5 insertions(+), 7493 deletions(-) create mode 100644 .changeset/curly-cameras-drive.md delete mode 100644 apps/swc-plugins/.eslintignore delete mode 100644 apps/swc-plugins/.eslintrc.json delete mode 100644 apps/swc-plugins/.gitignore delete mode 100644 apps/swc-plugins/README.md delete mode 100644 apps/swc-plugins/app/(home)/page.tsx delete mode 100644 apps/swc-plugins/app/api-client-provider.tsx delete mode 100644 apps/swc-plugins/app/api/auth/[...nextauth]/route.ts delete mode 100644 apps/swc-plugins/app/api/trpc/[trpc]/route.ts delete mode 100644 apps/swc-plugins/app/api/update/runtimes/route.ts delete mode 100644 apps/swc-plugins/app/api/update/wasm-plugins/route.ts delete mode 100644 apps/swc-plugins/app/client-providers.tsx delete mode 100644 apps/swc-plugins/app/favicon.ico delete mode 100644 apps/swc-plugins/app/globals.css delete mode 100644 apps/swc-plugins/app/import/ranges/page.tsx delete mode 100644 apps/swc-plugins/app/import/runtime/route.ts delete mode 100644 apps/swc-plugins/app/import/swc_core/route.ts delete mode 100644 apps/swc-plugins/app/layout.tsx delete mode 100644 apps/swc-plugins/app/loading.tsx delete mode 100644 apps/swc-plugins/app/robots.ts delete mode 100644 apps/swc-plugins/app/versions/from-core/[version]/page.tsx delete mode 100644 apps/swc-plugins/app/versions/from-plugin-runner/[version]/page.tsx delete mode 100644 apps/swc-plugins/app/versions/layout.tsx delete mode 100644 apps/swc-plugins/app/versions/range/[compatRangeId]/components/compat-range-header.tsx delete mode 100644 apps/swc-plugins/app/versions/range/[compatRangeId]/components/compat-range-tables.tsx delete mode 100644 apps/swc-plugins/app/versions/range/[compatRangeId]/page.tsx delete mode 100644 apps/swc-plugins/app/versions/range/components/range-table.tsx delete mode 100644 apps/swc-plugins/app/versions/range/page.tsx delete mode 100644 apps/swc-plugins/components.json delete mode 100644 apps/swc-plugins/components/dynamic.tsx delete mode 100644 apps/swc-plugins/components/logo/index.tsx delete mode 100644 apps/swc-plugins/components/logo/swc.svg delete mode 100644 apps/swc-plugins/components/runtime-version-selector.tsx delete mode 100644 apps/swc-plugins/components/select.tsx delete mode 100644 apps/swc-plugins/components/table-container.tsx delete mode 100644 apps/swc-plugins/components/ui/accordion.tsx delete mode 100644 apps/swc-plugins/components/ui/alert-dialog.tsx delete mode 100644 apps/swc-plugins/components/ui/alert.tsx delete mode 100644 apps/swc-plugins/components/ui/aspect-ratio.tsx delete mode 100644 apps/swc-plugins/components/ui/avatar.tsx delete mode 100644 apps/swc-plugins/components/ui/badge.tsx delete mode 100644 apps/swc-plugins/components/ui/breadcrumb.tsx delete mode 100644 apps/swc-plugins/components/ui/button.tsx delete mode 100644 apps/swc-plugins/components/ui/calendar.tsx delete mode 100644 apps/swc-plugins/components/ui/card.tsx delete mode 100644 apps/swc-plugins/components/ui/carousel.tsx delete mode 100644 apps/swc-plugins/components/ui/chart.tsx delete mode 100644 apps/swc-plugins/components/ui/checkbox.tsx delete mode 100644 apps/swc-plugins/components/ui/collapsible.tsx delete mode 100644 apps/swc-plugins/components/ui/command.tsx delete mode 100644 apps/swc-plugins/components/ui/context-menu.tsx delete mode 100644 apps/swc-plugins/components/ui/dialog.tsx delete mode 100644 apps/swc-plugins/components/ui/drawer.tsx delete mode 100644 apps/swc-plugins/components/ui/dropdown-menu.tsx delete mode 100644 apps/swc-plugins/components/ui/form.tsx delete mode 100644 apps/swc-plugins/components/ui/hover-card.tsx delete mode 100644 apps/swc-plugins/components/ui/input-otp.tsx delete mode 100644 apps/swc-plugins/components/ui/input.tsx delete mode 100644 apps/swc-plugins/components/ui/label.tsx delete mode 100644 apps/swc-plugins/components/ui/menubar.tsx delete mode 100644 apps/swc-plugins/components/ui/navigation-menu.tsx delete mode 100644 apps/swc-plugins/components/ui/pagination.tsx delete mode 100644 apps/swc-plugins/components/ui/popover.tsx delete mode 100644 apps/swc-plugins/components/ui/progress.tsx delete mode 100644 apps/swc-plugins/components/ui/radio-group.tsx delete mode 100644 apps/swc-plugins/components/ui/resizable.tsx delete mode 100644 apps/swc-plugins/components/ui/scroll-area.tsx delete mode 100644 apps/swc-plugins/components/ui/select.tsx delete mode 100644 apps/swc-plugins/components/ui/separator.tsx delete mode 100644 apps/swc-plugins/components/ui/sheet.tsx delete mode 100644 apps/swc-plugins/components/ui/skeleton.tsx delete mode 100644 apps/swc-plugins/components/ui/slider.tsx delete mode 100644 apps/swc-plugins/components/ui/sonner.tsx delete mode 100644 apps/swc-plugins/components/ui/switch.tsx delete mode 100644 apps/swc-plugins/components/ui/table.tsx delete mode 100644 apps/swc-plugins/components/ui/tabs.tsx delete mode 100644 apps/swc-plugins/components/ui/textarea.tsx delete mode 100644 apps/swc-plugins/components/ui/toast.tsx delete mode 100644 apps/swc-plugins/components/ui/toaster.tsx delete mode 100644 apps/swc-plugins/components/ui/toggle-group.tsx delete mode 100644 apps/swc-plugins/components/ui/toggle.tsx delete mode 100644 apps/swc-plugins/components/ui/tooltip.tsx delete mode 100644 apps/swc-plugins/components/ui/use-toast.ts delete mode 100644 apps/swc-plugins/data/ranges.json delete mode 100644 apps/swc-plugins/lib/abilities.ts delete mode 100644 apps/swc-plugins/lib/api/auth.ts delete mode 100644 apps/swc-plugins/lib/api/compatRange/router.ts delete mode 100644 apps/swc-plugins/lib/api/compatRange/zod.ts delete mode 100644 apps/swc-plugins/lib/api/router.ts delete mode 100644 apps/swc-plugins/lib/api/runtimes/router.ts delete mode 100644 apps/swc-plugins/lib/api/server.ts delete mode 100644 apps/swc-plugins/lib/api/updater/router.ts delete mode 100644 apps/swc-plugins/lib/api/users/router.ts delete mode 100644 apps/swc-plugins/lib/auth.ts delete mode 100644 apps/swc-plugins/lib/auth/user-context.tsx delete mode 100644 apps/swc-plugins/lib/base/index.ts delete mode 100644 apps/swc-plugins/lib/fonts.ts delete mode 100644 apps/swc-plugins/lib/hooks/use-user.ts delete mode 100644 apps/swc-plugins/lib/prisma/.gitignore delete mode 100644 apps/swc-plugins/lib/prisma/client.ts delete mode 100644 apps/swc-plugins/lib/prisma/index.ts delete mode 100644 apps/swc-plugins/lib/server.ts delete mode 100644 apps/swc-plugins/lib/trpc/web-client.ts delete mode 100644 apps/swc-plugins/lib/type-utils.ts delete mode 100644 apps/swc-plugins/lib/utils.ts delete mode 100644 apps/swc-plugins/mocks/empty.ts delete mode 100644 apps/swc-plugins/next.config.mjs delete mode 100644 apps/swc-plugins/package.json delete mode 100644 apps/swc-plugins/postcss.config.mjs delete mode 100644 apps/swc-plugins/prisma/schema.prisma delete mode 100644 apps/swc-plugins/public/next.svg delete mode 100644 apps/swc-plugins/public/vercel.svg delete mode 100755 apps/swc-plugins/scripts/import-swc-core.mjs delete mode 100644 apps/swc-plugins/tailwind.config.ts delete mode 100644 apps/swc-plugins/tsconfig.json diff --git a/.changeset/curly-cameras-drive.md b/.changeset/curly-cameras-drive.md new file mode 100644 index 0000000..403145b --- /dev/null +++ b/.changeset/curly-cameras-drive.md @@ -0,0 +1,5 @@ +--- +"@swc/cli": minor +--- + +Bump @swc/cli diff --git a/apps/swc-plugins/.eslintignore b/apps/swc-plugins/.eslintignore deleted file mode 100644 index 7eaeda2..0000000 --- a/apps/swc-plugins/.eslintignore +++ /dev/null @@ -1,3 +0,0 @@ -*.d.ts -/lib/generated -/components/ui diff --git a/apps/swc-plugins/.eslintrc.json b/apps/swc-plugins/.eslintrc.json deleted file mode 100644 index 4ea7446..0000000 --- a/apps/swc-plugins/.eslintrc.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "next/core-web-vitals", - "rules": { - "@typescript-eslint/no-unused-vars": "off", - "@next/next/no-server-import-in-page": "off", - "@typescript-eslint/ban-types": "off" - } -} diff --git a/apps/swc-plugins/.gitignore b/apps/swc-plugins/.gitignore deleted file mode 100644 index 7b18c1c..0000000 --- a/apps/swc-plugins/.gitignore +++ /dev/null @@ -1,39 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js -.yarn/install-state.gz - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# local env files -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts - -# scripts -.cache/ \ No newline at end of file diff --git a/apps/swc-plugins/README.md b/apps/swc-plugins/README.md deleted file mode 100644 index 5ce4a7c..0000000 --- a/apps/swc-plugins/README.md +++ /dev/null @@ -1,36 +0,0 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). - -## Getting Started - -First, run the development server: - -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. - -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. diff --git a/apps/swc-plugins/app/(home)/page.tsx b/apps/swc-plugins/app/(home)/page.tsx deleted file mode 100644 index 0129517..0000000 --- a/apps/swc-plugins/app/(home)/page.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import { Logo } from "@/components/logo"; -import { RuntimeVersionSelector } from "@/components/runtime-version-selector"; -import { Button } from "@/components/ui/button"; -import { Metadata } from "next"; -import Link from "next/link"; -import { FC } from "react"; - -export const metadata: Metadata = { - title: "SWC Plugins", - description: "A collection of SWC plugins, ready to use in your project.", -}; - -const Home: FC = () => ( -
-
- -
-

- SWC Plugins -

-

- A collection of SWC plugins, ready to use in your project. -

-
- - -
-
-); - -export default Home; diff --git a/apps/swc-plugins/app/api-client-provider.tsx b/apps/swc-plugins/app/api-client-provider.tsx deleted file mode 100644 index 5980269..0000000 --- a/apps/swc-plugins/app/api-client-provider.tsx +++ /dev/null @@ -1,38 +0,0 @@ -"use client"; - -import { apiClient } from "@/lib/trpc/web-client"; -import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; -import { httpBatchLink } from "@trpc/client"; -import { PropsWithChildren, useState } from "react"; -import superjson from "superjson"; - -export function ApiClientProvider({ children }: PropsWithChildren<{}>) { - const [queryClient] = useState( - () => - new QueryClient({ - defaultOptions: { - queries: { - queryKeyHashFn: (queryKey) => - superjson.stringify(queryKey), - }, - }, - }) - ); - const [trpcClient] = useState(() => - apiClient.createClient({ - links: [ - httpBatchLink({ - url: "/api/trpc", - transformer: superjson, - }), - ], - }) - ); - return ( - - - {children} - - - ); -} diff --git a/apps/swc-plugins/app/api/auth/[...nextauth]/route.ts b/apps/swc-plugins/app/api/auth/[...nextauth]/route.ts deleted file mode 100644 index 73228a0..0000000 --- a/apps/swc-plugins/app/api/auth/[...nextauth]/route.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { handlers } from "@/lib/auth"; -export const { GET, POST } = handlers; diff --git a/apps/swc-plugins/app/api/trpc/[trpc]/route.ts b/apps/swc-plugins/app/api/trpc/[trpc]/route.ts deleted file mode 100644 index 09bbacc..0000000 --- a/apps/swc-plugins/app/api/trpc/[trpc]/route.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { handler } from "@/lib/api/server"; - -export { handler as GET, handler as POST }; diff --git a/apps/swc-plugins/app/api/update/runtimes/route.ts b/apps/swc-plugins/app/api/update/runtimes/route.ts deleted file mode 100644 index ad3c950..0000000 --- a/apps/swc-plugins/app/api/update/runtimes/route.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { UpdateRuntimesInputSchema } from "@/lib/api/updater/router"; -import { createCaller } from "@/lib/server"; -import { NextRequest, NextResponse } from "next/server"; - -export const POST = async (req: NextRequest) => { - const body = UpdateRuntimesInputSchema.parse(await req.json()); - - const api = await createCaller(); - - await api.updater.updateRuntimes(body); - - return NextResponse.json({ ok: true }); -}; diff --git a/apps/swc-plugins/app/api/update/wasm-plugins/route.ts b/apps/swc-plugins/app/api/update/wasm-plugins/route.ts deleted file mode 100644 index c0e5fa1..0000000 --- a/apps/swc-plugins/app/api/update/wasm-plugins/route.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { UpdateWasmPluginsInputSchema } from "@/lib/api/updater/router"; -import { createCaller } from "@/lib/server"; -import { NextRequest, NextResponse } from "next/server"; - -export const POST = async (req: NextRequest) => { - const body = UpdateWasmPluginsInputSchema.parse(await req.json()); - - const api = await createCaller(); - - await api.updater.updateWasmPlugins(body); - - return NextResponse.json({ ok: true }); -}; diff --git a/apps/swc-plugins/app/client-providers.tsx b/apps/swc-plugins/app/client-providers.tsx deleted file mode 100644 index 578a672..0000000 --- a/apps/swc-plugins/app/client-providers.tsx +++ /dev/null @@ -1,13 +0,0 @@ -"use client"; - -import { ThemeProvider } from "next-themes"; -import { PropsWithChildren } from "react"; -import { ApiClientProvider } from "./api-client-provider"; - -export function ClientProviders({ children }: PropsWithChildren) { - return ( - - {children} - - ); -} diff --git a/apps/swc-plugins/app/favicon.ico b/apps/swc-plugins/app/favicon.ico deleted file mode 100644 index df83fbb22e24ab84b26a23433749a90f4150bb06..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15086 zcmeHOX;f5Kw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y5E30fN+J*75o zMtPz~j-0qENAh1%C~jL(Di~&!@H4gRy(^lY8*|gTWqgA*v43OJT)ZR9+n>a;_olFd zmEme9_f%!7f40(yy`j0j#gcVXvG~8sONGK^6+-zyGxzG`Yh3WmTJG++25bKCJ57z) z2hjU~f#rUg%;G%HEAw__Dz`n-<>TuvOJDhzrMrvrL{Hp*X;C?!KdsVsY~Bsqy^pSQ zv)`<>^z74MaXEC33UGhEUxMltd`WHeNmGuyr^`pY^W?kBE{ls+n#7Zs0~Sv!0U?@Gwn}fje!@`(5!ZEU!Dq<@_ZxO5G4C}oO1CX3O7NzO^4$M9CN#h6&CeG`e^x3aq5m1n zuko1^Yq*oR|AiL&TD=I*Z{}Xs{9ZLDN^Upyr1aQ(;@d{<>E2n~Gu?BWp7~R8(-ZIW qZf)Z~^)ofEscP%0KOcjPI^7Y7$KD{F?iI`!9dIP$bL;Q4eEvIT@$;Af diff --git a/apps/swc-plugins/app/globals.css b/apps/swc-plugins/app/globals.css deleted file mode 100644 index 61399ce..0000000 --- a/apps/swc-plugins/app/globals.css +++ /dev/null @@ -1,69 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; - -@layer base { - :root { - --background: 0 0% 100%; - --foreground: 222.2 84% 4.9%; - --card: 0 0% 100%; - --card-foreground: 222.2 84% 4.9%; - --popover: 0 0% 100%; - --popover-foreground: 222.2 84% 4.9%; - --primary: 222.2 47.4% 11.2%; - --primary-foreground: 210 40% 98%; - --secondary: 210 40% 96.1%; - --secondary-foreground: 222.2 47.4% 11.2%; - --muted: 210 40% 96.1%; - --muted-foreground: 215.4 16.3% 46.9%; - --accent: 210 40% 96.1%; - --accent-foreground: 222.2 47.4% 11.2%; - --destructive: 0 84.2% 60.2%; - --destructive-foreground: 210 40% 98%; - --border: 214.3 31.8% 91.4%; - --input: 214.3 31.8% 91.4%; - --ring: 222.2 84% 4.9%; - --radius: 0.5rem; - --chart-1: 12 76% 61%; - --chart-2: 173 58% 39%; - --chart-3: 197 37% 24%; - --chart-4: 43 74% 66%; - --chart-5: 27 87% 67%; - } - - .dark { - --background: 222.2 84% 4.9%; - --foreground: 210 40% 98%; - --card: 222.2 84% 4.9%; - --card-foreground: 210 40% 98%; - --popover: 222.2 84% 4.9%; - --popover-foreground: 210 40% 98%; - --primary: 210 40% 98%; - --primary-foreground: 222.2 47.4% 11.2%; - --secondary: 217.2 32.6% 17.5%; - --secondary-foreground: 210 40% 98%; - --muted: 217.2 32.6% 17.5%; - --muted-foreground: 215 20.2% 65.1%; - --accent: 217.2 32.6% 17.5%; - --accent-foreground: 210 40% 98%; - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 210 40% 98%; - --border: 217.2 32.6% 17.5%; - --input: 217.2 32.6% 17.5%; - --ring: 212.7 26.8% 83.9%; - --chart-1: 220 70% 50%; - --chart-2: 160 60% 45%; - --chart-3: 30 80% 55%; - --chart-4: 280 65% 60%; - --chart-5: 340 75% 55%; - } -} - -@layer base { - * { - @apply border-border; - } - body { - @apply bg-background text-foreground; - } -} diff --git a/apps/swc-plugins/app/import/ranges/page.tsx b/apps/swc-plugins/app/import/ranges/page.tsx deleted file mode 100644 index 4e31f4c..0000000 --- a/apps/swc-plugins/app/import/ranges/page.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { db } from "@/lib/prisma"; -import fs from "node:fs/promises"; - -export default async function Page() { - if (process.env.NODE_ENV === "production") { - return
Not allowed
; - } - - const ranges: { min: string; max: string }[] = JSON.parse( - await fs.readFile("./data/ranges.json", "utf8") - ); - - for (const { min, max } of ranges) { - await db.compatRange.upsert({ - where: { - from_to: { - from: min, - to: max, - }, - }, - update: {}, - create: { - from: min, - to: max, - }, - }); - } - - const runtimes = ["@swc/core", "next", "rspack", "farm"]; - - for (const runtime of runtimes) { - await db.swcRuntime.upsert({ - where: { - name: runtime, - }, - update: {}, - create: { - name: runtime, - }, - }); - } - - return
Done
; -} - -export const dynamic = "force-dynamic"; diff --git a/apps/swc-plugins/app/import/runtime/route.ts b/apps/swc-plugins/app/import/runtime/route.ts deleted file mode 100644 index c3763d7..0000000 --- a/apps/swc-plugins/app/import/runtime/route.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { db } from "@/lib/prisma"; -import { createCaller } from "@/lib/server"; -import { NextRequest, NextResponse } from "next/server"; -import { z } from "zod"; - -const VersionSchema = z.object({ - version: z.string(), - swcCoreVersion: z.string(), -}); - -const BodySchema = z.object({ - runtime: z.enum(["@swc/core", "next", "rspack"]), - versions: z.array(VersionSchema), -}); - -export async function POST(req: NextRequest) { - if (process.env.NODE_ENV === "production") { - return NextResponse.json( - { - error: "Not allowed", - }, - { - status: 403, - } - ); - } - - const { runtime, versions } = BodySchema.parse(await req.json()); - - const rt = await db.swcRuntime.findUniqueOrThrow({ - where: { - name: runtime, - }, - }); - const api = await createCaller(); - - for (const version of versions) { - const compatRange = await api.compatRange.byCoreVersion({ - version: version.swcCoreVersion, - }); - if (!compatRange) { - console.log(`No compat range found for ${version.swcCoreVersion}`); - continue; - } - - try { - await db.swcRuntimeVersion.upsert({ - where: { - runtimeId_version: { - runtimeId: rt.id, - version: version.version.replace("v", ""), - }, - }, - update: { - compatRangeId: compatRange.id, - swcCoreVersion: version.swcCoreVersion.replace("v", ""), - }, - create: { - runtimeId: rt.id, - version: version.version.replace("v", ""), - compatRangeId: compatRange.id, - swcCoreVersion: version.swcCoreVersion.replace("v", ""), - }, - }); - } catch (e) { - console.error( - `Failed to create compat range for ${version.swcCoreVersion}: ${e}` - ); - continue; - } - } - - return NextResponse.json({ - ok: true, - }); -} diff --git a/apps/swc-plugins/app/import/swc_core/route.ts b/apps/swc-plugins/app/import/swc_core/route.ts deleted file mode 100644 index 1943106..0000000 --- a/apps/swc-plugins/app/import/swc_core/route.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { createCaller } from "@/lib/server"; -import { NextRequest, NextResponse } from "next/server"; -import { z } from "zod"; - -const CoreVersionSchema = z.object({ - version: z.string(), - pluginRunnerReq: z.string(), -}); - -const BodySchema = z.object({ - coreVersions: z.array(CoreVersionSchema), - pluginRunnerVersions: z.array(z.string()), -}); - -export async function POST(req: NextRequest) { - const api = await createCaller(); - const { coreVersions, pluginRunnerVersions } = BodySchema.parse( - await req.json() - ); - - await api.compatRange.addCacheForCrates({ - coreVersions, - pluginRunnerVersions, - }); - - return NextResponse.json({ - ok: true, - }); -} diff --git a/apps/swc-plugins/app/layout.tsx b/apps/swc-plugins/app/layout.tsx deleted file mode 100644 index c1649ea..0000000 --- a/apps/swc-plugins/app/layout.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import { Dynamic } from "@/components/dynamic"; -import { Toaster } from "@/components/ui/toaster"; -import { fontBody, fontHeading } from "@/lib/fonts"; -import { cn } from "@/lib/utils"; -import { SessionProvider } from "next-auth/react"; -import NextTopLoader from "nextjs-toploader"; -import { FC, PropsWithChildren } from "react"; -import { ClientProviders } from "./client-providers"; -import "./globals.css"; - -const RootLayout: FC = ({ children }) => ( - - - - - - {children} - - - - - -); - -export default RootLayout; diff --git a/apps/swc-plugins/app/loading.tsx b/apps/swc-plugins/app/loading.tsx deleted file mode 100644 index 10e0561..0000000 --- a/apps/swc-plugins/app/loading.tsx +++ /dev/null @@ -1,7 +0,0 @@ -export default function Loading() { - return ( -
-
Loading...
-
- ); -} diff --git a/apps/swc-plugins/app/robots.ts b/apps/swc-plugins/app/robots.ts deleted file mode 100644 index ace613c..0000000 --- a/apps/swc-plugins/app/robots.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { MetadataRoute } from "next"; - -export default function robots(): MetadataRoute.Robots { - return { - rules: { - userAgent: "*", - allow: "/", - }, - // sitemap: `${BASE_URL}/sitemap.xml`, - }; -} diff --git a/apps/swc-plugins/app/versions/from-core/[version]/page.tsx b/apps/swc-plugins/app/versions/from-core/[version]/page.tsx deleted file mode 100644 index 4e070f0..0000000 --- a/apps/swc-plugins/app/versions/from-core/[version]/page.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { createCaller } from "@/lib/server"; -import { redirect } from "next/navigation"; - -export default async function Page({ - params: { version }, -}: { - params: { version: string }; -}) { - const api = await createCaller(); - const compatRange = await api.compatRange.byCoreVersion({ - version, - }); - - if (compatRange) { - return redirect(`/compat/range/${compatRange.id}`); - } - - return
No compat range found for swc_core@{version}
; -} diff --git a/apps/swc-plugins/app/versions/from-plugin-runner/[version]/page.tsx b/apps/swc-plugins/app/versions/from-plugin-runner/[version]/page.tsx deleted file mode 100644 index 340f69b..0000000 --- a/apps/swc-plugins/app/versions/from-plugin-runner/[version]/page.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { createCaller } from "@/lib/server"; -import { redirect } from "next/navigation"; - -export default async function Page({ - params: { version }, -}: { - params: { version: string }; -}) { - const api = await createCaller(); - const compatRange = await api.compatRange.byPluginRunnerVersion({ - version, - }); - - if (compatRange) { - return redirect(`/compat/range/${compatRange.id}`); - } - - return
No compat range found for swc_plugin_runner@{version}
; -} diff --git a/apps/swc-plugins/app/versions/layout.tsx b/apps/swc-plugins/app/versions/layout.tsx deleted file mode 100644 index 9b6370c..0000000 --- a/apps/swc-plugins/app/versions/layout.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import Link from "next/link"; -import { FC, ReactNode } from "react"; -import { Logo } from "../../components/logo"; -import { RuntimeVersionSelector } from "../../components/runtime-version-selector"; - -type ResultsLayoutProps = { - children: ReactNode; -}; - -const ResultsLayout: FC = ({ children }) => { - return ( - <> - -
{children}
- - ); -}; - -export default ResultsLayout; diff --git a/apps/swc-plugins/app/versions/range/[compatRangeId]/components/compat-range-header.tsx b/apps/swc-plugins/app/versions/range/[compatRangeId]/components/compat-range-header.tsx deleted file mode 100644 index 873872c..0000000 --- a/apps/swc-plugins/app/versions/range/[compatRangeId]/components/compat-range-header.tsx +++ /dev/null @@ -1,47 +0,0 @@ -"use client"; - -import { Checkbox } from "@/components/ui/checkbox"; -import { apiClient } from "@/lib/trpc/web-client"; -import { parseAsBoolean, useQueryState } from "next-usequerystate"; -import { FC } from "react"; - -type CompatRangeHeaderProps = { - compatRangeId: string; -}; - -export const CompatRangeHeader: FC = ({ - compatRangeId, -}) => { - const [includePrerelease, setIncludePrerelease] = useQueryState( - "includePrerelease", - parseAsBoolean.withDefault(false) - ); - const [compatRange] = apiClient.compatRange.get.useSuspenseQuery({ - id: BigInt(compatRangeId), - includePrerelease, - }); - - const handleCheckedChange = (checked: boolean) => { - setIncludePrerelease(checked); - }; - - return ( -
-

-

swc_core

- - @{compatRange.from} -{" "} - {compatRange.to} - -

- -
- - -
-
- ); -}; diff --git a/apps/swc-plugins/app/versions/range/[compatRangeId]/components/compat-range-tables.tsx b/apps/swc-plugins/app/versions/range/[compatRangeId]/components/compat-range-tables.tsx deleted file mode 100644 index a4d2d6b..0000000 --- a/apps/swc-plugins/app/versions/range/[compatRangeId]/components/compat-range-tables.tsx +++ /dev/null @@ -1,97 +0,0 @@ -"use client"; - -import { TableContainer } from "@/components/table-container"; -import { - Table, - TableBody, - TableCell, - TableHead, - TableHeader, - TableRow, -} from "@/components/ui/table"; -import { apiClient } from "@/lib/trpc/web-client"; -import { parseAsBoolean, useQueryState } from "next-usequerystate"; -import { FC } from "react"; - -type CompatRangeTablesProps = { - compatRangeId: string; -}; - -export const CompatRangeTables: FC = ({ - compatRangeId, -}) => { - const [includePrerelease] = useQueryState( - "includePrerelease", - parseAsBoolean.withDefault(false) - ); - const [compatRange] = apiClient.compatRange.get.useSuspenseQuery({ - id: BigInt(compatRangeId), - includePrerelease, - }); - - return ( - <> - - - - - Runtime - - Minimum Version - - - Maximum Version - - - - - {compatRange.runtimes.map((runtime) => ( - - - {runtime.name} - - - {runtime.minVersion} - - - {runtime.maxVersion} - - - ))} - -
-
- - - - - - Plugin - - Minimum Version - - - Maximum Version - - - - - {compatRange.plugins.map((plugin) => ( - - - {plugin.name} - - - {plugin.minVersion} - - - {plugin.maxVersion} - - - ))} - -
-
- - ); -}; diff --git a/apps/swc-plugins/app/versions/range/[compatRangeId]/page.tsx b/apps/swc-plugins/app/versions/range/[compatRangeId]/page.tsx deleted file mode 100644 index 9aa1be0..0000000 --- a/apps/swc-plugins/app/versions/range/[compatRangeId]/page.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { Metadata } from "next"; -import { FC } from "react"; -import { CompatRangeHeader } from "./components/compat-range-header"; -import { CompatRangeTables } from "./components/compat-range-tables"; - -export const dynamic = "force-dynamic"; -export const metadata: Metadata = { - title: "Compat Range", - description: "Compat ranges for swc_core", -}; - -type CompatRangePageProps = { - params: { - compatRangeId: string; - }; -}; - -const CompatRangePage: FC = ({ - params: { compatRangeId }, -}) => ( -
- - -
-); - -export default CompatRangePage; diff --git a/apps/swc-plugins/app/versions/range/components/range-table.tsx b/apps/swc-plugins/app/versions/range/components/range-table.tsx deleted file mode 100644 index 3490a48..0000000 --- a/apps/swc-plugins/app/versions/range/components/range-table.tsx +++ /dev/null @@ -1,61 +0,0 @@ -"use client"; - -import { TableContainer } from "@/components/table-container"; -import { - Table, - TableBody, - TableCell, - TableHead, - TableHeader, - TableRow, -} from "@/components/ui/table"; -import { useRouter } from "next/navigation"; - -type RangeTableProps = { - ranges: { id: bigint; from: string; to: string }[]; -}; - -export const RangeTable = ({ ranges }: RangeTableProps) => { - const router = useRouter(); - - const handleClick = (id: bigint) => { - router.push(`/versions/range/${id}`); - }; - - return ( - - - - - Runtime - - Minimum Version - - - Maximum Version - - - - - {ranges.map((range) => ( - handleClick(range.id)} - > - - swc_core - - - {range.from} - - - {range.to} - - - ))} - -
-
- ); -}; diff --git a/apps/swc-plugins/app/versions/range/page.tsx b/apps/swc-plugins/app/versions/range/page.tsx deleted file mode 100644 index af7627f..0000000 --- a/apps/swc-plugins/app/versions/range/page.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { createCaller } from "@/lib/server"; -import { Metadata } from "next"; -import { RangeTable } from "./components/range-table"; - -export const dynamic = "force-dynamic"; -export const fetchCache = "force-no-store"; -export const metadata: Metadata = { - title: "Compat Ranges", - description: "A list of compat ranges for SWC plugins.", -}; - -const RangePage = async () => { - const api = await createCaller(); - const ranges = await api.compatRange.list(); - - return ; -}; - -export default RangePage; diff --git a/apps/swc-plugins/components.json b/apps/swc-plugins/components.json deleted file mode 100644 index 835bc87..0000000 --- a/apps/swc-plugins/components.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://ui.shadcn.com/schema.json", - "style": "default", - "rsc": true, - "tsx": true, - "tailwind": { - "config": "tailwind.config.ts", - "css": "app/globals.css", - "baseColor": "slate", - "cssVariables": true, - "prefix": "" - }, - "aliases": { - "components": "@/components", - "utils": "@/lib/utils" - } -} diff --git a/apps/swc-plugins/components/dynamic.tsx b/apps/swc-plugins/components/dynamic.tsx deleted file mode 100644 index a3c1832..0000000 --- a/apps/swc-plugins/components/dynamic.tsx +++ /dev/null @@ -1,17 +0,0 @@ -"use client"; - -import { ReactNode, useEffect, useState } from "react"; - -export const Dynamic = ({ children }: { children: ReactNode }) => { - const [hasMounted, setHasMounted] = useState(false); - - useEffect(() => { - setHasMounted(true); - }, []); - - if (!hasMounted) { - return null; - } - - return <>{children} ; -}; diff --git a/apps/swc-plugins/components/logo/index.tsx b/apps/swc-plugins/components/logo/index.tsx deleted file mode 100644 index 102fea6..0000000 --- a/apps/swc-plugins/components/logo/index.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { FC } from "react"; - -import { cn } from "@/lib/utils"; -import Image from "next/image"; -import SWCLogo from "./swc.svg"; - -export const Logo: FC<{ className?: string }> = ({ className }) => ( - SWC Logo -); diff --git a/apps/swc-plugins/components/logo/swc.svg b/apps/swc-plugins/components/logo/swc.svg deleted file mode 100644 index b0ca9e3..0000000 --- a/apps/swc-plugins/components/logo/swc.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/apps/swc-plugins/components/runtime-version-selector.tsx b/apps/swc-plugins/components/runtime-version-selector.tsx deleted file mode 100644 index 272fffd..0000000 --- a/apps/swc-plugins/components/runtime-version-selector.tsx +++ /dev/null @@ -1,52 +0,0 @@ -"use client"; - -import { apiClient } from "@/lib/trpc/web-client"; -import { useRouter } from "next/navigation"; -import { FC, useState } from "react"; -import { Select } from "./select"; - -export const RuntimeVersionSelector: FC = () => { - const [runtimes] = apiClient.runtime.list.useSuspenseQuery(); - const [selectedRuntime, setSelectedRuntime] = useState(); - const [selectedVersion, setSelectedVersion] = useState(); - const router = useRouter(); - const versions = apiClient.runtime.listVersions.useQuery({ - runtimeId: selectedRuntime ?? BigInt(0), - }); - - const handleRuntimeChange = (runtimeId: string) => { - setSelectedRuntime(BigInt(runtimeId)); - }; - - const handleVersionChange = (version: string) => { - const selected = versions.data?.find((v) => v.version === version); - setSelectedVersion(version); - router.push(`/versions/range/${selected?.compatRangeId}`); - }; - - return ( -
- ({ - value: version.version, - label: version.version, - })) ?? [] - } - type="version" - /> -
- ); -}; diff --git a/apps/swc-plugins/components/select.tsx b/apps/swc-plugins/components/select.tsx deleted file mode 100644 index 2090da4..0000000 --- a/apps/swc-plugins/components/select.tsx +++ /dev/null @@ -1,196 +0,0 @@ -"use client"; - -import { useMeasure } from "@react-hookz/web"; -import { useCommandState } from "cmdk"; -import { CheckIcon, ChevronsUpDown, PlusIcon } from "lucide-react"; -import type { ComponentProps, FC, ReactNode } from "react"; -import { useCallback, useId, useState } from "react"; -import { cn } from "../lib/utils"; -import { Button } from "./ui/button"; -import { - Command, - CommandEmpty, - CommandGroup, - CommandInput, - CommandItem, - CommandList, -} from "./ui/command"; -import { Label } from "./ui/label"; -import { Popover, PopoverContent, PopoverTrigger } from "./ui/popover"; - -type SelectProperties = Omit< - ComponentProps, - "open" | "setOpen" -> & { - readonly label?: string; - readonly caption?: string; - readonly value?: string[] | string; - readonly data: readonly { - readonly value: string; - readonly label: string; - }[]; - readonly renderItem?: (item: SelectProperties["data"][number]) => ReactNode; - readonly disabled?: boolean; - readonly type?: string; - readonly trigger?: ReactNode; - readonly onChange?: (value: string) => void; - readonly onCreate?: (value: string) => void; - readonly loading?: boolean; - readonly exactSearch?: boolean; - readonly className?: string; -}; - -const CreateEmptyState = ({ - onCreate, -}: { - readonly onCreate: SelectProperties["onCreate"]; -}) => { - const search = useCommandState((state) => state.search); - - return ( -
- -
- ); -}; - -export const Select: FC = ({ - label, - value, - caption, - data, - disabled, - onChange, - type = "item", - renderItem, - trigger, - loading, - onCreate, - exactSearch, - className, - ...properties -}) => { - const id = useId(); - const [open, setOpen] = useState(false); - const selected = data.find((item) => item.value === value); - const [measurements, ref] = useMeasure(); - - const handleSelect = useCallback( - (newValue: string) => { - setOpen(false); - onChange?.(newValue); - }, - [onChange] - ); - - const handleCreate = (newValue: string) => { - setOpen(false); - onCreate?.(newValue); - }; - - return ( - - disabled ? setOpen(false) : setOpen(newOpen) - } - > - - {trigger ?? ( -
- {label ? : null} - - {caption ? ( -

- {caption} -

- ) : null} -
- )} -
- - - - - {onCreate ? ( - - - - ) : ( - No results found. - )} - - {data.map((item) => { - const active = Array.isArray(value) - ? value.includes(item.value) - : value === item.value; - - return ( - - handleSelect(item.value) - } - className="flex items-center gap-2" - > -
- {renderItem - ? renderItem(item) - : item.label} -
- -
- ); - })} -
-
-
-
-
- ); -}; diff --git a/apps/swc-plugins/components/table-container.tsx b/apps/swc-plugins/components/table-container.tsx deleted file mode 100644 index fc38f6c..0000000 --- a/apps/swc-plugins/components/table-container.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import { cn } from "@/lib/utils"; -import type { FC, ReactNode } from "react"; - -type TableContainerProperties = { - readonly title: string; - readonly children: ReactNode; - readonly className?: string; -}; - -export const TableContainer: FC = ({ - title, - children, - className, -}) => ( -
-

- {title} -

-
- {children} -
-
-); diff --git a/apps/swc-plugins/components/ui/accordion.tsx b/apps/swc-plugins/components/ui/accordion.tsx deleted file mode 100644 index b1e2db3..0000000 --- a/apps/swc-plugins/components/ui/accordion.tsx +++ /dev/null @@ -1,58 +0,0 @@ -"use client"; - -import * as React from "react"; -import * as AccordionPrimitive from "@radix-ui/react-accordion"; -import { ChevronDown } from "lucide-react"; - -import { cn } from "@/lib/utils"; - -const Accordion = AccordionPrimitive.Root; - -const AccordionItem = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)); -AccordionItem.displayName = "AccordionItem"; - -const AccordionTrigger = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, children, ...props }, ref) => ( - - svg]:rotate-180", - className - )} - {...props} - > - {children} - - - -)); -AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName; - -const AccordionContent = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, children, ...props }, ref) => ( - -
{children}
-
-)); - -AccordionContent.displayName = AccordionPrimitive.Content.displayName; - -export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }; diff --git a/apps/swc-plugins/components/ui/alert-dialog.tsx b/apps/swc-plugins/components/ui/alert-dialog.tsx deleted file mode 100644 index e9799b5..0000000 --- a/apps/swc-plugins/components/ui/alert-dialog.tsx +++ /dev/null @@ -1,141 +0,0 @@ -"use client"; - -import * as React from "react"; -import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"; - -import { cn } from "@/lib/utils"; -import { buttonVariants } from "@/components/ui/button"; - -const AlertDialog = AlertDialogPrimitive.Root; - -const AlertDialogTrigger = AlertDialogPrimitive.Trigger; - -const AlertDialogPortal = AlertDialogPrimitive.Portal; - -const AlertDialogOverlay = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)); -AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName; - -const AlertDialogContent = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - - - - -)); -AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName; - -const AlertDialogHeader = ({ - className, - ...props -}: React.HTMLAttributes) => ( -
-); -AlertDialogHeader.displayName = "AlertDialogHeader"; - -const AlertDialogFooter = ({ - className, - ...props -}: React.HTMLAttributes) => ( -
-); -AlertDialogFooter.displayName = "AlertDialogFooter"; - -const AlertDialogTitle = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)); -AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName; - -const AlertDialogDescription = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)); -AlertDialogDescription.displayName = - AlertDialogPrimitive.Description.displayName; - -const AlertDialogAction = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)); -AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName; - -const AlertDialogCancel = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)); -AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName; - -export { - AlertDialog, - AlertDialogPortal, - AlertDialogOverlay, - AlertDialogTrigger, - AlertDialogContent, - AlertDialogHeader, - AlertDialogFooter, - AlertDialogTitle, - AlertDialogDescription, - AlertDialogAction, - AlertDialogCancel, -}; diff --git a/apps/swc-plugins/components/ui/alert.tsx b/apps/swc-plugins/components/ui/alert.tsx deleted file mode 100644 index 2d6922c..0000000 --- a/apps/swc-plugins/components/ui/alert.tsx +++ /dev/null @@ -1,62 +0,0 @@ -import * as React from "react"; -import { cva, type VariantProps } from "class-variance-authority"; - -import { cn } from "@/lib/utils"; - -const alertVariants = cva( - "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", - { - variants: { - variant: { - default: "bg-background text-foreground", - destructive: - "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive", - }, - }, - defaultVariants: { - variant: "default", - }, - } -); - -const Alert = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes & VariantProps ->(({ className, variant, ...props }, ref) => ( -
-)); -Alert.displayName = "Alert"; - -const AlertTitle = React.forwardRef< - HTMLParagraphElement, - React.HTMLAttributes ->(({ className, ...props }, ref) => ( -
-)); -AlertTitle.displayName = "AlertTitle"; - -const AlertDescription = React.forwardRef< - HTMLParagraphElement, - React.HTMLAttributes ->(({ className, ...props }, ref) => ( -
-)); -AlertDescription.displayName = "AlertDescription"; - -export { Alert, AlertTitle, AlertDescription }; diff --git a/apps/swc-plugins/components/ui/aspect-ratio.tsx b/apps/swc-plugins/components/ui/aspect-ratio.tsx deleted file mode 100644 index 359bc94..0000000 --- a/apps/swc-plugins/components/ui/aspect-ratio.tsx +++ /dev/null @@ -1,7 +0,0 @@ -"use client"; - -import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio"; - -const AspectRatio = AspectRatioPrimitive.Root; - -export { AspectRatio }; diff --git a/apps/swc-plugins/components/ui/avatar.tsx b/apps/swc-plugins/components/ui/avatar.tsx deleted file mode 100644 index 8d1b7db..0000000 --- a/apps/swc-plugins/components/ui/avatar.tsx +++ /dev/null @@ -1,50 +0,0 @@ -"use client"; - -import * as React from "react"; -import * as AvatarPrimitive from "@radix-ui/react-avatar"; - -import { cn } from "@/lib/utils"; - -const Avatar = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)); -Avatar.displayName = AvatarPrimitive.Root.displayName; - -const AvatarImage = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)); -AvatarImage.displayName = AvatarPrimitive.Image.displayName; - -const AvatarFallback = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)); -AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName; - -export { Avatar, AvatarImage, AvatarFallback }; diff --git a/apps/swc-plugins/components/ui/badge.tsx b/apps/swc-plugins/components/ui/badge.tsx deleted file mode 100644 index 476d402..0000000 --- a/apps/swc-plugins/components/ui/badge.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import * as React from "react"; -import { cva, type VariantProps } from "class-variance-authority"; - -import { cn } from "@/lib/utils"; - -const badgeVariants = cva( - "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", - { - variants: { - variant: { - default: - "border-transparent bg-primary text-primary-foreground hover:bg-primary/80", - secondary: - "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80", - destructive: - "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80", - outline: "text-foreground", - }, - }, - defaultVariants: { - variant: "default", - }, - } -); - -export interface BadgeProps - extends React.HTMLAttributes, - VariantProps {} - -function Badge({ className, variant, ...props }: BadgeProps) { - return ( -
- ); -} - -export { Badge, badgeVariants }; diff --git a/apps/swc-plugins/components/ui/breadcrumb.tsx b/apps/swc-plugins/components/ui/breadcrumb.tsx deleted file mode 100644 index 1725e06..0000000 --- a/apps/swc-plugins/components/ui/breadcrumb.tsx +++ /dev/null @@ -1,115 +0,0 @@ -import * as React from "react"; -import { Slot } from "@radix-ui/react-slot"; -import { ChevronRight, MoreHorizontal } from "lucide-react"; - -import { cn } from "@/lib/utils"; - -const Breadcrumb = React.forwardRef< - HTMLElement, - React.ComponentPropsWithoutRef<"nav"> & { - separator?: React.ReactNode; - } ->(({ ...props }, ref) =>