diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..42ea319 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +.git +node_modules +.output +.nitro +.tanstack +# secrets stay out of the build context +.env* +*.log +.DS_Store diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..6f6e7e0 --- /dev/null +++ b/.env.example @@ -0,0 +1,23 @@ +DATABASE_URL=postgres://dashboard:dashboard@localhost:5432/dashboard + +# openssl rand -base64 32 +BETTER_AUTH_SECRET= +# Public URL of this app (used for cookies and the OIDC callback) +BETTER_AUTH_URL=http://localhost:3000 + +# IPs or CIDRs of your reverse proxy, comma separated (e.g. 172.16.0.0/12). +# Needed for the per-client login rate limit. +TRUSTED_PROXIES= + +# Set to "true" to close email/password registration +DISABLE_SIGNUP=false + +# SSO (any OIDC provider: Keycloak, Authentik, Authelia, Entra ID, ...) +# Callback URL to register: ${BETTER_AUTH_URL}/api/auth/callback/sso +OIDC_DISCOVERY_URL= +OIDC_CLIENT_ID= +OIDC_CLIENT_SECRET= +OIDC_PROVIDER_NAME=SSO + +# SearXNG instance (must be reachable from the browser and from this server) +SEARXNG_URL= diff --git a/.gitea/workflows/images.yml b/.gitea/workflows/images.yml new file mode 100644 index 0000000..c4541ff --- /dev/null +++ b/.gitea/workflows/images.yml @@ -0,0 +1,95 @@ +# Checks the code and builds the image for linux/amd64 + linux/arm64. On main it PUSHES the image to the registry as +# $REGISTRY_PATH/web, tagged : and :latest. Pull requests build without pushing. +# +# Same runner, registry and conventions as typst-workspace (its docs/adr/0008-gitea-ci-multiarch.md): +# - repository variable REGISTRY_PATH (registry/project, e.g. reg.nhaiden.io/dahoam) +# - secrets HARBOR_USERNAME / HARBOR_PASSWORD (robot account with push to that Harbor project) +# - the runner has no QEMU: the Dockerfile cross-builds, never install binfmt here +# - every action is pinned by commit SHA (tag in the comment) +name: images + +on: + push: + branches: [main] # one run per commit: with '**' every PR commit would run twice on the single runner + pull_request: + +# PRs: a newer push cancels the running build. main: never cancelled, so a push is never cut off halfway. +concurrency: + group: images-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + check: + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 (pnpm version: package.json packageManager) + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: 26.13.1 # same as the image + - run: pnpm install --frozen-lockfile + - run: pnpm typecheck + - run: pnpm lint + - run: pnpm test + + image: + needs: check + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Decide tags and whether to push + id: meta + env: + REGISTRY_PATH: ${{ vars.REGISTRY_PATH }} + run: | + set -euo pipefail + [ -n "$REGISTRY_PATH" ] || { echo '::error::repository variable REGISTRY_PATH is not set'; exit 1; } + sha=${GITHUB_SHA::7} + image="$REGISTRY_PATH/web" + push=false; tags="$image:$sha" + if [ "$GITHUB_EVENT_NAME" = push ] && [ "$GITHUB_REF" = refs/heads/main ]; then + push=true; tags+=$'\n'"$image:latest" + fi + { + echo "push=$push" + echo "registry=${REGISTRY_PATH%%/*}" + echo "tags<> "$GITHUB_OUTPUT" + echo "push=$push"; echo "$tags" + + # A persistent BuildKit container (not removed after the job), so layer caches survive between runs on the + # single runner host. No binfmt/QEMU. + - uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 + id: buildx + with: + name: dahoam-ci + driver-opts: image=moby/buildkit:v0.35.0@sha256:aa632b921ef07411d2cb77292cd34213d4f7b384001d6fceef1e1f25bf9752bb + cleanup: false + + - name: Log in to the registry + if: steps.meta.outputs.push == 'true' + uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 + with: + registry: ${{ steps.meta.outputs.registry }} + username: ${{ secrets.HARBOR_USERNAME }} + password: ${{ secrets.HARBOR_PASSWORD }} + + - name: Build (linux/amd64, linux/arm64) and push on main + uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: ${{ steps.meta.outputs.push == 'true' }} + outputs: ${{ steps.meta.outputs.push != 'true' && 'type=cacheonly' || '' }} + tags: ${{ steps.meta.outputs.tags }} + labels: | + org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }} + org.opencontainers.image.revision=${{ github.sha }} + + # The persistent builder's cache otherwise grows without bound on the shared host (75 GB disk, it has been full). + - name: Cap the BuildKit cache + if: always() && steps.buildx.outcome == 'success' + run: docker buildx prune --builder dahoam-ci --max-used-space 3gb --force diff --git a/.gitignore b/.gitignore index 30898f9..6bd615d 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ todos.json # typescript *.tsbuildinfo + +!.env.example diff --git a/.prettierignore b/.prettierignore index 5322d7f..1e4a8a1 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,4 @@ package-lock.json pnpm-lock.yaml -yarn.lock \ No newline at end of file +yarn.locksrc/vendor +src/routeTree.gen.ts diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..be951cc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +# The build stage runs on the builder's own platform ($BUILDPLATFORM). The Nitro output is plain JS and the final +# stage has no RUN, so a linux/amd64 + linux/arm64 build needs no emulation (the CI runner has no QEMU). +FROM --platform=$BUILDPLATFORM node:26.13.1-alpine@sha256:6bd9ab43c0ec0190ca7b2d193906cb8b7edf6e7f4afa43ddeccd6452710bffb5 AS build +WORKDIR /app +COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./ +# Node 26 images have no corepack: install the pnpm version from package.json's packageManager field. +RUN npm install -g "pnpm@$(node -p "require('./package.json').packageManager.split('@')[1]")" \ + && pnpm install --frozen-lockfile +COPY . . +RUN pnpm build + +# Self-contained Nitro output (dependencies are bundled): no node_modules install in the runtime image. +FROM node:26.13.1-alpine@sha256:6bd9ab43c0ec0190ca7b2d193906cb8b7edf6e7f4afa43ddeccd6452710bffb5 +ENV NODE_ENV=production PORT=3000 +WORKDIR /app +COPY --from=build --chown=node:node /app/.output ./ +# The server applies these on start (src/db/index.ts). +COPY --chown=node:node drizzle ./drizzle +USER node +EXPOSE 3000 +# /login needs the database, so healthy also means migrated. +HEALTHCHECK --interval=15s --timeout=5s --start-period=20s \ + CMD node -e "fetch('http://127.0.0.1:3000/login').then(r=>process.exit(r.ok?0:1),()=>process.exit(1))" +CMD ["node", "server/index.mjs"] diff --git a/PLAN.md b/PLAN.md new file mode 100644 index 0000000..258e491 --- /dev/null +++ b/PLAN.md @@ -0,0 +1,100 @@ +# Dahoam — Plan + +Replica of the reference start page (wallpaper, big serif clock, search bar, +app-icon row, "Everything else"), as a TanStack Start app with accounts. + +Reference: https://pbs.twimg.com/media/HXSYNQ6XcAER0k9?format=jpg&name=4096x4096 + +## Stack + +- TanStack Start (React 19, Vite 8), Tailwind 4 +- UI: [collabry-components](https://git.nhaiden.io/niklas/collabry-components) copied into + `src/vendor/collabry` (replaced the scaffolded shadcn radix-nova set) +- Better Auth 1.7 — email/password + SSO (generic OIDC), Drizzle adapter +- Postgres 17 + Drizzle ORM (`postgres` driver), migrations via drizzle-kit +- Nitro (`nitro/vite`) for the production Node server + +## Data model (`src/db/schema.ts`) + +| Table | Columns | +|-------|---------| +| `user`, `session`, `account`, `verification` | Better Auth core tables | +| `link` | id, userId → user, name, url, icon (URL or dashboard-icons slug, optional), pinned, createdAt | +| `settings` | userId (PK) → user, title, searchEngine (`duckduckgo` \| `searxng` \| `google`), wallpaperUrl | +| `wallpaper` | userId (PK) → user, mime, data (bytea) | + +Every row is scoped to its owner; all server functions check the session. + +## Features + +1. **Auth** — `/login` with sign in / sign up tabs and a "Continue with SSO" button + (only shown when OIDC env is set). `/` redirects to `/login` without a session. + `DISABLE_SIGNUP=true` closes registration. +2. **Dashboard** (`/`) — date, live clock, glass search bar, pinned links row, + "Everything else" section (unpinned links) below the fold, top bar with + title, add (+) and settings buttons, wallpaper credit + edit pencil. +3. **Home links** — add / edit / delete in a dialog (right-click or hover + pencil on a tile to edit). Icon fallback chain: custom icon → + dashboard-icons by name → site `/favicon.ico` → letter. +4. **Search** + - Engine per user: DuckDuckGo, SearXNG (when `SEARXNG_URL` is set), Google. + - Live suggestions proxied through the server (DuckDuckGo `/ac`, SearXNG `/autocompleter`). + - DuckDuckGo `!bangs` always route through DuckDuckGo. + - `/` focuses the bar; `/text` filters links and commands (add link, settings, sign out). +5. **Wallpaper** — paste an image URL or upload a file (stored in Postgres, + served from `/api/wallpaper`, ≤ 10 MB, jpeg/png/webp/avif). Reset to default. + Dither + vignette overlay like the reference. + +## Files + +``` +docker-compose.yml Postgres for local dev +drizzle.config.ts +.env.example +src/db/{index,schema}.ts +src/lib/auth.ts Better Auth server config +src/lib/auth-client.ts +src/lib/auth.functions.ts getSession / ensureSession / authInfo +src/lib/dashboard.functions.ts links, settings, suggestions +src/lib/search.ts search URL builder (+ test) +src/routes/api/auth/$.ts +src/routes/api/wallpaper.ts +src/routes/login.tsx +src/routes/index.tsx +src/routes/settings.tsx +src/components/{clock,search-bar,link-tile,link-dialog,glass,wallpaper}.tsx +src/vendor/collabry/ copied Collabry components (do not edit) +scripts/sync-collabry.sh copies them from upstream at a pinned commit +``` + +## Steps + +- [x] 1. Deps, docker-compose, env, Drizzle schema + first migration +- [x] 2. Better Auth (server, client, handler route, session helpers) +- [x] 3. Server functions: links, settings, suggestions; wallpaper route +- [x] 4. UI: login, dashboard, dialogs, search bar +- [x] 5. Verify: typecheck, lint, build, end-to-end against real Postgres, screenshot vs reference +- [x] 6. Independent review (subagent), fix findings, README +- [x] 7. Blurred card behind the top-row icons +- [x] 8. Collabry components: Button, Card, Field, Input, Checkbox, SegmentedControl, Dialog, Kbd, + ThemeProvider. Kept: wallpaper, serif clock, glass panels, Inter. Accent is near white. +- [x] 9. Settings page (`/settings`) replaces the settings dialog: General, Search, Wallpaper, + Account. Each setting saves on its own (`saveSettings` takes a patch). +- [x] 10. Cards: table `card`, `link.cardId` + `link.position` (replaces `pinned` and the + "Everything else" section; migration `0001_cards` moves existing links into cards). + Links are dragged inside and between cards with dnd-kit (`src/components/card-grid.tsx`, + layout logic and its test in `src/lib/layout.ts`). +- [x] 11. Image and CI: `Dockerfile` (multi-arch without emulation), `.gitea/workflows/images.yml` + (check, build, push to the Harbor registry on main, as in typst-workspace). The server applies + the migrations on start (`src/db/index.ts`). +- [x] 12. Renamed from "Home Dashboard" to Dahoam (slug `dahoam`): package, compose project, tab title, + default dashboard name, docs, CI examples. + +## Not doing (not asked) + +- Unraid version/uptime chip and the Sonarr/Plex notification pills from the screenshot +- Inline SearXNG result rendering (search opens the engine's result page) +- Reordering the cards themselves (they stay in the order they were made), free placement with + gaps in the grid, per-user SearXNG URL (SSRF risk — it is a server env) +- Email verification / password reset mail (needs an SMTP setup) +- In CI: version tags and releases, a Helm chart, an image vulnerability scan (typst-workspace has all three) diff --git a/README.md b/README.md index b24a1e8..e422d93 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,85 @@ -# TanStack Start + shadcn/ui +# Dahoam -This is a template for a new TanStack Start project with React, TypeScript, and shadcn/ui. +A start page for your homelab: wallpaper, clock, search and your links. +TanStack Start, Collabry components, Better Auth, Drizzle and Postgres. See [PLAN.md](PLAN.md). -## Adding components - -To add components to your app, run the following command: +## Run ```bash -npx shadcn@latest add button +cp .env.example .env # then set BETTER_AUTH_SECRET (openssl rand -base64 32) +docker compose up -d # Postgres on localhost:5432 +pnpm install +pnpm dev # http://localhost:3000 ``` -This will place the ui components in the `components` directory. +Production: `pnpm build && pnpm start` (reads `.env` when present, `PORT` sets the port). -## Using components +The server applies the database migrations in `drizzle/` when it starts. If that fails, it stops. -To use the components in your app, import them as follows: +## Image and CI -```tsx -import { Button } from "@/components/ui/button"; +`.gitea/workflows/images.yml` checks the code (typecheck, lint, tests) and builds the image for +linux/amd64 and linux/arm64. A push to `main` also pushes it to the registry as +`$REGISTRY_PATH/web`, tagged `:` and `:latest`. Pull requests only build. + +The repository on Gitea needs: + +- variable `REGISTRY_PATH`: registry and Harbor project, for example `reg.nhaiden.io/dahoam` +- secrets `HARBOR_USERNAME` and `HARBOR_PASSWORD`: a robot account that can push to that project + +Run the image: + +```bash +docker run -p 3000:3000 \ + -e DATABASE_URL=postgres://user:password@host:5432/dashboard \ + -e BETTER_AUTH_SECRET=... -e BETTER_AUTH_URL=https://home.example.com \ + reg.nhaiden.io/dahoam/web:latest ``` + +Build it yourself: `docker build -t dahoam .` + +## Configuration + +| Variable | Purpose | +|----------|---------| +| `DATABASE_URL` | Postgres connection string | +| `BETTER_AUTH_SECRET` | Signs sessions. Required. | +| `BETTER_AUTH_URL` | Public URL of the app | +| `TRUSTED_PROXIES` | IPs/CIDRs of your reverse proxy, comma separated. The login rate limit needs it to tell clients apart. | +| `DISABLE_SIGNUP` | `true` closes email/password registration. Set it after you made your account. | +| `OIDC_DISCOVERY_URL`, `OIDC_CLIENT_ID`, `OIDC_CLIENT_SECRET` | Turns on the SSO button. Redirect URI: `/api/auth/callback/sso` | +| `OIDC_PROVIDER_NAME` | Text on the SSO button ("Continue with …") | +| `SEARXNG_URL` | Your SearXNG instance. Makes SearXNG selectable in Settings. | + +## Use + +- **Cards** group your links (Apps, Media, Bookmarks, ...). "New card" under the cards adds + one. Click a card's name to rename or delete it. +- **Links**: **+** at the top or on a card adds a link. Hover a link and click the pencil to + edit or delete it. +- **Move links** by dragging, inside a card or to another card. Touch: press and hold first. + Keyboard: focus a link, Space picks it up, arrow keys move it, Space puts it down. +- **Icons**: leave the field empty and the icon is looked up by name in + [dashboard-icons](https://github.com/homarr-labs/dashboard-icons), then from the + site's `/favicon.ico`. Or enter an icon name (`home-assistant`) or an image URL. +- **Search**: `/` focuses the bar. `!w cats` uses DuckDuckGo bangs. `/plex` jumps to + a link, `/settings`, `/add link`, `/add card` and `/sign out` run commands. +- **Wallpaper**: Settings (or the pencil at the bottom right) takes an image URL or an + upload (JPEG, PNG, WebP, AVIF, up to 10 MB). + +## Notes + +- Suggestions come from DuckDuckGo, or from SearXNG (`/autocompleter`) when it is the + selected engine. The server fetches them, the browser never calls those hosts directly. +- SSO does not take over an existing password account with the same email + (Better Auth blocks it, because password emails are not verified). Use one or the other per email. +- Icon lookups send the link name to the jsDelivr CDN. +- UI components come from [collabry-components](https://git.nhaiden.io/niklas/collabry-components), + copied into `src/vendor/collabry` at a pinned commit. Add or update one with + `scripts/sync-collabry.sh` (see `src/vendor/collabry/UPSTREAM.md`). The glass look is + applied from outside, in `src/components/glass.tsx` and `src/styles.css`. +- Schema changes: edit `src/db/schema.ts`, then `pnpm db:generate`. The server applies the new + migration on its next start (`pnpm db:migrate` does the same without a start). +- `pnpm test`, `pnpm typecheck`, `pnpm lint`. + +Default wallpaper: photo by [Andrew Coelho](https://unsplash.com/photos/VB-w_3dnyvI) on Unsplash. diff --git a/components.json b/components.json index da40af9..2b1cefa 100644 --- a/components.json +++ b/components.json @@ -14,7 +14,7 @@ "rtl": false, "aliases": { "components": "@/components", - "utils": "@/lib/utils", + "utils": "@/vendor/collabry/lib/cn", "ui": "@/components/ui", "lib": "@/lib", "hooks": "@/hooks" diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..8234c66 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +# Fixed, so the database volume (dahoam_db) does not depend on the directory name +name: dahoam + +services: + db: + image: postgres:17-alpine + environment: + POSTGRES_USER: dashboard + POSTGRES_PASSWORD: dashboard + POSTGRES_DB: dashboard + ports: + - "127.0.0.1:5432:5432" + volumes: + - db:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U dashboard"] + interval: 2s + retries: 15 + +volumes: + db: diff --git a/drizzle.config.ts b/drizzle.config.ts new file mode 100644 index 0000000..8681448 --- /dev/null +++ b/drizzle.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from "drizzle-kit" + +try { + process.loadEnvFile() +} catch { + // no .env file: use the real environment +} + +export default defineConfig({ + dialect: "postgresql", + schema: "./src/db/schema.ts", + out: "./drizzle", + dbCredentials: { url: process.env.DATABASE_URL! }, +}) diff --git a/drizzle/0000_clumsy_the_hood.sql b/drizzle/0000_clumsy_the_hood.sql new file mode 100644 index 0000000..f2aef52 --- /dev/null +++ b/drizzle/0000_clumsy_the_hood.sql @@ -0,0 +1,80 @@ +CREATE TABLE "account" ( + "id" text PRIMARY KEY NOT NULL, + "account_id" text NOT NULL, + "provider_id" text NOT NULL, + "user_id" text NOT NULL, + "access_token" text, + "refresh_token" text, + "id_token" text, + "access_token_expires_at" timestamp, + "refresh_token_expires_at" timestamp, + "scope" text, + "password" text, + "created_at" timestamp DEFAULT now() NOT NULL, + "updated_at" timestamp DEFAULT now() NOT NULL +); +--> statement-breakpoint +CREATE TABLE "link" ( + "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, + "user_id" text NOT NULL, + "name" text NOT NULL, + "url" text NOT NULL, + "icon" text, + "pinned" boolean DEFAULT true NOT NULL, + "created_at" timestamp DEFAULT now() NOT NULL +); +--> statement-breakpoint +CREATE TABLE "session" ( + "id" text PRIMARY KEY NOT NULL, + "expires_at" timestamp NOT NULL, + "token" text NOT NULL, + "created_at" timestamp DEFAULT now() NOT NULL, + "updated_at" timestamp DEFAULT now() NOT NULL, + "ip_address" text, + "user_agent" text, + "user_id" text NOT NULL, + CONSTRAINT "session_token_unique" UNIQUE("token") +); +--> statement-breakpoint +CREATE TABLE "settings" ( + "user_id" text PRIMARY KEY NOT NULL, + "title" text DEFAULT 'Home' NOT NULL, + "search_engine" text DEFAULT 'duckduckgo' NOT NULL, + "wallpaper_url" text +); +--> statement-breakpoint +CREATE TABLE "user" ( + "id" text PRIMARY KEY NOT NULL, + "name" text NOT NULL, + "email" text NOT NULL, + "email_verified" boolean DEFAULT false NOT NULL, + "image" text, + "created_at" timestamp DEFAULT now() NOT NULL, + "updated_at" timestamp DEFAULT now() NOT NULL, + CONSTRAINT "user_email_unique" UNIQUE("email") +); +--> statement-breakpoint +CREATE TABLE "verification" ( + "id" text PRIMARY KEY NOT NULL, + "identifier" text NOT NULL, + "value" text NOT NULL, + "expires_at" timestamp NOT NULL, + "created_at" timestamp DEFAULT now() NOT NULL, + "updated_at" timestamp DEFAULT now() NOT NULL +); +--> statement-breakpoint +CREATE TABLE "wallpaper" ( + "user_id" text PRIMARY KEY NOT NULL, + "mime" text NOT NULL, + "data" "bytea" NOT NULL +); +--> statement-breakpoint +ALTER TABLE "account" ADD CONSTRAINT "account_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "link" ADD CONSTRAINT "link_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "session" ADD CONSTRAINT "session_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "settings" ADD CONSTRAINT "settings_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "wallpaper" ADD CONSTRAINT "wallpaper_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +CREATE INDEX "account_user_id_idx" ON "account" USING btree ("user_id");--> statement-breakpoint +CREATE INDEX "link_user_id_idx" ON "link" USING btree ("user_id");--> statement-breakpoint +CREATE INDEX "session_user_id_idx" ON "session" USING btree ("user_id");--> statement-breakpoint +CREATE INDEX "verification_identifier_idx" ON "verification" USING btree ("identifier"); \ No newline at end of file diff --git a/drizzle/0001_cards.sql b/drizzle/0001_cards.sql new file mode 100644 index 0000000..12f89a4 --- /dev/null +++ b/drizzle/0001_cards.sql @@ -0,0 +1,26 @@ +CREATE TABLE "card" ( + "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, + "user_id" text NOT NULL, + "name" text NOT NULL, + "created_at" timestamp DEFAULT now() NOT NULL +); +--> statement-breakpoint +ALTER TABLE "link" ADD COLUMN "card_id" uuid;--> statement-breakpoint +ALTER TABLE "link" ADD COLUMN "position" integer DEFAULT 0 NOT NULL;--> statement-breakpoint +-- Hand-written: move existing links into cards. The old top row becomes "Apps", +-- the old "Everything else" section becomes a card of that name. +INSERT INTO "card" ("user_id", "name", "created_at") + SELECT DISTINCT "user_id", 'Apps', now() FROM "link" WHERE "pinned";--> statement-breakpoint +INSERT INTO "card" ("user_id", "name", "created_at") + SELECT DISTINCT "user_id", 'Everything else', now() + interval '1 second' FROM "link" WHERE NOT "pinned";--> statement-breakpoint +UPDATE "link" SET "card_id" = "card"."id" FROM "card" + WHERE "card"."user_id" = "link"."user_id" + AND "card"."name" = CASE WHEN "link"."pinned" THEN 'Apps' ELSE 'Everything else' END;--> statement-breakpoint +UPDATE "link" SET "position" = "ordered"."n" FROM ( + SELECT "id", row_number() OVER (PARTITION BY "card_id" ORDER BY "created_at") - 1 AS "n" FROM "link" +) AS "ordered" WHERE "ordered"."id" = "link"."id";--> statement-breakpoint +ALTER TABLE "link" ALTER COLUMN "card_id" SET NOT NULL;--> statement-breakpoint +ALTER TABLE "card" ADD CONSTRAINT "card_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +CREATE INDEX "card_user_id_idx" ON "card" USING btree ("user_id");--> statement-breakpoint +ALTER TABLE "link" ADD CONSTRAINT "link_card_id_card_id_fk" FOREIGN KEY ("card_id") REFERENCES "public"."card"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +CREATE INDEX "link_card_id_idx" ON "link" USING btree ("card_id"); \ No newline at end of file diff --git a/drizzle/0002_drop_pinned.sql b/drizzle/0002_drop_pinned.sql new file mode 100644 index 0000000..9cbf080 --- /dev/null +++ b/drizzle/0002_drop_pinned.sql @@ -0,0 +1 @@ +ALTER TABLE "link" DROP COLUMN "pinned"; \ No newline at end of file diff --git a/drizzle/0003_default_title.sql b/drizzle/0003_default_title.sql new file mode 100644 index 0000000..f230ee4 --- /dev/null +++ b/drizzle/0003_default_title.sql @@ -0,0 +1,3 @@ +ALTER TABLE "settings" ALTER COLUMN "title" SET DEFAULT 'Dahoam';--> statement-breakpoint +-- Hand-written: rows that still carry the old default follow the rename. +UPDATE "settings" SET "title" = 'Dahoam' WHERE "title" = 'Home'; \ No newline at end of file diff --git a/drizzle/meta/0000_snapshot.json b/drizzle/meta/0000_snapshot.json new file mode 100644 index 0000000..305fa5e --- /dev/null +++ b/drizzle/meta/0000_snapshot.json @@ -0,0 +1,562 @@ +{ + "id": "d6d3e10a-cbd0-4fad-aac1-74dece1c6a2f", + "prevId": "00000000-0000-0000-0000-000000000000", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.account": { + "name": "account", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "account_id": { + "name": "account_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "provider_id": { + "name": "provider_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "access_token": { + "name": "access_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "refresh_token": { + "name": "refresh_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "id_token": { + "name": "id_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "access_token_expires_at": { + "name": "access_token_expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "refresh_token_expires_at": { + "name": "refresh_token_expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "scope": { + "name": "scope", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "password": { + "name": "password", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "account_user_id_idx": { + "name": "account_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "account_user_id_user_id_fk": { + "name": "account_user_id_user_id_fk", + "tableFrom": "account", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.link": { + "name": "link", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "url": { + "name": "url", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "icon": { + "name": "icon", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "pinned": { + "name": "pinned", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "link_user_id_idx": { + "name": "link_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "link_user_id_user_id_fk": { + "name": "link_user_id_user_id_fk", + "tableFrom": "link", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.session": { + "name": "session", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "token": { + "name": "token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "ip_address": { + "name": "ip_address", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_agent": { + "name": "user_agent", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + } + }, + "indexes": { + "session_user_id_idx": { + "name": "session_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "session_user_id_user_id_fk": { + "name": "session_user_id_user_id_fk", + "tableFrom": "session", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "session_token_unique": { + "name": "session_token_unique", + "nullsNotDistinct": false, + "columns": [ + "token" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.settings": { + "name": "settings", + "schema": "", + "columns": { + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "'Home'" + }, + "search_engine": { + "name": "search_engine", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "'duckduckgo'" + }, + "wallpaper_url": { + "name": "wallpaper_url", + "type": "text", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "settings_user_id_user_id_fk": { + "name": "settings_user_id_user_id_fk", + "tableFrom": "settings", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.user": { + "name": "user", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "email_verified": { + "name": "email_verified", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + }, + "image": { + "name": "image", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "user_email_unique": { + "name": "user_email_unique", + "nullsNotDistinct": false, + "columns": [ + "email" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.verification": { + "name": "verification", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "identifier": { + "name": "identifier", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "value": { + "name": "value", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "verification_identifier_idx": { + "name": "verification_identifier_idx", + "columns": [ + { + "expression": "identifier", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.wallpaper": { + "name": "wallpaper", + "schema": "", + "columns": { + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "mime": { + "name": "mime", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "data": { + "name": "data", + "type": "bytea", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "wallpaper_user_id_user_id_fk": { + "name": "wallpaper_user_id_user_id_fk", + "tableFrom": "wallpaper", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "roles": {}, + "policies": {}, + "views": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0001_snapshot.json b/drizzle/meta/0001_snapshot.json new file mode 100644 index 0000000..c63a4e5 --- /dev/null +++ b/drizzle/meta/0001_snapshot.json @@ -0,0 +1,672 @@ +{ + "id": "cc18e0e4-b46a-47a3-81b5-2e76aa778b82", + "prevId": "d6d3e10a-cbd0-4fad-aac1-74dece1c6a2f", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.account": { + "name": "account", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "account_id": { + "name": "account_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "provider_id": { + "name": "provider_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "access_token": { + "name": "access_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "refresh_token": { + "name": "refresh_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "id_token": { + "name": "id_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "access_token_expires_at": { + "name": "access_token_expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "refresh_token_expires_at": { + "name": "refresh_token_expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "scope": { + "name": "scope", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "password": { + "name": "password", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "account_user_id_idx": { + "name": "account_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "account_user_id_user_id_fk": { + "name": "account_user_id_user_id_fk", + "tableFrom": "account", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.card": { + "name": "card", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "card_user_id_idx": { + "name": "card_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "card_user_id_user_id_fk": { + "name": "card_user_id_user_id_fk", + "tableFrom": "card", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.link": { + "name": "link", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "card_id": { + "name": "card_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "position": { + "name": "position", + "type": "integer", + "primaryKey": false, + "notNull": true, + "default": 0 + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "url": { + "name": "url", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "icon": { + "name": "icon", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "pinned": { + "name": "pinned", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "link_user_id_idx": { + "name": "link_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "link_card_id_idx": { + "name": "link_card_id_idx", + "columns": [ + { + "expression": "card_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "link_user_id_user_id_fk": { + "name": "link_user_id_user_id_fk", + "tableFrom": "link", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "link_card_id_card_id_fk": { + "name": "link_card_id_card_id_fk", + "tableFrom": "link", + "tableTo": "card", + "columnsFrom": [ + "card_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.session": { + "name": "session", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "token": { + "name": "token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "ip_address": { + "name": "ip_address", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_agent": { + "name": "user_agent", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + } + }, + "indexes": { + "session_user_id_idx": { + "name": "session_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "session_user_id_user_id_fk": { + "name": "session_user_id_user_id_fk", + "tableFrom": "session", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "session_token_unique": { + "name": "session_token_unique", + "nullsNotDistinct": false, + "columns": [ + "token" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.settings": { + "name": "settings", + "schema": "", + "columns": { + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "'Home'" + }, + "search_engine": { + "name": "search_engine", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "'duckduckgo'" + }, + "wallpaper_url": { + "name": "wallpaper_url", + "type": "text", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "settings_user_id_user_id_fk": { + "name": "settings_user_id_user_id_fk", + "tableFrom": "settings", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.user": { + "name": "user", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "email_verified": { + "name": "email_verified", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + }, + "image": { + "name": "image", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "user_email_unique": { + "name": "user_email_unique", + "nullsNotDistinct": false, + "columns": [ + "email" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.verification": { + "name": "verification", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "identifier": { + "name": "identifier", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "value": { + "name": "value", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "verification_identifier_idx": { + "name": "verification_identifier_idx", + "columns": [ + { + "expression": "identifier", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.wallpaper": { + "name": "wallpaper", + "schema": "", + "columns": { + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "mime": { + "name": "mime", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "data": { + "name": "data", + "type": "bytea", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "wallpaper_user_id_user_id_fk": { + "name": "wallpaper_user_id_user_id_fk", + "tableFrom": "wallpaper", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "roles": {}, + "policies": {}, + "views": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0002_snapshot.json b/drizzle/meta/0002_snapshot.json new file mode 100644 index 0000000..24bd2f2 --- /dev/null +++ b/drizzle/meta/0002_snapshot.json @@ -0,0 +1,665 @@ +{ + "id": "f1546d58-4f33-4656-a009-ffb60031c504", + "prevId": "cc18e0e4-b46a-47a3-81b5-2e76aa778b82", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.account": { + "name": "account", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "account_id": { + "name": "account_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "provider_id": { + "name": "provider_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "access_token": { + "name": "access_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "refresh_token": { + "name": "refresh_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "id_token": { + "name": "id_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "access_token_expires_at": { + "name": "access_token_expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "refresh_token_expires_at": { + "name": "refresh_token_expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "scope": { + "name": "scope", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "password": { + "name": "password", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "account_user_id_idx": { + "name": "account_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "account_user_id_user_id_fk": { + "name": "account_user_id_user_id_fk", + "tableFrom": "account", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.card": { + "name": "card", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "card_user_id_idx": { + "name": "card_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "card_user_id_user_id_fk": { + "name": "card_user_id_user_id_fk", + "tableFrom": "card", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.link": { + "name": "link", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "card_id": { + "name": "card_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "position": { + "name": "position", + "type": "integer", + "primaryKey": false, + "notNull": true, + "default": 0 + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "url": { + "name": "url", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "icon": { + "name": "icon", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "link_user_id_idx": { + "name": "link_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "link_card_id_idx": { + "name": "link_card_id_idx", + "columns": [ + { + "expression": "card_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "link_user_id_user_id_fk": { + "name": "link_user_id_user_id_fk", + "tableFrom": "link", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "link_card_id_card_id_fk": { + "name": "link_card_id_card_id_fk", + "tableFrom": "link", + "tableTo": "card", + "columnsFrom": [ + "card_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.session": { + "name": "session", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "token": { + "name": "token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "ip_address": { + "name": "ip_address", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_agent": { + "name": "user_agent", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + } + }, + "indexes": { + "session_user_id_idx": { + "name": "session_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "session_user_id_user_id_fk": { + "name": "session_user_id_user_id_fk", + "tableFrom": "session", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "session_token_unique": { + "name": "session_token_unique", + "nullsNotDistinct": false, + "columns": [ + "token" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.settings": { + "name": "settings", + "schema": "", + "columns": { + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "'Home'" + }, + "search_engine": { + "name": "search_engine", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "'duckduckgo'" + }, + "wallpaper_url": { + "name": "wallpaper_url", + "type": "text", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "settings_user_id_user_id_fk": { + "name": "settings_user_id_user_id_fk", + "tableFrom": "settings", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.user": { + "name": "user", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "email_verified": { + "name": "email_verified", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + }, + "image": { + "name": "image", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "user_email_unique": { + "name": "user_email_unique", + "nullsNotDistinct": false, + "columns": [ + "email" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.verification": { + "name": "verification", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "identifier": { + "name": "identifier", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "value": { + "name": "value", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "verification_identifier_idx": { + "name": "verification_identifier_idx", + "columns": [ + { + "expression": "identifier", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.wallpaper": { + "name": "wallpaper", + "schema": "", + "columns": { + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "mime": { + "name": "mime", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "data": { + "name": "data", + "type": "bytea", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "wallpaper_user_id_user_id_fk": { + "name": "wallpaper_user_id_user_id_fk", + "tableFrom": "wallpaper", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "roles": {}, + "policies": {}, + "views": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0003_snapshot.json b/drizzle/meta/0003_snapshot.json new file mode 100644 index 0000000..d2b6142 --- /dev/null +++ b/drizzle/meta/0003_snapshot.json @@ -0,0 +1,665 @@ +{ + "id": "d6c6160d-4a0a-4e19-a093-40a1963aab9d", + "prevId": "f1546d58-4f33-4656-a009-ffb60031c504", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.account": { + "name": "account", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "account_id": { + "name": "account_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "provider_id": { + "name": "provider_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "access_token": { + "name": "access_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "refresh_token": { + "name": "refresh_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "id_token": { + "name": "id_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "access_token_expires_at": { + "name": "access_token_expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "refresh_token_expires_at": { + "name": "refresh_token_expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "scope": { + "name": "scope", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "password": { + "name": "password", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "account_user_id_idx": { + "name": "account_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "account_user_id_user_id_fk": { + "name": "account_user_id_user_id_fk", + "tableFrom": "account", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.card": { + "name": "card", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "card_user_id_idx": { + "name": "card_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "card_user_id_user_id_fk": { + "name": "card_user_id_user_id_fk", + "tableFrom": "card", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.link": { + "name": "link", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "card_id": { + "name": "card_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "position": { + "name": "position", + "type": "integer", + "primaryKey": false, + "notNull": true, + "default": 0 + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "url": { + "name": "url", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "icon": { + "name": "icon", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "link_user_id_idx": { + "name": "link_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "link_card_id_idx": { + "name": "link_card_id_idx", + "columns": [ + { + "expression": "card_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "link_user_id_user_id_fk": { + "name": "link_user_id_user_id_fk", + "tableFrom": "link", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "link_card_id_card_id_fk": { + "name": "link_card_id_card_id_fk", + "tableFrom": "link", + "tableTo": "card", + "columnsFrom": [ + "card_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.session": { + "name": "session", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "token": { + "name": "token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "ip_address": { + "name": "ip_address", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_agent": { + "name": "user_agent", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + } + }, + "indexes": { + "session_user_id_idx": { + "name": "session_user_id_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "session_user_id_user_id_fk": { + "name": "session_user_id_user_id_fk", + "tableFrom": "session", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "session_token_unique": { + "name": "session_token_unique", + "nullsNotDistinct": false, + "columns": [ + "token" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.settings": { + "name": "settings", + "schema": "", + "columns": { + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "'Dahoam'" + }, + "search_engine": { + "name": "search_engine", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "'duckduckgo'" + }, + "wallpaper_url": { + "name": "wallpaper_url", + "type": "text", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "settings_user_id_user_id_fk": { + "name": "settings_user_id_user_id_fk", + "tableFrom": "settings", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.user": { + "name": "user", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "email_verified": { + "name": "email_verified", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + }, + "image": { + "name": "image", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "user_email_unique": { + "name": "user_email_unique", + "nullsNotDistinct": false, + "columns": [ + "email" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.verification": { + "name": "verification", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "identifier": { + "name": "identifier", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "value": { + "name": "value", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "verification_identifier_idx": { + "name": "verification_identifier_idx", + "columns": [ + { + "expression": "identifier", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.wallpaper": { + "name": "wallpaper", + "schema": "", + "columns": { + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "mime": { + "name": "mime", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "data": { + "name": "data", + "type": "bytea", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "wallpaper_user_id_user_id_fk": { + "name": "wallpaper_user_id_user_id_fk", + "tableFrom": "wallpaper", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "roles": {}, + "policies": {}, + "views": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/_journal.json b/drizzle/meta/_journal.json new file mode 100644 index 0000000..ca711b1 --- /dev/null +++ b/drizzle/meta/_journal.json @@ -0,0 +1,34 @@ +{ + "version": "7", + "dialect": "postgresql", + "entries": [ + { + "idx": 0, + "version": "7", + "when": 1794908415585, + "tag": "0000_clumsy_the_hood", + "breakpoints": true + }, + { + "idx": 1, + "version": "7", + "when": 1794910656991, + "tag": "0001_cards", + "breakpoints": true + }, + { + "idx": 2, + "version": "7", + "when": 1794910673375, + "tag": "0002_drop_pinned", + "breakpoints": true + }, + { + "idx": 3, + "version": "7", + "when": 1794956525569, + "tag": "0003_default_title", + "breakpoints": true + } + ] +} \ No newline at end of file diff --git a/eslint.config.js b/eslint.config.js index d49b5cb..2655243 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -16,6 +16,6 @@ export default [ }, }, { - ignores: ["eslint.config.js", ".prettierrc"], + ignores: ["eslint.config.js", ".prettierrc", ".output", "src/vendor"], }, ] diff --git a/package.json b/package.json index 2aa7079..a452fdc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { - "name": "home-dashboard", + "name": "dahoam", "private": true, "type": "module", + "packageManager": "pnpm@12.18.0", "scripts": { "dev": "vite dev --port 3000", "generate-routes": "tsr generate", @@ -10,24 +11,36 @@ "lint": "eslint", "format": "prettier --write \"**/*.{ts,tsx,js,jsx}\"", "check": "prettier --check \"**/*.{ts,tsx,js,jsx}\"", - "typecheck": "tsc --noEmit" + "typecheck": "tsc --noEmit", + "start": "node --env-file-if-exists=.env .output/server/index.mjs", + "test": "node --test \"src/**/*.test.ts\"", + "db:generate": "drizzle-kit generate", + "db:migrate": "drizzle-kit migrate" }, "dependencies": { + "@dnd-kit/core": "^6.3.1", + "@dnd-kit/sortable": "^10.0.0", + "@dnd-kit/utilities": "^3.2.2", "@fontsource-variable/inter": "^5.3.0", + "@fontsource/dm-serif-display": "^5.3.0", "@tailwindcss/vite": "^4", "@tanstack/react-devtools": "latest", "@tanstack/react-router": "latest", "@tanstack/react-router-devtools": "latest", "@tanstack/react-start": "latest", + "better-auth": "^1.7.25", "class-variance-authority": "^0.7.1", - "cn": "^0.5.2", + "clsx": "^2.1.1", + "drizzle-orm": "^0.45.4", "lucide-react": "^1.73.0", + "nitro": "3.0.261103-rc", + "postgres": "^4.1.1", "radix-ui": "^1.8.1", "react": "^19.3.1", "react-dom": "^19.3.1", - "shadcn": "^4.23.0", + "tailwind-merge": "^3.7.0", "tailwindcss": "^4", - "tw-animate-css": "^1.4.0" + "zod": "^4.6.7" }, "devDependencies": { "@tanstack/devtools-vite": "latest", @@ -37,6 +50,7 @@ "@types/react": "^19", "@types/react-dom": "^19", "@vitejs/plugin-react": "^6", + "drizzle-kit": "^0.31.11", "eslint": "^10", "prettier": "^3.9.10", "prettier-plugin-tailwindcss": "^0.8.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f496ad4..8780a29 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,3 +1,161 @@ +--- +lockfileVersion: '9.0' + +importers: + + .: + configDependencies: {} + packageManagerDependencies: + pnpm: + specifier: 12.18.0 + version: 12.18.0 + +packages: + + '@pnpm/exe.android-arm64@12.18.0': + resolution: {integrity: sha512-fOF6IwgvnUKEmVedGqiAsNPfN2Ry8GvaqzSQOiF3RJFbpBfPKO/6YT54s1GjToyYinRxw9preHHPe4y2N3SzhA==} + cpu: [arm64] + os: [android] + + '@pnpm/exe.android-x64@12.18.0': + resolution: {integrity: sha512-6OiolnaCsB3/GcJ9XNrenbUH3zFHRJ+5QynrMUUEyThbgnnCzWxa199hpQlOmxN4rAXuYQ0IYgWFNUZxyzg31Q==} + cpu: [x64] + os: [android] + + '@pnpm/exe.darwin-arm64@12.18.0': + resolution: {integrity: sha512-zkq+4YzVIX39ETYLyC3W7LY7MpHEU/J3nRhHl4i2yPld2Cf2+rEKRh3ejJ4AmaQ77HHJLCktY4Z3jq0fpcxFXg==} + cpu: [arm64] + os: [darwin] + + '@pnpm/exe.darwin-x64@12.18.0': + resolution: {integrity: sha512-qMsL9qx92unOTa6hgkfiTJv8ceZaTx0IQg7InhYDVX2ZrTECujaVEEVypnJK5m3eGUsP1KD7Y4qIgleCwfRsYw==} + cpu: [x64] + os: [darwin] + + '@pnpm/exe.freebsd-x64@12.18.0': + resolution: {integrity: sha512-/9vy/4ms52cU4MjZ5NhHd6N2d9L9W0kARf5/ff2tweAHu0VeUzs/0qp/7ZHFuddm2Wa/m0AKQoPum9AVUCqKsw==} + cpu: [x64] + os: [freebsd] + + '@pnpm/exe.linux-arm64-musl@12.18.0': + resolution: {integrity: sha512-Vp+TIMPPyackVCXkOdEKH/RmAn/r07EcIyrgZYQK7VrkksqZOie0GnWIx+85mPqeFEYCRtXIZAFJ9L4ceTndDg==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-arm64@12.18.0': + resolution: {integrity: sha512-2dpyVBCHT+FfpuQh9i+7MXAqNWYLCvD5vYr5p6Eimxoga8USLnjbUgyj72AOrO0hjc5ri3TEFP3jiyBHjkSZpQ==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-ppc64@12.18.0': + resolution: {integrity: sha512-BBOOOfNJ2QwIIya3eKqOjiN4WNTszfRz7HCvw9XggcT7+ftMjNP8XJ/GfW+ltCBeUFR9d8WBVsr2m/NLjX2CZQ==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-riscv64@12.18.0': + resolution: {integrity: sha512-7kMN77xSOYJX8GPSH5RbNAc5oM61LMmcSUukDDUwllnZPXm8GRPskCNsTWy8SCw01Kr1FB+5SwGNMiTdiziLNQ==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-s390x@12.18.0': + resolution: {integrity: sha512-htuSCpEcmDzhKoJqXbPkvfr176dBHU0QIF5mWcRiqxRXAB/1JoYiMYotfjWpk+ztgpB9qlx4XnWlLFAf7gzc6g==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-x64-musl@12.18.0': + resolution: {integrity: sha512-Uj+vzfIQ62kDP10x36yHZIXVs5ohdNtiPYwn5FhCLlNScHPo0OAI+ShGDtLofiBXKE7umu71Jmjm7N8a8zVcDw==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-x64@12.18.0': + resolution: {integrity: sha512-OJ+X2wcraldCwj75pCIerWARQSRpdfj0eBTs/2ODyhfeW46ylOnjTIE/GKra6Mn6E72/gBmXS8igrUioa+F9fQ==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.win32-arm64@12.18.0': + resolution: {integrity: sha512-wEY6jiACGcbhhi5yD59doHqNTndS7AaujaPmtWAu1DKkHru2hy5fJ9yUGecW72Ypaw2/I3BEprfMOopap2NQtw==} + cpu: [arm64] + os: [win32] + + '@pnpm/exe.win32-x64@12.18.0': + resolution: {integrity: sha512-5FJkghO7RLRkQpWxeVEygW9XsmnNuxzPfXbgwFWCHsFyFhpDn/vOdL88ToQEM0Kt5igdW5s6U0/IDH8Dvkt3pg==} + cpu: [x64] + os: [win32] + + pnpm@12.18.0: + resolution: {integrity: sha512-nXiC1dyCFH7PxOBiqjSDTgrQKWcQoYN6ERWuASEn02txCeMhrBWYod0KZVl2gbHpmRfhLtDXSerpEYeUM2O+sw==} + engines: {node: '>=18'} + hasBin: true + +snapshots: + + '@pnpm/exe.android-arm64@12.18.0': + optional: true + + '@pnpm/exe.android-x64@12.18.0': + optional: true + + '@pnpm/exe.darwin-arm64@12.18.0': + optional: true + + '@pnpm/exe.darwin-x64@12.18.0': + optional: true + + '@pnpm/exe.freebsd-x64@12.18.0': + optional: true + + '@pnpm/exe.linux-arm64-musl@12.18.0': + optional: true + + '@pnpm/exe.linux-arm64@12.18.0': + optional: true + + '@pnpm/exe.linux-ppc64@12.18.0': + optional: true + + '@pnpm/exe.linux-riscv64@12.18.0': + optional: true + + '@pnpm/exe.linux-s390x@12.18.0': + optional: true + + '@pnpm/exe.linux-x64-musl@12.18.0': + optional: true + + '@pnpm/exe.linux-x64@12.18.0': + optional: true + + '@pnpm/exe.win32-arm64@12.18.0': + optional: true + + '@pnpm/exe.win32-x64@12.18.0': + optional: true + + pnpm@12.18.0: + optionalDependencies: + '@pnpm/exe.android-arm64': 12.18.0 + '@pnpm/exe.android-x64': 12.18.0 + '@pnpm/exe.darwin-arm64': 12.18.0 + '@pnpm/exe.darwin-x64': 12.18.0 + '@pnpm/exe.freebsd-x64': 12.18.0 + '@pnpm/exe.linux-arm64': 12.18.0 + '@pnpm/exe.linux-arm64-musl': 12.18.0 + '@pnpm/exe.linux-ppc64': 12.18.0 + '@pnpm/exe.linux-riscv64': 12.18.0 + '@pnpm/exe.linux-s390x': 12.18.0 + '@pnpm/exe.linux-x64': 12.18.0 + '@pnpm/exe.linux-x64-musl': 12.18.0 + '@pnpm/exe.win32-arm64': 12.18.0 + '@pnpm/exe.win32-x64': 12.18.0 + +--- lockfileVersion: '9.0' settings: @@ -8,12 +166,24 @@ importers: .: dependencies: + '@dnd-kit/core': + specifier: ^6.3.1 + version: 6.3.1(react-dom@19.3.1(react@19.3.1))(react@19.3.1) + '@dnd-kit/sortable': + specifier: ^10.0.0 + version: 10.0.0(@dnd-kit/core@6.3.1(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(react@19.3.1) + '@dnd-kit/utilities': + specifier: ^3.2.2 + version: 3.2.2(react@19.3.1) '@fontsource-variable/inter': specifier: ^5.3.0 version: 5.3.0 + '@fontsource/dm-serif-display': + specifier: ^5.3.0 + version: 5.3.0 '@tailwindcss/vite': specifier: ^4 - version: 4.3.5(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0)) + version: 4.3.5(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) '@tanstack/react-devtools': specifier: latest version: 0.10.14(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(csstype@3.2.3)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(solid-js@1.9.19) @@ -25,16 +195,28 @@ importers: version: 1.167.3(@tanstack/react-router@1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(@tanstack/router-core@1.171.39)(csstype@3.2.3)(react-dom@19.3.1(react@19.3.1))(react@19.3.1) '@tanstack/react-start': specifier: latest - version: 1.169.5(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0)) + version: 1.169.5(esbuild@0.28.2)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + better-auth: + specifier: ^1.7.25 + version: 1.7.25(@tanstack/react-start@1.169.5(esbuild@0.28.2)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)))(drizzle-kit@0.31.11)(drizzle-orm@0.45.4(kysely@0.29.9)(postgres@4.1.1))(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(solid-js@1.9.19) class-variance-authority: specifier: ^0.7.1 version: 0.7.1 - cn: - specifier: ^0.5.2 - version: 0.5.2 + clsx: + specifier: ^2.1.1 + version: 2.1.1 + drizzle-orm: + specifier: ^0.45.4 + version: 0.45.4(kysely@0.29.9)(postgres@4.1.1) lucide-react: specifier: ^1.73.0 version: 1.73.0(@types/react@19.3.0)(react@19.3.1) + nitro: + specifier: 3.0.261103-rc + version: 3.0.261103-rc + postgres: + specifier: ^4.1.1 + version: 4.1.1 radix-ui: specifier: ^1.8.1 version: 1.8.1(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1) @@ -44,19 +226,19 @@ importers: react-dom: specifier: ^19.3.1 version: 19.3.1(react@19.3.1) - shadcn: - specifier: ^4.23.0 - version: 4.23.0 + tailwind-merge: + specifier: ^3.7.0 + version: 3.7.0 tailwindcss: specifier: ^4 version: 4.3.5 - tw-animate-css: - specifier: ^1.4.0 - version: 1.4.0 + zod: + specifier: ^4.6.7 + version: 4.6.7 devDependencies: '@tanstack/devtools-vite': specifier: latest - version: 0.8.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0)) + version: 0.8.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) '@tanstack/eslint-config': specifier: latest version: 0.5.0(@typescript-eslint/utils@8.72.2(eslint@10.15.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.15.0(jiti@2.7.0))(typescript@6.0.3) @@ -74,7 +256,10 @@ importers: version: 19.3.0(@types/react@19.3.0) '@vitejs/plugin-react': specifier: ^6 - version: 6.3.0(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0)) + version: 6.3.0(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + drizzle-kit: + specifier: ^0.31.11 + version: 0.31.11 eslint: specifier: ^10 version: 10.15.0(jiti@2.7.0) @@ -89,7 +274,7 @@ importers: version: 6.0.3 vite: specifier: ^8 - version: 8.3.8(@types/node@22.20.5)(jiti@2.7.0) + version: 8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15) packages: @@ -109,28 +294,14 @@ packages: resolution: {integrity: sha512-qSY56jgW5JnSXzuekLVil6zaOQxOCtOHidr65KkaMBw772IuAY28Qx4ZykAcDn8+FRF15qk80XzKwgSc/RYW6g==} engines: {node: '>=6.9.0'} - '@babel/helper-annotate-as-pure@7.29.7': - resolution: {integrity: sha512-OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw==} - engines: {node: '>=6.9.0'} - '@babel/helper-compilation-targets@7.29.13': resolution: {integrity: sha512-8WxJ4/Vmes3ghacj8VOJy3NW8eyHiFY/4thU/LSBuBE470+igjR/j1ZTNn8fV5VdNrLx6iXUwig526UdOvfP0w==} engines: {node: '>=6.9.0'} - '@babel/helper-create-class-features-plugin@7.29.13': - resolution: {integrity: sha512-fo8/Fr44/DMV71FQjk/HA0Npmu3bo5DFoWTCW1dhUR8Vx3NFfAVeEy0TbcBpt4e+hd2QhdmWgmspHo/9iWj8RA==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0 - '@babel/helper-globals@7.29.7': resolution: {integrity: sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==} engines: {node: '>=6.9.0'} - '@babel/helper-member-expression-to-functions@7.29.14': - resolution: {integrity: sha512-FuTSn8mXKAP+aHXnbkCYQsQAdlEIJptEutwc2NaPd28hyVqsjRDmBnI2EPJX6HCodKIqOHfayQHqtxQCkqwthA==} - engines: {node: '>=6.9.0'} - '@babel/helper-module-imports@7.29.7': resolution: {integrity: sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==} engines: {node: '>=6.9.0'} @@ -141,24 +312,6 @@ packages: peerDependencies: '@babel/core': ^7.0.0 - '@babel/helper-optimise-call-expression@7.29.7': - resolution: {integrity: sha512-+kmGVjcT9RGYzoDwdwEqEvGgKe3BYq+O1iGzjFubaNgZHwYHP6lsF2Yghf4kEuv9BV7tYDZ913aBW9am6YKong==} - engines: {node: '>=6.9.0'} - - '@babel/helper-plugin-utils@7.29.7': - resolution: {integrity: sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==} - engines: {node: '>=6.9.0'} - - '@babel/helper-replace-supers@7.29.7': - resolution: {integrity: sha512-atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0 - - '@babel/helper-skip-transparent-expression-wrappers@7.29.13': - resolution: {integrity: sha512-Abm4rKIH0tmCayJLwcoeOkdzpYUphTbO52fHhyEBHn7S0R+ni4epNLI/8nq1L0DN2Bl0u5qmgWm2Og/z4fBb+Q==} - engines: {node: '>=6.9.0'} - '@babel/helper-string-parser@7.29.14': resolution: {integrity: sha512-CXvKMFvM80ihI7Vox9jb+kQjnyjESQNPM+vB7U0Zz6TWuZA+Z/FL0QPMH300h33qJtIx+REeBhXqWOPW48TcAQ==} engines: {node: '>=6.9.0'} @@ -180,36 +333,6 @@ packages: engines: {node: '>=6.0.0'} hasBin: true - '@babel/plugin-syntax-jsx@7.29.7': - resolution: {integrity: sha512-TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - - '@babel/plugin-syntax-typescript@7.29.7': - resolution: {integrity: sha512-ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - - '@babel/plugin-transform-modules-commonjs@7.29.14': - resolution: {integrity: sha512-mbv2yy5dqP6e3DbusCx+5AypXkFbyJD/JhG4/XhA+BIADOw5o7W+X0ewSp/h3w7gRL3oR5yny2/K8ljiydj4uA==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - - '@babel/plugin-transform-typescript@7.29.9': - resolution: {integrity: sha512-FFwIwzU+7SCOuxxV4YtJql6T9981ZVTm+FHO5GhVsRqCTdy0WwrEZh3l42ARpXruJUDGOptdduHW6Zr7pNPLNg==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - - '@babel/preset-typescript@7.29.7': - resolution: {integrity: sha512-/Foi8vKY2EVbed/1eZx0gJEEwHAIxogrySI7rULcRIvhZzbvoE/b5qG5Ghc0WKAFKOHA9SD1x7RsFlOYdutIiQ==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - '@babel/template@7.29.7': resolution: {integrity: sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==} engines: {node: '>=6.9.0'} @@ -222,18 +345,112 @@ packages: resolution: {integrity: sha512-UjI/dKmwJwT9pOszJitq2G6EObZPnsZUfdCr92z2TlF3EZK9J3EdfOKUrCzHl6wFthbzwhzl1Soc/UIwxRiq6w==} engines: {node: '>=6.9.0'} + '@better-auth/core@1.7.25': + resolution: {integrity: sha512-L20SJSCpgKQIiZHZZBP28gvvqwkQ+IJxFwtNEeC4PSWBG1/yu5VckGGAoiieUBOcR/OZNHXW+lPFWcgQHK4ZYQ==} + peerDependencies: + '@better-auth/utils': ^0.4.2 || ^0.5.0 + '@better-fetch/fetch': 1.3.3 + '@opentelemetry/api': ^1.9.0 + better-call: ~1.4.5 + jose: ^6.1.0 + kysely: ^0.28.5 || ^0.29.0 + nanostores: ^1.0.1 + peerDependenciesMeta: + '@opentelemetry/api': + optional: true + + '@better-auth/drizzle-adapter@1.7.25': + resolution: {integrity: sha512-zQvK6PnUUeD3m5B6U/tHUYCRNtvdq2nZ1aT5jV+jdTt4JUpkt0CATYHf1BrXFt0Y9b0vIeCyVk7QjpF5oxJE9w==} + peerDependencies: + '@better-auth/core': ^1.7.25 + '@better-auth/utils': ^0.4.2 || ^0.5.0 + drizzle-orm: ^0.45.2 || >=1.0.0-rc.1 <2.0.0 + peerDependenciesMeta: + drizzle-orm: + optional: true + + '@better-auth/kysely-adapter@1.7.25': + resolution: {integrity: sha512-G/HT0Xg+ZIwAu2W2jUaWkUgAD/R6wws+RYsZ8aBX+JMn8ngSdzVC9brjfJ8JZNaTcm9E0XgfUp8uiZk5CTbVYQ==} + peerDependencies: + '@better-auth/core': ^1.7.25 + '@better-auth/utils': ^0.4.2 || ^0.5.0 + kysely: ^0.28.17 || ^0.29.0 + peerDependenciesMeta: + kysely: + optional: true + + '@better-auth/memory-adapter@1.7.25': + resolution: {integrity: sha512-yn6XdL3FAR0u1qmyZtzpbQl4ZTdxQ9liym6AamiT2Rtu7S3OAwz1ivqpQIAQY4o6aXi/MrCqOlnqXScJCqO+2g==} + peerDependencies: + '@better-auth/core': ^1.7.25 + '@better-auth/utils': ^0.4.2 || ^0.5.0 + + '@better-auth/mongo-adapter@1.7.25': + resolution: {integrity: sha512-cEErkz3eTTN8Wxgq5PJbF9UN93ypH6EJSVjw+bOFvn6v6RkPzKxwA3kvqsETsM0WVUfnl4zc0J1Np6MhxrJN0g==} + peerDependencies: + '@better-auth/core': ^1.7.25 + '@better-auth/utils': ^0.4.2 || ^0.5.0 + mongodb: ^6.0.0 || ^7.0.0 + peerDependenciesMeta: + mongodb: + optional: true + + '@better-auth/prisma-adapter@1.7.25': + resolution: {integrity: sha512-s3qr9juC+g53/vNWWn5QqqZywg1EiCwfg+E884GRM6Ves+zp8lREjlXAo0E9Sshz5rcw9rxzJDJY7G/vlxhVEA==} + peerDependencies: + '@better-auth/core': ^1.7.25 + '@better-auth/utils': ^0.4.2 || ^0.5.0 + '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 + prisma: ^5.0.0 || ^6.0.0 || ^7.0.0 + peerDependenciesMeta: + '@prisma/client': + optional: true + prisma: + optional: true + + '@better-auth/telemetry@1.7.25': + resolution: {integrity: sha512-O5RqANZISVLX4/lpsRvNjKWqbiZPErJKpnFg1mzrUxhDnROEKniaQdlm+vdxXcxVC5RClh9hrJG7oXVGDHQHnQ==} + peerDependencies: + '@better-auth/core': ^1.7.25 + '@better-auth/utils': ^0.4.2 || ^0.5.0 + '@better-fetch/fetch': 1.3.3 + + '@better-auth/utils@0.5.1': + resolution: {integrity: sha512-WETqw5vQ52uQ/xwWR4E8rTgT6fDEr/wnS+otDNkBCa/69281FCF32OKDdQUcahMCnjsvqXBNiEvAQHFB0EVRRg==} + + '@better-fetch/fetch@1.3.3': + resolution: {integrity: sha512-U6SlDt/GUWtK2JAxS/NhdoYTEim+EL1G5byz2TUj83KjLZBUpYzb5SmX0aXaCnbGkAjFKnV/o/0+cyXMbEcqqg==} + '@cacheable/memory@2.2.0': resolution: {integrity: sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==} '@cacheable/utils@2.5.0': resolution: {integrity: sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==} - '@dotenvx/dotenvx@1.75.1': - resolution: {integrity: sha512-/BITOC9dmS/edY2zQwZNicQ059O6RKabtQfyEafV0nGtfYRNHYy1DIPiYVcov40+tob9hfmBnbR963dS+EQ1DQ==} - hasBin: true + '@dnd-kit/accessibility@3.1.1': + resolution: {integrity: sha512-2P+YgaXF+gRsIihwwY1gCsQSYnu9Zyj2py8kY5fFvUM1qm2WA2u639R6YNVfU4GWr+ZM5mqEsfHZZLoRONbemw==} + peerDependencies: + react: '>=16.8.0' - '@dotenvx/primitives@0.8.0': - resolution: {integrity: sha512-VYJy0uhFm9zTJ1TxBaW/pA8bjbOM/OttaNMwZ1RHG4JKyRG7DhSdiqD1ipQoAyoD22olUtxbP78W9xY3Wd11bg==} + '@dnd-kit/core@6.3.1': + resolution: {integrity: sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ==} + peerDependencies: + react: '>=16.8.0' + react-dom: '>=16.8.0' + + '@dnd-kit/sortable@10.0.0': + resolution: {integrity: sha512-+xqhmIIzvAYMGfBYYnbKuNicfSsk4RksY2XdmJhT+HAC01nix6fHCztU68jooFiMUB01Ky3F0FyOvhG/BZrWkg==} + peerDependencies: + '@dnd-kit/core': ^6.3.0 + react: '>=16.8.0' + + '@dnd-kit/utilities@3.2.2': + resolution: {integrity: sha512-+MKAJEOfaBe5SmV6t34p80MMKhjvUz0vRrvVJbPT0WElzaOJ/1xs+D+KDv+tD/NE5ujfrChEcshd4fLn0wpiqg==} + peerDependencies: + react: '>=16.8.0' + + '@drizzle-team/brocli@0.10.2': + resolution: {integrity: sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w==} '@emnapi/core@2.0.0-beta.2': resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} @@ -244,6 +461,458 @@ packages: '@emnapi/wasi-threads@2.2.0': resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + '@esbuild-kit/core-utils@3.3.2': + resolution: {integrity: sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ==} + deprecated: 'Merged into tsx: https://tsx.hirok.io' + + '@esbuild-kit/esm-loader@2.6.5': + resolution: {integrity: sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA==} + deprecated: 'Merged into tsx: https://tsx.hirok.io' + + '@esbuild/aix-ppc64@0.25.12': + resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/aix-ppc64@0.28.2': + resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.18.20': + resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm64@0.25.12': + resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm64@0.28.2': + resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.18.20': + resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + + '@esbuild/android-arm@0.25.12': + resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-arm@0.28.2': + resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.18.20': + resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + + '@esbuild/android-x64@0.25.12': + resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/android-x64@0.28.2': + resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.18.20': + resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-arm64@0.25.12': + resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-arm64@0.28.2': + resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.18.20': + resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + + '@esbuild/darwin-x64@0.25.12': + resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/darwin-x64@0.28.2': + resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.18.20': + resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-arm64@0.25.12': + resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-arm64@0.28.2': + resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.18.20': + resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.25.12': + resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.28.2': + resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.18.20': + resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm64@0.25.12': + resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm64@0.28.2': + resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.18.20': + resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-arm@0.25.12': + resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-arm@0.28.2': + resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.18.20': + resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-ia32@0.25.12': + resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-ia32@0.28.2': + resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.18.20': + resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-loong64@0.25.12': + resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-loong64@0.28.2': + resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.18.20': + resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-mips64el@0.25.12': + resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-mips64el@0.28.2': + resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.18.20': + resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-ppc64@0.25.12': + resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-ppc64@0.28.2': + resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.18.20': + resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-riscv64@0.25.12': + resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-riscv64@0.28.2': + resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.18.20': + resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-s390x@0.25.12': + resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-s390x@0.28.2': + resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.18.20': + resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + + '@esbuild/linux-x64@0.25.12': + resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/linux-x64@0.28.2': + resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.25.12': + resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-arm64@0.28.2': + resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.18.20': + resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.25.12': + resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.28.2': + resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.25.12': + resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-arm64@0.28.2': + resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.18.20': + resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.25.12': + resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.28.2': + resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openharmony-arm64@0.25.12': + resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/openharmony-arm64@0.28.2': + resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/sunos-x64@0.18.20': + resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + + '@esbuild/sunos-x64@0.25.12': + resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/sunos-x64@0.28.2': + resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.18.20': + resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-arm64@0.25.12': + resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-arm64@0.28.2': + resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.18.20': + resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-ia32@0.25.12': + resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-ia32@0.28.2': + resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.18.20': + resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + + '@esbuild/win32-x64@0.25.12': + resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@esbuild/win32-x64@0.28.2': + resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + '@eslint-community/eslint-utils@4.10.1': resolution: {integrity: sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -301,6 +970,9 @@ packages: '@fontsource-variable/inter@5.3.0': resolution: {integrity: sha512-OupL48va4JNofb97w6NYeF9S7W/kHNKM0Er8Dem5nqi4jeOLrVJDoE8tZEpnMJmtkvNbB1EIPPwHcdkF6b1oUA==} + '@fontsource/dm-serif-display@5.3.0': + resolution: {integrity: sha512-ecRclUcYeto9fB7ghkB36H4MtUoaUYFjjornWYYeLCMHzaWEDPk2kIWgZOq0mKBNRxclRSieKcFeLonlMYDTKg==} + '@humanfs/core@0.19.2': resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==} engines: {node: '>=18.18.0'} @@ -349,14 +1021,6 @@ packages: '@keyv/serialize@1.1.1': resolution: {integrity: sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==} - '@modelcontextprotocol/core@2.4.0': - resolution: {integrity: sha512-z8QBKqdfXLPzkLQuG4xp8hrVEMm1PZ1IgxMN2sMbJiFiAKOWXnAzogXn2W4aqIBlP1ea6U5yiqVquvUNM1Cj6Q==} - engines: {node: '>=20'} - - '@modelcontextprotocol/server@2.4.0': - resolution: {integrity: sha512-rgR9yxSaAJ+bcsi/XroT/S2AfPiIWloXAnrdfYSCms9ivVju0ishu/wW0J21Ho6+ZOR1r7RyeRbjiRuF87ix5Q==} - engines: {node: '>=20'} - '@napi-rs/wasm-runtime@1.2.6': resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} @@ -380,17 +1044,13 @@ packages: '@neodrag/core': 3.0.0-next.11 solid-js: ^1.0.0 - '@nodelib/fs.scandir@2.1.5': - resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} - engines: {node: '>= 8'} + '@noble/ciphers@2.4.0': + resolution: {integrity: sha512-AnjFn0Jv92laAkvMrghlFZq4qQCIN/4DxFV/eooqtC2YTjB7kBeLMS2T9KJX4Dn+ZVXLOwK0lSgqDtx9gvxtiw==} + engines: {node: '>= 20.19.0'} - '@nodelib/fs.stat@2.0.5': - resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} - engines: {node: '>= 8'} - - '@nodelib/fs.walk@1.2.8': - resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} - engines: {node: '>= 8'} + '@noble/hashes@2.4.0': + resolution: {integrity: sha512-X5XaVWZIBCT7HHZGm5I7ZQXDwLG+bGXuSrMQAW+7Zvl87h1kmc1ZB1VSRJcpUfoUrGQp4Fkoxm5kZ+Ms+aW+eA==} + engines: {node: '>= 20.19.0'} '@oozcitak/dom@2.0.2': resolution: {integrity: sha512-GjpKhkSYC3Mj4+lfwEyI1dqnsKTgwGy48ytZEhm4A/xnH/8z9M3ZVXKr/YGQi3uCLs1AEBS+x5T2JPiueEDW8w==} @@ -1335,17 +1995,6 @@ packages: '@rolldown/pluginutils@1.1.1': resolution: {integrity: sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA==} - '@sec-ant/readable-stream@0.4.1': - resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==} - - '@shadcn/registry@0.2.1': - resolution: {integrity: sha512-wMvZ3DGdnhCwtpeFbwKybSGfCcP52bZX77jMKgZvupmirgyA5KRLlkeQXkI2RGHIaD8TX2iWe2wcIEjjqzg2FQ==} - engines: {node: '>=20.18.1'} - - '@sindresorhus/merge-streams@4.0.0': - resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==} - engines: {node: '>=18'} - '@solid-primitives/event-listener@2.4.6': resolution: {integrity: sha512-5I0YJcTVYIWoMmgBSROBZGcz+ymhew/pGTg2dHW74BUjFKsV8Li4bOZYl0YAGP4mHw5o4UBd9/BEesqBci3wxw==} peerDependencies: @@ -1376,6 +2025,9 @@ packages: peerDependencies: solid-js: ^1.6.12 + '@standard-schema/spec@1.1.0': + resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + '@stylistic/eslint-plugin@5.10.0': resolution: {integrity: sha512-nPK52ZHvot8Ju/0A4ucSX1dcPV2/1clx0kLcH5wDmrE4naKso7TUC/voUyU1O9OTKTrR6MYip6LP0ogEMQ9jPQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -1684,9 +2336,6 @@ packages: resolution: {integrity: sha512-uhOeFyxLcU41HzvrxsGpiWdcMbScY1EDgbZ5K7DVRMYInbLYWAC0EA/kx9wXAoSM8q82bUG2hRl8+EAjE6XAbA==} engines: {node: '>=20.19'} - '@ts-morph/common@0.27.0': - resolution: {integrity: sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==} - '@tybys/wasm-util@0.10.5': resolution: {integrity: sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA==} @@ -1710,9 +2359,6 @@ packages: '@types/react@19.3.0': resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==} - '@types/validate-npm-package-name@4.0.2': - resolution: {integrity: sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==} - '@typescript-eslint/eslint-plugin@8.72.2': resolution: {integrity: sha512-222PKFXKihmFpi/pS5njoBgdAqsPhj2/GBmFbrNw8Tq8gEG9Sv+kSlKFy4u2q+mJv9ZzJgM2Gkv/bUzRZwZw5g==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -1913,32 +2559,9 @@ packages: engines: {node: '>=0.4.0'} hasBin: true - ajv-formats@2.1.1: - resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==} - peerDependencies: - ajv: ^8.0.0 - peerDependenciesMeta: - ajv: - optional: true - ajv@6.15.0: resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} - ajv@8.20.0: - resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} - - ansi-colors@4.1.3: - resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} - engines: {node: '>=6'} - - ansi-regex@5.0.1: - resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} - engines: {node: '>=8'} - - ansi-regex@6.6.0: - resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} - engines: {node: '>=12'} - ansis@4.5.0: resolution: {integrity: sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==} engines: {node: '>=14'} @@ -1950,14 +2573,6 @@ packages: resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==} engines: {node: '>=10'} - ast-types@0.16.3: - resolution: {integrity: sha512-FvWoWYfSCM6kRxCSH+MGLHIKKGRL6A6AW7Zek2O32REPQRdg131428uRTKMBYAeRd3XXAaHDS60Wpri7CdKDrA==} - engines: {node: '>=4'} - - atomically@1.7.0: - resolution: {integrity: sha512-Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w==} - engines: {node: '>=10.12.0'} - babel-dead-code-elimination@1.0.12: resolution: {integrity: sha512-GERT7L2TiYcYDtYk1IpD+ASAYXjKbLTDPhBtYj7X1NuRMDTMtAx9kyBenub1Ev41lo91OHCKdmP+egTDmfQ7Ig==} @@ -1970,22 +2585,84 @@ packages: engines: {node: '>=6.0.0'} hasBin: true + better-auth@1.7.25: + resolution: {integrity: sha512-OglRnzasyXpZHMceZBW76tQRbS6lSJhqkxm0l/7db1qJ415ecD1YkKHgOUCvmPbVDLJiB4/fumD2vw2hf+1VCQ==} + peerDependencies: + '@lynx-js/react': '*' + '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 + '@sveltejs/kit': ^2.0.0 || ^3.0.0 + '@tanstack/react-start': ^1.0.0 + '@tanstack/solid-start': ^1.0.0 + drizzle-kit: '>=0.31.4 || >=1.0.0-beta.1' + drizzle-orm: ^0.45.2 || >=1.0.0-rc.1 <2.0.0 + mongodb: ^6.0.0 || ^7.0.0 + mysql2: ^3.0.0 + next: ^14.0.0 || ^15.0.0 || ^16.0.0 + pg: ^8.0.0 + prisma: ^5.0.0 || ^6.0.0 || ^7.0.0 + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + solid-js: ^1.0.0 + svelte: ^4.0.0 || ^5.0.0 + vitest: ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 + vue: ^3.0.0 + peerDependenciesMeta: + '@lynx-js/react': + optional: true + '@prisma/client': + optional: true + '@sveltejs/kit': + optional: true + '@tanstack/react-start': + optional: true + '@tanstack/solid-start': + optional: true + drizzle-kit: + optional: true + drizzle-orm: + optional: true + mongodb: + optional: true + mysql2: + optional: true + next: + optional: true + pg: + optional: true + prisma: + optional: true + react: + optional: true + react-dom: + optional: true + solid-js: + optional: true + svelte: + optional: true + vitest: + optional: true + vue: + optional: true + + better-call@1.4.5: + resolution: {integrity: sha512-GVOWfn3pjEfUXn6GrfGf2h7tPAqj1oMLFBWBEswJrSkDKcLk6TIcjV0zexibcZZ0c5N1mkLMsPFopXWzWj/gDQ==} + peerDependencies: + zod: ^4.0.0 + peerDependenciesMeta: + zod: + optional: true + brace-expansion@5.0.13: resolution: {integrity: sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==} engines: {node: 20 || >=22} - braces@3.0.3: - resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} - engines: {node: '>=8'} - browserslist@4.29.5: resolution: {integrity: sha512-khTmKu5NGYTotqcYo8Bew2k4RAE9PuXRSFRXG2lQBrCEQHyeQ/vX6gKMxfokwywBsLiXZMnHsmWMG1pnO8J7uQ==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true - bundle-name@4.1.1: - resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} - engines: {node: '>=18'} + buffer-from@1.1.2: + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} cac@7.1.0: resolution: {integrity: sha512-LMDU/U2yA4IPIY8KT0NsNPWEYZvAMkbgyspxJ6btJaYV+WMDOHAZCmB0lsTObiHaRS1V/ztKAl7+TSkTqXyeoA==} @@ -2011,47 +2688,14 @@ packages: class-variance-authority@0.7.1: resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==} - cli-cursor@5.0.0: - resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} - engines: {node: '>=18'} - - cli-spinners@2.9.2: - resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==} - engines: {node: '>=6'} - clsx@2.1.1: resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} engines: {node: '>=6'} - cn@0.2.6: - resolution: {integrity: sha512-+i4L0zUGgRcEnhsxueVrP7iBGxBx5iD0WOTYg1MwFEu2ZyCmH5Ov2V1cul2Ht5UchRQQgftCf4be/RxspuW6QQ==} - engines: {node: '>=20'} - hasBin: true - - cn@0.5.2: - resolution: {integrity: sha512-wm10E6iuJ37rALOw3D+3cfaXXZSLNMh2uxpQn3dNICqfJM59yXqgbA9/9Iiz155j5kYNLdK6WreNdW3NQtx3OQ==} - engines: {node: '>=22'} - hasBin: true - - code-block-writer@13.0.3: - resolution: {integrity: sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==} - - commander@11.1.0: - resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==} - engines: {node: '>=16'} - - commander@14.0.3: - resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==} - engines: {node: '>=20'} - comment-parser@1.4.9: resolution: {integrity: sha512-+2AvZKjJaNq9GQljm3tr0utwrig5BL+jgJGvz5rDpGKNIp+ojcRXWUwBbh/sGIi1QCprR6PsKFakub+w1v+4hQ==} engines: {node: '>= 12.0.0'} - conf@10.2.0: - resolution: {integrity: sha512-8fLl9F04EJqjSqH+QjITQfJF8BrOVaYr1jewVgSRAEWePfxT0sku4w2hrGQ60BC/TNLGQ2pgxNlTbWQmMPFvXg==} - engines: {node: '>=12'} - convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} @@ -2062,16 +2706,20 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} + crossws@0.4.17: + resolution: {integrity: sha512-YG2kyfafNXKmu7e6k64yrj6whrw7m5sBIsOSXOlJ/72X3TQWRQuw8DhvXFDcBk8HF77PnTSygnm7xpYCTnFpow==} + peerDependencies: + srvx: '>=0.11.5' + peerDependenciesMeta: + srvx: + optional: true + csstype@3.2.3: resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} dayjs@1.11.23: resolution: {integrity: sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==} - debounce-fn@4.0.0: - resolution: {integrity: sha512-8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ==} - engines: {node: '>=10'} - debug@4.4.3: resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} engines: {node: '>=6.0'} @@ -2081,36 +2729,11 @@ packages: supports-color: optional: true - dedent@1.7.2: - resolution: {integrity: sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==} - peerDependencies: - babel-plugin-macros: ^3.1.0 - peerDependenciesMeta: - babel-plugin-macros: - optional: true - deep-is@0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} - deepmerge@4.3.1: - resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} - engines: {node: '>=0.10.0'} - - default-browser-id@5.0.1: - resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} - engines: {node: '>=18'} - - default-browser@5.5.1: - resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} - engines: {node: '>=18'} - - define-lazy-prop@2.0.0: - resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==} - engines: {node: '>=8'} - - define-lazy-prop@3.0.0: - resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} - engines: {node: '>=12'} + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} detect-libc@2.1.2: resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} @@ -2119,43 +2742,138 @@ packages: detect-node-es@1.1.0: resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==} - diff@8.0.4: - resolution: {integrity: sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==} - engines: {node: '>=0.3.1'} - diff@9.0.0: resolution: {integrity: sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw==} engines: {node: '>=0.3.1'} - dot-prop@6.0.1: - resolution: {integrity: sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==} - engines: {node: '>=10'} + drizzle-kit@0.31.11: + resolution: {integrity: sha512-YCYqxTLIB2OCqf6w9/Vef13baBVbwQIPcbT4Y56AfO6B9ajZhDhD8Jkveg/hJvT/iuMloKD/IYYkyMMNhr7Kqg==} + hasBin: true - dotenv@17.4.2: - resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} - engines: {node: '>=12'} + drizzle-orm@0.45.4: + resolution: {integrity: sha512-NiM1YZpJ2UxyeE67DpDDZ+Tsw4YLX3trSlkNT7Tm9eKoUNb1LvaAaQzXgYQsWs+AQ9TUmmwMmBOCXuqqxUWKKQ==} + peerDependencies: + '@aws-sdk/client-rds-data': '>=3' + '@cloudflare/workers-types': '>=4' + '@electric-sql/pglite': '>=0.2.0' + '@libsql/client': '>=0.10.0' + '@libsql/client-wasm': '>=0.10.0' + '@neondatabase/serverless': '>=0.10.0' + '@netlify/db': '>=0.4.0' + '@op-engineering/op-sqlite': '>=2' + '@opentelemetry/api': ^1.4.1 + '@planetscale/database': '>=1.13' + '@prisma/client': '*' + '@tidbcloud/serverless': '*' + '@types/better-sqlite3': '*' + '@types/pg': '*' + '@types/sql.js': '*' + '@upstash/redis': '>=1.34.7' + '@vercel/postgres': '>=0.8.0' + '@xata.io/client': '*' + better-sqlite3: '>=7' + bun-types: '*' + expo-sqlite: '>=14.0.0' + gel: '>=2' + knex: '*' + kysely: '*' + mysql2: '>=2' + pg: '>=8' + postgres: '>=3' + prisma: '*' + sql.js: '>=1' + sqlite3: '>=5' + peerDependenciesMeta: + '@aws-sdk/client-rds-data': + optional: true + '@cloudflare/workers-types': + optional: true + '@electric-sql/pglite': + optional: true + '@libsql/client': + optional: true + '@libsql/client-wasm': + optional: true + '@neondatabase/serverless': + optional: true + '@netlify/db': + optional: true + '@op-engineering/op-sqlite': + optional: true + '@opentelemetry/api': + optional: true + '@planetscale/database': + optional: true + '@prisma/client': + optional: true + '@tidbcloud/serverless': + optional: true + '@types/better-sqlite3': + optional: true + '@types/pg': + optional: true + '@types/sql.js': + optional: true + '@upstash/redis': + optional: true + '@vercel/postgres': + optional: true + '@xata.io/client': + optional: true + better-sqlite3: + optional: true + bun-types: + optional: true + expo-sqlite: + optional: true + gel: + optional: true + knex: + optional: true + kysely: + optional: true + mysql2: + optional: true + pg: + optional: true + postgres: + optional: true + prisma: + optional: true + sql.js: + optional: true + sqlite3: + optional: true electron-to-chromium@1.5.486: resolution: {integrity: sha512-rpybw4Ac4ak/An6G1Me2+61xzwobowDGyuJe71QHHOVpkZv4fPVobsLl7WH6zHSKusAMpaHxGKTpOvpy7+r3dQ==} - emoji-regex@10.6.0: - resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==} - enhanced-resolve@5.27.0: resolution: {integrity: sha512-Do6BB2xzlcc/odFg+XEYyneAx4T/WfywO71yw9ePS2tVfRsf7JVR4mUeELadIeHzixkzbG5DpluiEFPi2WGfYQ==} engines: {node: '>=10.13.0'} - enquirer@2.4.1: - resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==} - engines: {node: '>=8.6'} - - env-paths@2.2.1: - resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==} - engines: {node: '>=6'} + env-runner@0.3.11: + resolution: {integrity: sha512-jKG29hxqGrL9ktunIwmt9aHbP3n995DGUY1KyXS7iGYFoD/yDdpc2CjJt6remFI3x2H1JOmBBMo0KXxjEQ2G6g==} + hasBin: true es-module-lexer@3.0.5: resolution: {integrity: sha512-RNq2lKJw53c7z9QRHeiKeA6Ez0oikOqiBGdmxQhKDxEiOX1g5QJR4IoFVwicn8uCZcRWNrXC3NZaJihgK7aEbg==} + esbuild@0.18.20: + resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} + engines: {node: '>=12'} + hasBin: true + + esbuild@0.25.12: + resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==} + engines: {node: '>=18'} + hasBin: true + + esbuild@0.28.2: + resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==} + engines: {node: '>=18'} + hasBin: true + escalade@3.2.0: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} @@ -2238,11 +2956,6 @@ packages: resolution: {integrity: sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==} engines: {node: ^20.19.0 || ^22.13.0 || >=24} - esprima@4.0.1: - resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} - engines: {node: '>=4'} - hasBin: true - esquery@1.7.0: resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} engines: {node: '>=0.10'} @@ -2259,36 +2972,18 @@ packages: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} - execa@5.1.1: - resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} - engines: {node: '>=10'} - - execa@9.6.1: - resolution: {integrity: sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==} - engines: {node: ^18.19.0 || >=20.5.0} - exsolve@1.2.0: resolution: {integrity: sha512-h1pQPR9XoeSMdntRNCjyTznaume4UpfXrULBnlkZ2CUM/G5eSa+pBByGldO5uR8dxbPC+OuJXsPPNf+JZ81ADg==} fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - fast-glob@3.3.3: - resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==} - engines: {node: '>=8.6.0'} - fast-json-stable-stringify@2.1.0: resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - fast-uri@3.1.9: - resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} - - fastq@1.20.3: - resolution: {integrity: sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==} - fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} engines: {node: '>=12.0.0'} @@ -2301,21 +2996,9 @@ packages: fetchdts@0.2.0: resolution: {integrity: sha512-PJb4ZTGT2/wK78RmVrxZITStWabhZlKBsL52VOgq+c7clEkdHdEB+0rtzrXCbZJqeYJj+IwNWYqB5/G6vouA6A==} - figures@6.1.0: - resolution: {integrity: sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==} - engines: {node: '>=18'} - file-entry-cache@11.1.5: resolution: {integrity: sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==} - fill-range@7.1.1: - resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} - engines: {node: '>=8'} - - find-up@3.0.0: - resolution: {integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==} - engines: {node: '>=6'} - find-up@5.0.0: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} @@ -2326,49 +3009,22 @@ packages: flatted@3.4.4: resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==} - fs-extra@11.4.1: - resolution: {integrity: sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==} - engines: {node: '>=14.14'} - fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] - fuzzysort@3.1.0: - resolution: {integrity: sha512-sR9BNCjBg6LNgwvxlBd0sBABvQitkLzoVY9MYYROQVX/FvfJ4Mai9LsGhDgd8qYdds0bY77VzYd5iuB+v5rwQQ==} - gensync@1.0.0-beta.2: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} - get-east-asian-width@1.7.0: - resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} - engines: {node: '>=18'} - get-nonce@1.0.1: resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==} engines: {node: '>=6'} - get-own-enumerable-keys@1.0.0: - resolution: {integrity: sha512-PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA==} - engines: {node: '>=14.16'} - - get-stream@6.0.1: - resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} - engines: {node: '>=10'} - - get-stream@9.0.1: - resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==} - engines: {node: '>=18'} - get-tsconfig@4.14.3: resolution: {integrity: sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==} - glob-parent@5.1.2: - resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} - engines: {node: '>= 6'} - glob-parent@6.0.2: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} @@ -2392,6 +3048,19 @@ packages: graceful-fs@4.2.12: resolution: {integrity: sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==} + h3@2.0.8: + resolution: {integrity: sha512-ENuKlF9kC6E6PrvY1PUyE0qkrnnPTIt2/v48uyEEfTVfgoiqBCE0uwwf++2XrWwT1gxjQBDLQ8PAsmZVniKvTw==} + engines: {node: '>=20.19.0'} + hasBin: true + peerDependencies: + crossws: ^0.4.12 + ocache: '>=0.3.0' + peerDependenciesMeta: + crossws: + optional: true + ocache: + optional: true + hashery@1.5.1: resolution: {integrity: sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==} engines: {node: '>=20'} @@ -2402,14 +3071,6 @@ packages: hookified@2.2.0: resolution: {integrity: sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==} - human-signals@2.1.0: - resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} - engines: {node: '>=10.17.0'} - - human-signals@8.0.1: - resolution: {integrity: sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==} - engines: {node: '>=18.18.0'} - ignore@5.3.2: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} @@ -2422,20 +3083,6 @@ packages: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} - ip-address@10.7.6: - resolution: {integrity: sha512-00LYkM6byILa9eQIx6qoaXCM40xTLd56AZ4vyaPW3YTyb49VZYPo5xsiAq4tuQ54GH4R7gVdYScJ1B7B77PuTg==} - engines: {node: '>= 12'} - - is-docker@2.2.1: - resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==} - engines: {node: '>=8'} - hasBin: true - - is-docker@3.0.0: - resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - hasBin: true - is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} @@ -2444,63 +3091,6 @@ packages: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} - is-in-ssh@1.0.0: - resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} - engines: {node: '>=20'} - - is-inside-container@1.0.0: - resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} - engines: {node: '>=14.16'} - hasBin: true - - is-interactive@2.0.0: - resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} - engines: {node: '>=12'} - - is-number@7.0.0: - resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} - engines: {node: '>=0.12.0'} - - is-obj@2.0.0: - resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==} - engines: {node: '>=8'} - - is-obj@3.0.0: - resolution: {integrity: sha512-IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ==} - engines: {node: '>=12'} - - is-plain-obj@4.1.0: - resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} - engines: {node: '>=12'} - - is-regexp@3.1.0: - resolution: {integrity: sha512-rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==} - engines: {node: '>=12'} - - is-stream@2.0.1: - resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} - engines: {node: '>=8'} - - is-stream@4.0.1: - resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==} - engines: {node: '>=18'} - - is-unicode-supported@1.3.0: - resolution: {integrity: sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==} - engines: {node: '>=12'} - - is-unicode-supported@2.1.0: - resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} - engines: {node: '>=18'} - - is-wsl@2.2.0: - resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==} - engines: {node: '>=8'} - - is-wsl@3.1.1: - resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} - engines: {node: '>=16'} - isbot@5.2.3: resolution: {integrity: sha512-e8gGz3VzAuImtTMnB5PqNRRWGAswObTc+X+X5a8PttKT78VSSFec98w9ZwUoy6jJdlvJkVdLiN+WMgA8TewoZg==} engines: {node: '>=18'} @@ -2508,14 +3098,13 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - isexe@3.1.5: - resolution: {integrity: sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==} - engines: {node: '>=18'} - jiti@2.7.0: resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} hasBin: true + jose@6.2.17: + resolution: {integrity: sha512-wOuK9V1yujQFH5S0ZWmLcDZN7+IKh9bUCC2ZPCf2HDlol3WWHy+PPyNjEI75FXRLMp3vDKQcupP59xhVU95hcg==} + js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -2531,12 +3120,6 @@ packages: json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} - json-schema-traverse@1.0.0: - resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} - - json-schema-typed@7.0.3: - resolution: {integrity: sha512-7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A==} - json-stable-stringify-without-jsonify@1.0.1: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} @@ -2545,19 +3128,12 @@ packages: engines: {node: '>=6'} hasBin: true - jsonfile@6.2.1: - resolution: {integrity: sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==} - keyv@5.6.0: resolution: {integrity: sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==} - kleur@3.0.3: - resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} - engines: {node: '>=6'} - - kleur@4.1.5: - resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} - engines: {node: '>=6'} + kysely@0.29.9: + resolution: {integrity: sha512-K48ErswC3MlIcBqR0pYIIEl+n9rIgwxgzaM1FxKHMXn7egxr1NHj7bCeF98mXl9A3/QoL5I7mo5S/mLXgeDgGA==} + engines: {node: '>=22.0.0'} launch-editor@2.14.2: resolution: {integrity: sha512-NHJEb30MGBCkmZXLZwz25t37QR4aY03ZzPYUJXOJaOa92uWwExI9SBQUuIznBYc1xkD7cJNGX7oc3Nl3sq2kQQ==} @@ -2640,18 +3216,10 @@ packages: resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} engines: {node: '>= 12.0.0'} - locate-path@3.0.0: - resolution: {integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==} - engines: {node: '>=6'} - locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} - log-symbols@6.0.0: - resolution: {integrity: sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==} - engines: {node: '>=18'} - lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} @@ -2670,29 +3238,6 @@ packages: magic-string@1.4.5: resolution: {integrity: sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==} - merge-stream@2.0.0: - resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} - - merge2@1.4.1: - resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} - engines: {node: '>= 8'} - - micromatch@4.0.8: - resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} - engines: {node: '>=8.6'} - - mimic-fn@2.1.0: - resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} - engines: {node: '>=6'} - - mimic-fn@3.1.0: - resolution: {integrity: sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==} - engines: {node: '>=8'} - - mimic-function@5.0.1: - resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} - engines: {node: '>=18'} - minimatch@10.2.6: resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} engines: {node: 18 || 20 || >=22} @@ -2701,9 +3246,6 @@ packages: resolution: {integrity: sha512-nFQuYSTVrGvysVBps5Ih+0BdnYFN/Cj3C816r6+p7yK+FHrVLGE4O4N9AFwykrlNlvM2HYt+Rad1Uiro6h88Ig==} engines: {node: 20 || >=22} - minimist@1.2.8: - resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} @@ -2712,6 +3254,10 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + nanostores@1.5.5: + resolution: {integrity: sha512-FixtE239Gl6Gz0ZGCK0WzvNwObNCIwVT+L7zQcf1QgcA6AzBxblzqe9OT88qiucNkhsjSOqiogSaF5jVbJiqSA==} + engines: {node: ^20.0.0 || >=22.0.0} + napi-postinstall@0.3.8: resolution: {integrity: sha512-dHbDC5V1g/EI8OLEtL4Iuwbu0fgzmyykxenn2KnlsX9XdhTXL3gWnfbbP+ab+oUcgV6CFpb8QGyQt/ZXA0UXig==} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} @@ -2720,81 +3266,34 @@ packages: natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + nitro@3.0.261103-rc: + resolution: {integrity: sha512-tLD7r5fWCtwnQEE4ZkckLUnx1wkWDaLY48dD+BCJtcQ+srSWAUpxJEK3YfTsgN3v+e4UgBYRzuR7zV7Sqns/zA==} + engines: {node: '>=22.22.0'} + hasBin: true + node-releases@2.0.64: resolution: {integrity: sha512-zAPCKqMcnqs2nGy6nlkm7JduFseiBJy3EXHGLh+8pFR+TxGCBxxiEN21+UROU5CKwX/f4TlUcYjiM+vs/tsyxw==} engines: {node: '>=18'} - npm-run-path@4.0.1: - resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} - engines: {node: '>=8'} - - npm-run-path@6.0.0: - resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==} - engines: {node: '>=18'} - - object-treeify@1.1.33: - resolution: {integrity: sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==} - engines: {node: '>= 10'} - - onetime@5.1.2: - resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==} - engines: {node: '>=6'} - - onetime@7.0.0: - resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} - engines: {node: '>=18'} - - open@11.0.4: - resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} - engines: {node: '>=20'} - - open@8.4.2: - resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==} - engines: {node: '>=12'} + ocache@0.3.2: + resolution: {integrity: sha512-wu82jmgyoORtWMBZy6PvyJ8dBhtaOOhCwfRnSKBRbnSLht/RqNUs5WUzOxw5/IikJLMC9e+s1ReReZm4XbrNoQ==} optionator@0.9.4: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} - ora@8.2.0: - resolution: {integrity: sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==} - engines: {node: '>=18'} - oxc-parser@0.120.0: resolution: {integrity: sha512-WyPWZlcIm+Fkte63FGfgFB8mAAk33aH9h5N9lphXVOHSXEBFFsmYdOBedVKly363aWABjZdaj/m9lBfEY4wt+w==} engines: {node: ^20.19.0 || >=22.12.0} - p-limit@2.3.0: - resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} - engines: {node: '>=6'} - p-limit@3.1.0: resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} engines: {node: '>=10'} - p-locate@3.0.0: - resolution: {integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==} - engines: {node: '>=6'} - p-locate@5.0.0: resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} engines: {node: '>=10'} - p-try@2.2.0: - resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} - engines: {node: '>=6'} - - parse-ms@4.0.0: - resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==} - engines: {node: '>=18'} - - path-browserify@1.0.1: - resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} - - path-exists@3.0.0: - resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==} - engines: {node: '>=4'} - path-exists@4.0.0: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} @@ -2803,39 +3302,23 @@ packages: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} - path-key@4.0.0: - resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} - engines: {node: '>=12'} - pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} - picomatch@2.3.2: - resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} - engines: {node: '>=8.6'} - picomatch@4.0.7: resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} engines: {node: '>=12'} - pkg-up@3.1.0: - resolution: {integrity: sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==} - engines: {node: '>=8'} - - postcss-selector-parser@7.2.1: - resolution: {integrity: sha512-GwxlMgTTXwIom+ebC7an3k6RaJDwklRQQnfiXsLPGicu8FYV/k/+1/9YY2OU2+r938H2t4X0TDxoif+HP2rjzQ==} - engines: {node: '>=4'} - postcss@8.5.33: resolution: {integrity: sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==} engines: {node: ^10 || ^12 || >=14} - powershell-utils@0.2.1: - resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} - engines: {node: '>=20'} + postgres@4.1.1: + resolution: {integrity: sha512-1kJDojqNZC+iTHHXh6eif0J98LUtyLAePe/qkW1GK35eh2JixlsAiIKq3FGI+xqI+SUGTNodzf7TScVeIIyUug==} + engines: {node: '>=18'} prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} @@ -2901,14 +3384,6 @@ packages: engines: {node: '>=14'} hasBin: true - pretty-ms@9.3.1: - resolution: {integrity: sha512-HzMy3Geq23nVALD/M2LliU+F+M+gVNsvkQWWqeBZ8HDiCgzo6YPJ/Omrmtq24EFrIsk0a3EkQGEd7bDOo+IhGA==} - engines: {node: '>=18'} - - prompts@2.4.2: - resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} - engines: {node: '>= 6'} - punycode@2.3.1: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} @@ -2917,9 +3392,6 @@ packages: resolution: {integrity: sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==} engines: {node: '>=20'} - queue-microtask@1.2.3: - resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} - radix-ui@1.8.1: resolution: {integrity: sha512-HPfpVGizO9xANlsFSauruLhRe/3+iOt3vPX0MXYle/UQi3gorQrSYtBcdiv0BZYewcl2rvL59qrIuLFMGAmUrw==} peerDependencies: @@ -2976,36 +3448,20 @@ packages: resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} engines: {node: '>= 20.19.0'} - recast@0.23.21: - resolution: {integrity: sha512-mFAyJq9vUbSTARLZUvAEf1z3YxlvAwswbmxMx2mPA/MSm4KmpwvwvhsH/NIrZhyOuwD60Lzyw2qh83uCbgTPYw==} - engines: {node: '>= 4'} - - require-from-string@2.0.2: - resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} - engines: {node: '>=0.10.0'} - resolve-pkg-maps@1.0.0: resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} - restore-cursor@5.1.0: - resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} - engines: {node: '>=18'} - - reusify@1.1.0: - resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} - engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - rolldown@1.2.19: resolution: {integrity: sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true - run-applescript@7.1.0: - resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} - engines: {node: '>=18'} + rou3@0.9.2: + resolution: {integrity: sha512-3SOzvaAg8rkHrXtRjpCvCvbyO5to9oOO27Z/XqHEYXfMRVSw/qMIVdmaOk9W2lcRLtR6dlqTjo9hDeJk70QBYQ==} - run-parallel@1.2.0: - resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + rou3@1.0.0: + resolution: {integrity: sha512-ySeaQkSrua+ut9g+65I7FHqOFBaY8tV0FmccXItoq0q21se32Q3u4YiW7/RqXSosWgYJaaKwRHXy3BST9PeCNQ==} + engines: {node: '>=20.19.0'} scheduler@0.28.0: resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==} @@ -3039,10 +3495,8 @@ packages: resolution: {integrity: sha512-7z9x1flFYfZBz+LfDkXNfm5UIhZJ/97ASaV8Q1wctoVkeqVfv+tLPsWebeMXBNw6XprvwxDE5wC5Ylqmr+iSrA==} engines: {node: '>=20'} - shadcn@4.23.0: - resolution: {integrity: sha512-lKgq7QPFgkV/6EOrMCwvEn7ZAw/YnM/grhxzJmK4cZdw3E4F3Ut2EmWvrn2E+vzJp1y/76mxU185OSkXo9Ff+Q==} - engines: {node: '>=20.18.1'} - hasBin: true + set-cookie-parser@3.2.2: + resolution: {integrity: sha512-df017qMeYuXo4emL09nlyMpi2i2MtEIKS/6jtXH3vmjFgIRsOi852/5RmhJ4EkvN3ZF8jXadM/EkTPXgc8yPIw==} shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} @@ -3056,24 +3510,6 @@ packages: resolution: {integrity: sha512-PcByqNyT/38F2kDNi006HAMRJaULuBzq/FOsw3qdZvX/GA9W/jamDaRskgHjubHiftXK5sIFxLNkvrXUwcof6Q==} engines: {node: '>= 0.4'} - signal-exit@3.0.7: - resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} - - signal-exit@4.1.0: - resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} - engines: {node: '>=14'} - - sisteransi@1.0.5: - resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} - - smart-buffer@4.2.0: - resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} - engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} - - socks@2.8.10: - resolution: {integrity: sha512-e0VyvkVTwVYViNovRkZ9aodhxVlyoMn7eJhVUPxZ+eK9P/7CBkxvvsBOHqFPEH416726W8tLXXXjKwqgTErrCQ==} - engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} - solid-js@1.9.19: resolution: {integrity: sha512-NIrV/6o1FtmrA9iuAAYvnQJZaHrGcaH3LKSVj4kCiZfwqjCtJNDgIgR9XcqYl6KR/Lb3oRx1HrlyswPWR8SRvw==} @@ -3081,6 +3517,9 @@ packages: resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==} engines: {node: '>=0.10.0'} + source-map-support@0.5.21: + resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} + source-map@0.6.1: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} @@ -3098,43 +3537,8 @@ packages: resolution: {integrity: sha512-o3yWv49B/o4QZk5ZcsALc6t0+eCelPc44zZsLtCQnZPDwFpDYSWcDnrv2TtMmMbQ7uKo3J0HTURCqckw23czNQ==} engines: {node: '>=12.0.0'} - stdin-discarder@0.2.2: - resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==} - engines: {node: '>=18'} - - string-width@7.2.0: - resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==} - engines: {node: '>=18'} - - stringify-object@5.0.0: - resolution: {integrity: sha512-zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg==} - engines: {node: '>=14.16'} - - strip-ansi@6.0.1: - resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} - engines: {node: '>=8'} - - strip-ansi@7.2.0: - resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} - engines: {node: '>=12'} - - strip-bom@3.0.0: - resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} - engines: {node: '>=4'} - - strip-final-newline@2.0.0: - resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} - engines: {node: '>=6'} - - strip-final-newline@4.0.0: - resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==} - engines: {node: '>=18'} - - systeminformation@5.33.23: - resolution: {integrity: sha512-OBOvemo4WHf8bGMszwszn3JcFxkIMZt7adjhdgJh3eePo37EIBZovZbhJDQ2zfVYPEtXScHDJXGik8eYd3WMNw==} - engines: {node: '>=10.0.0'} - os: [darwin, linux, win32, freebsd, openbsd, netbsd, sunos, android] - hasBin: true + tailwind-merge@3.7.0: + resolution: {integrity: sha512-XPPUyAc+cvspz3lHTcR/QgPfW2A0lv/xQNIjX3HGhLR+Nq2lHaLq5MtTesHn8GUr3W3DguT2KT5x3NVgRtYwmA==} tailwindcss@4.3.5: resolution: {integrity: sha512-FcQk9BuffmEHJP2G0XmB2SplU1aLTI7j07Kunk+U74Ny+XiWOtzXz9aujFZ/avntw1e2cOv/3PkgzflQ7gX2vQ==} @@ -3143,17 +3547,10 @@ packages: resolution: {integrity: sha512-NHFiWnAbMJxNNpBwiO7jJVGDuqMxT9/oV8v57RR+fgBQShkJil5inGD8/xWy0hjLyHQyX1tu27QANhlz3KBqCg==} engines: {node: '>=6'} - tiny-invariant@1.3.3: - resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==} - tinyglobby@0.2.17: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} - to-regex-range@5.0.1: - resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} - engines: {node: '>=8.0'} - ts-api-utils@2.5.0: resolution: {integrity: sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==} engines: {node: '>=18.12'} @@ -3165,27 +3562,18 @@ packages: peerDependencies: typescript: '>=4.0.0' - ts-morph@26.0.0: - resolution: {integrity: sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==} - - tsconfig-paths@4.2.0: - resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==} - engines: {node: '>=6'} - tslib@2.9.1: resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} - tw-animate-css@1.4.0: - resolution: {integrity: sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==} + tsx@4.23.15: + resolution: {integrity: sha512-Yiex1Ovn8z2xPpOWckIiysV1SSyRMY9BkLF++q0yKiDxCqRhosKfMg3janKkiLBwZ5c/YryloKwGZcrEmtwxKw==} + engines: {node: '>=18.0.0'} + hasBin: true type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} - type-fest@4.41.0: - resolution: {integrity: sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==} - engines: {node: '>=16'} - typescript-eslint@8.72.2: resolution: {integrity: sha512-c/+AKMW1KB81r28Sp0AAdcyXj5dzNmAsZFcsrxKbZTKmcBK2xIwBR31dcSYSDu3bKmzXe8GKrSxO+eDQ401Uzg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -3204,18 +3592,6 @@ packages: undici-types@6.21.0: resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} - undici@7.30.2: - resolution: {integrity: sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==} - engines: {node: '>=20.18.1'} - - unicorn-magic@0.3.0: - resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==} - engines: {node: '>=18'} - - universalify@2.0.1: - resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} - engines: {node: '>= 10.0.0'} - unplugin@3.7.0: resolution: {integrity: sha512-GrM2uq3DQo3hvLU2FjeYhooJ8BY9N6j1Fbzgx7Pta3VVJevsD3VP4dPjZkZOS0mLvN8w9zzr9OlP+31bSMyuLw==} engines: {node: ^20.19.0 || >=22.12.0} @@ -3289,13 +3665,6 @@ packages: peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - util-deprecate@1.0.2: - resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - - validate-npm-package-name@7.0.2: - resolution: {integrity: sha512-hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==} - engines: {node: ^20.17.0 || >=22.9.0} - vite@8.3.8: resolution: {integrity: sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA==} engines: {node: ^20.19.0 || >=22.12.0} @@ -3361,11 +3730,6 @@ packages: engines: {node: '>= 8'} hasBin: true - which@4.0.0: - resolution: {integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==} - engines: {node: ^16.13.0 || >=18.0.0} - hasBin: true - word-wrap@1.2.5: resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} engines: {node: '>=0.10.0'} @@ -3382,10 +3746,6 @@ packages: utf-8-validate: optional: true - wsl-utils@1.0.1: - resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} - engines: {node: '>=20'} - xmlbuilder2@4.0.3: resolution: {integrity: sha512-bx8Q1STctnNaaDymWnkfQLKofs0mGNN7rLLapJlGuV3VlvegD7Ls4ggMjE3aUSWItCCzU0PEv45lI87iSigiCA==} engines: {node: '>=20.0'} @@ -3397,14 +3757,6 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} - yocto-spinner@1.2.2: - resolution: {integrity: sha512-DODGl1wJjA/s5pnJFKau9lIYHT81lnhob1i3e1TjxZRxEhWRKl74nTbWE6H5KlkViQQTo/Z29YFdxzTZAMY3ng==} - engines: {node: '>=18.19'} - - yoctocolors@2.2.0: - resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} - engines: {node: '>=18'} - zod@4.6.7: resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} @@ -3446,10 +3798,6 @@ snapshots: '@jridgewell/trace-mapping': 0.3.31 jsesc: 3.1.0 - '@babel/helper-annotate-as-pure@7.29.7': - dependencies: - '@babel/types': 7.29.14 - '@babel/helper-compilation-targets@7.29.13': dependencies: '@babel/compat-data': 7.29.7 @@ -3458,29 +3806,8 @@ snapshots: lru-cache: 5.1.1 semver: 6.3.2 - '@babel/helper-create-class-features-plugin@7.29.13(@babel/core@7.29.13)': - dependencies: - '@babel/core': 7.29.13 - '@babel/helper-annotate-as-pure': 7.29.7 - '@babel/helper-member-expression-to-functions': 7.29.14 - '@babel/helper-optimise-call-expression': 7.29.7 - '@babel/helper-replace-supers': 7.29.7(@babel/core@7.29.13) - '@babel/helper-skip-transparent-expression-wrappers': 7.29.13 - '@babel/traverse': 7.29.14 - semver: 6.3.2 - transitivePeerDependencies: - - supports-color - '@babel/helper-globals@7.29.7': {} - '@babel/helper-member-expression-to-functions@7.29.14': - dependencies: - '@babel/helper-skip-transparent-expression-wrappers': 7.29.13 - '@babel/traverse': 7.29.14 - '@babel/types': 7.29.14 - transitivePeerDependencies: - - supports-color - '@babel/helper-module-imports@7.29.7': dependencies: '@babel/traverse': 7.29.14 @@ -3497,28 +3824,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/helper-optimise-call-expression@7.29.7': - dependencies: - '@babel/types': 7.29.14 - - '@babel/helper-plugin-utils@7.29.7': {} - - '@babel/helper-replace-supers@7.29.7(@babel/core@7.29.13)': - dependencies: - '@babel/core': 7.29.13 - '@babel/helper-member-expression-to-functions': 7.29.14 - '@babel/helper-optimise-call-expression': 7.29.7 - '@babel/traverse': 7.29.14 - transitivePeerDependencies: - - supports-color - - '@babel/helper-skip-transparent-expression-wrappers@7.29.13': - dependencies: - '@babel/traverse': 7.29.14 - '@babel/types': 7.29.14 - transitivePeerDependencies: - - supports-color - '@babel/helper-string-parser@7.29.14': {} '@babel/helper-validator-identifier@7.29.7': {} @@ -3534,46 +3839,6 @@ snapshots: dependencies: '@babel/types': 7.29.14 - '@babel/plugin-syntax-jsx@7.29.7(@babel/core@7.29.13)': - dependencies: - '@babel/core': 7.29.13 - '@babel/helper-plugin-utils': 7.29.7 - - '@babel/plugin-syntax-typescript@7.29.7(@babel/core@7.29.13)': - dependencies: - '@babel/core': 7.29.13 - '@babel/helper-plugin-utils': 7.29.7 - - '@babel/plugin-transform-modules-commonjs@7.29.14(@babel/core@7.29.13)': - dependencies: - '@babel/core': 7.29.13 - '@babel/helper-module-transforms': 7.29.14(@babel/core@7.29.13) - '@babel/helper-plugin-utils': 7.29.7 - transitivePeerDependencies: - - supports-color - - '@babel/plugin-transform-typescript@7.29.9(@babel/core@7.29.13)': - dependencies: - '@babel/core': 7.29.13 - '@babel/helper-annotate-as-pure': 7.29.7 - '@babel/helper-create-class-features-plugin': 7.29.13(@babel/core@7.29.13) - '@babel/helper-plugin-utils': 7.29.7 - '@babel/helper-skip-transparent-expression-wrappers': 7.29.13 - '@babel/plugin-syntax-typescript': 7.29.7(@babel/core@7.29.13) - transitivePeerDependencies: - - supports-color - - '@babel/preset-typescript@7.29.7(@babel/core@7.29.13)': - dependencies: - '@babel/core': 7.29.13 - '@babel/helper-plugin-utils': 7.29.7 - '@babel/helper-validator-option': 7.29.7 - '@babel/plugin-syntax-jsx': 7.29.7(@babel/core@7.29.13) - '@babel/plugin-transform-modules-commonjs': 7.29.14(@babel/core@7.29.13) - '@babel/plugin-transform-typescript': 7.29.9(@babel/core@7.29.13) - transitivePeerDependencies: - - supports-color - '@babel/template@7.29.7': dependencies: '@babel/code-frame': 7.29.7 @@ -3597,6 +3862,58 @@ snapshots: '@babel/helper-string-parser': 7.29.14 '@babel/helper-validator-identifier': 7.29.7 + '@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5)': + dependencies: + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 + '@standard-schema/spec': 1.1.0 + better-call: 1.4.5(zod@4.6.7) + jose: 6.2.17 + kysely: 0.29.9 + nanostores: 1.5.5 + zod: 4.6.7 + + '@better-auth/drizzle-adapter@1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5))(@better-auth/utils@0.5.1)(drizzle-orm@0.45.4(kysely@0.29.9)(postgres@4.1.1))': + dependencies: + '@better-auth/core': 1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5) + '@better-auth/utils': 0.5.1 + optionalDependencies: + drizzle-orm: 0.45.4(kysely@0.29.9)(postgres@4.1.1) + + '@better-auth/kysely-adapter@1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5))(@better-auth/utils@0.5.1)(kysely@0.29.9)': + dependencies: + '@better-auth/core': 1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5) + '@better-auth/utils': 0.5.1 + optionalDependencies: + kysely: 0.29.9 + + '@better-auth/memory-adapter@1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5))(@better-auth/utils@0.5.1)': + dependencies: + '@better-auth/core': 1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5) + '@better-auth/utils': 0.5.1 + + '@better-auth/mongo-adapter@1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5))(@better-auth/utils@0.5.1)': + dependencies: + '@better-auth/core': 1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5) + '@better-auth/utils': 0.5.1 + + '@better-auth/prisma-adapter@1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5))(@better-auth/utils@0.5.1)': + dependencies: + '@better-auth/core': 1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5) + '@better-auth/utils': 0.5.1 + + '@better-auth/telemetry@1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)': + dependencies: + '@better-auth/core': 1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5) + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 + + '@better-auth/utils@0.5.1': + dependencies: + '@noble/hashes': 2.4.0 + + '@better-fetch/fetch@1.3.3': {} + '@cacheable/memory@2.2.0': dependencies: '@cacheable/utils': 2.5.0 @@ -3609,26 +3926,32 @@ snapshots: hashery: 1.5.1 keyv: 5.6.0 - '@dotenvx/dotenvx@1.75.1': + '@dnd-kit/accessibility@3.1.1(react@19.3.1)': dependencies: - '@dotenvx/primitives': 0.8.0 - commander: 11.1.0 - conf: 10.2.0 - dotenv: 17.4.2 - enquirer: 2.4.1 - env-paths: 2.2.1 - execa: 5.1.1 - fdir: 6.5.0(picomatch@4.0.7) - ignore: 5.3.2 - object-treeify: 1.1.33 - open: 8.4.2 - picomatch: 4.0.7 - systeminformation: 5.33.23 - undici: 7.30.2 - which: 4.0.0 - yocto-spinner: 1.2.2 + react: 19.3.1 + tslib: 2.9.1 - '@dotenvx/primitives@0.8.0': {} + '@dnd-kit/core@6.3.1(react-dom@19.3.1(react@19.3.1))(react@19.3.1)': + dependencies: + '@dnd-kit/accessibility': 3.1.1(react@19.3.1) + '@dnd-kit/utilities': 3.2.2(react@19.3.1) + react: 19.3.1 + react-dom: 19.3.1(react@19.3.1) + tslib: 2.9.1 + + '@dnd-kit/sortable@10.0.0(@dnd-kit/core@6.3.1(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(react@19.3.1)': + dependencies: + '@dnd-kit/core': 6.3.1(react-dom@19.3.1(react@19.3.1))(react@19.3.1) + '@dnd-kit/utilities': 3.2.2(react@19.3.1) + react: 19.3.1 + tslib: 2.9.1 + + '@dnd-kit/utilities@3.2.2(react@19.3.1)': + dependencies: + react: 19.3.1 + tslib: 2.9.1 + + '@drizzle-team/brocli@0.10.2': {} '@emnapi/core@2.0.0-beta.2': dependencies: @@ -3646,6 +3969,238 @@ snapshots: tslib: 2.9.1 optional: true + '@esbuild-kit/core-utils@3.3.2': + dependencies: + esbuild: 0.18.20 + source-map-support: 0.5.21 + + '@esbuild-kit/esm-loader@2.6.5': + dependencies: + '@esbuild-kit/core-utils': 3.3.2 + get-tsconfig: 4.14.3 + + '@esbuild/aix-ppc64@0.25.12': + optional: true + + '@esbuild/aix-ppc64@0.28.2': + optional: true + + '@esbuild/android-arm64@0.18.20': + optional: true + + '@esbuild/android-arm64@0.25.12': + optional: true + + '@esbuild/android-arm64@0.28.2': + optional: true + + '@esbuild/android-arm@0.18.20': + optional: true + + '@esbuild/android-arm@0.25.12': + optional: true + + '@esbuild/android-arm@0.28.2': + optional: true + + '@esbuild/android-x64@0.18.20': + optional: true + + '@esbuild/android-x64@0.25.12': + optional: true + + '@esbuild/android-x64@0.28.2': + optional: true + + '@esbuild/darwin-arm64@0.18.20': + optional: true + + '@esbuild/darwin-arm64@0.25.12': + optional: true + + '@esbuild/darwin-arm64@0.28.2': + optional: true + + '@esbuild/darwin-x64@0.18.20': + optional: true + + '@esbuild/darwin-x64@0.25.12': + optional: true + + '@esbuild/darwin-x64@0.28.2': + optional: true + + '@esbuild/freebsd-arm64@0.18.20': + optional: true + + '@esbuild/freebsd-arm64@0.25.12': + optional: true + + '@esbuild/freebsd-arm64@0.28.2': + optional: true + + '@esbuild/freebsd-x64@0.18.20': + optional: true + + '@esbuild/freebsd-x64@0.25.12': + optional: true + + '@esbuild/freebsd-x64@0.28.2': + optional: true + + '@esbuild/linux-arm64@0.18.20': + optional: true + + '@esbuild/linux-arm64@0.25.12': + optional: true + + '@esbuild/linux-arm64@0.28.2': + optional: true + + '@esbuild/linux-arm@0.18.20': + optional: true + + '@esbuild/linux-arm@0.25.12': + optional: true + + '@esbuild/linux-arm@0.28.2': + optional: true + + '@esbuild/linux-ia32@0.18.20': + optional: true + + '@esbuild/linux-ia32@0.25.12': + optional: true + + '@esbuild/linux-ia32@0.28.2': + optional: true + + '@esbuild/linux-loong64@0.18.20': + optional: true + + '@esbuild/linux-loong64@0.25.12': + optional: true + + '@esbuild/linux-loong64@0.28.2': + optional: true + + '@esbuild/linux-mips64el@0.18.20': + optional: true + + '@esbuild/linux-mips64el@0.25.12': + optional: true + + '@esbuild/linux-mips64el@0.28.2': + optional: true + + '@esbuild/linux-ppc64@0.18.20': + optional: true + + '@esbuild/linux-ppc64@0.25.12': + optional: true + + '@esbuild/linux-ppc64@0.28.2': + optional: true + + '@esbuild/linux-riscv64@0.18.20': + optional: true + + '@esbuild/linux-riscv64@0.25.12': + optional: true + + '@esbuild/linux-riscv64@0.28.2': + optional: true + + '@esbuild/linux-s390x@0.18.20': + optional: true + + '@esbuild/linux-s390x@0.25.12': + optional: true + + '@esbuild/linux-s390x@0.28.2': + optional: true + + '@esbuild/linux-x64@0.18.20': + optional: true + + '@esbuild/linux-x64@0.25.12': + optional: true + + '@esbuild/linux-x64@0.28.2': + optional: true + + '@esbuild/netbsd-arm64@0.25.12': + optional: true + + '@esbuild/netbsd-arm64@0.28.2': + optional: true + + '@esbuild/netbsd-x64@0.18.20': + optional: true + + '@esbuild/netbsd-x64@0.25.12': + optional: true + + '@esbuild/netbsd-x64@0.28.2': + optional: true + + '@esbuild/openbsd-arm64@0.25.12': + optional: true + + '@esbuild/openbsd-arm64@0.28.2': + optional: true + + '@esbuild/openbsd-x64@0.18.20': + optional: true + + '@esbuild/openbsd-x64@0.25.12': + optional: true + + '@esbuild/openbsd-x64@0.28.2': + optional: true + + '@esbuild/openharmony-arm64@0.25.12': + optional: true + + '@esbuild/openharmony-arm64@0.28.2': + optional: true + + '@esbuild/sunos-x64@0.18.20': + optional: true + + '@esbuild/sunos-x64@0.25.12': + optional: true + + '@esbuild/sunos-x64@0.28.2': + optional: true + + '@esbuild/win32-arm64@0.18.20': + optional: true + + '@esbuild/win32-arm64@0.25.12': + optional: true + + '@esbuild/win32-arm64@0.28.2': + optional: true + + '@esbuild/win32-ia32@0.18.20': + optional: true + + '@esbuild/win32-ia32@0.25.12': + optional: true + + '@esbuild/win32-ia32@0.28.2': + optional: true + + '@esbuild/win32-x64@0.18.20': + optional: true + + '@esbuild/win32-x64@0.25.12': + optional: true + + '@esbuild/win32-x64@0.28.2': + optional: true + '@eslint-community/eslint-utils@4.10.1(eslint@10.15.0(jiti@2.7.0))': dependencies: eslint: 10.15.0(jiti@2.7.0) @@ -3699,6 +4254,8 @@ snapshots: '@fontsource-variable/inter@5.3.0': {} + '@fontsource/dm-serif-display@5.3.0': {} + '@humanfs/core@0.19.2': dependencies: '@humanfs/types': 0.15.0 @@ -3744,15 +4301,6 @@ snapshots: '@keyv/serialize@1.1.1': {} - '@modelcontextprotocol/core@2.4.0': - dependencies: - zod: 4.6.7 - - '@modelcontextprotocol/server@2.4.0': - dependencies: - '@modelcontextprotocol/core': 2.4.0 - zod: 4.6.7 - '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': dependencies: '@emnapi/core': 2.0.0-beta.2 @@ -3774,17 +4322,9 @@ snapshots: '@neodrag/core': 3.0.0-next.11 solid-js: 1.9.19 - '@nodelib/fs.scandir@2.1.5': - dependencies: - '@nodelib/fs.stat': 2.0.5 - run-parallel: 1.2.0 + '@noble/ciphers@2.4.0': {} - '@nodelib/fs.stat@2.0.5': {} - - '@nodelib/fs.walk@1.2.8': - dependencies: - '@nodelib/fs.scandir': 2.1.5 - fastq: 1.20.3 + '@noble/hashes@2.4.0': {} '@oozcitak/dom@2.0.2': dependencies: @@ -4678,38 +5218,6 @@ snapshots: '@rolldown/pluginutils@1.1.1': {} - '@sec-ant/readable-stream@0.4.1': {} - - '@shadcn/registry@0.2.1': - dependencies: - '@babel/core': 7.29.13 - '@babel/parser': 7.29.14 - '@babel/plugin-transform-typescript': 7.29.9(@babel/core@7.29.13) - '@babel/preset-typescript': 7.29.7(@babel/core@7.29.13) - '@dotenvx/dotenvx': 1.75.1 - cn: 0.2.6 - code-block-writer: 13.0.3 - deepmerge: 4.3.1 - execa: 9.6.1 - fast-glob: 3.3.3 - fs-extra: 11.4.1 - fuzzysort: 3.1.0 - kleur: 4.1.5 - ora: 8.2.0 - postcss: 8.5.33 - prompts: 2.4.2 - recast: 0.23.21 - socks: 2.8.10 - stringify-object: 5.0.0 - tsconfig-paths: 4.2.0 - type-fest: 4.41.0 - undici: 7.30.2 - zod: 4.6.7 - transitivePeerDependencies: - - supports-color - - '@sindresorhus/merge-streams@4.0.0': {} - '@solid-primitives/event-listener@2.4.6(solid-js@1.9.19)': dependencies: '@solid-primitives/utils': 6.4.1(solid-js@1.9.19) @@ -4744,6 +5252,8 @@ snapshots: dependencies: solid-js: 1.9.19 + '@standard-schema/spec@1.1.0': {} + '@stylistic/eslint-plugin@5.10.0(eslint@10.15.0(jiti@2.7.0))': dependencies: '@eslint-community/eslint-utils': 4.10.1(eslint@10.15.0(jiti@2.7.0)) @@ -4815,12 +5325,12 @@ snapshots: '@tailwindcss/oxide-win32-arm64-msvc': 4.3.5 '@tailwindcss/oxide-win32-x64-msvc': 4.3.5 - '@tailwindcss/vite@4.3.5(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0))': + '@tailwindcss/vite@4.3.5(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15))': dependencies: '@tailwindcss/node': 4.3.5 '@tailwindcss/oxide': 4.3.5 tailwindcss: 4.3.5 - vite: 8.3.8(@types/node@22.20.5)(jiti@2.7.0) + vite: 8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15) '@tanstack/devtools-bundler-core@0.1.4(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': dependencies: @@ -4859,13 +5369,13 @@ snapshots: transitivePeerDependencies: - csstype - '@tanstack/devtools-vite@0.8.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0))': + '@tanstack/devtools-vite@0.8.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15))': dependencies: '@tanstack/devtools-bundler-core': 0.1.4(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) '@tanstack/devtools-client': 0.0.8 '@tanstack/devtools-event-bus': 0.4.3 chalk: 5.6.2 - vite: 8.3.8(@types/node@22.20.5)(jiti@2.7.0) + vite: 8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15) transitivePeerDependencies: - '@emnapi/core' - '@emnapi/runtime' @@ -4949,14 +5459,14 @@ snapshots: react: 19.3.1 react-dom: 19.3.1(react@19.3.1) - '@tanstack/react-start-rsc@0.1.66(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0))': + '@tanstack/react-start-rsc@0.1.66(esbuild@0.28.2)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15))': dependencies: '@tanstack/react-router': 1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1) '@tanstack/router-core': 1.171.39 '@tanstack/router-utils': 1.163.0 '@tanstack/start-client-core': 1.170.39 '@tanstack/start-fn-stubs': 1.162.0 - '@tanstack/start-plugin-core': 1.171.56(@tanstack/react-router@1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0)) + '@tanstack/start-plugin-core': 1.171.56(@tanstack/react-router@1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(esbuild@0.28.2)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) '@tanstack/start-storage-context': 1.167.41 pathe: 2.0.3 react: 19.3.1 @@ -4982,21 +5492,21 @@ snapshots: react: 19.3.1 react-dom: 19.3.1(react@19.3.1) - '@tanstack/react-start@1.169.5(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0))': + '@tanstack/react-start@1.169.5(esbuild@0.28.2)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15))': dependencies: '@tanstack/react-router': 1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1) '@tanstack/react-start-client': 1.168.45(react-dom@19.3.1(react@19.3.1))(react@19.3.1) - '@tanstack/react-start-rsc': 0.1.66(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0)) + '@tanstack/react-start-rsc': 0.1.66(esbuild@0.28.2)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) '@tanstack/react-start-server': 1.167.52(react-dom@19.3.1(react@19.3.1))(react@19.3.1) '@tanstack/router-utils': 1.163.0 '@tanstack/start-client-core': 1.170.39 - '@tanstack/start-plugin-core': 1.171.56(@tanstack/react-router@1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0)) + '@tanstack/start-plugin-core': 1.171.56(@tanstack/react-router@1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(esbuild@0.28.2)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) '@tanstack/start-server-core': 1.169.45 pathe: 2.0.3 react: 19.3.1 react-dom: 19.3.1(react@19.3.1) optionalDependencies: - vite: 8.3.8(@types/node@22.20.5)(jiti@2.7.0) + vite: 8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15) transitivePeerDependencies: - '@farmfe/core' - '@rspack/core' @@ -5053,7 +5563,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@tanstack/router-plugin@1.169.0(@tanstack/react-router@1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0))': + '@tanstack/router-plugin@1.169.0(@tanstack/react-router@1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(esbuild@0.28.2)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15))': dependencies: '@babel/core': 7.29.13 '@babel/template': 7.29.7 @@ -5062,11 +5572,11 @@ snapshots: '@tanstack/router-generator': 1.168.0 '@tanstack/router-utils': 1.163.0 chokidar: 5.0.0 - unplugin: 3.7.0(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0)) + unplugin: 3.7.0(esbuild@0.28.2)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) zod: 4.6.7 optionalDependencies: '@tanstack/react-router': 1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1) - vite: 8.3.8(@types/node@22.20.5)(jiti@2.7.0) + vite: 8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15) transitivePeerDependencies: - '@farmfe/core' - '@rspack/core' @@ -5099,7 +5609,7 @@ snapshots: '@tanstack/start-fn-stubs@1.162.0': {} - '@tanstack/start-plugin-core@1.171.56(@tanstack/react-router@1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0))': + '@tanstack/start-plugin-core@1.171.56(@tanstack/react-router@1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(esbuild@0.28.2)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15))': dependencies: '@babel/code-frame': 7.29.7 '@babel/core': 7.29.13 @@ -5107,7 +5617,7 @@ snapshots: '@jridgewell/remapping': 2.3.5 '@tanstack/router-core': 1.171.39 '@tanstack/router-generator': 1.168.0 - '@tanstack/router-plugin': 1.169.0(@tanstack/react-router@1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0)) + '@tanstack/router-plugin': 1.169.0(@tanstack/react-router@1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(esbuild@0.28.2)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) '@tanstack/router-utils': 1.163.0 '@tanstack/start-server-core': 1.169.45 exsolve: 1.2.0 @@ -5119,11 +5629,11 @@ snapshots: srvx: 1.0.8 tinyglobby: 0.2.17 ufo: 1.6.4 - vitefu: 1.1.3(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0)) + vitefu: 1.1.3(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) xmlbuilder2: 4.0.3 zod: 4.6.7 optionalDependencies: - vite: 8.3.8(@types/node@22.20.5)(jiti@2.7.0) + vite: 8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15) transitivePeerDependencies: - '@farmfe/core' - '@rspack/core' @@ -5155,12 +5665,6 @@ snapshots: '@tanstack/virtual-file-routes@1.162.0': {} - '@ts-morph/common@0.27.0': - dependencies: - fast-glob: 3.3.3 - minimatch: 10.2.6 - path-browserify: 1.0.1 - '@tybys/wasm-util@0.10.5': dependencies: tslib: 2.9.1 @@ -5184,8 +5688,6 @@ snapshots: dependencies: csstype: 3.2.3 - '@types/validate-npm-package-name@4.0.2': {} - '@typescript-eslint/eslint-plugin@8.72.2(@typescript-eslint/parser@8.72.2(eslint@10.15.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.15.0(jiti@2.7.0))(typescript@6.0.3)': dependencies: '@eslint-community/regexpp': 4.12.3 @@ -5340,10 +5842,10 @@ snapshots: '@unrs/resolver-binding-win32-x64-msvc@1.13.0': optional: true - '@vitejs/plugin-react@6.3.0(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0))': + '@vitejs/plugin-react@6.3.0(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15))': dependencies: '@rolldown/pluginutils': 1.1.1 - vite: 8.3.8(@types/node@22.20.5)(jiti@2.7.0) + vite: 8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15) acorn-jsx@5.3.2(acorn@8.19.0): dependencies: @@ -5351,10 +5853,6 @@ snapshots: acorn@8.19.0: {} - ajv-formats@2.1.1: - dependencies: - ajv: 8.20.0 - ajv@6.15.0: dependencies: fast-deep-equal: 3.1.3 @@ -5362,19 +5860,6 @@ snapshots: json-schema-traverse: 0.4.1 uri-js: 4.4.1 - ajv@8.20.0: - dependencies: - fast-deep-equal: 3.1.3 - fast-uri: 3.1.9 - json-schema-traverse: 1.0.0 - require-from-string: 2.0.2 - - ansi-colors@4.1.3: {} - - ansi-regex@5.0.1: {} - - ansi-regex@6.6.0: {} - ansis@4.5.0: {} argparse@2.0.1: {} @@ -5383,12 +5868,6 @@ snapshots: dependencies: tslib: 2.9.1 - ast-types@0.16.3: - dependencies: - tslib: 2.9.1 - - atomically@1.7.0: {} - babel-dead-code-elimination@1.0.12: dependencies: '@babel/core': 7.29.13 @@ -5402,14 +5881,48 @@ snapshots: baseline-browser-mapping@2.11.37: {} + better-auth@1.7.25(@tanstack/react-start@1.169.5(esbuild@0.28.2)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)))(drizzle-kit@0.31.11)(drizzle-orm@0.45.4(kysely@0.29.9)(postgres@4.1.1))(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(solid-js@1.9.19): + dependencies: + '@better-auth/core': 1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5) + '@better-auth/drizzle-adapter': 1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5))(@better-auth/utils@0.5.1)(drizzle-orm@0.45.4(kysely@0.29.9)(postgres@4.1.1)) + '@better-auth/kysely-adapter': 1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5))(@better-auth/utils@0.5.1)(kysely@0.29.9) + '@better-auth/memory-adapter': 1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5))(@better-auth/utils@0.5.1) + '@better-auth/mongo-adapter': 1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5))(@better-auth/utils@0.5.1) + '@better-auth/prisma-adapter': 1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5))(@better-auth/utils@0.5.1) + '@better-auth/telemetry': 1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.5(zod@4.6.7))(jose@6.2.17)(kysely@0.29.9)(nanostores@1.5.5))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3) + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 + '@noble/ciphers': 2.4.0 + '@noble/hashes': 2.4.0 + better-call: 1.4.5(zod@4.6.7) + defu: 6.1.7 + jose: 6.2.17 + kysely: 0.29.9 + nanostores: 1.5.5 + zod: 4.6.7 + optionalDependencies: + '@tanstack/react-start': 1.169.5(esbuild@0.28.2)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + drizzle-kit: 0.31.11 + drizzle-orm: 0.45.4(kysely@0.29.9)(postgres@4.1.1) + react: 19.3.1 + react-dom: 19.3.1(react@19.3.1) + solid-js: 1.9.19 + transitivePeerDependencies: + - '@opentelemetry/api' + + better-call@1.4.5(zod@4.6.7): + dependencies: + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 + rou3: 0.9.2 + set-cookie-parser: 3.2.2 + optionalDependencies: + zod: 4.6.7 + brace-expansion@5.0.13: dependencies: balanced-match: 4.0.4 - braces@3.0.3: - dependencies: - fill-range: 7.1.1 - browserslist@4.29.5: dependencies: baseline-browser-mapping: 2.11.37 @@ -5418,9 +5931,7 @@ snapshots: node-releases: 2.0.64 update-browserslist-db: 1.3.4(browserslist@4.29.5) - bundle-name@4.1.1: - dependencies: - run-applescript: 7.1.0 + buffer-from@1.1.2: {} cac@7.1.0: {} @@ -5446,39 +5957,10 @@ snapshots: dependencies: clsx: 2.1.1 - cli-cursor@5.0.0: - dependencies: - restore-cursor: 5.1.0 - - cli-spinners@2.9.2: {} - clsx@2.1.1: {} - cn@0.2.6: {} - - cn@0.5.2: {} - - code-block-writer@13.0.3: {} - - commander@11.1.0: {} - - commander@14.0.3: {} - comment-parser@1.4.9: {} - conf@10.2.0: - dependencies: - ajv: 8.20.0 - ajv-formats: 2.1.1 - atomically: 1.7.0 - debounce-fn: 4.0.0 - dot-prop: 6.0.1 - env-paths: 2.2.1 - json-schema-typed: 7.0.3 - onetime: 5.1.2 - pkg-up: 3.1.0 - semver: 7.8.6 - convert-source-map@2.0.0: {} cookie-es@3.1.1: {} @@ -5489,67 +5971,137 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 + crossws@0.4.17(srvx@1.0.8): + optionalDependencies: + srvx: 1.0.8 + csstype@3.2.3: {} dayjs@1.11.23: {} - debounce-fn@4.0.0: - dependencies: - mimic-fn: 3.1.0 - debug@4.4.3: dependencies: ms: 2.1.3 - dedent@1.7.2: {} - deep-is@0.1.4: {} - deepmerge@4.3.1: {} - - default-browser-id@5.0.1: {} - - default-browser@5.5.1: - dependencies: - bundle-name: 4.1.1 - default-browser-id: 5.0.1 - - define-lazy-prop@2.0.0: {} - - define-lazy-prop@3.0.0: {} + defu@6.1.7: {} detect-libc@2.1.2: {} detect-node-es@1.1.0: {} - diff@8.0.4: {} - diff@9.0.0: {} - dot-prop@6.0.1: + drizzle-kit@0.31.11: dependencies: - is-obj: 2.0.0 + '@drizzle-team/brocli': 0.10.2 + '@esbuild-kit/esm-loader': 2.6.5 + esbuild: 0.25.12 + tsx: 4.23.15 - dotenv@17.4.2: {} + drizzle-orm@0.45.4(kysely@0.29.9)(postgres@4.1.1): + optionalDependencies: + kysely: 0.29.9 + postgres: 4.1.1 electron-to-chromium@1.5.486: {} - emoji-regex@10.6.0: {} - enhanced-resolve@5.27.0: dependencies: graceful-fs: 4.2.12 tapable: 2.3.4 - enquirer@2.4.1: + env-runner@0.3.11: dependencies: - ansi-colors: 4.1.3 - strip-ansi: 6.0.1 - - env-paths@2.2.1: {} + crossws: 0.4.17(srvx@1.0.8) + srvx: 1.0.8 es-module-lexer@3.0.5: {} + esbuild@0.18.20: + optionalDependencies: + '@esbuild/android-arm': 0.18.20 + '@esbuild/android-arm64': 0.18.20 + '@esbuild/android-x64': 0.18.20 + '@esbuild/darwin-arm64': 0.18.20 + '@esbuild/darwin-x64': 0.18.20 + '@esbuild/freebsd-arm64': 0.18.20 + '@esbuild/freebsd-x64': 0.18.20 + '@esbuild/linux-arm': 0.18.20 + '@esbuild/linux-arm64': 0.18.20 + '@esbuild/linux-ia32': 0.18.20 + '@esbuild/linux-loong64': 0.18.20 + '@esbuild/linux-mips64el': 0.18.20 + '@esbuild/linux-ppc64': 0.18.20 + '@esbuild/linux-riscv64': 0.18.20 + '@esbuild/linux-s390x': 0.18.20 + '@esbuild/linux-x64': 0.18.20 + '@esbuild/netbsd-x64': 0.18.20 + '@esbuild/openbsd-x64': 0.18.20 + '@esbuild/sunos-x64': 0.18.20 + '@esbuild/win32-arm64': 0.18.20 + '@esbuild/win32-ia32': 0.18.20 + '@esbuild/win32-x64': 0.18.20 + + esbuild@0.25.12: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.12 + '@esbuild/android-arm': 0.25.12 + '@esbuild/android-arm64': 0.25.12 + '@esbuild/android-x64': 0.25.12 + '@esbuild/darwin-arm64': 0.25.12 + '@esbuild/darwin-x64': 0.25.12 + '@esbuild/freebsd-arm64': 0.25.12 + '@esbuild/freebsd-x64': 0.25.12 + '@esbuild/linux-arm': 0.25.12 + '@esbuild/linux-arm64': 0.25.12 + '@esbuild/linux-ia32': 0.25.12 + '@esbuild/linux-loong64': 0.25.12 + '@esbuild/linux-mips64el': 0.25.12 + '@esbuild/linux-ppc64': 0.25.12 + '@esbuild/linux-riscv64': 0.25.12 + '@esbuild/linux-s390x': 0.25.12 + '@esbuild/linux-x64': 0.25.12 + '@esbuild/netbsd-arm64': 0.25.12 + '@esbuild/netbsd-x64': 0.25.12 + '@esbuild/openbsd-arm64': 0.25.12 + '@esbuild/openbsd-x64': 0.25.12 + '@esbuild/openharmony-arm64': 0.25.12 + '@esbuild/sunos-x64': 0.25.12 + '@esbuild/win32-arm64': 0.25.12 + '@esbuild/win32-ia32': 0.25.12 + '@esbuild/win32-x64': 0.25.12 + + esbuild@0.28.2: + optionalDependencies: + '@esbuild/aix-ppc64': 0.28.2 + '@esbuild/android-arm': 0.28.2 + '@esbuild/android-arm64': 0.28.2 + '@esbuild/android-x64': 0.28.2 + '@esbuild/darwin-arm64': 0.28.2 + '@esbuild/darwin-x64': 0.28.2 + '@esbuild/freebsd-arm64': 0.28.2 + '@esbuild/freebsd-x64': 0.28.2 + '@esbuild/linux-arm': 0.28.2 + '@esbuild/linux-arm64': 0.28.2 + '@esbuild/linux-ia32': 0.28.2 + '@esbuild/linux-loong64': 0.28.2 + '@esbuild/linux-mips64el': 0.28.2 + '@esbuild/linux-ppc64': 0.28.2 + '@esbuild/linux-riscv64': 0.28.2 + '@esbuild/linux-s390x': 0.28.2 + '@esbuild/linux-x64': 0.28.2 + '@esbuild/netbsd-arm64': 0.28.2 + '@esbuild/netbsd-x64': 0.28.2 + '@esbuild/openbsd-arm64': 0.28.2 + '@esbuild/openbsd-x64': 0.28.2 + '@esbuild/openharmony-arm64': 0.28.2 + '@esbuild/sunos-x64': 0.28.2 + '@esbuild/win32-arm64': 0.28.2 + '@esbuild/win32-ia32': 0.28.2 + '@esbuild/win32-x64': 0.28.2 + escalade@3.2.0: {} escape-string-regexp@4.0.0: {} @@ -5669,8 +6221,6 @@ snapshots: acorn-jsx: 5.3.2(acorn@8.19.0) eslint-visitor-keys: 5.0.1 - esprima@4.0.1: {} - esquery@1.7.0: dependencies: estraverse: 5.3.0 @@ -5683,77 +6233,24 @@ snapshots: esutils@2.0.3: {} - execa@5.1.1: - dependencies: - cross-spawn: 7.0.6 - get-stream: 6.0.1 - human-signals: 2.1.0 - is-stream: 2.0.1 - merge-stream: 2.0.0 - npm-run-path: 4.0.1 - onetime: 5.1.2 - signal-exit: 3.0.7 - strip-final-newline: 2.0.0 - - execa@9.6.1: - dependencies: - '@sindresorhus/merge-streams': 4.0.0 - cross-spawn: 7.0.6 - figures: 6.1.0 - get-stream: 9.0.1 - human-signals: 8.0.1 - is-plain-obj: 4.1.0 - is-stream: 4.0.1 - npm-run-path: 6.0.0 - pretty-ms: 9.3.1 - signal-exit: 4.1.0 - strip-final-newline: 4.0.0 - yoctocolors: 2.2.0 - exsolve@1.2.0: {} fast-deep-equal@3.1.3: {} - fast-glob@3.3.3: - dependencies: - '@nodelib/fs.stat': 2.0.5 - '@nodelib/fs.walk': 1.2.8 - glob-parent: 5.1.2 - merge2: 1.4.1 - micromatch: 4.0.8 - fast-json-stable-stringify@2.1.0: {} fast-levenshtein@2.0.6: {} - fast-uri@3.1.9: {} - - fastq@1.20.3: - dependencies: - reusify: 1.1.0 - fdir@6.5.0(picomatch@4.0.7): optionalDependencies: picomatch: 4.0.7 fetchdts@0.2.0: {} - figures@6.1.0: - dependencies: - is-unicode-supported: 2.1.0 - file-entry-cache@11.1.5: dependencies: flat-cache: 6.1.23 - fill-range@7.1.1: - dependencies: - to-regex-range: 5.0.1 - - find-up@3.0.0: - dependencies: - locate-path: 3.0.0 - find-up@5.0.0: dependencies: locate-path: 6.0.0 @@ -5767,40 +6264,17 @@ snapshots: flatted@3.4.4: {} - fs-extra@11.4.1: - dependencies: - graceful-fs: 4.2.12 - jsonfile: 6.2.1 - universalify: 2.0.1 - fsevents@2.3.3: optional: true - fuzzysort@3.1.0: {} - gensync@1.0.0-beta.2: {} - get-east-asian-width@1.7.0: {} - get-nonce@1.0.1: {} - get-own-enumerable-keys@1.0.0: {} - - get-stream@6.0.1: {} - - get-stream@9.0.1: - dependencies: - '@sec-ant/readable-stream': 0.4.1 - is-stream: 4.0.1 - get-tsconfig@4.14.3: dependencies: resolve-pkg-maps: 1.0.0 - glob-parent@5.1.2: - dependencies: - is-glob: 4.0.3 - glob-parent@6.0.2: dependencies: is-glob: 4.0.3 @@ -5817,6 +6291,14 @@ snapshots: graceful-fs@4.2.12: {} + h3@2.0.8(crossws@0.4.17(srvx@1.0.8))(ocache@0.3.2): + dependencies: + rou3: 1.0.0 + srvx: 1.0.8 + optionalDependencies: + crossws: 0.4.17(srvx@1.0.8) + ocache: 0.3.2 + hashery@1.5.1: dependencies: hookified: 1.15.1 @@ -5825,70 +6307,26 @@ snapshots: hookified@2.2.0: {} - human-signals@2.1.0: {} - - human-signals@8.0.1: {} - ignore@5.3.2: {} ignore@7.0.14: {} imurmurhash@0.1.4: {} - ip-address@10.7.6: {} - - is-docker@2.2.1: {} - - is-docker@3.0.0: {} - is-extglob@2.1.1: {} is-glob@4.0.3: dependencies: is-extglob: 2.1.1 - is-in-ssh@1.0.0: {} - - is-inside-container@1.0.0: - dependencies: - is-docker: 3.0.0 - - is-interactive@2.0.0: {} - - is-number@7.0.0: {} - - is-obj@2.0.0: {} - - is-obj@3.0.0: {} - - is-plain-obj@4.1.0: {} - - is-regexp@3.1.0: {} - - is-stream@2.0.1: {} - - is-stream@4.0.1: {} - - is-unicode-supported@1.3.0: {} - - is-unicode-supported@2.1.0: {} - - is-wsl@2.2.0: - dependencies: - is-docker: 2.2.1 - - is-wsl@3.1.1: - dependencies: - is-inside-container: 1.0.0 - isbot@5.2.3: {} isexe@2.0.0: {} - isexe@3.1.5: {} - jiti@2.7.0: {} + jose@6.2.17: {} + js-tokens@4.0.0: {} js-yaml@4.3.2: @@ -5899,27 +6337,15 @@ snapshots: json-schema-traverse@0.4.1: {} - json-schema-traverse@1.0.0: {} - - json-schema-typed@7.0.3: {} - json-stable-stringify-without-jsonify@1.0.1: {} json5@2.2.3: {} - jsonfile@6.2.1: - dependencies: - universalify: 2.0.1 - optionalDependencies: - graceful-fs: 4.2.12 - keyv@5.6.0: dependencies: '@keyv/serialize': 1.1.1 - kleur@3.0.3: {} - - kleur@4.1.5: {} + kysely@0.29.9: {} launch-editor@2.14.2: dependencies: @@ -5980,20 +6406,10 @@ snapshots: lightningcss-win32-arm64-msvc: 1.33.0 lightningcss-win32-x64-msvc: 1.33.0 - locate-path@3.0.0: - dependencies: - p-locate: 3.0.0 - path-exists: 3.0.0 - locate-path@6.0.0: dependencies: p-locate: 5.0.0 - log-symbols@6.0.0: - dependencies: - chalk: 5.6.2 - is-unicode-supported: 1.3.0 - lru-cache@5.1.1: dependencies: yallist: 3.1.1 @@ -6012,21 +6428,6 @@ snapshots: dependencies: '@jridgewell/sourcemap-codec': 1.6.0 - merge-stream@2.0.0: {} - - merge2@1.4.1: {} - - micromatch@4.0.8: - dependencies: - braces: 3.0.3 - picomatch: 2.3.2 - - mimic-fn@2.1.0: {} - - mimic-fn@3.1.0: {} - - mimic-function@5.0.1: {} - minimatch@10.2.6: dependencies: brace-expansion: 5.0.13 @@ -6036,51 +6437,28 @@ snapshots: '@isaacs/nonrecursive-glob-match': 1.1.0 brace-expansion: 5.0.13 - minimist@1.2.8: {} - ms@2.1.3: {} nanoid@3.3.20: {} + nanostores@1.5.5: {} + napi-postinstall@0.3.8: {} natural-compare@1.4.0: {} + nitro@3.0.261103-rc: + dependencies: + crossws: 0.4.17(srvx@1.0.8) + env-runner: 0.3.11 + h3: 2.0.8(crossws@0.4.17(srvx@1.0.8))(ocache@0.3.2) + ocache: 0.3.2 + rou3: 1.0.0 + srvx: 1.0.8 + node-releases@2.0.64: {} - npm-run-path@4.0.1: - dependencies: - path-key: 3.1.1 - - npm-run-path@6.0.0: - dependencies: - path-key: 4.0.0 - unicorn-magic: 0.3.0 - - object-treeify@1.1.33: {} - - onetime@5.1.2: - dependencies: - mimic-fn: 2.1.0 - - onetime@7.0.0: - dependencies: - mimic-function: 5.0.1 - - open@11.0.4: - dependencies: - default-browser: 5.5.1 - define-lazy-prop: 3.0.0 - is-in-ssh: 1.0.0 - is-inside-container: 1.0.0 - powershell-utils: 0.2.1 - wsl-utils: 1.0.1 - - open@8.4.2: - dependencies: - define-lazy-prop: 2.0.0 - is-docker: 2.2.1 - is-wsl: 2.2.0 + ocache@0.3.2: {} optionator@0.9.4: dependencies: @@ -6091,18 +6469,6 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 - ora@8.2.0: - dependencies: - chalk: 5.6.2 - cli-cursor: 5.0.0 - cli-spinners: 2.9.2 - is-interactive: 2.0.0 - is-unicode-supported: 2.1.0 - log-symbols: 6.0.0 - stdin-discarder: 0.2.2 - string-width: 7.2.0 - strip-ansi: 7.2.0 - oxc-parser@0.120.0(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2): dependencies: '@oxc-project/types': 0.120.0 @@ -6131,59 +6497,31 @@ snapshots: - '@emnapi/core' - '@emnapi/runtime' - p-limit@2.3.0: - dependencies: - p-try: 2.2.0 - p-limit@3.1.0: dependencies: yocto-queue: 0.1.0 - p-locate@3.0.0: - dependencies: - p-limit: 2.3.0 - p-locate@5.0.0: dependencies: p-limit: 3.1.0 - p-try@2.2.0: {} - - parse-ms@4.0.0: {} - - path-browserify@1.0.1: {} - - path-exists@3.0.0: {} - path-exists@4.0.0: {} path-key@3.1.1: {} - path-key@4.0.0: {} - pathe@2.0.3: {} picocolors@1.1.1: {} - picomatch@2.3.2: {} - picomatch@4.0.7: {} - pkg-up@3.1.0: - dependencies: - find-up: 3.0.0 - - postcss-selector-parser@7.2.1: - dependencies: - util-deprecate: 1.0.2 - postcss@8.5.33: dependencies: nanoid: 3.3.20 picocolors: 1.1.1 source-map-js: 1.2.2 - powershell-utils@0.2.1: {} + postgres@4.1.1: {} prelude-ls@1.2.1: {} @@ -6193,23 +6531,12 @@ snapshots: prettier@3.10.1: {} - pretty-ms@9.3.1: - dependencies: - parse-ms: 4.0.0 - - prompts@2.4.2: - dependencies: - kleur: 3.0.3 - sisteransi: 1.0.5 - punycode@2.3.1: {} qified@0.10.1: dependencies: hookified: 2.2.0 - queue-microtask@1.2.3: {} - radix-ui@1.8.1(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1): dependencies: '@radix-ui/primitive': 1.2.0 @@ -6309,25 +6636,8 @@ snapshots: readdirp@5.1.1: {} - recast@0.23.21: - dependencies: - ast-types: 0.16.3 - esprima: 4.0.1 - source-map: 0.6.1 - tiny-invariant: 1.3.3 - tslib: 2.9.1 - - require-from-string@2.0.2: {} - resolve-pkg-maps@1.0.0: {} - restore-cursor@5.1.0: - dependencies: - onetime: 7.0.0 - signal-exit: 4.1.0 - - reusify@1.1.0: {} - rolldown@1.2.19: dependencies: '@oxc-project/types': 0.156.0 @@ -6350,11 +6660,9 @@ snapshots: '@rolldown/binding-win32-arm64-msvc': 1.2.19 '@rolldown/binding-win32-x64-msvc': 1.2.19 - run-applescript@7.1.0: {} + rou3@0.9.2: {} - run-parallel@1.2.0: - dependencies: - queue-microtask: 1.2.3 + rou3@1.0.0: {} scheduler@0.28.0: {} @@ -6374,43 +6682,7 @@ snapshots: seroval@1.8.1: {} - shadcn@4.23.0: - dependencies: - '@babel/core': 7.29.13 - '@babel/parser': 7.29.14 - '@babel/plugin-transform-typescript': 7.29.9(@babel/core@7.29.13) - '@babel/preset-typescript': 7.29.7(@babel/core@7.29.13) - '@dotenvx/dotenvx': 1.75.1 - '@modelcontextprotocol/server': 2.4.0 - '@shadcn/registry': 0.2.1 - '@types/validate-npm-package-name': 4.0.2 - browserslist: 4.29.5 - cn: 0.2.6 - commander: 14.0.3 - dedent: 1.7.2 - deepmerge: 4.3.1 - diff: 8.0.4 - execa: 9.6.1 - fast-glob: 3.3.3 - fs-extra: 11.4.1 - fuzzysort: 3.1.0 - kleur: 4.1.5 - open: 11.0.4 - ora: 8.2.0 - postcss: 8.5.33 - postcss-selector-parser: 7.2.1 - prompts: 2.4.2 - recast: 0.23.21 - socks: 2.8.10 - stringify-object: 5.0.0 - ts-morph: 26.0.0 - tsconfig-paths: 4.2.0 - undici: 7.30.2 - validate-npm-package-name: 7.0.2 - zod: 4.6.7 - transitivePeerDependencies: - - babel-plugin-macros - - supports-color + set-cookie-parser@3.2.2: {} shebang-command@2.0.0: dependencies: @@ -6420,19 +6692,6 @@ snapshots: shell-quote@1.12.0: {} - signal-exit@3.0.7: {} - - signal-exit@4.1.0: {} - - sisteransi@1.0.5: {} - - smart-buffer@4.2.0: {} - - socks@2.8.10: - dependencies: - ip-address: 10.7.6 - smart-buffer: 4.2.0 - solid-js@1.9.19: dependencies: csstype: 3.2.3 @@ -6441,6 +6700,11 @@ snapshots: source-map-js@1.2.2: {} + source-map-support@0.5.21: + dependencies: + buffer-from: 1.1.2 + source-map: 0.6.1 + source-map@0.6.1: {} source-map@0.7.6: {} @@ -6449,51 +6713,17 @@ snapshots: stable-hash-x@0.2.0: {} - stdin-discarder@0.2.2: {} - - string-width@7.2.0: - dependencies: - emoji-regex: 10.6.0 - get-east-asian-width: 1.7.0 - strip-ansi: 7.2.0 - - stringify-object@5.0.0: - dependencies: - get-own-enumerable-keys: 1.0.0 - is-obj: 3.0.0 - is-regexp: 3.1.0 - - strip-ansi@6.0.1: - dependencies: - ansi-regex: 5.0.1 - - strip-ansi@7.2.0: - dependencies: - ansi-regex: 6.6.0 - - strip-bom@3.0.0: {} - - strip-final-newline@2.0.0: {} - - strip-final-newline@4.0.0: {} - - systeminformation@5.33.23: {} + tailwind-merge@3.7.0: {} tailwindcss@4.3.5: {} tapable@2.3.4: {} - tiny-invariant@1.3.3: {} - tinyglobby@0.2.17: dependencies: fdir: 6.5.0(picomatch@4.0.7) picomatch: 4.0.7 - to-regex-range@5.0.1: - dependencies: - is-number: 7.0.0 - ts-api-utils@2.5.0(typescript@6.0.3): dependencies: typescript: 6.0.3 @@ -6503,27 +6733,18 @@ snapshots: picomatch: 4.0.7 typescript: 6.0.3 - ts-morph@26.0.0: - dependencies: - '@ts-morph/common': 0.27.0 - code-block-writer: 13.0.3 - - tsconfig-paths@4.2.0: - dependencies: - json5: 2.2.3 - minimist: 1.2.8 - strip-bom: 3.0.0 - tslib@2.9.1: {} - tw-animate-css@1.4.0: {} + tsx@4.23.15: + dependencies: + esbuild: 0.28.2 + optionalDependencies: + fsevents: 2.3.3 type-check@0.4.0: dependencies: prelude-ls: 1.2.1 - type-fest@4.41.0: {} - typescript-eslint@8.72.2(eslint@10.15.0(jiti@2.7.0))(typescript@6.0.3): dependencies: '@typescript-eslint/eslint-plugin': 8.72.2(@typescript-eslint/parser@8.72.2(eslint@10.15.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.15.0(jiti@2.7.0))(typescript@6.0.3) @@ -6541,21 +6762,16 @@ snapshots: undici-types@6.21.0: {} - undici@7.30.2: {} - - unicorn-magic@0.3.0: {} - - universalify@2.0.1: {} - - unplugin@3.7.0(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0)): + unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.19)(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)): dependencies: '@jridgewell/remapping': 2.3.5 '@rolldown/pluginutils': 1.1.1 picomatch: 4.0.7 webpack-virtual-modules: 0.6.2 optionalDependencies: + esbuild: 0.28.2 rolldown: 1.2.19 - vite: 8.3.8(@types/node@22.20.5)(jiti@2.7.0) + vite: 8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15) unrs-resolver@1.13.0: dependencies: @@ -6612,11 +6828,7 @@ snapshots: dependencies: react: 19.3.1 - util-deprecate@1.0.2: {} - - validate-npm-package-name@7.0.2: {} - - vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0): + vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15): dependencies: lightningcss: 1.33.0 picomatch: 4.0.7 @@ -6625,12 +6837,14 @@ snapshots: tinyglobby: 0.2.17 optionalDependencies: '@types/node': 22.20.5 + esbuild: 0.28.2 fsevents: 2.3.3 jiti: 2.7.0 + tsx: 4.23.15 - vitefu@1.1.3(vite@8.3.8(@types/node@22.20.5)(jiti@2.7.0)): + vitefu@1.1.3(vite@8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)): optionalDependencies: - vite: 8.3.8(@types/node@22.20.5)(jiti@2.7.0) + vite: 8.3.8(@types/node@22.20.5)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15) vue-eslint-parser@10.4.2(eslint@10.15.0(jiti@2.7.0)): dependencies: @@ -6650,19 +6864,10 @@ snapshots: dependencies: isexe: 2.0.0 - which@4.0.0: - dependencies: - isexe: 3.1.5 - word-wrap@1.2.5: {} ws@8.23.0: {} - wsl-utils@1.0.1: - dependencies: - is-wsl: 3.1.1 - powershell-utils: 0.2.1 - xmlbuilder2@4.0.3: dependencies: '@oozcitak/dom': 2.0.2 @@ -6674,10 +6879,4 @@ snapshots: yocto-queue@0.1.0: {} - yocto-spinner@1.2.2: - dependencies: - yoctocolors: 2.2.0 - - yoctocolors@2.2.0: {} - zod@4.6.7: {} diff --git a/public/manifest.json b/public/manifest.json index 078ef50..b559ba2 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,6 +1,6 @@ { - "short_name": "TanStack App", - "name": "Create TanStack App Sample", + "short_name": "Dahoam", + "name": "Dahoam", "icons": [ { "src": "favicon.ico", diff --git a/public/wallpaper.jpg b/public/wallpaper.jpg new file mode 100644 index 0000000..88780fb Binary files /dev/null and b/public/wallpaper.jpg differ diff --git a/scripts/sync-collabry.sh b/scripts/sync-collabry.sh new file mode 100755 index 0000000..6a0151d --- /dev/null +++ b/scripts/sync-collabry.sh @@ -0,0 +1,68 @@ +#!/bin/sh +# Copies the Collabry components this app uses into src/vendor/collabry. +# Usage: scripts/sync-collabry.sh [ref] (branch, tag or SHA; default: the pinned commit) +set -eu + +UPSTREAM=https://git.nhaiden.io/niklas/collabry-components.git +REF=${1:-f94d10e8e9137724350cfd62389d9b84018b4f40} +DEST=src/vendor/collabry +# A part and the ui/ primitives it imports. Add a line, run the script again. +FILES=" +lib/cn.ts +lib/portal.ts +styles/index.css +styles/tokens.css +components/ThemeProvider/ThemeProvider.tsx +components/Button/Button.tsx +components/Spinner/Spinner.tsx +components/Card/Card.tsx +components/Field/Field.tsx +components/Layout/Layout.tsx +components/Settings/Settings.tsx +components/SegmentedControl/SegmentedControl.tsx +components/ui/button.tsx +components/ui/card.tsx +components/ui/dialog.tsx +components/ui/input.tsx +components/ui/kbd.tsx +components/ui/label.tsx +components/ui/native-select.tsx +components/ui/radio-group.tsx +components/ui/textarea.tsx +components/ui/toggle.tsx +components/ui/toggle-group.tsx +" + +cd "$(dirname "$0")/.." +tmp=$(mktemp -d) +trap 'rm -rf "$tmp"' EXIT +git clone --quiet "$UPSTREAM" "$tmp" +git -C "$tmp" checkout --quiet "$REF" + +rm -rf "$DEST" +for file in $FILES; do + mkdir -p "$DEST/$(dirname "$file")" + cp "$tmp/src/$file" "$DEST/$file" +done + +cat > "$DEST/UPSTREAM.md" < void +}) { + return ( + !open && onClose()}> + + {card && ( + + )} + + + ) +} + +function CardForm({ + card, + onClose, +}: { + card: Exclude | null + onClose: () => void +}) { + const router = useRouter() + const [busy, setBusy] = useState(false) + const [error, setError] = useState("") + // deleting a card deletes its links, so it takes a second click + const [confirming, setConfirming] = useState(false) + const count = card?.links.length ?? 0 + + const submit = async (action: () => Promise) => { + setBusy(true) + setError("") + try { + await action() + await router.invalidate() + onClose() + } catch { + setError("Could not save. Try again.") + setBusy(false) + } + } + + return ( +
{ + e.preventDefault() + const name = String(new FormData(e.currentTarget).get("name")) + void submit(() => saveCard({ data: { id: card?.id, name } })) + }} + > + + {card ? "Edit card" : "New card"} + + A card groups links, for example Media, Network or Bookmarks. + + + + + Name + + + {error && {error}} + + + {card ? ( + + ) : ( + + )} + + +
+ ) +} diff --git a/src/components/card-grid.tsx b/src/components/card-grid.tsx new file mode 100644 index 0000000..20dbc8e --- /dev/null +++ b/src/components/card-grid.tsx @@ -0,0 +1,250 @@ +import { useId, useRef, useState } from "react" +import { useRouter } from "@tanstack/react-router" +import { + DndContext, + DragOverlay, + KeyboardSensor, + MouseSensor, + TouchSensor, + closestCenter, + pointerWithin, + useDroppable, + useSensor, + useSensors, +} from "@dnd-kit/core" +import type { + Announcements, + CollisionDetection, + UniqueIdentifier, +} from "@dnd-kit/core" +import { + SortableContext, + rectSortingStrategy, + sortableKeyboardCoordinates, +} from "@dnd-kit/sortable" +import { Plus } from "lucide-react" +import { glass } from "@/components/glass" +import { LinkTile, TileFace } from "@/components/link-tile" +import type { HomeLink } from "@/components/link-tile" +import { moveLinks } from "@/lib/dashboard.functions" +import { drop, moveOver, order } from "@/lib/layout" +import { Button } from "@/vendor/collabry/components/Button/Button" +import { cn } from "@/vendor/collabry/lib/cn" + +export type DashCard = { id: string; name: string; links: HomeLink[] } + +type Handlers = { + onAddLink: (card: DashCard) => void + onEditLink: (link: HomeLink) => void + onEditCard: (card: DashCard) => void +} + +/** The cards with their links. Links can be dragged inside a card and between cards. */ +export function CardGrid({ + cards: saved, + onAddCard, + ...handlers +}: { cards: DashCard[]; onAddCard: () => void } & Handlers) { + const router = useRouter() + // the layout while a link is dragged, and until the server has stored it + const [dragged, setDragged] = useState(null) + const [activeId, setActiveId] = useState(null) + const drags = useRef(0) + const cards = dragged ?? saved + const links = cards.flatMap((c) => c.links) + const active = links.find((l) => l.id === activeId) + + const sensors = useSensors( + // a few pixels of slack, so a plain click still opens the link + useSensor(MouseSensor, { activationConstraint: { distance: 6 } }), + // long press, so a swipe still scrolls the page + useSensor(TouchSensor, { + activationConstraint: { delay: 220, tolerance: 8 }, + }), + // Space picks up and puts down. Enter stays free to open the link. + useSensor(KeyboardSensor, { + coordinateGetter: sortableKeyboardCoordinates, + keyboardCodes: { + start: ["Space"], + cancel: ["Escape"], + end: ["Space", "Enter"], + }, + }) + ) + + // First the card under the pointer, then the nearest link inside that card. + // Plain closestCenter picks the card's own center too often to sort inside it. + const collision: CollisionDetection = (args) => { + const only = (ids: string[]) => ({ + ...args, + droppableContainers: args.droppableContainers.filter((d) => + ids.includes(String(d.id)) + ), + }) + const cardArgs = only(cards.map((c) => c.id)) + // the keyboard has no pointer: take the nearest card then + const hit = pointerWithin(cardArgs).at(0) ?? closestCenter(cardArgs).at(0) + const card = cards.find((c) => c.id === hit?.id) + if (!hit || !card) return [] + const nearest = closestCenter(only(card.links.map((l) => l.id))) + return nearest.length ? nearest : [hit] + } + + const finish = async (next: DashCard[]) => { + setActiveId(null) + if (JSON.stringify(order(next)) === JSON.stringify(order(saved))) + return setDragged(null) + setDragged(next) + const drag = drags.current + // on failure the reload below puts the links back where they were + await moveLinks({ data: { cards: order(next) } }).catch(() => {}) + await router.invalidate() + // a newer drag owns the layout by now + if (drags.current === drag) setDragged(null) + } + + // screen readers hear names, not ids + const name = (id: UniqueIdentifier) => + links.find((l) => l.id === id)?.name ?? cards.find((c) => c.id === id)?.name + const cardName = (id: UniqueIdentifier) => + cards.find((c) => c.id === id || c.links.some((l) => l.id === id))?.name + const announcements: Announcements = { + onDragStart: ({ active: a }) => `Picked up ${name(a.id)}.`, + onDragOver: ({ active: a, over }) => + over ? `${name(a.id)} is in ${cardName(over.id)}.` : undefined, + onDragEnd: ({ active: a, over }) => + over + ? `${name(a.id)} was put down in ${cardName(over.id)}.` + : `${name(a.id)} was put back.`, + onDragCancel: ({ active: a }) => `${name(a.id)} was put back.`, + } + + return ( + { + drags.current++ + setActiveId(a.id) + setDragged(cards) + }} + onDragOver={({ active: a, over }) => { + if (over) setDragged(moveOver(cards, String(a.id), String(over.id))) + }} + onDragEnd={({ active: a, over }) => + finish(over ? drop(cards, String(a.id), String(over.id)) : cards) + } + onDragCancel={() => { + setActiveId(null) + setDragged(null) + }} + > +
+ {cards.map((card) => ( + l.id === activeId)} + {...handlers} + /> + ))} +
+ + + {active && ( + + )} + +
+ ) +} + +function CardPanel({ + card, + target, + onAddLink, + onEditLink, + onEditCard, +}: { card: DashCard; target: boolean } & Handlers) { + const titleId = useId() + const { setNodeRef } = useDroppable({ id: card.id }) + const subtle = + "rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-white/60" + return ( +
+
+

+ +

+ +
+ l.id)} + strategy={rectSortingStrategy} + > +
+ {card.links.map((link) => ( + onEditLink(link)} + /> + ))} + {card.links.length === 0 && ( + + )} +
+
+
+ ) +} diff --git a/src/components/clock.tsx b/src/components/clock.tsx new file mode 100644 index 0000000..33eb667 --- /dev/null +++ b/src/components/clock.tsx @@ -0,0 +1,61 @@ +import { useSyncExternalStore } from "react" +import { cn } from "@/vendor/collabry/lib/cn" + +const subscribe = (tick: () => void) => { + const timer = setInterval(tick, 1000) + return () => clearInterval(timer) +} +// changes once a minute, so the clock re-renders once a minute +const currentMinute = () => Math.floor(Date.now() / 60_000) + +export function Clock() { + // null on the server: its clock and locale are not the visitor's + const minute = useSyncExternalStore( + subscribe, + currentMinute, + () => null + ) + const now = minute === null ? null : new Date(minute * 60_000) + const parts = now + ? new Intl.DateTimeFormat(undefined, { + hour: "numeric", + minute: "2-digit", + }).formatToParts(now) + : [] + const time = parts + .filter((p) => p.type !== "dayPeriod") + .map((p) => p.value) + .join("") + .trim() + const period = parts.find((p) => p.type === "dayPeriod")?.value + + return ( +
+

+ {now + ? now.toLocaleDateString(undefined, { + weekday: "long", + month: "long", + day: "numeric", + }) + : "\u00a0"} +

+ +
+ ) +} diff --git a/src/components/glass.tsx b/src/components/glass.tsx new file mode 100644 index 0000000..ae9e2b2 --- /dev/null +++ b/src/components/glass.tsx @@ -0,0 +1,45 @@ +import type { ComponentProps } from "react" +import { X } from "lucide-react" +import { + DialogClose, + DialogContent, + closeButtonClass, +} from "@/vendor/collabry/components/ui/dialog" +import { cn } from "@/vendor/collabry/lib/cn" + +/** The dark blurred panel that every surface on the wallpaper uses. */ +export const glass = + "border border-white/10 bg-black/45 shadow-2xl shadow-black/40 backdrop-blur-xl" + +/** For Collabry's `CardFrame` (and `SettingsSection`): glass rim, glass card inside. */ +export const glassFrame = cn( + glass, + "bg-black/25 [&>*]:border-white/10 [&>*]:bg-black/45" +) + +/** Collabry dialog as a glass panel, with an English label on the close button. */ +export function GlassDialogContent({ + className, + children, + ...props +}: ComponentProps) { + return ( + + {children} + + + + + ) +} diff --git a/src/components/link-dialog.tsx b/src/components/link-dialog.tsx new file mode 100644 index 0000000..0d0072f --- /dev/null +++ b/src/components/link-dialog.tsx @@ -0,0 +1,165 @@ +import { useState } from "react" +import { useRouter } from "@tanstack/react-router" +import { Trash2 } from "lucide-react" +import { GlassDialogContent } from "@/components/glass" +import type { HomeLink } from "@/components/link-tile" +import { deleteLink, saveLink } from "@/lib/dashboard.functions" +import { Button } from "@/vendor/collabry/components/Button/Button" +import { + Field, + FieldDescription, + FieldError, + FieldLabel, + FieldNote, + Input, + Select, + SelectOption, +} from "@/vendor/collabry/components/Field/Field" +import { + Dialog, + DialogBody, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, +} from "@/vendor/collabry/components/ui/dialog" + +/** A link to edit, or only the card that a new link starts in. */ +export type LinkTarget = HomeLink | { cardId: string } + +export function LinkDialog({ + target, + cards, + onClose, +}: { + target: LinkTarget | null + cards: { id: string; name: string }[] + onClose: () => void +}) { + return ( + !open && onClose()}> + + {target && } + + + ) +} + +function LinkForm({ + target, + cards, + onClose, +}: { + target: LinkTarget + cards: { id: string; name: string }[] + onClose: () => void +}) { + const link = "id" in target ? target : null + const router = useRouter() + const [busy, setBusy] = useState(false) + const [error, setError] = useState("") + + const submit = async (action: () => Promise) => { + setBusy(true) + setError("") + try { + await action() + await router.invalidate() + onClose() + } catch { + setError("Could not save. Check the address and try again.") + setBusy(false) + } + } + + return ( +
{ + e.preventDefault() + const form = new FormData(e.currentTarget) + void submit(() => + saveLink({ + data: { + id: link?.id, + cardId: String(form.get("cardId")), + name: String(form.get("name")), + url: String(form.get("url")), + icon: String(form.get("icon")).trim() || null, + }, + }) + ) + }} + > + + {link ? "Edit link" : "Add link"} + + An application or a website. Drag it on the dashboard to move it. + + + + + Name + + + + Address + + + + + Icon (optional) + + + + Empty: found from the name, then from the site's favicon. + + + + Card + + + {error && {error}} + + + {link ? ( + + ) : ( + + )} + + +
+ ) +} diff --git a/src/components/link-tile.tsx b/src/components/link-tile.tsx new file mode 100644 index 0000000..f037f52 --- /dev/null +++ b/src/components/link-tile.tsx @@ -0,0 +1,137 @@ +import { useEffect, useRef, useState } from "react" +import { useSortable } from "@dnd-kit/sortable" +import { CSS } from "@dnd-kit/utilities" +import { Pencil } from "lucide-react" +import { cn } from "@/vendor/collabry/lib/cn" + +export type HomeLink = { + id: string + cardId: string + name: string + url: string + icon: string | null +} + +const dashboardIcon = (name: string) => + `https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/${name + .trim() + .toLowerCase() + .replace(/[^a-z0-9]+/g, "-") + .replace(/^-|-$/g, "")}.png` + +/** Icon sources to try in order; the letter tile is the last resort. */ +function iconSources({ name, url, icon }: HomeLink) { + return [ + icon && /^https?:\/\//.test(icon) ? icon : dashboardIcon(icon || name), + `${new URL(url).origin}/favicon.ico`, + ] +} + +type IconProps = { link: HomeLink; className?: string } + +/** Starts the fallback chain again when the link changes. */ +export function LinkIcon(props: IconProps) { + const { id, name, url, icon } = props.link + return +} + +function Icon({ link, className }: IconProps) { + const sources = iconSources(link) + const [index, setIndex] = useState(0) + const img = useRef(null) + const next = () => setIndex((i) => i + 1) + + // an image that failed before hydration never fires onError + useEffect(() => { + if (img.current?.complete && img.current.naturalWidth === 0) next() + }, [index]) + + if (index >= sources.length) + return ( + + {link.name[0]} + + ) + return ( + + ) +} + +const tile = + "flex w-24 flex-col items-center gap-2.5 rounded-2xl px-2 py-3 text-base text-white/90" + +/** Icon and name. Also what follows the pointer while a link is dragged. */ +export function TileFace({ + link, + className, +}: { + link: HomeLink + className?: string +}) { + return ( + + + + {link.name} + + + ) +} + +/** A link in a card. Drag it (mouse, long press, or Space and the arrow keys) to move it. */ +export function LinkTile({ + link, + onEdit, +}: { + link: HomeLink + onEdit: () => void +}) { + const { + attributes, + listeners, + setNodeRef, + transform, + transition, + isDragging, + } = useSortable({ id: link.id }) + return ( +
+ + + + +
+ ) +} diff --git a/src/components/search-bar.tsx b/src/components/search-bar.tsx new file mode 100644 index 0000000..bcda541 --- /dev/null +++ b/src/components/search-bar.tsx @@ -0,0 +1,178 @@ +import { useEffect, useRef, useState } from "react" +import type { ReactNode } from "react" +import { Search } from "lucide-react" +import { glass } from "@/components/glass" +import { Kbd } from "@/vendor/collabry/components/ui/kbd" +import { cn } from "@/vendor/collabry/lib/cn" +import { LinkIcon } from "@/components/link-tile" +import type { HomeLink } from "@/components/link-tile" +import { suggest } from "@/lib/dashboard.functions" +import { ENGINE_NAMES, effectiveEngine, searchUrl } from "@/lib/search" +import type { Engine } from "@/lib/search" + +export type Command = { label: string; icon: ReactNode; run: () => void } + +export function SearchBar({ + links, + commands, + engine, + searxngUrl, +}: { + links: HomeLink[] + commands: Command[] + engine: Engine + searxngUrl: string | null +}) { + const [value, setValue] = useState("") + const [fetched, setFetched] = useState([]) + const [active, setActive] = useState(-1) + const [focused, setFocused] = useState(false) + const input = useRef(null) + + const used = effectiveEngine(engine, searxngUrl) + const query = value.trim() + const commandMode = value.startsWith("/") + const search = (q: string) => + window.location.assign(searchUrl(q, engine, searxngUrl)) + + // "/" anywhere on the page jumps to the search bar + useEffect(() => { + const onKey = (e: KeyboardEvent) => { + if (e.key !== "/" || e.metaKey || e.ctrlKey || e.altKey) return + if ((e.target as Element).closest("input, textarea, [role=dialog]")) + return + e.preventDefault() + input.current?.focus() + } + window.addEventListener("keydown", onKey) + return () => window.removeEventListener("keydown", onKey) + }, []) + + useEffect(() => { + if (!query || commandMode) return + let stale = false + const timer = setTimeout(async () => { + const result = await suggest({ + data: { q: query, searxng: used === "searxng" }, + }).catch(() => []) + if (stale) return + setFetched(result) + setActive(-1) // the highlighted row now holds another suggestion + }, 150) + return () => { + stale = true + clearTimeout(timer) + } + }, [query, commandMode, used]) + + const needle = value.slice(1).trim().toLowerCase() + const items: Command[] = commandMode + ? [ + ...links.map((link) => ({ + label: link.name, + icon: , + run: () => window.location.assign(link.url), + })), + ...commands, + ].filter((item) => item.label.toLowerCase().includes(needle)) + : query + ? fetched.map((s) => ({ + label: s, + icon: , + run: () => search(s), + })) + : [] + const open = focused && items.length > 0 + + const run = (item: Command) => { + setValue("") + input.current?.blur() + item.run() + } + + return ( +
{ + e.preventDefault() + // in command mode Enter takes the best match + const item = + active >= 0 ? items[active] : commandMode ? items[0] : undefined + if (item) run(item) + else if (query && !commandMode) search(query) + }} + > + + {open && ( +
    e.preventDefault()} + className={cn( + glass, + "absolute inset-x-0 top-full z-20 m-0 mt-2 max-h-80 list-none overflow-y-auto rounded-2xl bg-black/75 p-1.5 text-md text-white" + )} + > + {items.map((item, i) => ( +
  • run(item)} + onMouseMove={() => setActive(i)} + className={cn( + "flex cursor-pointer items-center gap-3 rounded-xl px-3.5 py-2.5", + i === active && "bg-white/10" + )} + > + + {item.icon} + + {item.label} +
  • + ))} +
+ )} +
+ ) +} diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx deleted file mode 100644 index 18407c9..0000000 --- a/src/components/ui/button.tsx +++ /dev/null @@ -1,66 +0,0 @@ -import * as React from "react" -import { cva, type VariantProps } from "class-variance-authority" -import { cn } from "cn" -import { Slot } from "radix-ui" - -const buttonVariants = cva( - "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", - { - variants: { - variant: { - default: "bg-primary text-primary-foreground hover:bg-primary/80", - outline: - "border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50", - secondary: - "bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground", - ghost: - "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50", - destructive: - "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40", - link: "text-primary underline-offset-4 hover:underline", - }, - size: { - default: - "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2", - xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3", - sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5", - lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2", - icon: "size-8", - "icon-xs": - "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3", - "icon-sm": - "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg", - "icon-lg": "size-9", - }, - }, - defaultVariants: { - variant: "default", - size: "default", - }, - } -) - -function Button({ - className, - variant = "default", - size = "default", - asChild = false, - ...props -}: React.ComponentProps<"button"> & - VariantProps & { - asChild?: boolean - }) { - const Comp = asChild ? Slot.Root : "button" - - return ( - - ) -} - -export { Button, buttonVariants } diff --git a/src/components/wallpaper.tsx b/src/components/wallpaper.tsx new file mode 100644 index 0000000..8440266 --- /dev/null +++ b/src/components/wallpaper.tsx @@ -0,0 +1,23 @@ +export const DEFAULT_WALLPAPER = "/wallpaper.jpg" + +function showDefault(img: HTMLImageElement) { + if (!img.src.endsWith(DEFAULT_WALLPAPER)) img.src = DEFAULT_WALLPAPER +} + +export function Wallpaper({ src }: { src?: string | null }) { + return ( +
+ { + if (img?.complete && img.naturalWidth === 0) showDefault(img) + }} + onError={(e) => showDefault(e.currentTarget)} + /> +
+
+ ) +} diff --git a/src/db/index.ts b/src/db/index.ts new file mode 100644 index 0000000..1648407 --- /dev/null +++ b/src/db/index.ts @@ -0,0 +1,22 @@ +import { drizzle } from "drizzle-orm/postgres-js" +import { migrate } from "drizzle-orm/postgres-js/migrator" +import * as schema from "./schema" + +if (!process.env.DATABASE_URL) throw new Error("DATABASE_URL is not set") + +export const db = drizzle({ + schema, + connection: { + url: process.env.DATABASE_URL, + // the migrator's "already exists, skipping" on every start looks like an error in the log + onnotice: () => {}, + }, +}) + +// The server brings the database up to date before it answers its first request +// (the image has no drizzle-kit). A server on an old schema must not run: stop, +// so that the restart policy tries again. +await migrate(db, { migrationsFolder: "drizzle" }).catch((error) => { + console.error("Database migration failed:", error) + process.exit(1) +}) diff --git a/src/db/schema.ts b/src/db/schema.ts new file mode 100644 index 0000000..ab49f5a --- /dev/null +++ b/src/db/schema.ts @@ -0,0 +1,138 @@ +import { + boolean, + customType, + index, + integer, + pgTable, + text, + timestamp, + uuid, +} from "drizzle-orm/pg-core" + +// ---- Better Auth core tables ---- + +export const user = pgTable("user", { + id: text("id").primaryKey(), + name: text("name").notNull(), + email: text("email").notNull().unique(), + emailVerified: boolean("email_verified").notNull().default(false), + image: text("image"), + createdAt: timestamp("created_at").notNull().defaultNow(), + updatedAt: timestamp("updated_at").notNull().defaultNow(), +}) + +export const session = pgTable( + "session", + { + id: text("id").primaryKey(), + expiresAt: timestamp("expires_at").notNull(), + token: text("token").notNull().unique(), + createdAt: timestamp("created_at").notNull().defaultNow(), + updatedAt: timestamp("updated_at").notNull().defaultNow(), + ipAddress: text("ip_address"), + userAgent: text("user_agent"), + userId: text("user_id") + .notNull() + .references(() => user.id, { onDelete: "cascade" }), + }, + (t) => [index("session_user_id_idx").on(t.userId)] +) + +export const account = pgTable( + "account", + { + id: text("id").primaryKey(), + accountId: text("account_id").notNull(), + providerId: text("provider_id").notNull(), + userId: text("user_id") + .notNull() + .references(() => user.id, { onDelete: "cascade" }), + accessToken: text("access_token"), + refreshToken: text("refresh_token"), + idToken: text("id_token"), + accessTokenExpiresAt: timestamp("access_token_expires_at"), + refreshTokenExpiresAt: timestamp("refresh_token_expires_at"), + scope: text("scope"), + password: text("password"), + createdAt: timestamp("created_at").notNull().defaultNow(), + updatedAt: timestamp("updated_at").notNull().defaultNow(), + }, + (t) => [index("account_user_id_idx").on(t.userId)] +) + +export const verification = pgTable( + "verification", + { + id: text("id").primaryKey(), + identifier: text("identifier").notNull(), + value: text("value").notNull(), + expiresAt: timestamp("expires_at").notNull(), + createdAt: timestamp("created_at").notNull().defaultNow(), + updatedAt: timestamp("updated_at").notNull().defaultNow(), + }, + (t) => [index("verification_identifier_idx").on(t.identifier)] +) + +// ---- Dashboard tables ---- + +const bytea = customType<{ data: Uint8Array }>({ dataType: () => "bytea" }) + +/** A named group of links on the dashboard. */ +export const card = pgTable( + "card", + { + id: uuid("id").primaryKey().defaultRandom(), + userId: text("user_id") + .notNull() + .references(() => user.id, { onDelete: "cascade" }), + name: text("name").notNull(), + createdAt: timestamp("created_at").notNull().defaultNow(), + }, + (t) => [index("card_user_id_idx").on(t.userId)] +) + +export const link = pgTable( + "link", + { + id: uuid("id").primaryKey().defaultRandom(), + userId: text("user_id") + .notNull() + .references(() => user.id, { onDelete: "cascade" }), + cardId: uuid("card_id") + .notNull() + .references(() => card.id, { onDelete: "cascade" }), + // order inside the card + position: integer("position").notNull().default(0), + name: text("name").notNull(), + url: text("url").notNull(), + // image URL or a dashboard-icons name ("plex"); null = guess from name + icon: text("icon"), + createdAt: timestamp("created_at").notNull().defaultNow(), + }, + (t) => [ + index("link_user_id_idx").on(t.userId), + index("link_card_id_idx").on(t.cardId), + ] +) + +export const settings = pgTable("settings", { + userId: text("user_id") + .primaryKey() + .references(() => user.id, { onDelete: "cascade" }), + title: text("title").notNull().default("Dahoam"), + searchEngine: text("search_engine", { + enum: ["duckduckgo", "searxng", "google"], + }) + .notNull() + .default("duckduckgo"), + // null = bundled default wallpaper + wallpaperUrl: text("wallpaper_url"), +}) + +export const wallpaper = pgTable("wallpaper", { + userId: text("user_id") + .primaryKey() + .references(() => user.id, { onDelete: "cascade" }), + mime: text("mime").notNull(), + data: bytea("data").notNull(), +}) diff --git a/src/lib/auth-client.ts b/src/lib/auth-client.ts new file mode 100644 index 0000000..41e8b9c --- /dev/null +++ b/src/lib/auth-client.ts @@ -0,0 +1,3 @@ +import { createAuthClient } from "better-auth/react" + +export const authClient = createAuthClient() diff --git a/src/lib/auth.ts b/src/lib/auth.ts new file mode 100644 index 0000000..aebf3f8 --- /dev/null +++ b/src/lib/auth.ts @@ -0,0 +1,54 @@ +import { betterAuth } from "better-auth" +import { drizzleAdapter } from "better-auth/adapters/drizzle" +import { genericOAuth } from "better-auth/plugins" +import { tanstackStartCookies } from "better-auth/tanstack-start" +import { getRequestHeaders } from "@tanstack/react-start/server" +import { db } from "@/db" +import * as schema from "@/db/schema" + +const { + OIDC_DISCOVERY_URL: discoveryUrl, + OIDC_CLIENT_ID: clientId, + OIDC_CLIENT_SECRET: clientSecret, +} = process.env +const sso = discoveryUrl && clientId && clientSecret + +export const SSO_PROVIDER_ID = "sso" +export const ssoName = sso ? process.env.OIDC_PROVIDER_NAME || "SSO" : null +export const signUpEnabled = process.env.DISABLE_SIGNUP !== "true" + +export const auth = betterAuth({ + baseURL: process.env.BETTER_AUTH_URL, + database: drizzleAdapter(db, { provider: "pg", schema }), + emailAndPassword: { enabled: true, disableSignUp: !signUpEnabled }, + // without this the login rate limit cannot tell clients apart behind a proxy + advanced: { + ipAddress: { + trustedProxies: process.env.TRUSTED_PROXIES?.split(",").filter(Boolean), + }, + }, + plugins: [ + ...(sso + ? [ + genericOAuth({ + config: [ + { + providerId: SSO_PROVIDER_ID, + discoveryUrl, + clientId, + clientSecret, + scopes: ["openid", "email", "profile"], + }, + ], + }), + ] + : []), + tanstackStartCookies(), // must stay last + ], +}) + +export async function requireUser() { + const session = await auth.api.getSession({ headers: getRequestHeaders() }) + if (!session) throw new Error("Unauthorized") + return session.user +} diff --git a/src/lib/dashboard.functions.ts b/src/lib/dashboard.functions.ts new file mode 100644 index 0000000..eda7b1c --- /dev/null +++ b/src/lib/dashboard.functions.ts @@ -0,0 +1,221 @@ +import { createServerFn } from "@tanstack/react-start" +import { getRequestHeaders } from "@tanstack/react-start/server" +import { and, asc, eq, inArray, sql } from "drizzle-orm" +import { z } from "zod" +import { db } from "@/db" +import { card, link, settings, wallpaper } from "@/db/schema" +import { auth, requireUser, signUpEnabled, ssoName } from "@/lib/auth" +import { ENGINES, parseSuggestions } from "@/lib/search" + +const httpUrl = z.url({ protocol: /^https?$/ }).max(2000) + +async function requireCard(userId: string, cardId: string) { + const found = await db + .select({ id: card.id }) + .from(card) + .where(and(eq(card.id, cardId), eq(card.userId, userId))) + if (!found.length) throw new Error("Unknown card") +} + +/** The position after the last link of a card. */ +const endOf = (cardId: string) => + sql`(select coalesce(max(${link.position}) + 1, 0) from ${link} where ${link.cardId} = ${cardId})` + +export const getAuthInfo = createServerFn({ method: "GET" }).handler( + async () => ({ + signedIn: !!(await auth.api.getSession({ headers: getRequestHeaders() })), + ssoName, + signUpEnabled, + }) +) + +/** Everything the dashboard renders, or null when signed out. */ +export const getDashboard = createServerFn({ method: "GET" }).handler( + async () => { + const session = await auth.api.getSession({ headers: getRequestHeaders() }) + if (!session) return null + const userId = session.user.id + const [cards, links, rows] = await Promise.all([ + db + .select({ id: card.id, name: card.name }) + .from(card) + .where(eq(card.userId, userId)) + .orderBy(asc(card.createdAt)), + db + .select({ + id: link.id, + cardId: link.cardId, + name: link.name, + url: link.url, + icon: link.icon, + }) + .from(link) + .where(eq(link.userId, userId)) + .orderBy(asc(link.position), asc(link.createdAt)), + db.select().from(settings).where(eq(settings.userId, userId)), + ]) + // Links need a card to live in, so nobody is left without one. + // shortcut: two first loads at the same moment make two cards, add a unique + // constraint if that ever shows up + if (!cards.length) + cards.push( + ...(await db + .insert(card) + .values({ userId, name: "Apps" }) + .returning({ id: card.id, name: card.name })) + ) + const s = rows.at(0) // no row until the first save + return { + user: { name: session.user.name, email: session.user.email }, + cards: cards.map((c) => ({ + ...c, + links: links.filter((l) => l.cardId === c.id), + })), + title: s?.title ?? "Dahoam", + searchEngine: s?.searchEngine ?? "duckduckgo", + wallpaperUrl: s?.wallpaperUrl ?? null, + searxngUrl: process.env.SEARXNG_URL || null, + } + } +) + +export const saveLink = createServerFn({ method: "POST" }) + .validator( + z.object({ + id: z.uuid().optional(), + name: z.string().trim().min(1).max(60), + url: httpUrl, + icon: z.string().trim().max(2000).nullable(), + cardId: z.uuid(), + }) + ) + .handler(async ({ data: { id, ...values } }) => { + const user = await requireUser() + await requireCard(user.id, values.cardId) + const end = endOf(values.cardId) + if (id) { + await db + .update(link) + .set({ + ...values, + // a link that changes cards goes to the end of the new one + position: sql`case when ${link.cardId} = ${values.cardId} then ${link.position} else ${end} end`, + }) + .where(and(eq(link.id, id), eq(link.userId, user.id))) + } else { + await db + .insert(link) + .values({ ...values, userId: user.id, position: end }) + } + }) + +export const saveCard = createServerFn({ method: "POST" }) + .validator( + z.object({ + id: z.uuid().optional(), + name: z.string().trim().min(1).max(40), + }) + ) + .handler(async ({ data: { id, name } }) => { + const user = await requireUser() + if (id) { + await db + .update(card) + .set({ name }) + .where(and(eq(card.id, id), eq(card.userId, user.id))) + } else { + await db.insert(card).values({ name, userId: user.id }) + } + }) + +/** Deletes the card and, through the foreign key, its links. */ +export const deleteCard = createServerFn({ method: "POST" }) + .validator(z.object({ id: z.uuid() })) + .handler(async ({ data }) => { + const user = await requireUser() + await db + .delete(card) + .where(and(eq(card.id, data.id), eq(card.userId, user.id))) + }) + +/** Stores the result of a drag: for each card, its links in order. */ +export const moveLinks = createServerFn({ method: "POST" }) + .validator( + z.object({ + cards: z + .array(z.object({ id: z.uuid(), linkIds: z.array(z.uuid()).max(500) })) + .max(100), + }) + ) + .handler(async ({ data }) => { + const user = await requireUser() + const cardIds = [...new Set(data.cards.map((c) => c.id))] + const owned = await db + .select({ id: card.id }) + .from(card) + .where(and(eq(card.userId, user.id), inArray(card.id, cardIds))) + if (owned.length !== cardIds.length) throw new Error("Unknown card") + // shortcut: one UPDATE per link, fine for a few hundred links; switch to a + // single UPDATE ... FROM (VALUES ...) if a save gets slow + await db.transaction(async (tx) => { + for (const c of data.cards) + for (const [position, id] of c.linkIds.entries()) + await tx + .update(link) + .set({ cardId: c.id, position }) + .where(and(eq(link.id, id), eq(link.userId, user.id))) + }) + }) + +export const deleteLink = createServerFn({ method: "POST" }) + .validator(z.object({ id: z.uuid() })) + .handler(async ({ data }) => { + const user = await requireUser() + await db + .delete(link) + .where(and(eq(link.id, data.id), eq(link.userId, user.id))) + }) + +export const saveSettings = createServerFn({ method: "POST" }) + .validator( + // a patch: the settings page saves each setting on its own + z + .object({ + title: z.string().trim().min(1).max(40), + searchEngine: z.enum(ENGINES), + // external image, the user's own upload, or null for the default + wallpaperUrl: z + .union([httpUrl, z.string().regex(/^\/api\/wallpaper\?v=\d+$/)]) + .nullable(), + }) + .partial() + .refine((patch) => Object.keys(patch).length > 0) + ) + .handler(async ({ data }) => { + const user = await requireUser() + await db + .insert(settings) + .values({ ...data, userId: user.id }) + .onConflictDoUpdate({ target: settings.userId, set: data }) + // the stored upload is no longer shown + if (data.wallpaperUrl !== undefined && !data.wallpaperUrl?.startsWith("/")) + await db.delete(wallpaper).where(eq(wallpaper.userId, user.id)) + }) + +export const suggest = createServerFn({ method: "GET" }) + .validator(z.object({ q: z.string().max(200), searxng: z.boolean() })) + .handler(async ({ data }) => { + await requireUser() // not an open proxy + const base = data.searxng && process.env.SEARXNG_URL + const url = base + ? `${base.replace(/\/+$/, "")}/autocompleter?q=` + : "https://duckduckgo.com/ac/?type=list&q=" + try { + const res = await fetch(url + encodeURIComponent(data.q), { + signal: AbortSignal.timeout(2000), + }) + return res.ok ? parseSuggestions(await res.json()) : [] + } catch { + return [] // suggestions are optional, search still works + } + }) diff --git a/src/lib/layout.test.ts b/src/lib/layout.test.ts new file mode 100644 index 0000000..e55583b --- /dev/null +++ b/src/lib/layout.test.ts @@ -0,0 +1,38 @@ +import assert from "node:assert/strict" +import { test } from "node:test" +import { drop, moveOver, order } from "./layout.ts" + +const cards = () => [ + { id: "apps", links: [{ id: "a" }, { id: "b" }, { id: "c" }] }, + { id: "web", links: [{ id: "x" }] }, + { id: "empty", links: [] }, +] +const ids = (layout: ReturnType) => + order(layout).map((c) => c.linkIds.join("")) + +test("drop reorders inside a card", () => { + assert.deepEqual(ids(drop(cards(), "a", "c")), ["bca", "x", ""]) + assert.deepEqual(ids(drop(cards(), "c", "a")), ["cab", "x", ""]) +}) + +test("drop on itself or on its own card changes nothing", () => { + const before = cards() + assert.equal(drop(before, "a", "a"), before) + assert.equal(drop(before, "a", "apps"), before) +}) + +test("a link moves to another card, at the link it is over", () => { + assert.deepEqual(ids(moveOver(cards(), "a", "x")), ["bc", "ax", ""]) + assert.deepEqual(ids(drop(cards(), "a", "x")), ["bc", "ax", ""]) +}) + +test("a link dropped on a card goes to its end", () => { + assert.deepEqual(ids(drop(cards(), "a", "web")), ["bc", "xa", ""]) + assert.deepEqual(ids(drop(cards(), "a", "empty")), ["bc", "x", "a"]) +}) + +test("unknown ids change nothing", () => { + const before = cards() + assert.equal(drop(before, "nope", "x"), before) + assert.equal(drop(before, "a", "nope"), before) +}) diff --git a/src/lib/layout.ts b/src/lib/layout.ts new file mode 100644 index 0000000..4e89f16 --- /dev/null +++ b/src/lib/layout.ts @@ -0,0 +1,50 @@ +// Where links sit in their cards. Pure, so drag and drop can be tested without a browser. + +type Card = { id: string; links: { id: string }[] } + +/** The card with this id, or the card that holds the link with this id. */ +const cardOf = (cards: TCard[], id: string) => + cards.find((c) => c.id === id || c.links.some((l) => l.id === id)) + +/** While dragging: a link that hovers over another card moves into that card. */ +export function moveOver( + cards: TCard[], + linkId: string, + overId: string +): TCard[] { + const from = cardOf(cards, linkId) + const to = cardOf(cards, overId) + const link = from?.links.find((l) => l.id === linkId) + if (!from || !to || !link || from === to) return cards + // over a link: take its place. Over the card itself: go to the end. + const overIndex = to.links.findIndex((l) => l.id === overId) + const at = overIndex < 0 ? to.links.length : overIndex + return cards.map((c) => + c === from + ? { ...c, links: c.links.filter((l) => l !== link) } + : c === to + ? { ...c, links: [...c.links.slice(0, at), link, ...c.links.slice(at)] } + : c + ) +} + +/** On drop: the link takes the place of the link it was dropped on. */ +export function drop( + cards: TCard[], + linkId: string, + overId: string +): TCard[] { + const moved = moveOver(cards, linkId, overId) + if (moved !== cards) return moved // it changed cards, that put it in place + const card = cardOf(cards, linkId) + const from = card?.links.findIndex((l) => l.id === linkId) ?? -1 + const to = card?.links.findIndex((l) => l.id === overId) ?? -1 + if (!card || from < 0 || to < 0 || from === to) return cards + const links = [...card.links] + links.splice(to, 0, ...links.splice(from, 1)) + return cards.map((c) => (c === card ? { ...c, links } : c)) +} + +/** What the server stores: per card, its link ids in order. */ +export const order = (cards: Card[]) => + cards.map((c) => ({ id: c.id, linkIds: c.links.map((l) => l.id) })) diff --git a/src/lib/search.test.ts b/src/lib/search.test.ts new file mode 100644 index 0000000..e075032 --- /dev/null +++ b/src/lib/search.test.ts @@ -0,0 +1,35 @@ +import assert from "node:assert/strict" +import { test } from "node:test" +import { parseSuggestions, searchUrl } from "./search.ts" + +test("searchUrl", () => { + assert.equal( + searchUrl(" a b&c ", "duckduckgo", null), + "https://duckduckgo.com/?q=a%20b%26c" + ) + assert.equal( + searchUrl("cats", "searxng", "https://sx.lan/"), + "https://sx.lan/search?q=cats" + ) + // SearXNG selected but not configured + assert.equal( + searchUrl("cats", "searxng", null), + "https://duckduckgo.com/?q=cats" + ) + assert.equal( + searchUrl("cats", "google", null), + "https://www.google.com/search?q=cats" + ) + // bangs go to DuckDuckGo + assert.equal( + searchUrl("!w cats", "google", null), + "https://duckduckgo.com/?q=!w%20cats" + ) +}) + +test("parseSuggestions", () => { + assert.deepEqual(parseSuggestions(["ca", ["cat", "car"]]), ["cat", "car"]) + assert.deepEqual(parseSuggestions(["cat", "car"]), ["cat", "car"]) + assert.deepEqual(parseSuggestions({ error: 1 }), []) + assert.deepEqual(parseSuggestions(["q", [{ phrase: "x" }, "ok"]]), ["ok"]) +}) diff --git a/src/lib/search.ts b/src/lib/search.ts new file mode 100644 index 0000000..56b08b3 --- /dev/null +++ b/src/lib/search.ts @@ -0,0 +1,38 @@ +export const ENGINES = ["duckduckgo", "searxng", "google"] as const +export type Engine = (typeof ENGINES)[number] + +export const ENGINE_NAMES: Record = { + duckduckgo: "DuckDuckGo", + searxng: "SearXNG", + google: "Google", +} + +/** SearXNG without a configured instance falls back to DuckDuckGo. */ +export function effectiveEngine(engine: Engine, searxngUrl: string | null) { + return engine === "searxng" && !searxngUrl ? "duckduckgo" : engine +} + +export function searchUrl( + query: string, + engine: Engine, + searxngUrl: string | null +) { + const q = encodeURIComponent(query.trim()) + switch (effectiveEngine(engine, searxngUrl)) { + case "searxng": + return `${searxngUrl!.replace(/\/+$/, "")}/search?q=${q}` + case "google": + // !bangs are a DuckDuckGo feature, Google would search them literally + if (!query.trim().startsWith("!")) + return `https://www.google.com/search?q=${q}` + } + return `https://duckduckgo.com/?q=${q}` +} + +/** Both DuckDuckGo and SearXNG answer in OpenSearch form: [query, [suggestions]] */ +export function parseSuggestions(body: unknown): string[] { + const list = Array.isArray(body) && Array.isArray(body[1]) ? body[1] : body + return Array.isArray(list) + ? list.filter((s) => typeof s === "string").slice(0, 8) + : [] +} diff --git a/src/lib/utils.ts b/src/lib/utils.ts deleted file mode 100644 index f815ded..0000000 --- a/src/lib/utils.ts +++ /dev/null @@ -1 +0,0 @@ -export { cn } from "cn" diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts index 3b361e9..0a5658b 100644 --- a/src/routeTree.gen.ts +++ b/src/routeTree.gen.ts @@ -8,59 +8,132 @@ // You should NOT make any changes in this file as it will be overwritten. // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. -import { Route as rootRouteImport } from "./routes/__root" -import { Route as IndexRouteImport } from "./routes/index" +import { Route as rootRouteImport } from './routes/__root' +import { Route as IndexRouteImport } from './routes/index' +import { Route as LoginRouteImport } from './routes/login' +import { Route as SettingsRouteImport } from './routes/settings' +import { Route as ApiWallpaperRouteImport } from './routes/api/wallpaper' +import { Route as ApiAuthSplatRouteImport } from './routes/api/auth/$' const IndexRoute = IndexRouteImport.update({ - id: "/", - path: "/", + id: '/', + path: '/', + getParentRoute: () => rootRouteImport, +} as any) +const LoginRoute = LoginRouteImport.update({ + id: '/login', + path: '/login', + getParentRoute: () => rootRouteImport, +} as any) +const SettingsRoute = SettingsRouteImport.update({ + id: '/settings', + path: '/settings', + getParentRoute: () => rootRouteImport, +} as any) +const ApiWallpaperRoute = ApiWallpaperRouteImport.update({ + id: '/api/wallpaper', + path: '/api/wallpaper', + getParentRoute: () => rootRouteImport, +} as any) +const ApiAuthSplatRoute = ApiAuthSplatRouteImport.update({ + id: '/api/auth/$', + path: '/api/auth/$', getParentRoute: () => rootRouteImport, } as any) export interface FileRoutesByFullPath { - "/": typeof IndexRoute + '/': typeof IndexRoute + '/login': typeof LoginRoute + '/settings': typeof SettingsRoute + '/api/wallpaper': typeof ApiWallpaperRoute + '/api/auth/$': typeof ApiAuthSplatRoute } export interface FileRoutesByTo { - "/": typeof IndexRoute + '/': typeof IndexRoute + '/login': typeof LoginRoute + '/settings': typeof SettingsRoute + '/api/wallpaper': typeof ApiWallpaperRoute + '/api/auth/$': typeof ApiAuthSplatRoute } export interface FileRoutesById { __root__: typeof rootRouteImport - "/": typeof IndexRoute + '/': typeof IndexRoute + '/login': typeof LoginRoute + '/settings': typeof SettingsRoute + '/api/wallpaper': typeof ApiWallpaperRoute + '/api/auth/$': typeof ApiAuthSplatRoute } export interface FileRouteTypes { fileRoutesByFullPath: FileRoutesByFullPath - fullPaths: "/" + fullPaths: '/' | '/login' | '/settings' | '/api/wallpaper' | '/api/auth/$' fileRoutesByTo: FileRoutesByTo - to: "/" - id: "__root__" | "/" + to: '/' | '/login' | '/settings' | '/api/wallpaper' | '/api/auth/$' + id: + '__root__' | '/' | '/login' | '/settings' | '/api/wallpaper' | '/api/auth/$' fileRoutesById: FileRoutesById } export interface RootRouteChildren { IndexRoute: typeof IndexRoute + LoginRoute: typeof LoginRoute + SettingsRoute: typeof SettingsRoute + ApiWallpaperRoute: typeof ApiWallpaperRoute + ApiAuthSplatRoute: typeof ApiAuthSplatRoute } -declare module "@tanstack/react-router" { +declare module '@tanstack/react-router' { interface FileRoutesByPath { - "/": { - id: "/" - path: "/" - fullPath: "/" + '/': { + id: '/' + path: '/' + fullPath: '/' preLoaderRoute: typeof IndexRouteImport parentRoute: typeof rootRouteImport } + '/login': { + id: '/login' + path: '/login' + fullPath: '/login' + preLoaderRoute: typeof LoginRouteImport + parentRoute: typeof rootRouteImport + } + '/settings': { + id: '/settings' + path: '/settings' + fullPath: '/settings' + preLoaderRoute: typeof SettingsRouteImport + parentRoute: typeof rootRouteImport + } + '/api/wallpaper': { + id: '/api/wallpaper' + path: '/api/wallpaper' + fullPath: '/api/wallpaper' + preLoaderRoute: typeof ApiWallpaperRouteImport + parentRoute: typeof rootRouteImport + } + '/api/auth/$': { + id: '/api/auth/$' + path: '/api/auth/$' + fullPath: '/api/auth/$' + preLoaderRoute: typeof ApiAuthSplatRouteImport + parentRoute: typeof rootRouteImport + } } } const rootRouteChildren: RootRouteChildren = { IndexRoute: IndexRoute, + LoginRoute: LoginRoute, + SettingsRoute: SettingsRoute, + ApiWallpaperRoute: ApiWallpaperRoute, + ApiAuthSplatRoute: ApiAuthSplatRoute, } export const routeTree = rootRouteImport ._addFileChildren(rootRouteChildren) ._addFileTypes() -import type { getRouter } from "./router.tsx" -import type { createStart } from "@tanstack/react-start" -declare module "@tanstack/react-start" { +import type { getRouter } from './router.tsx' +import type { createStart } from '@tanstack/react-start' +declare module '@tanstack/react-start' { interface Register { ssr: true router: Awaited> diff --git a/src/router.tsx b/src/router.tsx index d91c337..14c13a7 100644 --- a/src/router.tsx +++ b/src/router.tsx @@ -8,6 +8,9 @@ export function getRouter() { scrollRestoration: true, defaultPreload: "intent", defaultPreloadStaleTime: 0, + // no cached pages: after a change in settings the dashboard must not + // show the old title or wallpaper first + defaultGcTime: 0, }) return router diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index ea8b325..c5878aa 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -2,6 +2,7 @@ import { HeadContent, Scripts, createRootRoute } from "@tanstack/react-router" import { TanStackRouterDevtoolsPanel } from "@tanstack/react-router-devtools" import { TanStackDevtools } from "@tanstack/react-devtools" +import { ThemeProvider } from "@/vendor/collabry/components/ThemeProvider/ThemeProvider" import appCss from "../styles.css?url" export const Route = createRootRoute({ @@ -15,7 +16,7 @@ export const Route = createRootRoute({ content: "width=device-width, initial-scale=1", }, { - title: "TanStack Start Starter", + title: "Dahoam", }, ], links: [ @@ -36,15 +37,15 @@ export const Route = createRootRoute({ function RootDocument({ children }: { children: React.ReactNode }) { return ( - + - {children} + {children} auth.handler(request), + POST: ({ request }) => auth.handler(request), + }, + }, +}) diff --git a/src/routes/api/wallpaper.ts b/src/routes/api/wallpaper.ts new file mode 100644 index 0000000..b01c0da --- /dev/null +++ b/src/routes/api/wallpaper.ts @@ -0,0 +1,78 @@ +import { createFileRoute } from "@tanstack/react-router" +import { eq } from "drizzle-orm" +import { db } from "@/db" +import { settings, wallpaper } from "@/db/schema" +import { auth } from "@/lib/auth" + +const MAX_BYTES = 10 * 1024 * 1024 +// no SVG: it can carry scripts +const TYPES = ["image/jpeg", "image/png", "image/webp", "image/avif"] + +async function userId(request: Request) { + const session = await auth.api.getSession({ headers: request.headers }) + return session?.user.id +} + +export const Route = createFileRoute("/api/wallpaper")({ + server: { + handlers: { + GET: async ({ request }) => { + const id = await userId(request) + if (!id) return new Response("Unauthorized", { status: 401 }) + const row = ( + await db.select().from(wallpaper).where(eq(wallpaper.userId, id)) + ).at(0) + if (!row) return new Response("Not found", { status: 404 }) + return new Response(new Uint8Array(row.data), { + headers: { + "Content-Type": row.mime, + "X-Content-Type-Options": "nosniff", + // the URL carries ?v=, so it never changes + "Cache-Control": "private, max-age=31536000, immutable", + }, + }) + }, + POST: async ({ request }) => { + const id = await userId(request) + if (!id) return new Response("Unauthorized", { status: 401 }) + const mime = request.headers.get("content-type") ?? "" + if (!TYPES.includes(mime)) + return new Response("Use a JPEG, PNG, WebP or AVIF image", { + status: 415, + }) + // a chunked body has no declared size and could fill the memory + const declared = Number(request.headers.get("content-length")) + if ( + !(declared > 0 && declared <= MAX_BYTES) || + request.headers.has("transfer-encoding") + ) + return new Response("Image is empty or larger than 10 MB", { + status: 413, + }) + const data = new Uint8Array(await request.arrayBuffer()) + if (!data.length || data.length > MAX_BYTES) + return new Response("Image is empty or larger than 10 MB", { + status: 413, + }) + const wallpaperUrl = `/api/wallpaper?v=${Date.now()}` + await db.transaction(async (tx) => { + await tx + .insert(wallpaper) + .values({ userId: id, mime, data }) + .onConflictDoUpdate({ + target: wallpaper.userId, + set: { mime, data }, + }) + await tx + .insert(settings) + .values({ userId: id, wallpaperUrl }) + .onConflictDoUpdate({ + target: settings.userId, + set: { wallpaperUrl }, + }) + }) + return Response.json({ wallpaperUrl }) + }, + }, + }, +}) diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 7933a49..5e3f3b2 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -1,19 +1,155 @@ -import { createFileRoute } from "@tanstack/react-router" -import { Button } from "@/components/ui/button" +import { useState } from "react" +import { + Link, + createFileRoute, + redirect, + useRouter, +} from "@tanstack/react-router" +import { + Flower2, + LayoutGrid, + LogOut, + Pencil, + Plus, + Settings2, +} from "lucide-react" +import { CardDialog } from "@/components/card-dialog" +import type { CardTarget } from "@/components/card-dialog" +import { CardGrid } from "@/components/card-grid" +import { Clock } from "@/components/clock" +import { LinkDialog } from "@/components/link-dialog" +import type { LinkTarget } from "@/components/link-dialog" +import { SearchBar } from "@/components/search-bar" +import { Wallpaper } from "@/components/wallpaper" +import { authClient } from "@/lib/auth-client" +import { getDashboard } from "@/lib/dashboard.functions" +import { Button } from "@/vendor/collabry/components/Button/Button" +import { cn } from "@/vendor/collabry/lib/cn" -export const Route = createFileRoute("/")({ component: App }) +export const Route = createFileRoute("/")({ + loader: async () => { + const data = await getDashboard() + if (!data) throw redirect({ to: "/login" }) + return data + }, + component: Dashboard, +}) + +// Collabry ghost button, restyled to sit on the wallpaper +const onWallpaper = + "rounded-full text-white/80 hover:bg-white/10 hover:text-white" + +function Dashboard() { + const data = Route.useLoaderData() + const router = useRouter() + const [link, setLink] = useState(null) + const [card, setCard] = useState(null) + + // the server makes sure there is always a card + const addLink = () => setLink({ cardId: data.cards[0].id }) -function App() { return ( -
-
-
-

Project ready!

-

You may now add components and start building.

-

We've already added the button component for you.

- +
+ + +
+
+ +

{data.title}

+ + {data.user.name} + + + +
+ +
+
-
+ +
+ c.links)} + engine={data.searchEngine} + searxngUrl={data.searxngUrl} + commands={[ + { + label: "Add link", + icon: , + run: addLink, + }, + { + label: "Add card", + icon: , + run: () => setCard("new"), + }, + { + label: "Settings", + icon: , + run: () => router.navigate({ to: "/settings" }), + }, + { + label: "Sign out", + icon: , + run: async () => { + await authClient.signOut() + await router.navigate({ to: "/login" }) + }, + }, + ]} + /> +
+ +
+ setCard("new")} + onAddLink={(c) => setLink({ cardId: c.id })} + onEditLink={setLink} + onEditCard={setCard} + /> +
+ +
+ {!data.wallpaperUrl && ( + + Photo by{" "} + + Andrew Coelho + {" "} + on Unsplash + + )} + +
+ + + setLink(null)} + /> + setCard(null)} />
) } diff --git a/src/routes/login.tsx b/src/routes/login.tsx new file mode 100644 index 0000000..f31a3e8 --- /dev/null +++ b/src/routes/login.tsx @@ -0,0 +1,166 @@ +import { useState } from "react" +import { createFileRoute, redirect, useRouter } from "@tanstack/react-router" +import { KeyRound } from "lucide-react" +import { glassFrame } from "@/components/glass" +import { Wallpaper } from "@/components/wallpaper" +import { authClient } from "@/lib/auth-client" +import { getAuthInfo } from "@/lib/dashboard.functions" +import { Button } from "@/vendor/collabry/components/Button/Button" +import { Card, CardFrame } from "@/vendor/collabry/components/Card/Card" +import { + Field, + FieldError, + FieldLabel, + Input, +} from "@/vendor/collabry/components/Field/Field" +import { cn } from "@/vendor/collabry/lib/cn" + +export const Route = createFileRoute("/login")({ + loader: async () => { + const info = await getAuthInfo() + if (info.signedIn) throw redirect({ to: "/" }) + return info + }, + component: Login, +}) + +function Login() { + const { ssoName, signUpEnabled } = Route.useLoaderData() + const router = useRouter() + const [signUp, setSignUp] = useState(false) + const [busy, setBusy] = useState(false) + const [error, setError] = useState("") + + // Better Auth returns { error } instead of throwing + const run = async ( + action: () => Promise<{ error: { message?: string } | null }> + ) => { + setBusy(true) + setError("") + // a dropped connection throws + const { error: failure } = await action().catch(() => ({ + error: { message: "" }, + })) + if (failure) { + setError(failure.message || "Something went wrong. Try again.") + setBusy(false) + } else { + await router.navigate({ to: "/" }) + } + } + + return ( +
+ + {/* Collabry's double frame, as glass */} + + +

+ {signUp ? "Create account" : "Welcome back"} +

+

+ {signUp ? "Set up your own Dahoam." : "Sign in to Dahoam."} +

+ +
{ + e.preventDefault() + const form = new FormData(e.currentTarget) + const email = String(form.get("email")) + const password = String(form.get("password")) + void run(() => + signUp + ? authClient.signUp.email({ + name: String(form.get("name")), + email, + password, + }) + : authClient.signIn.email({ email, password }) + ) + }} + > + {signUp && ( + + Name + + + )} + + Email + + + + Password + + + {error && {error}} + +
+ + {ssoName && ( + <> +
+ + or + +
+ + + )} + + {signUpEnabled && ( +

+ {signUp ? "Already have an account?" : "No account yet?"}{" "} + +

+ )} +
+
+
+ ) +} diff --git a/src/routes/settings.tsx b/src/routes/settings.tsx new file mode 100644 index 0000000..6d0f566 --- /dev/null +++ b/src/routes/settings.tsx @@ -0,0 +1,372 @@ +import { useRef, useState } from "react" +import { + Link, + createFileRoute, + redirect, + useLocation, + useRouter, +} from "@tanstack/react-router" +import { + ArrowLeft, + Check, + CircleUser, + Flower2, + Image, + LogOut, + Search, + SlidersHorizontal, + Upload, +} from "lucide-react" +import { DEFAULT_WALLPAPER } from "@/components/wallpaper" +import { authClient } from "@/lib/auth-client" +import { getDashboard, saveSettings } from "@/lib/dashboard.functions" +import { ENGINES, ENGINE_NAMES } from "@/lib/search" +import type { Engine } from "@/lib/search" +import { Button } from "@/vendor/collabry/components/Button/Button" +import { + Field, + FieldDescription, + FieldLabel, + Input, +} from "@/vendor/collabry/components/Field/Field" +import { + PageActions, + PageDescription, + PageHeader, + PageHeading, + PageTitle, +} from "@/vendor/collabry/components/Layout/Layout" +import { + SegmentedControl, + SegmentedControlItem, +} from "@/vendor/collabry/components/SegmentedControl/SegmentedControl" +import { + SettingsNav, + SettingsNavItem, + SettingsRow, + SettingsRowControl, + SettingsRowDescription, + SettingsRowLabel, + SettingsRowText, + SettingsSection, + SettingsSectionDescription, + SettingsSectionHeader, + SettingsSectionTitle, +} from "@/vendor/collabry/components/Settings/Settings" +import { Spinner } from "@/vendor/collabry/components/Spinner/Spinner" +import { cn } from "@/vendor/collabry/lib/cn" + +export const Route = createFileRoute("/settings")({ + loader: async () => { + const data = await getDashboard() + if (!data) throw redirect({ to: "/login" }) + return data + }, + head: () => ({ meta: [{ title: "Settings" }] }), + component: Settings, +}) + +const SECTIONS = [ + { id: "general", label: "General", icon: SlidersHorizontal }, + { id: "search", label: "Search", icon: Search }, + { id: "wallpaper", label: "Wallpaper", icon: Image }, + { id: "account", label: "Account", icon: CircleUser }, +] + +// the nav links jump to a section; keep its title clear of the window edge +const section = "[&>section]:scroll-mt-24" + +function Settings() { + const data = Route.useLoaderData() + const router = useRouter() + const hash = useLocation({ select: (l) => l.hash }) || SECTIONS[0].id + const file = useRef(null) + const [status, setStatus] = useState<"idle" | "saving" | "saved">("idle") + const [error, setError] = useState("") + + // Every control saves on its own. `action` returns a message when it failed. + const run = async (action: () => Promise) => { + setError("") + setStatus("saving") + const failure = await action().catch(() => "Could not save. Try again.") + await router.invalidate() + setError(failure || "") + setStatus(failure ? "idle" : "saved") + } + const save = (patch: { + title?: string + searchEngine?: Engine + wallpaperUrl?: string | null + }) => run(() => saveSettings({ data: patch })) + const upload = (image: File) => + run(async () => { + const res = await fetch("/api/wallpaper", { + method: "POST", + headers: { "Content-Type": image.type }, + body: image, + }) + if (!res.ok) return res.text() + }) + + const uploaded = !!data.wallpaperUrl?.startsWith("/") + + return ( + // A page of its own: solid Collabry surfaces, no wallpaper behind it +
+
+
+ + {data.title} + +
+
+
+
+ + + + Settings + + + Changes are saved as you make them. + + + + {error && ( + + {error} + + )} + + {status === "saving" && ( + <> + Saving … + + )} + {status === "saved" && ( + <> + Saved + + )} + + + + +
+ + {SECTIONS.map(({ id, label, icon: Icon }) => ( + + + + {label} + + + ))} + + +
+ + + General + + How this dashboard is called. + + + + + + Dashboard name + + + Shown at the top left of the dashboard. + + + + + e.key === "Enter" && e.currentTarget.blur() + } + onBlur={(e) => { + const title = e.target.value.trim() + if (title && title !== data.title) void save({ title }) + else e.target.value = data.title + }} + /> + + + + + + + Search + + Where the search bar sends you. DuckDuckGo !bangs work with + every engine. + + + + +
+ Search engine +
+ + {data.searxngUrl + ? `SearXNG instance: ${data.searxngUrl}` + : "SearXNG is off: set SEARXNG_URL on the server to use it."} + +
+ + save({ searchEngine: v as Engine })} + > + {ENGINES.map((e) => ( + + {ENGINE_NAMES[e]} + + ))} + + +
+
+ + + + Wallpaper + + The picture behind your dashboard. Upload one (JPEG, PNG, + WebP or AVIF, up to 10 MB) or use any image on the web. + + + +
+ Current wallpaper +
+ + Image address + + e.key === "Enter" && e.currentTarget.blur() + } + onBlur={(e) => { + const url = e.target.value.trim() + if (!url || url === data.wallpaperUrl) return + if (e.target.checkValidity()) + void save({ wallpaperUrl: url }) + else + setError( + "The image address must start with http:// or https://" + ) + }} + /> + + {uploaded + ? "You use an uploaded image now." + : data.wallpaperUrl + ? "You use an image from the web now." + : "You use the default photo now."} + + +
+ { + const image = e.target.files?.[0] + if (image) void upload(image) + e.target.value = "" + }} + /> + + +
+
+
+
+
+ + + + Account + + + +
+ {data.user.name} +
+ + {data.user.email} + +
+ + + +
+
+
+
+
+
+
+ ) +} diff --git a/src/styles.css b/src/styles.css index 7372eb7..5eaad79 100644 --- a/src/styles.css +++ b/src/styles.css @@ -1,133 +1,38 @@ -@import "tailwindcss"; -@import "tw-animate-css"; -@import "shadcn/tailwind.css"; +/* Tailwind, the Collabry tokens and its theme */ +@import "./vendor/collabry/styles/index.css"; @import "@fontsource-variable/inter"; - -@custom-variant dark (&:is(.dark *)); +@import "@fontsource/dm-serif-display"; @theme inline { - --font-heading: var(--font-sans); - --font-sans: 'Inter Variable', sans-serif; - --color-sidebar-ring: var(--sidebar-ring); - --color-sidebar-border: var(--sidebar-border); - --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); - --color-sidebar-accent: var(--sidebar-accent); - --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); - --color-sidebar-primary: var(--sidebar-primary); - --color-sidebar-foreground: var(--sidebar-foreground); - --color-sidebar: var(--sidebar); - --color-chart-5: var(--chart-5); - --color-chart-4: var(--chart-4); - --color-chart-3: var(--chart-3); - --color-chart-2: var(--chart-2); - --color-chart-1: var(--chart-1); - --color-ring: var(--ring); - --color-input: var(--input); - --color-border: var(--border); - --color-destructive: var(--destructive); - --color-accent-foreground: var(--accent-foreground); - --color-accent: var(--accent); - --color-muted-foreground: var(--muted-foreground); - --color-muted: var(--muted); - --color-secondary-foreground: var(--secondary-foreground); - --color-secondary: var(--secondary); - --color-primary-foreground: var(--primary-foreground); - --color-primary: var(--primary); - --color-popover-foreground: var(--popover-foreground); - --color-popover: var(--popover); - --color-card-foreground: var(--card-foreground); - --color-card: var(--card); - --color-foreground: var(--foreground); - --color-background: var(--background); - --radius-sm: calc(var(--radius) * 0.6); - --radius-md: calc(var(--radius) * 0.8); - --radius-lg: var(--radius); - --radius-xl: calc(var(--radius) * 1.4); - --radius-2xl: calc(var(--radius) * 1.8); - --radius-3xl: calc(var(--radius) * 2.2); - --radius-4xl: calc(var(--radius) * 2.6); + --font-sans: "Inter Variable", system-ui, sans-serif; + --font-serif: "DM Serif Display", ui-serif, Georgia, serif; } -:root { - --background: oklch(1 0 0); - --foreground: oklch(0.145 0 0); - --card: oklch(1 0 0); - --card-foreground: oklch(0.145 0 0); - --popover: oklch(1 0 0); - --popover-foreground: oklch(0.145 0 0); - --primary: oklch(0.205 0 0); - --primary-foreground: oklch(0.985 0 0); - --secondary: oklch(0.97 0 0); - --secondary-foreground: oklch(0.205 0 0); - --muted: oklch(0.97 0 0); - --muted-foreground: oklch(0.556 0 0); - --accent: oklch(0.97 0 0); - --accent-foreground: oklch(0.205 0 0); - --destructive: oklch(0.577 0.245 27.325); - --border: oklch(0.922 0 0); - --input: oklch(0.922 0 0); - --ring: oklch(0.708 0 0); - --chart-1: oklch(0.87 0 0); - --chart-2: oklch(0.556 0 0); - --chart-3: oklch(0.439 0 0); - --chart-4: oklch(0.371 0 0); - --chart-5: oklch(0.269 0 0); - --radius: 0.625rem; - --sidebar: oklch(0.985 0 0); - --sidebar-foreground: oklch(0.145 0 0); - --sidebar-primary: oklch(0.205 0 0); - --sidebar-primary-foreground: oklch(0.985 0 0); - --sidebar-accent: oklch(0.97 0 0); - --sidebar-accent-foreground: oklch(0.205 0 0); - --sidebar-border: oklch(0.922 0 0); - --sidebar-ring: oklch(0.708 0 0); -} - -.dark { - --background: oklch(0.145 0 0); - --foreground: oklch(0.985 0 0); - --card: oklch(0.205 0 0); - --card-foreground: oklch(0.985 0 0); - --popover: oklch(0.205 0 0); - --popover-foreground: oklch(0.985 0 0); - --primary: oklch(0.922 0 0); - --primary-foreground: oklch(0.205 0 0); - --secondary: oklch(0.269 0 0); - --secondary-foreground: oklch(0.985 0 0); - --muted: oklch(0.269 0 0); - --muted-foreground: oklch(0.708 0 0); - --accent: oklch(0.269 0 0); - --accent-foreground: oklch(0.985 0 0); - --destructive: oklch(0.704 0.191 22.216); - --border: oklch(1 0 0 / 10%); - --input: oklch(1 0 0 / 15%); - --ring: oklch(0.556 0 0); - --chart-1: oklch(0.87 0 0); - --chart-2: oklch(0.556 0 0); - --chart-3: oklch(0.439 0 0); - --chart-4: oklch(0.371 0 0); - --chart-5: oklch(0.269 0 0); - --sidebar: oklch(0.205 0 0); - --sidebar-foreground: oklch(0.985 0 0); - --sidebar-primary: oklch(0.488 0.243 264.376); - --sidebar-primary-foreground: oklch(0.985 0 0); - --sidebar-accent: oklch(0.269 0 0); - --sidebar-accent-foreground: oklch(0.985 0 0); - --sidebar-border: oklch(1 0 0 / 10%); - --sidebar-ring: oklch(0.556 0 0); +/* The accent is near white here (set on ThemeProvider), so text on it is dark */ +:root, +[data-cl-theme] { + --cl-white: #111111; } @layer base { - * { - @apply border-border outline-ring/50; - } body { - @apply bg-background text-foreground; - } - button:not(:disabled), [role="button"]:not(:disabled) { - cursor: pointer; - } - html { - @apply font-sans; - } -} \ No newline at end of file + margin: 0; + background: black; + } +} + +/* Halftone dots plus a fade to black, as on the reference start page */ +@utility wallpaper-dither { + background-image: + linear-gradient( + to bottom, + rgb(0 0 0 / 0.45), + rgb(0 0 0 / 0.25) 30%, + rgb(0 0 0 / 0.4) 65%, + rgb(0 0 0 / 0.95) 100% + ), + radial-gradient(rgb(0 0 0 / 0.45) 1px, transparent 1.5px); + background-size: + auto, + 4px 4px; +} diff --git a/src/vendor/collabry/UPSTREAM.md b/src/vendor/collabry/UPSTREAM.md new file mode 100644 index 0000000..8e302df --- /dev/null +++ b/src/vendor/collabry/UPSTREAM.md @@ -0,0 +1,19 @@ +# Vendored: Collabry components + +Do not edit the files in this directory. They are copies of upstream `src/`, so a diff +against upstream stays empty. App components go in `src/components/`. + +- Upstream: https://git.nhaiden.io/niklas/collabry-components.git +- Commit: `f94d10e8e9137724350cfd62389d9b84018b4f40` +- Copied: only the files listed in `scripts/sync-collabry.sh` +- Local patches: none + +Update or add a component: edit the list in `scripts/sync-collabry.sh`, then run +`scripts/sync-collabry.sh [ref]` and `pnpm typecheck && pnpm build`. + +Upstream files import `@/lib/…` and `@/components/ui/…`. `tsconfig.json` maps `@/*` to +`src/*` first and to this directory second, so they resolve here without a rewrite. +Do not create `src/lib/cn.ts`, `src/lib/portal.ts` or `src/components/ui/`: they would +take the place of the vendored files. + +The look is changed from outside: tokens in `src/styles.css`, classes in `src/components/`. diff --git a/src/vendor/collabry/components/Button/Button.tsx b/src/vendor/collabry/components/Button/Button.tsx new file mode 100644 index 0000000..4a77926 --- /dev/null +++ b/src/vendor/collabry/components/Button/Button.tsx @@ -0,0 +1,87 @@ +import type { ComponentProps } from "react" +import { cn } from "../../lib/cn" +import { Button as UiButton, buttonVariants } from "../ui/button" +import { Spinner, SuccessCheck } from "../Spinner/Spinner" + +export { buttonVariants } + +export type ButtonVariant = + "primary" | "secondary" | "ghost" | "danger" | "danger-outline" +export type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl" +export type ButtonState = "idle" | "loading" | "success" + +const spinnerSize: Record = { + xs: 12, + sm: 14, + md: 14, + lg: 16, + xl: 18, +} + +export interface ButtonProps extends ComponentProps { + /** Async feedback: the label hides behind a spinner, then a checkmark. Ignored with `asChild`. */ + state?: ButtonState +} + +/** + * Put icons in `children` next to the label. Use `asChild` to render a link as a button: + * ``. + */ +export function Button({ + size = "md", + state = "idle", + disabled, + type = "button", + asChild, + className, + children, + ...props +}: ButtonProps) { + if (asChild) { + return ( + + {children} + + ) + } + const busy = state !== "idle" + const spinner = spinnerSize[size ?? "md"] + return ( + + + {children} + + {busy && ( + + {state === "loading" ? ( + + ) : ( + + )} + + )} + + {state === "loading" + ? "Wird ausgeführt …" + : state === "success" + ? "Erledigt" + : ""} + + + ) +} diff --git a/src/vendor/collabry/components/Card/Card.tsx b/src/vendor/collabry/components/Card/Card.tsx new file mode 100644 index 0000000..e905b41 --- /dev/null +++ b/src/vendor/collabry/components/Card/Card.tsx @@ -0,0 +1,49 @@ +import type { ComponentProps } from "react" +import { cn } from "../../lib/cn" +import { Card as UiCard } from "../ui/card" + +export { + CardAction, + CardDescription, + CardFooter, + CardHeader, + CardHeading, + CardTitle, +} from "../ui/card" + +/** + * The dark 5px rim of the design's signature double frame. Wrap a `Card` in it: + * `…`. Place and size the pair through the frame. + */ +export function CardFrame({ className, ...props }: ComponentProps<"div">) { + return ( +
+ ) +} + +export interface CardProps extends ComponentProps { + /** Inner padding. `none` lets rows run edge to edge (settings, task list). */ + padding?: "none" | "sm" | "md" +} + +/** The raised surface. Use `asChild` for `section`, `article` or `form`. */ +export function Card({ padding = "md", className, ...props }: CardProps) { + return ( + + ) +} diff --git a/src/vendor/collabry/components/Field/Field.tsx b/src/vendor/collabry/components/Field/Field.tsx new file mode 100644 index 0000000..ad32640 --- /dev/null +++ b/src/vendor/collabry/components/Field/Field.tsx @@ -0,0 +1,321 @@ +import { + createContext, + useCallback, + useContext, + useId, + useLayoutEffect, + useMemo, + useState, + type ComponentProps, +} from "react" +import { AlertCircle, Eye, EyeOff } from "lucide-react" +import { cn } from "../../lib/cn" +import { Input as UiInput } from "../ui/input" +import { Label } from "../ui/label" +import { NativeSelect, NativeSelectOption } from "../ui/native-select" +import { Textarea as UiTextarea } from "../ui/textarea" + +/* ---------------------------------------------------------------- Field */ + +interface FieldContextValue { + id: string + invalid: boolean + describedBy?: string + register: (messageId: string, isError: boolean) => () => void +} + +const FieldContext = createContext(null) + +/** + * Props a control needs to join the surrounding `Field`: `id`, `aria-describedby` + * and `aria-invalid`. Explicit props win. Use it to make your own controls field-aware. + */ +export function useFieldControl< + P extends { + id?: string + "aria-describedby"?: string + "aria-invalid"?: unknown + }, +>(props: P): P { + const field = useContext(FieldContext) + if (!field) return props + return { + ...props, + id: props.id ?? field.id, + "aria-describedby": props["aria-describedby"] ?? field.describedBy, + "aria-invalid": props["aria-invalid"] ?? (field.invalid || undefined), + } +} + +export interface FieldProps extends ComponentProps<"div"> { + /** Marks the control invalid. Rendering a `FieldError` does this too. */ + invalid?: boolean + /** `horizontal` puts control and label side by side (checkboxes). */ + orientation?: "vertical" | "horizontal" +} + +/** + * Groups a label, one control and its messages, and wires ids and ARIA between them. + * + * + * E-Mail + * + * {error && {error}} + * + */ +export function Field({ + invalid, + orientation = "vertical", + className, + ...props +}: FieldProps) { + const id = useId() + const [messages, setMessages] = useState<{ id: string; error: boolean }[]>([]) + const register = useCallback((messageId: string, error: boolean) => { + setMessages((m) => [...m, { id: messageId, error }]) + return () => setMessages((m) => m.filter((x) => x.id !== messageId)) + }, []) + const value = useMemo( + () => ({ + id, + invalid: invalid ?? messages.some((m) => m.error), + describedBy: messages.map((m) => m.id).join(" ") || undefined, + register, + }), + [id, invalid, messages, register] + ) + return ( + +
+ + ) +} + +/** Row above the control: the label and something aligned right, e.g. "Passwort vergessen?". */ +export function FieldHeader({ className, ...props }: ComponentProps<"div">) { + return ( +
+ ) +} + +export function FieldLabel({ + className, + ...props +}: ComponentProps) { + const field = useContext(FieldContext) + return ( +