Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

Monorepoize (#343)

Anthony Shewa27673ef41d6
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000..4039ff11
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,12 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+indent_size = 2
+indent_style = space
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.md]
+trim_trailing_whitespace = false
diff --git a/.eslintrc.cjs b/.eslintrc.cjs
deleted file mode 100644
index b5d6791c..00000000
--- a/.eslintrc.cjs
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * @type {import("eslint").Linter.Config}
- */
-const config = {
- parser: '@typescript-eslint/parser',
- plugins: ['@typescript-eslint'],
- extends: [
- 'next/core-web-vitals',
- 'plugin:@typescript-eslint/recommended',
- 'plugin:import/recommended',
- 'plugin:import/typescript',
- ],
- rules: {
- // This is to enforce the use of import aliases
- 'no-restricted-imports': [
- 'error',
- {
- patterns: ['^(?!\\.\\/)((?!.)[sS])*) ?$', '../.*'],
- },
- ],
- '@typescript-eslint/consistent-type-imports': [
- 'warn',
- {
- prefer: 'type-imports',
- fixStyle: 'inline-type-imports',
- },
- ],
- '@typescript-eslint/no-unused-vars': [
- 'warn',
- {
- argsIgnorePattern: '^_',
- varsIgnorePattern: '^_',
- caughtErrorsIgnorePattern: '^_',
- destructuredArrayIgnorePattern: '^_',
- },
- ],
- '@typescript-eslint/no-empty-interface': 'off',
- '@typescript-eslint/ban-ts-comment': 'off',
- },
-};
-
-module.exports = config;
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 00000000..ead153b8
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,8 @@
+/** @type {import("eslint").Linter.Config} */
+module.exports = {
+ root: true,
+ extends: [require.resolve('./tooling/config-eslint/node')],
+ parserOptions: {
+ project: `${__dirname}/tsconfig.json`,
+ },
+};
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
deleted file mode 100644
index 18413337..00000000
--- a/.github/workflows/ci.yml
+++ /dev/null
@@ -1,58 +0,0 @@
-name: CI
-
-on:
- pull_request:
-
-env:
- DATABASE_URL: 'mysql://fake.com'
- GITHUB_ID: 'xd'
- GITHUB_SECRET: 'lmao'
- NEXTAUTH_SECRET: 'ligma'
- NEXTAUTH_URL: 'http://localhost:3000'
- UPLOADTHING_SECRET: 'ligma'
- UPLOADTHING_APP_ID: 'ligma'
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
-
- steps:
- - name: Checkout
- uses: actions/checkout@v2
-
- - uses: pnpm/action-setup@v2
- name: Install pnpm
- id: pnpm-install
- with:
- version: 8
- run_install: false
-
- - name: Get pnpm store directory
- id: pnpm-cache
- shell: bash
- run: |
- echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
-
- - uses: actions/cache@v3
- name: Setup pnpm cache
- with:
- path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
- key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
- restore-keys: |
- ${{ runner.os }}-pnpm-store-
-
- - name: Install Dependencies
- run: pnpm i
-
- - name: Typecheck
- run: pnpm typecheck
-
- - name: Lint
- run: pnpm lint
-
- - name: Build
- run: pnpm build
diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml
new file mode 100644
index 00000000..1634cf23
--- /dev/null
+++ b/.github/workflows/quality.yml
@@ -0,0 +1,70 @@
+name: Quality
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
+
+env:
+ FORCE_COLOR: 3
+ TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+ TURBO_TEAM: ${{ vars.TURBO_TEAM }}
+
+jobs:
+ prettier:
+ name: Prettier
+ timeout-minutes: 10
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Install
+ uses: ./tooling/github-actions/install
+
+ - name: Run Prettier
+ run: pnpm format
+
+ eslint:
+ name: ESLint
+ timeout-minutes: 15
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Setup and install
+ uses: ./tooling/github-actions/install
+
+ - name: Lint
+ run: pnpm lint
+
+ typecheck:
+ name: TypeScript
+ timeout-minutes: 15
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Install
+ uses: ./tooling/github-actions/install
+
+ - name: Cache TypeScript TSBuild Info Files
+ id: cache-typescript-tsbuildinfo
+ uses: actions/cache@v3
+ with:
+ path: node_modules/.cache/*-tsbuildinfo.json
+ # We use the commit hash as the key to always update the cache as a
+ # workaround to this issue:
+ # https://github.com/actions/cache/issues/106
+ key: ${{ runner.os }}-cache-typescript-tsbuildinfo-${{ github.sha }}
+ restore-keys: ${{ runner.os }}-cache-typescript-tsbuildinfo-
+
+ - name: Run TypeScript type check
+ run: pnpm typecheck
diff --git a/.gitignore b/.gitignore
index 17c49527..1aae3b0f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
-/node_modules
+node_modules
/.pnp
.pnp.js
@@ -13,12 +13,13 @@
/prisma/db.sqlite-journal
# next.js
-/.next/
-/out/
+.next/
+out/
next-env.d.ts
# production
-/build
+build
+dist
# misc
.DS_Store
@@ -38,6 +39,9 @@ yarn-error.log*
# vercel
.vercel
+# turbo
+.turbo
+
# typescript
*.tsbuildinfo
@@ -45,5 +49,5 @@ yarn-error.log*
*vimrc*
# monaco-editor dependency
-public/vs/
+apps/web/public/vs/
monaco-editor.d.ts
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 5ba764e8..2ec0a82e 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
-pnpx lint-staged
+pnpm format:precommit && pnpm lint:fix
diff --git a/.lintstagedrc.cjs b/.lintstagedrc.cjs
deleted file mode 100644
index 9f6c2a1a..00000000
--- a/.lintstagedrc.cjs
+++ /dev/null
@@ -1,11 +0,0 @@
-const path = require('path');
-
-const buildEslintCommand = (filenames) =>
- `next lint --fix --file ${filenames
- .map((f) => path.relative(process.cwd(), f))
- .join(' --file ')}`;
-
-module.exports = {
- '*.{js,jsx,ts,tsx}': [buildEslintCommand],
- '**/*.ts?(x)': () => 'tsc -p tsconfig.json --noEmit',
-};
diff --git a/.npmrc b/.npmrc
new file mode 100644
index 00000000..3b5608b8
--- /dev/null
+++ b/.npmrc
@@ -0,0 +1,4 @@
+public-hoist-pattern[]=*prisma*
+auto-install-peers=true
+legacy-peer-deps=true
+node-linker=hoisted
\ No newline at end of file
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index 8e42285b..2ae30f20 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -1,5 +1,6 @@
{
"recommendations": [
- "prisma.prisma"
+ "prisma.prisma",
+ "bradlc.vscode-tailwindcss" // Tailwind Intellisense
]
-}
\ No newline at end of file
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index b7ad83d8..ab6ab7a8 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,4 +1,28 @@
{
- "typescript.tsdk": "node_modules/typescript/lib",
- "prettier.prettierPath": "./node_modules/prettier"
+ "typescript.tsdk": "node_modules/typescript/lib",
+ "prettier.prettierPath": "./node_modules/prettier",
+ "eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }],
+ "json.schemas": [
+ {
+ "fileMatch": ["tsconfig.*.json"],
+ "url": "https://json.schemastore.org/tsconfig"
+ },
+ { "fileMatch": ["turbo.json"], "url": "https://turbo.build/schema.json" },
+ {
+ "fileMatch": ["vercel.json"],
+ "url": "https://openapi.vercel.sh/vercel.json"
+ }
+ ],
+ "search.exclude": {
+ "**/node_modules": true,
+ "**/.next": true,
+ "**/.output": true,
+ "**/.turbo": true,
+ "**/.vercel": true,
+ "**/dist": true
+ },
+ "tailwindCSS.experimental.classRegex": [["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]],
+ "editor.quickSuggestions": {
+ "strings": true
+ }
}
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 0d44227d..9f86e1c8 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -6,19 +6,22 @@ machine. Below are the steps to follow in order for you to get dotfyle to run on
### 1. Make a copy of `.env` from the example file `.env.example`.
```
-cp .env.example .env
+cp apps/web/.env.example apps/web/.env
```
### 2 Configure your database
+
You can either use planetscale or a local docker container to run your database.
Use either 2.a or 2.b for the next step.
### 2.a Docker local DB
Starting the docker container
+
```
docker compose up -d
```
+
### 2.b Planetscale cloud DB
[Follow the planetscale quick start guide to get you connection string][planetscale-quick-start]
@@ -30,10 +33,9 @@ docker compose up -d
3. Click "Get connection strings".
<br/><img width="429" alt="Screenshot 2023-06-30 at 3 46 45 PM" src="https://github.com/bautistaaa/typehero/assets/31113245/c06a5829-92e6-417f-a5e6-083b7690923f">
-4. Switch to "Connect with Prisma" and copy the `DATABASE_URL` for `.env` (replace ******* with password)
+4. Switch to "Connect with Prisma" and copy the `DATABASE_URL` for `.env` (replace **\*\*\*** with password)
<br/><img width="344" alt="Screenshot 2023-06-30 at 3 49 03 PM" src="https://github.com/bautistaaa/typehero/assets/31113245/4c9694ef-b954-47a8-9954-c2b677a1123a">
-
### 3. Create a new GitHub OAuth Application
[Follow this link][new-oauth] to create a new app filling the following required details on creation:
@@ -66,20 +68,10 @@ Use `pnpm` to install dependencies.
pnpm install
```
-### 6. Push Schema Changes
-
-Run the prisma push command to sync db schemas:
-
-```
-pnpx prisma db push
-```
-
-### 7. Seed the database
-
-Run the prisma seed command to add mock data
+### 6. Push and Seed Database
```
-pnpx prisma db seed
+turbo seed
```
### Running the dev server
@@ -87,7 +79,7 @@ pnpx prisma db seed
Finally, you can run the dev server:
```
-pnpm dev
+turbo dev
```
### Sync data
diff --git a/README.md b/README.md
index eadf93ee..162dc921 100644
--- a/README.md
+++ b/README.md
@@ -6,4 +6,5 @@
- We need to add issues to track stuff.
### Get Started
+
look at [`CONTRIBUTING.md`](./CONTRIBUTING.md) idiot
diff --git a/__seed__/extreme/desc.md b/__seed__/extreme/desc.md
deleted file mode 100644
index 0ca9a58f..00000000
--- a/__seed__/extreme/desc.md
+++ /dev/null
@@ -1,13 +0,0 @@
-Implement a generic `GetReadonlyKeys<T>` that returns a union of the readonly keys of an Object.
-
-For example
-
-```ts
-interface Todo {
- readonly title: string
- readonly description: string
- completed: boolean
-}
-
-type Keys = GetReadonlyKeys<Todo> // expected to be "title" | "description"
-```
diff --git a/__seed__/medium/prompt.md b/__seed__/medium/prompt.md
deleted file mode 100644
index d9c6add3..00000000
--- a/__seed__/medium/prompt.md
+++ /dev/null
@@ -1,7 +0,0 @@
-// TEST CASE START
-Extends<HelloWorld, `Hello, ${string}`>()
-
-Extends<HelloWorld, `${string}!`>()
-
-// CODE START
-type HelloWorld = ""
diff --git a/.env.example b/apps/web/.env.example
similarity index 100%
rename from .env.example
rename to apps/web/.env.example
diff --git a/apps/web/.eslintrc.cjs b/apps/web/.eslintrc.cjs
new file mode 100644
index 00000000..c059ad64
--- /dev/null
+++ b/apps/web/.eslintrc.cjs
@@ -0,0 +1,9 @@
+/** @type {import("eslint").Linter.Config} */
+module.exports = {
+ root: true,
+ extends: [require.resolve('@repo/lint/next')],
+ ignorePatterns: ['monaco-editor.d.ts'],
+ parserOptions: {
+ project: `${__dirname}/tsconfig.json`,
+ },
+};
diff --git a/apps/web/global.d.ts b/apps/web/global.d.ts
new file mode 100644
index 00000000..6bcc22c3
--- /dev/null
+++ b/apps/web/global.d.ts
@@ -0,0 +1,14 @@
+declare module '*.md' {
+ const text: string;
+ export default text;
+}
+declare module '*.png';
+
+declare namespace NodeJS {
+ interface ProcessEnv {
+ NODE_ENV: 'development' | 'production' | 'test';
+ GITHUB_ID: string;
+ GITHUB_SECRET: string;
+ PORT: number;
+ }
+}
diff --git a/monaco-vim.d.ts b/apps/web/monaco-vim.d.ts
similarity index 100%
rename from monaco-vim.d.ts
rename to apps/web/monaco-vim.d.ts
diff --git a/next.config.mjs b/apps/web/next.config.js
similarity index 68%
rename from next.config.mjs
rename to apps/web/next.config.js
index 981ceb42..ed923291 100644
--- a/next.config.mjs
+++ b/apps/web/next.config.js
@@ -1,8 +1,3 @@
-/**
- * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
- * for Docker builds.
- */
-import './src/env.mjs';
/** @type {import("next").NextConfig} */
const config = {
webpack: (config) => {
@@ -16,14 +11,13 @@ const config = {
experimental: {
serverActions: true,
},
-
typescript: {
ignoreBuildErrors: false,
},
-
eslint: {
ignoreDuringBuilds: true,
},
+ transpilePackages: ['@repo/db', '@repo/auth'],
images: {
remotePatterns: [
{
@@ -37,10 +31,5 @@ const config = {
],
},
swcMinify: true,
- modularizeImports: {
- 'lucide-react': {
- transform: 'lucide-react/dist/esm/icons/{{ kebabCase member }}',
- },
- },
};
export default config;
diff --git a/apps/web/package.json b/apps/web/package.json
new file mode 100644
index 00000000..18207082
--- /dev/null
+++ b/apps/web/package.json
@@ -0,0 +1,95 @@
+{
+ "name": "web",
+ "version": "0.1.0",
+ "private": true,
+ "type": "module",
+ "scripts": {
+ "build": "next build",
+ "dev": "next dev",
+ "format": "prettier -w \"src/**/*.{ts,tsx,css,cjs,mjs,json}\"",
+ "lint": "eslint .",
+ "start": "next start",
+ "typecheck": "tsc --noEmit"
+ },
+ "dependencies": {
+ "@hookform/error-message": "^2.0.1",
+ "@hookform/resolvers": "^3.1.1",
+ "@monaco-editor/loader": "^1.3.3",
+ "@monaco-editor/react": "^4.5.1",
+ "@radix-ui/react-avatar": "^1.0.3",
+ "@radix-ui/react-checkbox": "^1.0.4",
+ "@radix-ui/react-dialog": "^1.0.4",
+ "@radix-ui/react-dropdown-menu": "^2.0.5",
+ "@radix-ui/react-label": "^2.0.2",
+ "@radix-ui/react-navigation-menu": "^1.1.3",
+ "@radix-ui/react-popover": "^1.0.6",
+ "@radix-ui/react-scroll-area": "^1.0.4",
+ "@radix-ui/react-select": "^1.2.2",
+ "@radix-ui/react-separator": "^1.0.3",
+ "@radix-ui/react-slot": "^1.0.2",
+ "@radix-ui/react-tabs": "^1.0.4",
+ "@radix-ui/react-toast": "^1.1.4",
+ "@radix-ui/react-tooltip": "^1.0.6",
+ "@repo/auth": "workspace:*",
+ "@repo/db": "workspace:*",
+ "@repo/lint": "workspace:*",
+ "@t3-oss/env-nextjs": "^0.6.0",
+ "@tanstack/react-query": "^4.29.25",
+ "@tanstack/react-table": "^8.9.3",
+ "@types/lodash": "^4.14.195",
+ "@uiw/react-md-editor": "^3.23.3",
+ "@uploadthing/react": "^5.2.0",
+ "class-variance-authority": "^0.6.1",
+ "clsx": "^2.0.0",
+ "cmdk": "^0.2.0",
+ "date-fns": "^2.30.0",
+ "framer-motion": "^10.12.22",
+ "lodash": "^4.17.21",
+ "lucide-react": "^0.260.0",
+ "lz-string": "^1.5.0",
+ "monaco-editor": "^0.40.0",
+ "monaco-vim": "^0.4.0",
+ "next": "^13.4.10",
+ "next-themes": "^0.2.1",
+ "react": "18.2.0",
+ "react-day-picker": "^8.8.0",
+ "react-dom": "18.2.0",
+ "react-dropzone": "^14.2.3",
+ "react-hook-form": "^7.45.1",
+ "react-intersection-observer": "^9.5.2",
+ "react-markdown": "^8.0.7",
+ "react-syntax-highlighter": "^15.5.0",
+ "react-wrap-balancer": "^1.0.0",
+ "remark-gfm": "^3.0.1",
+ "superjson": "1.12.4",
+ "tailwind-merge": "^1.14.0",
+ "tailwindcss-animate": "^1.0.6",
+ "unified": "^10.1.2",
+ "unist-util-visit": "^5.0.0",
+ "uploadthing": "^5.2.1",
+ "zod": "^3.21.4",
+ "zustand": "^4.3.9"
+ },
+ "devDependencies": {
+ "@repo/tsconfig": "workspace:*",
+ "@tailwindcss/container-queries": "^0.1.1",
+ "@tailwindcss/typography": "^0.5.9",
+ "@types/node": "^20.4.2",
+ "@types/react": "^18.2.15",
+ "@types/react-dom": "^18.2.7",
+ "@types/react-syntax-highlighter": "^15.5.7",
+ "autoprefixer": "^10.4.14",
+ "eslint": "^8.45.0",
+ "eslint-config-next": "^13.4.10",
+ "eslint-plugin-import": "^2.27.5",
+ "postcss": "^8.4.26",
+ "prettier": "^2.8.8",
+ "prettier-plugin-tailwindcss": "^0.4.1",
+ "raw-loader": "^4.0.2",
+ "tailwindcss": "^3.3.3",
+ "typescript": "^5.1.6"
+ },
+ "ct3aMetadata": {
+ "initVersion": "7.13.1"
+ }
+}
diff --git a/postcss.config.cjs b/apps/web/postcss.config.cjs
similarity index 100%
rename from postcss.config.cjs
rename to apps/web/postcss.config.cjs
diff --git a/public/avatar.jpeg b/apps/web/public/avatar.jpeg
similarity index 100%
rename from public/avatar.jpeg
rename to apps/web/public/avatar.jpeg
diff --git a/public/contributors.json b/apps/web/public/contributors.json
similarity index 100%
rename from public/contributors.json
rename to apps/web/public/contributors.json
diff --git a/public/contributors.ts b/apps/web/public/contributors.ts
similarity index 100%
rename from public/contributors.ts
rename to apps/web/public/contributors.ts
diff --git a/public/favicon.svg b/apps/web/public/favicon.svg
similarity index 100%
rename from public/favicon.svg
rename to apps/web/public/favicon.svg
diff --git a/public/real-og.png b/apps/web/public/real-og.png
similarity index 100%
rename from public/real-og.png
rename to apps/web/public/real-og.png
diff --git a/src/app/[username]/page.tsx b/apps/web/src/app/[username]/page.tsx
similarity index 100%
rename from src/app/[username]/page.tsx
rename to apps/web/src/app/[username]/page.tsx
diff --git a/src/app/admin/challenge/[challengeId]/challenge-review.action.ts b/apps/web/src/app/admin/challenge/[challengeId]/challenge-review.action.ts
similarity index 78%
rename from src/app/admin/challenge/[challengeId]/challenge-review.action.ts
rename to apps/web/src/app/admin/challenge/[challengeId]/challenge-review.action.ts
index f3b6f337..825db8b3 100644
--- a/src/app/admin/challenge/[challengeId]/challenge-review.action.ts
+++ b/apps/web/src/app/admin/challenge/[challengeId]/challenge-review.action.ts
@@ -1,9 +1,12 @@
'use server';
-import { RoleTypes } from '@prisma/client';
-import { prisma } from '~/server/db';
+import { RoleTypes, prisma } from '@repo/db';
-export async function approveChallenge(challengeId: number, userId: string, isUserACreator: boolean) {
+export async function approveChallenge(
+ challengeId: number,
+ userId: string,
+ isUserACreator: boolean,
+) {
return prisma.$transaction([
prisma.challenge.update({
where: {
diff --git a/src/app/admin/challenge/[challengeId]/challenge-review.tsx b/apps/web/src/app/admin/challenge/[challengeId]/challenge-review.tsx
similarity index 96%
rename from src/app/admin/challenge/[challengeId]/challenge-review.tsx
rename to apps/web/src/app/admin/challenge/[challengeId]/challenge-review.tsx
index bbfd9ef8..66d046f4 100644
--- a/src/app/admin/challenge/[challengeId]/challenge-review.tsx
+++ b/apps/web/src/app/admin/challenge/[challengeId]/challenge-review.tsx
@@ -1,18 +1,18 @@
'use client';
import Link from 'next/link';
+import { useRouter } from 'next/navigation';
+import { useSession } from '@repo/auth/react';
+import { useMemo } from 'react';
+import { approveChallenge, denyChallenge } from './challenge-review.action';
+import type { ChallengeToReview } from './page';
import { Button } from '~/components/ui/button';
import { CodeEditor } from '~/components/ui/code-editor';
import { DifficultyBadge } from '~/components/ui/difficulty-badge';
import { Markdown } from '~/components/ui/markdown';
import Text from '~/components/ui/typography/typography';
import { UserBadge } from '~/components/ui/user-badge';
-import { approveChallenge, denyChallenge } from './challenge-review.action';
-import type { ChallengeToReview } from './page';
import { useToast } from '~/components/ui/use-toast';
-import { useRouter } from 'next/navigation';
-import { useSession } from 'next-auth/react';
-import { useMemo } from 'react';
interface Props {
challenge: ChallengeToReview;
@@ -81,7 +81,7 @@ export function ChallengeReview({ challenge }: Props) {
<Link href="/admin">
<Button variant="ghost">Cancel</Button>
</Link>
- <Button variant="destructive" onClick={handleDenyChallenge}>
+ <Button onClick={handleDenyChallenge} variant="destructive">
Deny
</Button>
<Button className="bg-green-300 dark:bg-green-700" onClick={handleApproveChallenge}>
diff --git a/src/app/admin/challenge/[challengeId]/page.tsx b/apps/web/src/app/admin/challenge/[challengeId]/page.tsx
similarity index 81%
rename from src/app/admin/challenge/[challengeId]/page.tsx
rename to apps/web/src/app/admin/challenge/[challengeId]/page.tsx
index 9d4c39d3..27a7b5e2 100644
--- a/src/app/admin/challenge/[challengeId]/page.tsx
+++ b/apps/web/src/app/admin/challenge/[challengeId]/page.tsx
@@ -1,4 +1,4 @@
-import { prisma } from '~/server/db';
+import { prisma } from '@repo/db';
import { ChallengeReview } from './challenge-review';
interface Props {
@@ -8,7 +8,7 @@ interface Props {
}
export default async function ChallengeReviewPage({ params: { challengeId } }: Props) {
- const challenge = await getChallengeToReview(+challengeId);
+ const challenge = await getChallengeToReview(Number(challengeId));
return <ChallengeReview challenge={challenge} />;
}
@@ -26,7 +26,7 @@ async function getChallengeToReview(id: number) {
},
},
orderBy: {
- createdAt: 'desc'
- }
+ createdAt: 'desc',
+ },
});
}
diff --git a/src/app/admin/page.tsx b/apps/web/src/app/admin/page.tsx
similarity index 84%
rename from src/app/admin/page.tsx
rename to apps/web/src/app/admin/page.tsx
index 5c0a6d9f..f068e01c 100644
--- a/src/app/admin/page.tsx
+++ b/apps/web/src/app/admin/page.tsx
@@ -1,7 +1,8 @@
'use server';
-import { RoleTypes } from '@prisma/client';
+import { RoleTypes } from '@repo/db';
import { Lock } from 'lucide-react';
import React from 'react';
+import { getServerAuthSession } from '@repo/auth/server';
import { ChallengeReviews } from '~/components/admin/challenge-reviews';
import { getBannedUsers, getUploadedImages } from '~/components/admin/admin.actions';
import { ImageUploadReport } from '~/components/admin/images';
@@ -9,7 +10,6 @@ import { ImageUploadReport } from '~/components/admin/images';
import { BannedUsers } from '~/components/admin/users';
import { getInfiniteReports } from '~/components/report/report.action';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '~/components/ui/tabs';
-import { getServerAuthSession } from '~/server/auth';
async function Admin() {
const session = await getServerAuthSession();
@@ -55,28 +55,28 @@ const View = async () => {
</p>
</div>
<div className="flex flex-col space-y-2">
- <Tabs defaultValue="reports" className="space-x-4">
- <TabsList className="rounded-full border border-border bg-background">
+ <Tabs className="space-x-4" defaultValue="reports">
+ <TabsList className="border-border bg-background rounded-full border">
<TabsTrigger
- className="rounded-l-2xl rounded-r-lg duration-300 data-[state=active]:bg-border"
+ className="data-[state=active]:bg-border rounded-l-2xl rounded-r-lg duration-300"
value="reports"
>
Reports
</TabsTrigger>
<TabsTrigger
- className="duration-300 data-[state=active]:bg-border"
+ className="data-[state=active]:bg-border duration-300"
value="challengeReviews"
>
Challenge Reviews
</TabsTrigger>
<TabsTrigger
- className="rounded-l-lg rounded-r-2xl duration-300 data-[state=active]:bg-border"
+ className="data-[state=active]:bg-border rounded-l-lg rounded-r-2xl duration-300"
value="users"
>
Users
</TabsTrigger>
<TabsTrigger
- className="rounded-l-2xl rounded-r-lg duration-300 data-[state=active]:bg-border"
+ className="data-[state=active]:bg-border rounded-l-2xl rounded-r-lg duration-300"
value="images"
>
Images
diff --git a/src/app/admin/report/[id]/actions.tsx b/apps/web/src/app/admin/report/[id]/actions.tsx
similarity index 89%
rename from src/app/admin/report/[id]/actions.tsx
rename to apps/web/src/app/admin/report/[id]/actions.tsx
index 7874bcd0..b6f081aa 100644
--- a/src/app/admin/report/[id]/actions.tsx
+++ b/apps/web/src/app/admin/report/[id]/actions.tsx
@@ -1,6 +1,9 @@
'use client';
-import { type User } from '@prisma/client';
+import { type User } from '@repo/db';
+import { useRouter } from 'next/navigation';
+import { useMemo, useState } from 'react';
+import { type ReportWithInfo } from './report.action';
import {
Dialog,
DialogContent,
@@ -9,8 +12,6 @@ import {
DialogFooter,
DialogHeader,
} from '~/components/ui/dialog';
-import { useRouter } from 'next/navigation';
-import { useMemo, useState } from 'react';
import {
banUser,
deleteComment,
@@ -22,7 +23,6 @@ import { Button } from '~/components/ui/button';
import { Label } from '~/components/ui/label';
import { Textarea } from '~/components/ui/textarea';
import { toast } from '~/components/ui/use-toast';
-import { type ReportWithInfo } from './report.action';
export interface ReportActionsProps {
report: NonNullable<ReportWithInfo>;
@@ -42,13 +42,13 @@ export default function ReportActions({ report }: ReportActionsProps) {
const user = useMemo(() => {
switch (report.type) {
case 'USER':
- return report.user as User;
+ return report.user;
case 'CHALLENGE':
- return report?.challenge?.user as User;
+ return report.challenge?.user;
case 'COMMENT':
- return report?.comment?.user as User;
+ return report.comment?.user;
case 'SOLUTION':
- return report.solution?.user as User;
+ return report.solution?.user;
}
}, [report]);
@@ -84,7 +84,7 @@ export default function ReportActions({ report }: ReportActionsProps) {
async function handleBanUser(userId: string, reportId: number, banReason?: string) {
try {
- await banUser(report.userId as string, reportId, banReason);
+ await banUser(report.userId!, reportId, banReason);
toast({
title: 'Success',
description: <p>User banned successfully.</p>,
@@ -135,17 +135,17 @@ export default function ReportActions({ report }: ReportActionsProps) {
return (
<div className="flex gap-2">
<Button
- variant="destructive"
disabled={report.moderatorId !== null}
onClick={() => setBan(true)}
+ variant="destructive"
>
- Ban @{user.name}
+ Ban @{user?.name ?? 'unknown user'}
</Button>
{report.type === 'CHALLENGE' && (
<Button
disabled={report.moderatorId !== null}
- onClick={() => handleDisableChallenge(report.challengeId as number, report.id)}
+ onClick={() => handleDisableChallenge(report.challengeId!, report.id)}
>
Disable Challenge
</Button>
@@ -154,7 +154,7 @@ export default function ReportActions({ report }: ReportActionsProps) {
{report.type === 'SOLUTION' && (
<Button
disabled={report.moderator !== null}
- onClick={() => handleRemoveSolution(report.solutionId as number)}
+ onClick={() => handleRemoveSolution(report.solutionId!)}
>
Remove Solution
</Button>
@@ -163,7 +163,7 @@ export default function ReportActions({ report }: ReportActionsProps) {
{report.type === 'COMMENT' && (
<Button
disabled={report.moderatorId !== null}
- onClick={() => handleDeleteComment(report.commentId as number, report.id)}
+ onClick={() => handleDeleteComment(report.commentId!, report.id)}
variant="destructive"
>
Delete Comment
@@ -174,7 +174,7 @@ export default function ReportActions({ report }: ReportActionsProps) {
Dismiss Report
</Button>
- <Dialog open={ban} onOpenChange={() => setBan(false)}>
+ <Dialog onOpenChange={() => setBan(false)} open={ban}>
<DialogContent className="sm:max-w-[425px]">
<form
onSubmit={(e) => {
@@ -192,12 +192,12 @@ export default function ReportActions({ report }: ReportActionsProps) {
<Label htmlFor="reason">Reason</Label>
<Textarea
id="reason"
- value={banReason}
onChange={(e) => setBanReason(e.target.value)}
+ value={banReason}
/>
</div>
<DialogFooter>
- <Button type="button" variant="secondary" onClick={() => setBan(false)}>
+ <Button onClick={() => setBan(false)} type="button" variant="secondary">
Cancel
</Button>
<Button type="submit" variant="destructive">
diff --git a/src/app/admin/report/[id]/loading.tsx b/apps/web/src/app/admin/report/[id]/loading.tsx
similarity index 68%
rename from src/app/admin/report/[id]/loading.tsx
rename to apps/web/src/app/admin/report/[id]/loading.tsx
index 0b186900..134a703c 100644
--- a/src/app/admin/report/[id]/loading.tsx
+++ b/apps/web/src/app/admin/report/[id]/loading.tsx
@@ -3,7 +3,7 @@ import { Loader as LoaderIcon } from 'lucide-react';
export default function ReportIdLoading() {
return (
<div className="container text-center">
- <LoaderIcon className="animate-spin duration-1000 ease-in-out spin-in" />
+ <LoaderIcon className="spin-in animate-spin duration-1000 ease-in-out" />
</div>
);
}
diff --git a/src/app/admin/report/[id]/page.tsx b/apps/web/src/app/admin/report/[id]/page.tsx
similarity index 84%
rename from src/app/admin/report/[id]/page.tsx
rename to apps/web/src/app/admin/report/[id]/page.tsx
index a9e92491..66560c97 100644
--- a/src/app/admin/report/[id]/page.tsx
+++ b/apps/web/src/app/admin/report/[id]/page.tsx
@@ -1,15 +1,16 @@
import { AlertCircle, ChevronLeft } from 'lucide-react';
import Link from 'next/link';
import { redirect } from 'next/navigation';
+import ReportActions from './actions';
+import { getReport, type ReportWithInfo } from './report.action';
import { Alert, AlertDescription, AlertTitle } from '~/components/ui/alert';
import { Markdown } from '~/components/ui/markdown';
import Text from '~/components/ui/typography/typography';
-import ReportActions from './actions';
import ChallengeReport from '~/components/report/types/challenge.report';
import CommentReport from '~/components/report/types/comment.report';
import UserReportUi from '~/components/report/types/user.report';
import SolutionReport from '~/components/report/types/solution.report';
-import { getReport, type ReportWithInfo } from './report.action';
+
export interface Props {
params: {
id: string;
@@ -44,7 +45,7 @@ const Report = async function (props: Props) {
break;
}
- const ReportEl = (report: NonNullable<ReportWithInfo>) => {
+ function ReportEl(report: NonNullable<ReportWithInfo>) {
switch (report.type) {
case 'CHALLENGE':
return <ChallengeReport report={report} />;
@@ -55,22 +56,22 @@ const Report = async function (props: Props) {
case 'USER':
return <UserReportUi report={report} />;
}
- };
+ }
return (
<div className="container ">
- <Link href="/admin" className="inline-flex gap-2">
+ <Link className="inline-flex gap-2" href="/admin">
{' '}
<ChevronLeft /> <span>Back to reports</span>
</Link>
- <div className="sticky top-0 z-50 flex items-center justify-between bg-background/80">
- <Text intent="h1" color="primary">
+ <div className="bg-background/80 sticky top-0 z-50 flex items-center justify-between">
+ <Text color="primary" intent="h1">
{title}
</Text>
<ReportActions report={report} />
</div>
- {report?.moderator && (
+ {report.moderator ? (
<Alert className="mt-4" variant="destructive">
<div className="flex items-center gap-2">
<AlertCircle className="h-[1.25rem]" />
@@ -78,22 +79,22 @@ const Report = async function (props: Props) {
</div>
<AlertDescription>
- Moderator @{report?.moderator.name} took action on this case already.
+ Moderator @{report.moderator.name} took action on this case already.
</AlertDescription>
</Alert>
- )}
+ ) : null}
<div className="wrapper mt-4 flex flex-col gap-4 md:flex-row">
<section className="order-2 flex-grow md:order-1">{ReportEl(report)}</section>
<aside className="order-1 flex-shrink-0 md:order-2 md:w-1/3 lg:w-[30%]">
- <Text intent="h2" className="mt-6">
+ <Text className="mt-6" intent="h2">
Information
</Text>
<Text className="mt-4" intent="leading">
Reporter{' '}
- <Link className="text-gray-400 hover:underline" href={`/@${report?.reporter.name}`}>
- @{report?.reporter.name}
+ <Link className="text-gray-400 hover:underline" href={`/@${report.reporter.name}`}>
+ @{report.reporter.name}
</Link>{' '}
says that this challenge includes:{' '}
</Text>
@@ -107,7 +108,7 @@ const Report = async function (props: Props) {
<section className="my-4">
<Text weight="semi">Other comments by reporter</Text>
<div className="mt-4 rounded-lg bg-zinc-200 p-4 text-gray-800 dark:bg-zinc-800 dark:text-white">
- <Markdown>{report?.text || '_No additional comments given_'}</Markdown>
+ <Markdown>{report.text || '_No additional comments given_'}</Markdown>
</div>
</section>
</aside>
diff --git a/src/app/admin/report/[id]/report.action.ts b/apps/web/src/app/admin/report/[id]/report.action.ts
similarity index 96%
rename from src/app/admin/report/[id]/report.action.ts
rename to apps/web/src/app/admin/report/[id]/report.action.ts
index f1806284..a68c1fd9 100644
--- a/src/app/admin/report/[id]/report.action.ts
+++ b/apps/web/src/app/admin/report/[id]/report.action.ts
@@ -1,4 +1,4 @@
-import { prisma } from '~/server/db';
+import { prisma } from '@repo/db';
export async function getReports() {
const challengeReports = await prisma.report.findMany({
@@ -29,7 +29,7 @@ export type ReportWithInfo = Awaited<ReturnType<typeof getReport>>;
export async function getReport(idNum: number) {
return prisma.report.findFirst({
where: {
- id: +idNum,
+ id: Number(idNum),
},
orderBy: {
type: 'asc',
diff --git a/apps/web/src/app/api/auth/[...nextauth]/route.ts b/apps/web/src/app/api/auth/[...nextauth]/route.ts
new file mode 100644
index 00000000..42e677ab
--- /dev/null
+++ b/apps/web/src/app/api/auth/[...nextauth]/route.ts
@@ -0,0 +1,6 @@
+import { authOptions } from '@repo/auth/server';
+import NextAuth from '@repo/auth/next-auth';
+
+const handler = NextAuth(authOptions);
+
+export { handler as GET, handler as POST };
diff --git a/src/app/api/challenge-reviews/route.ts b/apps/web/src/app/api/challenge-reviews/route.ts
similarity index 95%
rename from src/app/api/challenge-reviews/route.ts
rename to apps/web/src/app/api/challenge-reviews/route.ts
index 36586f0f..bb150434 100644
--- a/src/app/api/challenge-reviews/route.ts
+++ b/apps/web/src/app/api/challenge-reviews/route.ts
@@ -1,5 +1,5 @@
import { NextResponse } from 'next/server';
-import { prisma } from '~/server/db';
+import { prisma } from '@repo/db';
export async function GET(request: Request) {
const { searchParams } = new URL(request.url);
diff --git a/src/app/api/lol/route.ts b/apps/web/src/app/api/lol/route.ts
similarity index 100%
rename from src/app/api/lol/route.ts
rename to apps/web/src/app/api/lol/route.ts
diff --git a/src/app/api/submissions/[id]/route.ts b/apps/web/src/app/api/submissions/[id]/route.ts
similarity index 88%
rename from src/app/api/submissions/[id]/route.ts
rename to apps/web/src/app/api/submissions/[id]/route.ts
index 7ce11cc4..62071ee6 100644
--- a/src/app/api/submissions/[id]/route.ts
+++ b/apps/web/src/app/api/submissions/[id]/route.ts
@@ -1,5 +1,5 @@
import { NextResponse } from 'next/server';
-import { prisma } from '~/server/db';
+import { prisma } from '@repo/db';
export async function GET(request: Request, { params }: { params: { id: string } }) {
const submission = await prisma.submission.findFirst({
diff --git a/src/app/api/uploadthing/core.ts b/apps/web/src/app/api/uploadthing/core.ts
similarity index 58%
rename from src/app/api/uploadthing/core.ts
rename to apps/web/src/app/api/uploadthing/core.ts
index e23404c9..e8532d52 100644
--- a/src/app/api/uploadthing/core.ts
+++ b/apps/web/src/app/api/uploadthing/core.ts
@@ -1,34 +1,38 @@
import { createUploadthing, type FileRouter } from 'uploadthing/next';
-import { prisma } from '~/server/db';
-import { getServerSession } from 'next-auth';
-import { authOptions } from '~/server/auth';
+import { getServerAuthSession, authOptions } from '@repo/auth/server';
+import { prisma } from '@repo/db';
const f = createUploadthing();
-type ValidFileTypes = 'image' | 'video' | 'audio' | 'blob';
+type ValidFileTypes = 'audio' | 'blob' | 'image' | 'video';
type FileRouterInput =
- | ValidFileTypes[]
- | {
- // @ts-ignore fixed by typehero god
- [key: ValidFileTypes]: {
- maxFileSize?: string;
- maxFileCount?: number;
- };
- };
+ | Record<
+ ValidFileTypes,
+ {
+ maxFileSize: '4MB';
+ maxFileCount: number;
+ }
+ >
+ | ValidFileTypes[];
// control the file sizes for all image types
-const DEFAULT_IMAGE_UPLOAD_PARAMS: FileRouterInput = { maxFileSize: '4MB', maxFiles: 1 };
+const DEFAULT_IMAGE_UPLOAD_PARAMS: FileRouterInput = {
+ audio: { maxFileSize: '4MB', maxFileCount: 1 },
+ blob: { maxFileSize: '4MB', maxFileCount: 1 },
+ image: { maxFileSize: '4MB', maxFileCount: 1 },
+ video: { maxFileSize: '4MB', maxFileCount: 1 },
+};
// FileRouter for your app, can contain multiple FileRoutes
export const ourFileRouter = {
// Define as many FileRoutes as you like, each with a unique routeSlug
imageUploader: f({
- 'image/png': DEFAULT_IMAGE_UPLOAD_PARAMS,
- 'image/jpeg': DEFAULT_IMAGE_UPLOAD_PARAMS,
+ 'image/png': DEFAULT_IMAGE_UPLOAD_PARAMS.image,
+ 'image/jpeg': DEFAULT_IMAGE_UPLOAD_PARAMS.image,
})
// Set permissions and file types for this FileRoute
.middleware(async () => {
- const session = await getServerSession(authOptions);
+ const session = await getServerAuthSession();
// If you throw, the user will not be able to upload
if (!session?.user.id) throw new Error('Unauthorized');
diff --git a/src/app/api/uploadthing/route.ts b/apps/web/src/app/api/uploadthing/route.ts
similarity index 99%
rename from src/app/api/uploadthing/route.ts
rename to apps/web/src/app/api/uploadthing/route.ts
index 56cb5164..82d42abc 100644
--- a/src/app/api/uploadthing/route.ts
+++ b/apps/web/src/app/api/uploadthing/route.ts
@@ -1,5 +1,4 @@
import { createNextRouteHandler } from 'uploadthing/next';
-
import { ourFileRouter } from './core';
// Export routes for Next App Router
diff --git a/src/app/challenge/[id]/getChallengeRouteData.ts b/apps/web/src/app/challenge/[id]/getChallengeRouteData.ts
similarity index 86%
rename from src/app/challenge/[id]/getChallengeRouteData.ts
rename to apps/web/src/app/challenge/[id]/getChallengeRouteData.ts
index fb93ae6d..136e3670 100644
--- a/src/app/challenge/[id]/getChallengeRouteData.ts
+++ b/apps/web/src/app/challenge/[id]/getChallengeRouteData.ts
@@ -1,7 +1,7 @@
'use server';
-import { type Session } from 'next-auth';
+import { type Session } from '@repo/auth/server';
import { cache } from 'react';
-import { prisma } from '~/server/db';
+import { prisma } from '@repo/db';
export type ChallengeRouteData = NonNullable<Awaited<ReturnType<typeof getChallengeRouteData>>>;
@@ -9,7 +9,7 @@ export type ChallengeRouteData = NonNullable<Awaited<ReturnType<typeof getChalle
export const getChallengeRouteData = cache((id: string, session: Session | null) => {
return prisma.challenge.findFirstOrThrow({
where: {
- id: +id,
+ id: Number(id),
status: 'ACTIVE',
},
include: {
diff --git a/src/app/challenge/[id]/layout.tsx b/apps/web/src/app/challenge/[id]/layout.tsx
similarity index 93%
rename from src/app/challenge/[id]/layout.tsx
rename to apps/web/src/app/challenge/[id]/layout.tsx
index 0acd39d4..edaa69ad 100644
--- a/src/app/challenge/[id]/layout.tsx
+++ b/apps/web/src/app/challenge/[id]/layout.tsx
@@ -1,9 +1,9 @@
-import { ChallengeLayout } from '~/components/challenge/challenge-layout';
-import { ForceRenderUntilClient } from '~/components/ui/force-render-until-client';
-import { getServerAuthSession } from '~/server/auth';
+import { getServerAuthSession } from '@repo/auth/server';
import { getChallengeRouteData } from './getChallengeRouteData';
import { LeftWrapper } from './left-wrapper';
import { Wrapper } from './wrapper';
+import { ChallengeLayout } from '~/components/challenge/challenge-layout';
+import { ForceRenderUntilClient } from '~/components/ui/force-render-until-client';
export default async function LayoutData({
children,
diff --git a/src/app/challenge/[id]/left-wrapper.tsx b/apps/web/src/app/challenge/[id]/left-wrapper.tsx
similarity index 79%
rename from src/app/challenge/[id]/left-wrapper.tsx
rename to apps/web/src/app/challenge/[id]/left-wrapper.tsx
index efc80c9b..66c3e8c0 100644
--- a/src/app/challenge/[id]/left-wrapper.tsx
+++ b/apps/web/src/app/challenge/[id]/left-wrapper.tsx
@@ -4,7 +4,7 @@ import { usePathname, useRouter } from 'next/navigation';
import { useMemo, type ReactNode } from 'react';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '~/components/ui/tabs';
-type Tab = 'description' | 'submissions' | 'solutions';
+type Tab = 'description' | 'solutions' | 'submissions';
interface Props {
children: ReactNode;
challengeId: number;
@@ -28,31 +28,31 @@ export function LeftWrapper({ challengeId, children }: Props) {
}, [pathname]);
return (
- <Tabs defaultValue={selectedTab} className="flex h-full w-full flex-col overflow-hidden">
- <TabsList className="sticky top-0 z-10 grid h-auto w-full grid-cols-3 rounded-none rounded-tl-2xl rounded-tr-xl border-b border-zinc-300 bg-background/90 backdrop-blur-sm dark:border-zinc-700 dark:bg-muted/90">
+ <Tabs className="flex h-full w-full flex-col overflow-hidden" defaultValue={selectedTab}>
+ <TabsList className="bg-background/90 dark:bg-muted/90 sticky top-0 z-10 grid h-auto w-full grid-cols-3 rounded-none rounded-tl-2xl rounded-tr-xl border-b border-zinc-300 backdrop-blur-sm dark:border-zinc-700">
<TabsTrigger
- value="description"
className="rounded-md rounded-tl-xl duration-300 data-[state=active]:bg-neutral-200 dark:data-[state=active]:bg-neutral-700"
onClick={() => router.push(`/challenge/${challengeId}`)}
+ value="description"
>
Description
</TabsTrigger>
<TabsTrigger
- value="solutions"
className="rounded-md duration-300 data-[state=active]:bg-neutral-200 dark:data-[state=active]:bg-neutral-700"
onClick={() => router.push(`/challenge/${challengeId}/solutions`)}
+ value="solutions"
>
Solutions
</TabsTrigger>
<TabsTrigger
- value="submissions"
className="rounded-md rounded-tr-lg duration-300 data-[state=active]:bg-neutral-200 dark:data-[state=active]:bg-neutral-700"
onClick={() => router.push(`/challenge/${challengeId}/submissions`)}
+ value="submissions"
>
Submissions
</TabsTrigger>
</TabsList>
- <TabsContent value={selectedTab} className="mt-0 h-[calc(100%_-_41px)]">
+ <TabsContent className="mt-0 h-[calc(100%_-_41px)]" value={selectedTab}>
{children}
</TabsContent>
</Tabs>
diff --git a/src/app/challenge/[id]/loading.tsx b/apps/web/src/app/challenge/[id]/loading.tsx
similarity index 100%
rename from src/app/challenge/[id]/loading.tsx
rename to apps/web/src/app/challenge/[id]/loading.tsx
diff --git a/src/app/challenge/[id]/page.tsx b/apps/web/src/app/challenge/[id]/page.tsx
similarity index 85%
rename from src/app/challenge/[id]/page.tsx
rename to apps/web/src/app/challenge/[id]/page.tsx
index 3d1abc19..adaaefde 100644
--- a/src/app/challenge/[id]/page.tsx
+++ b/apps/web/src/app/challenge/[id]/page.tsx
@@ -1,8 +1,8 @@
import { notFound } from 'next/navigation';
+import { getServerAuthSession } from '@repo/auth/server';
+import { getChallengeRouteData } from './getChallengeRouteData';
import { Comments } from '~/components/challenge/comments';
import { Description } from '~/components/challenge/description';
-import { getServerAuthSession } from '~/server/auth';
-import { getChallengeRouteData } from './getChallengeRouteData';
interface Props {
params: {
@@ -20,7 +20,7 @@ export default async function Challenges({ params: { id } }: Props) {
return (
<div className="relative h-full">
- <Description challenge={challenge}></Description>
+ <Description challenge={challenge} />
<Comments rootId={challenge.id} type="CHALLENGE" />
</div>
);
diff --git a/src/app/challenge/[id]/solutions/[solutionId]/page.tsx b/apps/web/src/app/challenge/[id]/solutions/[solutionId]/page.tsx
similarity index 88%
rename from src/app/challenge/[id]/solutions/[solutionId]/page.tsx
rename to apps/web/src/app/challenge/[id]/solutions/[solutionId]/page.tsx
index b1be1eea..3d81045c 100644
--- a/src/app/challenge/[id]/solutions/[solutionId]/page.tsx
+++ b/apps/web/src/app/challenge/[id]/solutions/[solutionId]/page.tsx
@@ -1,5 +1,5 @@
+import { prisma } from '@repo/db';
import { SolutionDetails } from '~/components/challenge/solutions/solution-detail';
-import { prisma } from '~/server/db';
interface Props {
params: {
@@ -18,7 +18,7 @@ export default async function SolutionPage({ params: { solutionId } }: Props) {
async function getSolution(solutionId: string) {
const solution = await prisma.sharedSolution.findFirst({
where: {
- id: +solutionId,
+ id: Number(solutionId),
},
include: {
challenge: true,
@@ -29,7 +29,7 @@ async function getSolution(solutionId: string) {
const f = await prisma.comment.findMany({
where: {
rootType: 'SOLUTION',
- rootSolutionId: +solutionId,
+ rootSolutionId: Number(solutionId),
},
});
diff --git a/src/app/challenge/[id]/solutions/loading.tsx b/apps/web/src/app/challenge/[id]/solutions/loading.tsx
similarity index 99%
rename from src/app/challenge/[id]/solutions/loading.tsx
rename to apps/web/src/app/challenge/[id]/solutions/loading.tsx
index a9a722a8..e07889a0 100644
--- a/src/app/challenge/[id]/solutions/loading.tsx
+++ b/apps/web/src/app/challenge/[id]/solutions/loading.tsx
@@ -1,4 +1,5 @@
import { SolutionsSkeleton } from '~/components/challenge/solutions/solution-skeleton';
+
export default function Loading() {
return <SolutionsSkeleton />;
}
diff --git a/src/app/challenge/[id]/solutions/page.tsx b/apps/web/src/app/challenge/[id]/solutions/page.tsx
similarity index 87%
rename from src/app/challenge/[id]/solutions/page.tsx
rename to apps/web/src/app/challenge/[id]/solutions/page.tsx
index 41054180..6c917370 100644
--- a/src/app/challenge/[id]/solutions/page.tsx
+++ b/apps/web/src/app/challenge/[id]/solutions/page.tsx
@@ -1,8 +1,8 @@
-import type { Session } from 'next-auth';
+import type { Session } from '@repo/auth/server';
import { notFound } from 'next/navigation';
+import { getServerAuthSession } from '@repo/auth/server';
+import { prisma } from '@repo/db';
import { Solutions } from '~/components/challenge/solutions';
-import { getServerAuthSession } from '~/server/auth';
-import { prisma } from '~/server/db';
interface Props {
params: {
@@ -24,7 +24,7 @@ export default async function SolutionPage({ params: { id } }: Props) {
export type ChallengeSolutionsRouteData = NonNullable<Awaited<ReturnType<typeof getSolutionsData>>>;
export async function getSolutionsData(challengeId: string, session: Session | null) {
const data = await prisma.challenge.findFirst({
- where: { id: +challengeId },
+ where: { id: Number(challengeId) },
select: {
id: true,
// we just want their most recent solution
diff --git a/src/app/wizard/error.tsx b/apps/web/src/app/challenge/[id]/submissions/[submissionId]/error.tsx
similarity index 93%
rename from src/app/wizard/error.tsx
rename to apps/web/src/app/challenge/[id]/submissions/[submissionId]/error.tsx
index 4b0d0e4b..44ec68f9 100644
--- a/src/app/wizard/error.tsx
+++ b/apps/web/src/app/challenge/[id]/submissions/[submissionId]/error.tsx
@@ -6,7 +6,7 @@ import Text from '~/components/ui/typography/typography';
export default function Error({ reset }: { reset: () => void }) {
return (
<div className="container flex h-full flex-col items-center justify-center">
- <Text intent="h2" className="mb-6">
+ <Text className="mb-6" intent="h2">
Something went wrong!
</Text>
<Button
diff --git a/src/app/challenge/[id]/submissions/[submissionId]/page.tsx b/apps/web/src/app/challenge/[id]/submissions/[submissionId]/page.tsx
similarity index 77%
rename from src/app/challenge/[id]/submissions/[submissionId]/page.tsx
rename to apps/web/src/app/challenge/[id]/submissions/[submissionId]/page.tsx
index a8d06314..8f20ff69 100644
--- a/src/app/challenge/[id]/submissions/[submissionId]/page.tsx
+++ b/apps/web/src/app/challenge/[id]/submissions/[submissionId]/page.tsx
@@ -1,8 +1,8 @@
import { notFound } from 'next/navigation';
-import { getServerAuthSession } from '~/server/auth';
-
-import { Submissions } from '~/components/challenge/submissions';
+import { getServerAuthSession } from '@repo/auth/server';
import { getChallengeSubmissions } from '../getChallengeSubmissions';
+import { Submissions } from '~/components/challenge/submissions';
+
interface Props {
params: {
id: string;
@@ -14,7 +14,9 @@ export default async function SubmissionPage({ params: { id, submissionId } }: P
const session = await getServerAuthSession();
const submissions = await getChallengeSubmissions(session?.user.id ?? '', id);
- const isValidSubmission = submissions?.some((submission) => submission.id === +submissionId);
+ const isValidSubmission = submissions.some(
+ (submission) => submission.id === Number(submissionId),
+ );
if (!isValidSubmission) {
return notFound();
diff --git a/src/app/challenge/[id]/submissions/getChallengeSubmissions.ts b/apps/web/src/app/challenge/[id]/submissions/getChallengeSubmissions.ts
similarity index 80%
rename from src/app/challenge/[id]/submissions/getChallengeSubmissions.ts
rename to apps/web/src/app/challenge/[id]/submissions/getChallengeSubmissions.ts
index bace4086..839cd22e 100644
--- a/src/app/challenge/[id]/submissions/getChallengeSubmissions.ts
+++ b/apps/web/src/app/challenge/[id]/submissions/getChallengeSubmissions.ts
@@ -1,10 +1,10 @@
import { cache } from 'react';
-import { prisma } from '~/server/db';
+import { prisma } from '@repo/db';
export type ChallengeSubmissions = NonNullable<Awaited<ReturnType<typeof getChallengeSubmissions>>>;
export const getChallengeSubmissions = cache(async (userId: string, challengeId: string) => {
const solutions = await prisma.submission.findMany({
- where: { challengeId: +challengeId, userId },
+ where: { challengeId: Number(challengeId), userId },
orderBy: [
{
createdAt: 'desc',
diff --git a/src/app/challenge/[id]/submissions/loading.tsx b/apps/web/src/app/challenge/[id]/submissions/loading.tsx
similarity index 100%
rename from src/app/challenge/[id]/submissions/loading.tsx
rename to apps/web/src/app/challenge/[id]/submissions/loading.tsx
diff --git a/src/app/challenge/[id]/submissions/page.tsx b/apps/web/src/app/challenge/[id]/submissions/page.tsx
similarity index 90%
rename from src/app/challenge/[id]/submissions/page.tsx
rename to apps/web/src/app/challenge/[id]/submissions/page.tsx
index f1f24482..eb7859fe 100644
--- a/src/app/challenge/[id]/submissions/page.tsx
+++ b/apps/web/src/app/challenge/[id]/submissions/page.tsx
@@ -1,7 +1,7 @@
import { notFound } from 'next/navigation';
-import { Submissions } from '~/components/challenge/submissions';
-import { getServerAuthSession } from '~/server/auth';
+import { getServerAuthSession } from '@repo/auth/server';
import { getChallengeSubmissions } from './getChallengeSubmissions';
+import { Submissions } from '~/components/challenge/submissions';
interface Props {
params: {
diff --git a/src/app/challenge/[id]/wrapper.tsx b/apps/web/src/app/challenge/[id]/wrapper.tsx
similarity index 100%
rename from src/app/challenge/[id]/wrapper.tsx
rename to apps/web/src/app/challenge/[id]/wrapper.tsx
diff --git a/src/app/challenge/error.tsx b/apps/web/src/app/challenge/error.tsx
similarity index 92%
rename from src/app/challenge/error.tsx
rename to apps/web/src/app/challenge/error.tsx
index 2712ca8d..b03cb063 100644
--- a/src/app/challenge/error.tsx
+++ b/apps/web/src/app/challenge/error.tsx
@@ -7,7 +7,7 @@ import Text from '~/components/ui/typography/typography';
export default function Error() {
return (
<div className="container flex h-full flex-col items-center justify-center">
- <Text intent="h2" className="mb-6">
+ <Text className="mb-6" intent="h2">
Uh oh! We couldn&apos;t find the challenge you were looking for.
</Text>
<Link href="/explore">
diff --git a/src/app/explore/page.tsx b/apps/web/src/app/explore/page.tsx
similarity index 100%
rename from src/app/explore/page.tsx
rename to apps/web/src/app/explore/page.tsx
diff --git a/src/app/layout.tsx b/apps/web/src/app/layout.tsx
similarity index 92%
rename from src/app/layout.tsx
rename to apps/web/src/app/layout.tsx
index 30dbb5d4..4c229fb9 100644
--- a/src/app/layout.tsx
+++ b/apps/web/src/app/layout.tsx
@@ -1,11 +1,10 @@
-import { Providers } from './providers';
-
import '../styles/globals.css';
import { Inter } from 'next/font/google';
+import type { Metadata } from 'next';
+import { Providers } from './providers';
import { Navigation } from '~/components/ui/navigation';
import { Toaster } from '~/components/ui/toaster';
-import type { Metadata } from 'next';
const inter = Inter({ subsets: ['latin'] });
@@ -33,14 +32,14 @@ export async function generateMetadata(): Promise<Metadata> {
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
- <html suppressHydrationWarning>
+ <html suppressHydrationWarning lang="en">
<head>
<title>Type Hero</title>
<meta
- name="description"
content="Level up your typescript skills with interactive exercises"
+ name="description"
/>
- <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
+ <link href="/favicon.svg" rel="icon" type="image/svg+xml" />
</head>
<body className={`${inter.className} flex flex-col`}>
<Providers>
diff --git a/src/app/page.tsx b/apps/web/src/app/page.tsx
similarity index 92%
rename from src/app/page.tsx
rename to apps/web/src/app/page.tsx
index 4f9dc546..b10121da 100644
--- a/src/app/page.tsx
+++ b/apps/web/src/app/page.tsx
@@ -12,10 +12,10 @@ export default async function Index() {
<Head>
<title>Typehero</title>
<meta
- name="description"
content="Level up your typescript skills with interactive exercises"
+ name="description"
/>
- <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
+ <link href="/favicon.svg" rel="icon" type="image/svg+xml" />
</Head>
<BalancerProvider>
<Hero />
diff --git a/src/app/providers.tsx b/apps/web/src/app/providers.tsx
similarity index 91%
rename from src/app/providers.tsx
rename to apps/web/src/app/providers.tsx
index e0e8fdec..d03e8b05 100644
--- a/src/app/providers.tsx
+++ b/apps/web/src/app/providers.tsx
@@ -1,9 +1,9 @@
'use client';
-import { SessionProvider } from 'next-auth/react';
+import { SessionProvider } from '@repo/auth/react';
import { ThemeProvider } from 'next-themes';
-import { TooltipProvider } from '~/components/ui/tooltip';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
+import { TooltipProvider } from '~/components/ui/tooltip';
interface Props {
children: React.ReactNode;
diff --git a/src/app/settings/error.tsx b/apps/web/src/app/settings/error.tsx
similarity index 80%
rename from src/app/settings/error.tsx
rename to apps/web/src/app/settings/error.tsx
index 76d24fd6..d42f3afb 100644
--- a/src/app/settings/error.tsx
+++ b/apps/web/src/app/settings/error.tsx
@@ -1,11 +1,11 @@
'use client';
-const ErrorBounds = () => {
+function ErrorBounds() {
return (
<div>
<h1>404</h1>
<p>Page not found</p>
</div>
);
-};
+}
export default ErrorBounds;
diff --git a/src/app/settings/page.tsx b/apps/web/src/app/settings/page.tsx
similarity index 80%
rename from src/app/settings/page.tsx
rename to apps/web/src/app/settings/page.tsx
index 515fe842..55e602ea 100644
--- a/src/app/settings/page.tsx
+++ b/apps/web/src/app/settings/page.tsx
@@ -1,13 +1,13 @@
-import { getServerSession } from 'next-auth';
+import { getServerAuthSession } from '@repo/auth/server';
+import { prisma } from '@repo/db';
import { Settings } from '~/components/settings';
-import { authOptions } from '~/server/auth';
-import { prisma } from '~/server/db';
+
export default async function SettingsPage() {
// NOTE: what's weird about this API is that it should have the
// param to be required but it's not for some reason
- const session = await getServerSession(authOptions);
+ const session = await getServerAuthSession();
- if (!session?.user || !session?.user.name) {
+ if (!session?.user || !session.user.name) {
return null;
}
diff --git a/src/app/waitlist/page.tsx b/apps/web/src/app/waitlist/page.tsx
similarity index 100%
rename from src/app/waitlist/page.tsx
rename to apps/web/src/app/waitlist/page.tsx
diff --git a/src/app/challenge/[id]/submissions/[submissionId]/error.tsx b/apps/web/src/app/wizard/error.tsx
similarity index 93%
rename from src/app/challenge/[id]/submissions/[submissionId]/error.tsx
rename to apps/web/src/app/wizard/error.tsx
index 4b0d0e4b..44ec68f9 100644
--- a/src/app/challenge/[id]/submissions/[submissionId]/error.tsx
+++ b/apps/web/src/app/wizard/error.tsx
@@ -6,7 +6,7 @@ import Text from '~/components/ui/typography/typography';
export default function Error({ reset }: { reset: () => void }) {
return (
<div className="container flex h-full flex-col items-center justify-center">
- <Text intent="h2" className="mb-6">
+ <Text className="mb-6" intent="h2">
Something went wrong!
</Text>
<Button
diff --git a/src/app/wizard/page.tsx b/apps/web/src/app/wizard/page.tsx
similarity index 73%
rename from src/app/wizard/page.tsx
rename to apps/web/src/app/wizard/page.tsx
index 19ebfedf..87ac9090 100644
--- a/src/app/wizard/page.tsx
+++ b/apps/web/src/app/wizard/page.tsx
@@ -1,10 +1,9 @@
-import { getServerSession } from 'next-auth';
+import { getServerAuthSession } from '@repo/auth/server';
import { TypographyH2 } from '~/components/ui/typography/h2';
import { Wizard } from '~/components/wizard';
-import { authOptions } from '~/server/auth';
export default async function Page() {
- const session = await getServerSession(authOptions);
+ const session = await getServerAuthSession();
if (!session?.user) {
return (
diff --git a/src/assets/images/background_pattern.webp b/apps/web/src/assets/images/background_pattern.webp
similarity index 100%
rename from src/assets/images/background_pattern.webp
rename to apps/web/src/assets/images/background_pattern.webp
diff --git a/src/assets/images/background_pattern_flipped.webp b/apps/web/src/assets/images/background_pattern_flipped.webp
similarity index 100%
rename from src/assets/images/background_pattern_flipped.webp
rename to apps/web/src/assets/images/background_pattern_flipped.webp
diff --git a/src/assets/images/feature_card_challenge_dark.png b/apps/web/src/assets/images/feature_card_challenge_dark.png
similarity index 100%
rename from src/assets/images/feature_card_challenge_dark.png
rename to apps/web/src/assets/images/feature_card_challenge_dark.png
diff --git a/src/assets/images/feature_card_challenge_light.png b/apps/web/src/assets/images/feature_card_challenge_light.png
similarity index 100%
rename from src/assets/images/feature_card_challenge_light.png
rename to apps/web/src/assets/images/feature_card_challenge_light.png
diff --git a/src/assets/images/waitlist-bg.webp b/apps/web/src/assets/images/waitlist-bg.webp
similarity index 100%
rename from src/assets/images/waitlist-bg.webp
rename to apps/web/src/assets/images/waitlist-bg.webp
diff --git a/src/components/admin/admin.actions.tsx b/apps/web/src/components/admin/admin.actions.tsx
similarity index 90%
rename from src/components/admin/admin.actions.tsx
rename to apps/web/src/components/admin/admin.actions.tsx
index 722c59be..39f59642 100644
--- a/src/components/admin/admin.actions.tsx
+++ b/apps/web/src/components/admin/admin.actions.tsx
@@ -1,15 +1,14 @@
'use server';
-import { type Report, type Prisma } from '@prisma/client';
-import { getServerAuthSession } from '~/server/auth';
-import { prisma } from '~/server/db';
+import { type Report, type Prisma } from '@repo/db';
+import { prisma } from '@repo/db';
+import { getServerAuthSession } from '@repo/auth/server';
// FML this was obnoxious to do
-export type ChallengeInfo = { type: 'CHALLENGE' } & Omit<
- Report,
- 'id' | 'userId' | 'type' | 'status'
->;
-export type UserInfo = { type: 'USER' } & Omit<Report, 'id' | 'challengeId' | 'type' | 'status'>;
+export type ChallengeInfo = Omit<Report, 'id' | 'status' | 'type' | 'userId'> & {
+ type: 'CHALLENGE';
+};
+export type UserInfo = Omit<Report, 'challengeId' | 'id' | 'status' | 'type'> & { type: 'USER' };
/**
*
@@ -159,12 +158,12 @@ export async function banUser(userId: string, reportId: number, banReason?: stri
},
data: {
status: 'BANNED',
- banReason: banReason,
+ banReason,
},
}),
prisma.challenge.updateMany({
where: {
- userId: userId,
+ userId,
},
data: {
status: 'BANNED',
@@ -172,7 +171,7 @@ export async function banUser(userId: string, reportId: number, banReason?: stri
}),
prisma.session.deleteMany({
where: {
- userId: userId,
+ userId,
},
}),
prisma.report.update({
@@ -187,12 +186,12 @@ export async function banUser(userId: string, reportId: number, banReason?: stri
}),
prisma.comment.updateMany({
where: {
- userId: userId,
+ userId,
},
data: {
visible: false,
- }
- })
+ },
+ }),
]);
}
/**
@@ -205,7 +204,7 @@ export async function unbanUser(userId: string) {
return prisma.$transaction([
prisma.challenge.updateMany({
where: {
- userId: userId,
+ userId,
},
data: {
status: 'ACTIVE',
@@ -239,7 +238,6 @@ export async function getChallenge(id: number) {
});
}
-
/**
* The function fetches the last 100 uploaded images.
*/
@@ -248,6 +246,6 @@ export async function getUploadedImages() {
take: 100,
orderBy: {
createdAt: 'asc',
- }
+ },
});
}
diff --git a/src/components/admin/challenge-reviews/columns.tsx b/apps/web/src/components/admin/challenge-reviews/columns.tsx
similarity index 91%
rename from src/components/admin/challenge-reviews/columns.tsx
rename to apps/web/src/components/admin/challenge-reviews/columns.tsx
index 29ed7a7f..9cc3640b 100644
--- a/src/components/admin/challenge-reviews/columns.tsx
+++ b/apps/web/src/components/admin/challenge-reviews/columns.tsx
@@ -1,6 +1,6 @@
'use client';
-import type { Challenge } from '@prisma/client';
+import type { Challenge } from '@repo/db';
import { type ColumnDef } from '@tanstack/react-table';
export const columns: ColumnDef<Challenge>[] = [
diff --git a/src/components/admin/challenge-reviews/data-table.tsx b/apps/web/src/components/admin/challenge-reviews/data-table.tsx
similarity index 93%
rename from src/components/admin/challenge-reviews/data-table.tsx
rename to apps/web/src/components/admin/challenge-reviews/data-table.tsx
index 1314e8fd..dd8a9c2c 100644
--- a/src/components/admin/challenge-reviews/data-table.tsx
+++ b/apps/web/src/components/admin/challenge-reviews/data-table.tsx
@@ -1,6 +1,6 @@
'use client';
-import type { Challenge } from '@prisma/client';
+import type { Challenge } from '@repo/db';
import { useQuery } from '@tanstack/react-query';
import {
type PaginationState,
@@ -13,7 +13,6 @@ import { useRouter } from 'next/navigation';
import { useMemo, useState } from 'react';
import type { ChallengeReviewData } from '~/app/api/challenge-reviews/route';
import { Button } from '~/components/ui/button';
-
import {
Table,
TableBody,
@@ -53,9 +52,9 @@ export function DataTable({ columns }: Props) {
);
const table = useReactTable({
- data: data?.data?.[1] ?? [],
+ data: data.data?.[1] ?? [],
columns,
- pageCount: data?.data?.[0] ?? -1,
+ pageCount: data.data?.[0] ?? -1,
getCoreRowModel: getCoreRowModel(),
state: {
pagination,
@@ -85,11 +84,11 @@ export function DataTable({ columns }: Props) {
))}
</TableHeader>
<TableBody>
- {table.getRowModel().rows?.length ? (
+ {table.getRowModel().rows.length ? (
table.getRowModel().rows.map((row) => (
<TableRow
- key={row.id}
data-state={row.getIsSelected() && 'selected'}
+ key={row.id}
onClick={() => router.push(`/admin/challenge/${row.original.id}`)}
>
{row.getVisibleCells().map((cell) => (
@@ -101,7 +100,7 @@ export function DataTable({ columns }: Props) {
))
) : (
<TableRow>
- <TableCell colSpan={columns.length} className="h-24 text-center">
+ <TableCell className="h-24 text-center" colSpan={columns.length}>
No results.
</TableCell>
</TableRow>
@@ -117,18 +116,18 @@ export function DataTable({ columns }: Props) {
</div>
<div className="space-x-2">
<Button
- variant="outline"
- size="sm"
- onClick={() => table.previousPage()}
disabled={!table.getCanPreviousPage()}
+ onClick={() => table.previousPage()}
+ size="sm"
+ variant="outline"
>
Previous
</Button>
<Button
- variant="outline"
- size="sm"
- onClick={() => table.nextPage()}
disabled={!table.getCanNextPage()}
+ onClick={() => table.nextPage()}
+ size="sm"
+ variant="outline"
>
Next
</Button>
diff --git a/src/components/admin/challenge-reviews/index.tsx b/apps/web/src/components/admin/challenge-reviews/index.tsx
similarity index 100%
rename from src/components/admin/challenge-reviews/index.tsx
rename to apps/web/src/components/admin/challenge-reviews/index.tsx
diff --git a/src/components/admin/images.tsx b/apps/web/src/components/admin/images.tsx
similarity index 89%
rename from src/components/admin/images.tsx
rename to apps/web/src/components/admin/images.tsx
index ee095231..50e1f765 100644
--- a/src/components/admin/images.tsx
+++ b/apps/web/src/components/admin/images.tsx
@@ -8,21 +8,21 @@ interface ImageUploadProps {
data: ImageUpload;
}
-export const ImageUploadReport = ({ data }: ImageUploadProps) => {
+export function ImageUploadReport({ data }: ImageUploadProps) {
return (
<div className="flex flex-col gap-2">
<div>
{data.map((image) => (
<Image
+ alt={`${image.id}`}
+ className="rounded-lg"
+ height="300"
key={image.id}
src={image.url}
width="300"
- height="300"
- alt={`${image.id}`}
- className="rounded-lg"
/>
))}
</div>
</div>
);
-};
+}
diff --git a/src/components/admin/reports.tsx b/apps/web/src/components/admin/reports.tsx
similarity index 92%
rename from src/components/admin/reports.tsx
rename to apps/web/src/components/admin/reports.tsx
index 5e008620..993fb697 100644
--- a/src/components/admin/reports.tsx
+++ b/apps/web/src/components/admin/reports.tsx
@@ -2,6 +2,8 @@
import { useInfiniteQuery } from '@tanstack/react-query';
import { useRouter } from 'next/navigation';
import React from 'react';
+import { getInfiniteReports, type InfiniteReports } from '../report/report.action';
+import Pagination from '../ui/pagination';
import {
Table,
TableBody,
@@ -10,8 +12,6 @@ import {
TableHeader,
TableRow,
} from '~/components/ui/table';
-import { getInfiniteReports, type InfiniteReports } from '../report/report.action';
-import Pagination from '../ui/pagination';
export interface ReportsProps {
initialReports: InfiniteReports;
@@ -35,7 +35,7 @@ export function Reports({ initialReports }: ReportsProps) {
a,
b,
- ) => (a?.metadata.hasNextPage ? a?.metadata?.lastCursor : false),
+ ) => (a.metadata.hasNextPage ? a.metadata.lastCursor : false),
initialData: {
pages: [initialReports],
pageParams: [null],
@@ -63,7 +63,7 @@ export function Reports({ initialReports }: ReportsProps) {
</TableRow>
</TableHeader>
<TableBody>
- {data?.pages?.[page]?.data.map((tr) => (
+ {data?.pages[page]?.data.map((tr) => (
<TableRow key={`report-${tr.id}`} onClick={() => router.push(`/admin/report/${tr.id}`)}>
<TableCell>{tr.type}</TableCell>
<TableCell>{tr.reporter.name}</TableCell>
@@ -72,7 +72,7 @@ export function Reports({ initialReports }: ReportsProps) {
<TableCell>
<div className="flex flex-wrap gap-2">
{tr.issues.map((i) => (
- <div key={`issues-${i.id}`} className="rounded-full bg-zinc-800 px-3 py-1">
+ <div className="rounded-full bg-zinc-800 px-3 py-1" key={`issues-${i.id}`}>
{i.type}
</div>
))}
diff --git a/src/components/admin/reports/index.ts b/apps/web/src/components/admin/reports/index.ts
similarity index 100%
rename from src/components/admin/reports/index.ts
rename to apps/web/src/components/admin/reports/index.ts
diff --git a/src/components/admin/users.tsx b/apps/web/src/components/admin/users.tsx
similarity index 97%
rename from src/components/admin/users.tsx
rename to apps/web/src/components/admin/users.tsx
index 52945fee..b29537b9 100644
--- a/src/components/admin/users.tsx
+++ b/apps/web/src/components/admin/users.tsx
@@ -1,20 +1,20 @@
'use client';
import { useRouter } from 'next/navigation';
-import { unbanUser, type AdminBannedUsers } from '~/components/admin/admin.actions';
-import { getRelativeTime } from '~/utils/relativeTime';
+import { Unlock } from 'lucide-react';
import { ActionMenu } from '../ui/action-menu';
import { Badge } from '../ui/badge';
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '../ui/table';
import { TypographyH3 } from '../ui/typography/h3';
import { toast } from '../ui/use-toast';
-import { Unlock } from 'lucide-react';
+import { getRelativeTime } from '~/utils/relativeTime';
+import { unbanUser, type AdminBannedUsers } from '~/components/admin/admin.actions';
interface BannedUsersProps {
data: AdminBannedUsers;
}
-export const BannedUsers = ({ data }: BannedUsersProps) => {
+export function BannedUsers({ data }: BannedUsersProps) {
// State
const router = useRouter();
@@ -52,7 +52,7 @@ export const BannedUsers = ({ data }: BannedUsersProps) => {
<TableHead>Status</TableHead>
<TableHead>At</TableHead>
<TableHead>Reason</TableHead>
- <TableHead></TableHead>
+ <TableHead />
</TableRow>
</TableHeader>
<TableBody>
@@ -103,4 +103,4 @@ export const BannedUsers = ({ data }: BannedUsersProps) => {
</Table>
</div>
);
-};
+}
diff --git a/src/components/challenge/bookmark.action.ts b/apps/web/src/components/challenge/bookmark.action.ts
similarity index 93%
rename from src/components/challenge/bookmark.action.ts
rename to apps/web/src/components/challenge/bookmark.action.ts
index 08a405ee..31a4c2f3 100644
--- a/src/components/challenge/bookmark.action.ts
+++ b/apps/web/src/components/challenge/bookmark.action.ts
@@ -1,5 +1,5 @@
'use server';
-import { prisma } from '~/server/db';
+import { prisma } from '@repo/db';
export async function addOrRemoveBookmark(
challengeId: number,
diff --git a/src/components/challenge/challenge-layout.tsx b/apps/web/src/components/challenge/challenge-layout.tsx
similarity index 83%
rename from src/components/challenge/challenge-layout.tsx
rename to apps/web/src/components/challenge/challenge-layout.tsx
index bd2f0912..2ccbad58 100644
--- a/src/components/challenge/challenge-layout.tsx
+++ b/apps/web/src/components/challenge/challenge-layout.tsx
@@ -1,7 +1,6 @@
'use client';
import { useEffect, useRef, type ReactNode } from 'react';
-
import { create } from 'zustand';
import { persist } from 'zustand/middleware';
@@ -42,9 +41,9 @@ export function ChallengeLayout({ left, right }: ChallengeLayoutProps) {
const { settings, updateSettings } = useLayoutSettingsStore();
useEffect(() => {
- const ref = resizer.current as HTMLDivElement;
- const leftRef = leftSide.current as HTMLDivElement;
- const rightRef = rightSide.current as HTMLDivElement;
+ const ref = resizer.current!;
+ const leftRef = leftSide.current!;
+ const rightRef = rightSide.current!;
// resize width on desktop, height on mobile
window.innerWidth > 1025
@@ -67,12 +66,12 @@ export function ChallengeLayout({ left, right }: ChallengeLayoutProps) {
dy = e.clientY - y;
} else if (e instanceof TouchEvent) {
// How far the finger has been moved
- dx = e?.changedTouches?.[0]?.clientX ? e.changedTouches[0].clientX - x : 0;
- dy = e?.changedTouches?.[0]?.clientY ? e.changedTouches[0].clientY - y : 0;
+ dx = e.changedTouches[0]?.clientX ? e.changedTouches[0].clientX - x : 0;
+ dy = e.changedTouches[0]?.clientY ? e.changedTouches[0].clientY - y : 0;
}
- const divideByW = parent?.current?.getBoundingClientRect().width as number | 1;
- const divideByH = parent?.current?.getBoundingClientRect().height as number | 1;
+ const divideByW = parent.current?.getBoundingClientRect().width!;
+ const divideByH = parent.current?.getBoundingClientRect().height!;
const newLeftWidth = ((leftWidth + dx) * 100) / divideByW;
const newTopHeight = ((topHeight + dy) * 100) / divideByH;
@@ -99,13 +98,13 @@ export function ChallengeLayout({ left, right }: ChallengeLayoutProps) {
} else if (e instanceof TouchEvent) {
// Get the current finger position
window.innerWidth > 1025
- ? (x = e?.touches?.[0]?.clientX ?? 0)
- : (y = e?.touches?.[0]?.clientY ?? 0);
+ ? (x = e.touches[0]?.clientX ?? 0)
+ : (y = e.touches[0]?.clientY ?? 0);
}
window.innerWidth > 1025
- ? (leftWidth = leftSide?.current?.getBoundingClientRect().width as number | 0)
- : (topHeight = leftSide?.current?.getBoundingClientRect().height as number | 0);
+ ? (leftWidth = leftSide.current?.getBoundingClientRect().width!)
+ : (topHeight = leftSide.current?.getBoundingClientRect().height!);
// Attach the listeners to `document`
if (e instanceof MouseEvent) {
@@ -146,34 +145,34 @@ export function ChallengeLayout({ left, right }: ChallengeLayoutProps) {
};
window.addEventListener('resize', resizeHandler);
- ref?.addEventListener('mousedown', mouseDownHandler);
- ref?.addEventListener('touchstart', mouseDownHandler, false);
+ ref.addEventListener('mousedown', mouseDownHandler);
+ ref.addEventListener('touchstart', mouseDownHandler, false);
return () => {
window.removeEventListener('resize', resizeHandler);
- ref?.removeEventListener('mousedown', mouseDownHandler);
- ref?.removeEventListener('touchstart', mouseDownHandler);
+ ref.removeEventListener('mousedown', mouseDownHandler);
+ ref.removeEventListener('touchstart', mouseDownHandler);
};
}, [settings, updateSettings]);
return (
<div
- ref={parent}
className="flex flex-col px-4 pb-4 lg:flex-row"
+ ref={parent}
style={{ height: 'calc(100dvh - 3.5rem)' }}
>
<div
- ref={leftSide}
className="min-h-[318px] w-full overflow-hidden rounded-l-2xl rounded-r-xl border border-zinc-300 bg-white dark:border-zinc-700 dark:bg-zinc-800 lg:min-w-[500px]"
+ ref={leftSide}
>
{left}
</div>
- <div ref={resizer} className="resizer relative p-2">
+ <div className="resizer relative p-2" ref={resizer}>
<div className="absolute left-1/2 top-1/2 h-1 w-24 -translate-x-1/2 -translate-y-1/2 rounded-full bg-neutral-400 duration-300 group-hover:bg-neutral-600 group-active:bg-emerald-400 group-active:duration-75 dark:bg-neutral-700 group-hover:dark:bg-neutral-500 lg:h-24 lg:w-1" />
</div>
<div
- ref={rightSide}
className="flex min-h-[90px] w-full flex-1 flex-col overflow-hidden rounded-l-xl rounded-r-2xl border border-zinc-300 dark:border-zinc-700 lg:min-w-[500px]"
+ ref={rightSide}
>
{right}
</div>
diff --git a/src/components/challenge/challenge-store.ts b/apps/web/src/components/challenge/challenge-store.ts
similarity index 92%
rename from src/components/challenge/challenge-store.ts
rename to apps/web/src/components/challenge/challenge-store.ts
index c9f41d04..cc6c77b6 100644
--- a/src/components/challenge/challenge-store.ts
+++ b/apps/web/src/components/challenge/challenge-store.ts
@@ -1,4 +1,4 @@
-import type { Difficulty } from '@prisma/client';
+import type { Difficulty } from '@repo/db';
import { create } from 'zustand';
import { persist } from 'zustand/middleware';
diff --git a/src/components/challenge/code-panel/constants.ts b/apps/web/src/components/challenge/code-panel/constants.ts
similarity index 100%
rename from src/components/challenge/code-panel/constants.ts
rename to apps/web/src/components/challenge/code-panel/constants.ts
diff --git a/src/components/challenge/code-panel/editor-types.ts b/apps/web/src/components/challenge/code-panel/editor-types.ts
similarity index 100%
rename from src/components/challenge/code-panel/editor-types.ts
rename to apps/web/src/components/challenge/code-panel/editor-types.ts
diff --git a/src/components/challenge/code-panel/index.tsx b/apps/web/src/components/challenge/code-panel/index.tsx
similarity index 93%
rename from src/components/challenge/code-panel/index.tsx
rename to apps/web/src/components/challenge/code-panel/index.tsx
index e8928237..c62f68b6 100644
--- a/src/components/challenge/code-panel/index.tsx
+++ b/apps/web/src/components/challenge/code-panel/index.tsx
@@ -4,10 +4,16 @@ import { loader } from '@monaco-editor/react';
import clsx from 'clsx';
import { Loader2, Settings } from 'lucide-react';
import type * as monaco from 'monaco-editor';
-import { useSession } from 'next-auth/react';
+import { useSession } from '@repo/auth/react';
import dynamic from 'next/dynamic';
import { useRouter, useSearchParams } from 'next/navigation';
import { useRef, useState } from 'react';
+import lzstring from 'lz-string';
+import { saveSubmission } from '../save-submission.action';
+import { SettingsForm } from '../settings-form';
+import { USER_CODE_START, USER_CODE_START_REGEX } from './constants';
+import { libSource } from './editor-types';
+import { createTwoslashInlayProvider } from './twoslash';
import { type ChallengeRouteData } from '~/app/challenge/[id]/getChallengeRouteData';
import { Button } from '~/components/ui/button';
import { CodeEditor } from '~/components/ui/code-editor';
@@ -22,12 +28,6 @@ import { ToastAction } from '~/components/ui/toast';
import { Tooltip, TooltipContent, TooltipTrigger } from '~/components/ui/tooltip';
import { useToast } from '~/components/ui/use-toast';
import { useLocalStorage } from '~/utils/useLocalStorage';
-import { saveSubmission } from '../save-submission.action';
-import { SettingsForm } from '../settings-form';
-import { USER_CODE_START, USER_CODE_START_REGEX } from './constants';
-import { libSource } from './editor-types';
-import { createTwoslashInlayProvider } from './twoslash';
-import lzstring from 'lz-string';
const VimStatusBar = dynamic(() => import('./vimMode').then((v) => v.VimStatusBar), {
ssr: false,
@@ -41,9 +41,9 @@ loader.config({
export const LIB_URI = 'ts:filename/checking.d.ts';
-type Props = {
+interface Props {
challenge: ChallengeRouteData;
-};
+}
export type TsErrors = [
SemanticDiagnostics: monaco.languages.typescript.Diagnostic[],
@@ -52,7 +52,7 @@ export type TsErrors = [
CompilerOptionsDiagnostics: monaco.languages.typescript.Diagnostic[],
];
-export const CodePanel = (props: Props) => {
+export function CodePanel(props: Props) {
const params = useSearchParams();
const router = useRouter();
const { toast } = useToast();
@@ -60,7 +60,7 @@ export const CodePanel = (props: Props) => {
const [tsErrors, setTsErrors] = useState<TsErrors>([[], [], [], []]);
const [initialTypecheckDone, setInitialTypecheckDone] = useState(false);
const [localStorageCode, setLocalStorageCode] = useLocalStorage(
- `challenge-${props.challenge?.id}`,
+ `challenge-${props.challenge.id}`,
'',
);
@@ -89,12 +89,7 @@ export const CodePanel = (props: Props) => {
const [, solution] = code.split(USER_CODE_START);
const hasErrors = tsErrors.some((e) => e.length);
- await saveSubmission(
- props.challenge.id,
- session?.user?.id as string,
- solution ?? '',
- !hasErrors,
- );
+ await saveSubmission(props.challenge.id, session?.user.id!, solution ?? '', !hasErrors);
router.refresh();
if (hasErrors) {
@@ -176,7 +171,7 @@ export const CodePanel = (props: Props) => {
<DialogTrigger>
<Tooltip>
<TooltipTrigger asChild>
- <Settings size={20} className="stroke-zinc-500 stroke-1 hover:stroke-zinc-400" />
+ <Settings className="stroke-zinc-500 stroke-1 hover:stroke-zinc-400" size={20} />
</TooltipTrigger>
<TooltipContent className="px-2 py-1">Settings</TooltipContent>
</Tooltip>
@@ -193,14 +188,14 @@ export const CodePanel = (props: Props) => {
</div>
<div className="w-full flex-1">
<CodeEditor
- onMount={onMount(code, setTsErrors)}
- value={code}
onChange={(code) => {
setCode(code ?? '');
// we we only want to save whats after the comment
const [, , storeThiseCode] = (code ?? '').split(USER_CODE_START_REGEX);
setLocalStorageCode(storeThiseCode ?? '');
}}
+ onMount={onMount(code, setTsErrors)}
+ value={code}
/>
</div>
<div
@@ -211,16 +206,15 @@ export const CodePanel = (props: Props) => {
'sticky bottom-0 flex items-center justify-end p-2 dark:bg-[#1e1e1e]',
)}
>
- {editorState && <VimStatusBar editor={editorState} />}
+ {editorState ? <VimStatusBar editor={editorState} /> : null}
<div className="flex items-center justify-center gap-4">
<Tooltip>
<TooltipTrigger asChild>
<Button
+ disabled={!initialTypecheckDone || !session?.user}
size="sm"
className="cursor-pointer rounded-lg bg-emerald-600 duration-300 hover:bg-emerald-500 dark:bg-emerald-400 dark:hover:bg-emerald-300"
- // eslint-disable-next-line @typescript-eslint/no-misused-promises
onClick={handleSubmit}
- disabled={!initialTypecheckDone || !session?.user}
>
{!initialTypecheckDone && <Loader2 className="mr-2 h-4 w-4 animate-spin" />}
Submit
@@ -234,4 +228,4 @@ export const CodePanel = (props: Props) => {
</div>
</>
);
-};
+}
diff --git a/src/components/challenge/code-panel/twoslash.ts b/apps/web/src/components/challenge/code-panel/twoslash.ts
similarity index 86%
rename from src/components/challenge/code-panel/twoslash.ts
rename to apps/web/src/components/challenge/code-panel/twoslash.ts
index 985bfc73..c16bb09e 100644
--- a/src/components/challenge/code-panel/twoslash.ts
+++ b/apps/web/src/components/challenge/code-panel/twoslash.ts
@@ -14,7 +14,6 @@ export const createTwoslashInlayProvider = (
if (model.isDisposed()) {
return {
hints: [],
- // eslint-disable-next-line @typescript-eslint/no-empty-function
dispose: () => {},
};
}
@@ -28,7 +27,6 @@ export const createTwoslashInlayProvider = (
if (cancel.isCancellationRequested) {
return {
hints: [],
- // eslint-disable-next-line @typescript-eslint/no-empty-function
dispose: () => {},
};
}
@@ -43,7 +41,7 @@ export const createTwoslashInlayProvider = (
.map((d: { text: string }) => d.text)
.join('')
.replace(/\r?\n\s*/g, ' ');
- if (text.length > 120) text = text.slice(0, 119) + '...';
+ if (text.length > 120) text = `${text.slice(0, 119)}...`;
const inlay: monaco.languages.InlayHint = {
// @ts-expect-error undocumented kind
@@ -58,7 +56,6 @@ export const createTwoslashInlayProvider = (
return {
hints: results,
- // eslint-disable-next-line @typescript-eslint/no-empty-function
dispose: () => {},
};
},
diff --git a/src/components/challenge/code-panel/vimMode.tsx b/apps/web/src/components/challenge/code-panel/vimMode.tsx
similarity index 78%
rename from src/components/challenge/code-panel/vimMode.tsx
rename to apps/web/src/components/challenge/code-panel/vimMode.tsx
index 6316e6e7..d679dcee 100644
--- a/src/components/challenge/code-panel/vimMode.tsx
+++ b/apps/web/src/components/challenge/code-panel/vimMode.tsx
@@ -2,14 +2,14 @@
import type * as monaco from 'monaco-editor';
import { useEffect, useRef } from 'react';
-import { useEditorSettingsStore } from '../settings-store';
import { type VimMode, initVimMode } from 'monaco-vim';
+import { useEditorSettingsStore } from '../settings-store';
interface VimStatusBarProps {
editor: monaco.editor.IStandaloneCodeEditor;
-};
+}
-export const VimStatusBar = ({ editor }: VimStatusBarProps) => {
+export function VimStatusBar({ editor }: VimStatusBarProps) {
const statusBarRef = useRef<HTMLDivElement | null>(null);
const vimModeRef = useRef<VimMode>();
const { settings } = useEditorSettingsStore();
@@ -30,7 +30,10 @@ export const VimStatusBar = ({ editor }: VimStatusBarProps) => {
return (
<div className="flex w-full">
- <div ref={statusBarRef} className="text-sm font-mono gap-2 [&>*:first-child]:mr-2 [&_input]:bg-transparent [&_input]:border-none [&_input]:outline-none" />
+ <div
+ className="gap-2 font-mono text-sm [&>*:first-child]:mr-2 [&_input]:border-none [&_input]:bg-transparent [&_input]:outline-none"
+ ref={statusBarRef}
+ />
</div>
);
-};
+}
diff --git a/src/components/challenge/comments/comment-input.tsx b/apps/web/src/components/challenge/comments/comment-input.tsx
similarity index 92%
rename from src/components/challenge/comments/comment-input.tsx
rename to apps/web/src/components/challenge/comments/comment-input.tsx
index fbd58b00..3114f8c0 100644
--- a/src/components/challenge/comments/comment-input.tsx
+++ b/apps/web/src/components/challenge/comments/comment-input.tsx
@@ -1,5 +1,5 @@
import { Loader2 } from 'lucide-react';
-import { useSession } from 'next-auth/react';
+import { useSession } from '@repo/auth/react';
import { useEffect, useRef, useState, type RefObject } from 'react';
import { Button } from '~/components/ui/button';
import { Markdown } from '~/components/ui/markdown';
@@ -8,7 +8,7 @@ import { ToastAction } from '~/components/ui/toast';
import { useToast } from '~/components/ui/use-toast';
interface Props {
- mode: 'edit' | 'create' | 'reply';
+ mode: 'create' | 'edit' | 'reply';
onCancel?: () => void;
onChange: (text: string) => void;
value: string;
@@ -49,16 +49,16 @@ export function CommentInput({ mode, onCancel, onChange, value, placeholder, onS
};
return (
- <div className="flex flex-col rounded-xl rounded-br-lg bg-background/90 bg-neutral-100 backdrop-blur-sm dark:border-zinc-700 dark:bg-zinc-700/90">
+ <div className="bg-background/90 flex flex-col rounded-xl rounded-br-lg bg-neutral-100 backdrop-blur-sm dark:border-zinc-700 dark:bg-zinc-700/90">
{commentMode === 'editor' && (
<Textarea
autoFocus
- ref={textAreaRef}
- value={value}
+ className="resize-none border-0 px-3 py-2 focus-visible:ring-0 focus-visible:ring-offset-0 md:max-h-[calc(100vh_-_232px)]"
onChange={(e) => onChange(e.target.value)}
onKeyDown={handleEnterKey}
- className="resize-none border-0 px-3 py-2 focus-visible:ring-0 focus-visible:ring-offset-0 md:max-h-[calc(100vh_-_232px)]"
placeholder={placeholder ?? 'Enter your comment here.'}
+ ref={textAreaRef}
+ value={value}
/>
)}
{commentMode === 'preview' && (
@@ -69,18 +69,19 @@ export function CommentInput({ mode, onCancel, onChange, value, placeholder, onS
<div className="flex justify-end">
<div className="flex gap-2 p-2">
<Button
- variant={mode === 'create' ? 'secondary' : 'ghost'}
className="h-8"
onClick={() => setCommentMode(commentMode === 'editor' ? 'preview' : 'editor')}
+ variant={mode === 'create' ? 'secondary' : 'ghost'}
>
{commentMode === 'editor' ? 'Preview' : 'Edit'}
</Button>
{mode !== 'create' && (
- <Button variant="secondary" className="h-8" onClick={() => onCancel?.()}>
+ <Button className="h-8" onClick={() => onCancel?.()} variant="secondary">
Cancel
</Button>
)}
<Button
+ className="h-8 w-[5.5rem] rounded-lg rounded-br-sm bg-emerald-600 hover:bg-emerald-500 dark:bg-emerald-400 dark:hover:bg-emerald-300"
disabled={value.length === 0 || isSubmitting}
onClick={async () => {
try {
@@ -104,7 +105,6 @@ export function CommentInput({ mode, onCancel, onChange, value, placeholder, onS
setCommentMode('editor');
}
}}
- className="h-8 w-[5.5rem] rounded-lg rounded-br-sm bg-emerald-600 hover:bg-emerald-500 dark:bg-emerald-400 dark:hover:bg-emerald-300"
>
{isSubmitting ? <Loader2 className="h-5 w-5 animate-spin" /> : 'Comment'}
</Button>
@@ -127,8 +127,8 @@ function useAutosizeTextArea(
// We then set the height directly, outside of the render loop
// Trying to set this with state or a ref will product an incorrect value.
- textAreaRef.current.style.height = scrollHeight + 'px';
+ textAreaRef.current.style.height = `${scrollHeight}px`;
}
// eslint-disable-next-line
}, [textAreaRef.current, value, commentMode]);
-}
\ No newline at end of file
+}
diff --git a/src/components/challenge/comments/comment-skeleton.tsx b/apps/web/src/components/challenge/comments/comment-skeleton.tsx
similarity index 77%
rename from src/components/challenge/comments/comment-skeleton.tsx
rename to apps/web/src/components/challenge/comments/comment-skeleton.tsx
index ae989dbb..2b95e1ab 100644
--- a/src/components/challenge/comments/comment-skeleton.tsx
+++ b/apps/web/src/components/challenge/comments/comment-skeleton.tsx
@@ -1,14 +1,14 @@
export function CommentSkeleton() {
return (
<div className="flex flex-col space-y-10 px-4 py-3">
- <div className="prose-invert flex flex-col gap-6 space-y-2 prose-h3:text-xl">
- <div className="h-6 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-6 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-6 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-6 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-6 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-6 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-6 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
+ <div className="prose-invert prose-h3:text-xl flex flex-col gap-6 space-y-2">
+ <div className="h-6 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-6 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-6 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-6 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-6 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-6 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-6 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
</div>
</div>
);
diff --git a/src/components/challenge/comments/comment.action.ts b/apps/web/src/components/challenge/comments/comment.action.ts
similarity index 90%
rename from src/components/challenge/comments/comment.action.ts
rename to apps/web/src/components/challenge/comments/comment.action.ts
index 2a09f576..99de7971 100644
--- a/src/components/challenge/comments/comment.action.ts
+++ b/apps/web/src/components/challenge/comments/comment.action.ts
@@ -1,8 +1,8 @@
'use server';
-import type { CommentRoot } from '@prisma/client';
-import { getServerAuthSession } from '~/server/auth';
-import { prisma } from '~/server/db';
+import type { CommentRoot } from '@repo/db';
+import { prisma } from '@repo/db';
+import { getServerAuthSession } from '@repo/auth/server';
/**
*
@@ -19,7 +19,7 @@ export async function addComment(comment: CommentToCreate) {
if (!session?.user.id) return 'unauthorized';
if (comment.text.length === 0) return 'text_is_empty';
- if (!session?.user.id) return 'unauthorized';
+ if (!session.user.id) return 'unauthorized';
if (comment.text.length === 0) return 'text_is_empty';
const { rootId, ...commentToCreate } = {
@@ -42,7 +42,7 @@ export async function replyComment(comment: CommentToCreate, parentId: number) {
if (!session?.user.id) return 'unauthorized';
if (comment.text.length === 0) return 'text_is_empty';
- if (!session?.user.id) return 'unauthorized';
+ if (!session.user.id) return 'unauthorized';
if (comment.text.length === 0) return 'text_is_empty';
const { rootId, ...commentToCreate } = {
@@ -66,7 +66,7 @@ export async function updateComment(text: string, id: number) {
if (!session?.user.id) return 'unauthorized';
if (text.length === 0) return 'text_is_empty';
- if (!session?.user.id) return 'unauthorized';
+ if (!session.user.id) return 'unauthorized';
return await prisma.comment.update({
where: {
diff --git a/src/components/challenge/comments/comment.tsx b/apps/web/src/components/challenge/comments/comment.tsx
similarity index 89%
rename from src/components/challenge/comments/comment.tsx
rename to apps/web/src/components/challenge/comments/comment.tsx
index 10bb0742..5b831168 100644
--- a/src/components/challenge/comments/comment.tsx
+++ b/apps/web/src/components/challenge/comments/comment.tsx
@@ -1,21 +1,21 @@
'use client';
-import { type CommentRoot } from '@prisma/client';
+import { type CommentRoot } from '@repo/db';
import { useInfiniteQuery, useQueryClient } from '@tanstack/react-query';
import { ChevronDown, ChevronUp, Pencil, Reply, Share, Trash2 } from 'lucide-react';
-import { useSession } from 'next-auth/react';
+import { useSession } from '@repo/auth/react';
import { useEffect, useRef, useState } from 'react';
import { z } from 'zod';
+import clsx from 'clsx';
+import { CommentInput } from './comment-input';
+import { replyComment, updateComment, type CommentsByChallengeId } from './comment.action';
+import { CommentDeleteDialog } from './delete';
+import { getPaginatedComments } from './getCommentRouteData';
import ReportDialog from '~/components/report';
import { Tooltip, TooltipContent, TooltipTrigger } from '~/components/ui/tooltip';
import { toast } from '~/components/ui/use-toast';
import { UserBadge } from '~/components/ui/user-badge';
import { getRelativeTime } from '~/utils/relativeTime';
-import { CommentInput } from './comment-input';
-import { replyComment, updateComment, type CommentsByChallengeId } from './comment.action';
-import { CommentDeleteDialog } from './delete';
-import { getPaginatedComments } from './getCommentRouteData';
-import clsx from 'clsx';
import { Markdown } from '~/components/ui/markdown';
interface SingleCommentProps {
@@ -23,8 +23,8 @@ interface SingleCommentProps {
readonly?: boolean;
isReply?: boolean;
onClickReply?: () => void;
- queryKey?: (string | number)[];
- replyQueryKey?: (string | number)[];
+ queryKey?: (number | string)[];
+ replyQueryKey?: (number | string)[];
}
type CommentProps = SingleCommentProps & {
@@ -53,7 +53,7 @@ const commentReportSchema = z
export type CommentReportSchemaType = z.infer<typeof commentReportSchema>;
-export const Comment = ({ comment, readonly = false, rootId, type, queryKey }: CommentProps) => {
+export function Comment({ comment, readonly = false, rootId, type, queryKey }: CommentProps) {
const [showReplies, setShowReplies] = useState(false);
const [isReplying, setIsReplying] = useState(false);
@@ -65,7 +65,7 @@ export const Comment = ({ comment, readonly = false, rootId, type, queryKey }: C
queryKey: replyQueryKey,
queryFn: ({ pageParam = 1 }) =>
getPaginatedComments({ rootId, rootType: type, page: pageParam, parentId: comment.id }),
- getNextPageParam: (_, pages) => pages?.length + 1,
+ getNextPageParam: (_, pages) => pages.length + 1,
staleTime: 5000,
});
@@ -108,11 +108,11 @@ export const Comment = ({ comment, readonly = false, rootId, type, queryKey }: C
return (
<div className="flex flex-col p-2">
- <SingleComment comment={comment} readonly={readonly} onClickReply={toggleIsReplying} />
- {isReplying && (
+ <SingleComment comment={comment} onClickReply={toggleIsReplying} readonly={readonly} />
+ {isReplying ? (
<div className="pb-2 pl-6">
<CommentInput
- value={replyText}
+ mode="edit"
onCancel={() => {
setIsReplying(false);
}}
@@ -121,10 +121,10 @@ export const Comment = ({ comment, readonly = false, rootId, type, queryKey }: C
await createChallengeCommentReply();
setIsReplying(false);
}}
- mode="edit"
+ value={replyText}
/>
</div>
- )}
+ ) : null}
{comment._count.replies > 0 && (
<button
className="flex cursor-pointer items-center gap-1 text-neutral-500 duration-200 hover:text-neutral-400 dark:text-neutral-400 dark:hover:text-neutral-300"
@@ -132,40 +132,45 @@ export const Comment = ({ comment, readonly = false, rootId, type, queryKey }: C
>
{showReplies ? <ChevronDown size={18} /> : <ChevronUp size={18} />}
<div className="text-xs">
- {comment._count.replies == 1 ? '1 reply' : `${comment._count.replies} replies`}
+ {comment._count.replies === 1 ? '1 reply' : `${comment._count.replies} replies`}
</div>
</button>
)}
- {showReplies && (
+ {showReplies ? (
<div className="flex flex-col gap-0.5 p-2 pl-6 pr-0">
{data?.pages.flatMap((page) =>
page.comments.map((reply) => (
// this is a reply
- <SingleComment key={comment.id} comment={reply} isReply replyQueryKey={replyQueryKey} />
+ <SingleComment
+ comment={reply}
+ isReply
+ key={comment.id}
+ replyQueryKey={replyQueryKey}
+ />
)),
)}
</div>
- )}
- {!isFetching && showReplies && data?.pages.at(-1)?.hasMore && (
+ ) : null}
+ {!isFetching && showReplies && data?.pages.at(-1)?.hasMore ? (
<button
className="flex cursor-pointer items-center gap-1 pl-6 text-xs text-neutral-500 duration-200 hover:text-neutral-400 dark:text-neutral-400 dark:hover:text-neutral-300"
onClick={() => fetchNextPage()}
>
Load more
</button>
- )}
+ ) : null}
</div>
);
-};
+}
-const SingleComment = ({
+function SingleComment({
comment,
readonly = false,
onClickReply,
isReply,
queryKey,
- replyQueryKey
-}: SingleCommentProps) => {
+ replyQueryKey,
+}: SingleCommentProps) {
const queryClient = useQueryClient();
const [text, setText] = useState(comment.text);
const [isEditing, setIsEditing] = useState(false);
@@ -219,7 +224,7 @@ const SingleComment = ({
const loggedinUser = useSession();
- const isAuthor = loggedinUser.data?.user?.id === comment.user.id;
+ const isAuthor = loggedinUser.data?.user.id === comment.user.id;
return (
<>
@@ -232,7 +237,7 @@ const SingleComment = ({
{getRelativeTime(comment.createdAt)}
</span>
</TooltipTrigger>
- <TooltipContent align="start" className="rounded-xl" alignOffset={-55}>
+ <TooltipContent align="start" alignOffset={-55} className="rounded-xl">
<span className="text-xs text-white">{comment.createdAt.toLocaleString()}</span>
</TooltipContent>
</Tooltip>
@@ -242,10 +247,10 @@ const SingleComment = ({
{!readonly && (
<>
<div
+ className="flex cursor-pointer items-center gap-1 text-neutral-500 duration-200 hover:text-neutral-400 dark:text-neutral-400 dark:hover:text-neutral-300"
onClick={() => {
copyPathNotifyUser();
}}
- className="flex cursor-pointer items-center gap-1 text-neutral-500 duration-200 hover:text-neutral-400 dark:text-neutral-400 dark:hover:text-neutral-300"
>
<Share className="h-3 w-3" />
<div className="hidden text-[0.8rem] sm:block">Share</div>
@@ -260,24 +265,24 @@ const SingleComment = ({
<div className="hidden text-[0.8rem] sm:block">Reply</div>
</button>
)}
- {isAuthor && (
+ {isAuthor ? (
<button
- onClick={() => setIsEditing(!isEditing)}
className="flex cursor-pointer items-center gap-1 text-neutral-500 duration-200 hover:text-neutral-400 dark:text-neutral-400 dark:hover:text-neutral-300"
+ onClick={() => setIsEditing(!isEditing)}
>
<Pencil className="h-3 w-3" />
<div className="hidden text-[0.8rem] sm:block">Edit</div>
</button>
- )}
+ ) : null}
{isAuthor ? (
- <CommentDeleteDialog comment={comment} asChild>
+ <CommentDeleteDialog asChild comment={comment}>
<button className="flex cursor-pointer items-center gap-1 text-neutral-500 duration-200 hover:text-neutral-400 dark:text-neutral-400 dark:hover:text-neutral-300">
<Trash2 className="h-3 w-3" />
<div className="hidden text-[0.8rem] sm:block">Delete</div>
</button>
</CommentDeleteDialog>
) : (
- <ReportDialog reportType="COMMENT" commentId={comment.id}>
+ <ReportDialog commentId={comment.id} reportType="COMMENT">
<button className="flex cursor-pointer items-center text-[0.8rem] text-neutral-400 duration-200 hover:text-neutral-500 dark:text-neutral-600 dark:hover:text-neutral-500">
Report
</button>
@@ -289,10 +294,10 @@ const SingleComment = ({
</div>
<div>
{!isEditing && <ExpandableContent content={comment.text} />}
- {isEditing && (
+ {isEditing ? (
<div className="my-2">
<CommentInput
- value={text}
+ mode="edit"
onCancel={() => {
setIsEditing(false);
}}
@@ -301,16 +306,16 @@ const SingleComment = ({
await updateChallengeComment();
setIsEditing(false);
}}
- mode="edit"
+ value={text}
/>
</div>
- )}
+ ) : null}
</div>
</>
);
-};
+}
-const ExpandableContent = ({ content }: { content: string }) => {
+function ExpandableContent({ content }: { content: string }) {
const [expanded, setExpanded] = useState(true);
const contentWrapperRef = useRef<HTMLDivElement>(null);
@@ -350,4 +355,4 @@ const ExpandableContent = ({ content }: { content: string }) => {
)}
</div>
);
-};
+}
diff --git a/src/components/challenge/comments/delete/index.tsx b/apps/web/src/components/challenge/comments/delete/index.tsx
similarity index 92%
rename from src/components/challenge/comments/delete/index.tsx
rename to apps/web/src/components/challenge/comments/delete/index.tsx
index 78ef8f4f..1773f542 100644
--- a/src/components/challenge/comments/delete/index.tsx
+++ b/apps/web/src/components/challenge/comments/delete/index.tsx
@@ -1,5 +1,7 @@
import { type DialogTriggerProps } from '@radix-ui/react-dialog';
import { useState } from 'react';
+import { useQueryClient } from '@tanstack/react-query';
+import { deleteComment, type CommentsByChallengeId } from '../comment.action';
import { TypographyP } from '~/components//ui/paragraph';
import { Button } from '~/components/ui/button';
import { Dialog, DialogContent, DialogTrigger } from '~/components/ui/dialog';
@@ -7,20 +9,18 @@ import { Tooltip, TooltipContent, TooltipTrigger } from '~/components/ui/tooltip
import { TypographyLarge } from '~/components/ui/typography/large';
import { toast } from '~/components/ui/use-toast';
import { getRelativeTime } from '~/utils/relativeTime';
-import { deleteComment, type CommentsByChallengeId } from '../comment.action';
-import { useQueryClient } from '@tanstack/react-query';
interface CommentDeleteDialogProps extends DialogTriggerProps {
comment: CommentsByChallengeId[number];
- queryKey?: (string | number)[];
+ queryKey?: (number | string)[];
}
-export const CommentDeleteDialog = ({
+export function CommentDeleteDialog({
children,
comment,
queryKey,
...props
-}: CommentDeleteDialogProps) => {
+}: CommentDeleteDialogProps) {
const queryClient = useQueryClient();
const [isOpen, setIsOpen] = useState(false);
@@ -47,7 +47,7 @@ export const CommentDeleteDialog = ({
}
return (
- <Dialog open={isOpen} onOpenChange={() => setIsOpen(!isOpen)}>
+ <Dialog onOpenChange={() => setIsOpen(!isOpen)} open={isOpen}>
<DialogTrigger {...props}>{children}</DialogTrigger>
<DialogContent className="flex flex-col space-y-2">
<TypographyLarge>Are you sure?</TypographyLarge>
@@ -80,14 +80,14 @@ export const CommentDeleteDialog = ({
</div>
<TypographyP>The following comment will be permanently deleted.</TypographyP>
<div className="flex flex-row gap-2">
- <Button variant={'outline'} onClick={() => setIsOpen(!isOpen)}>
+ <Button onClick={() => setIsOpen(!isOpen)} variant="outline">
Cancel
</Button>
<Button
- variant={'destructive'}
onClick={() => {
void handleDeleteComment();
}}
+ variant="destructive"
>
Delete
</Button>
@@ -95,6 +95,6 @@ export const CommentDeleteDialog = ({
</DialogContent>
</Dialog>
);
-};
+}
export default CommentDeleteDialog;
diff --git a/src/components/challenge/comments/getCommentRouteData.ts b/apps/web/src/components/challenge/comments/getCommentRouteData.ts
similarity index 90%
rename from src/components/challenge/comments/getCommentRouteData.ts
rename to apps/web/src/components/challenge/comments/getCommentRouteData.ts
index ffe7a705..78851c40 100644
--- a/src/components/challenge/comments/getCommentRouteData.ts
+++ b/apps/web/src/components/challenge/comments/getCommentRouteData.ts
@@ -1,6 +1,6 @@
'use server';
-import type { CommentRoot } from '@prisma/client';
-import { prisma } from '~/server/db';
+import type { CommentRoot } from '@repo/db';
+import { prisma } from '@repo/db';
const PAGESIZE = 10;
@@ -20,7 +20,7 @@ export async function getPaginatedComments({
const totalComments = await prisma.comment.count({
where: {
rootType,
- parentId: parentId,
+ parentId,
visible: true,
...(rootType === 'CHALLENGE' ? { rootChallengeId: rootId } : { rootSolutionId: rootId }),
},
@@ -31,7 +31,7 @@ export async function getPaginatedComments({
take: PAGESIZE,
where: {
rootType,
- parentId: parentId,
+ parentId,
...(rootType === 'CHALLENGE' ? { rootChallengeId: rootId } : { rootSolutionId: rootId }),
visible: true,
},
diff --git a/src/components/challenge/comments/index.tsx b/apps/web/src/components/challenge/comments/index.tsx
similarity index 91%
rename from src/components/challenge/comments/index.tsx
rename to apps/web/src/components/challenge/comments/index.tsx
index 89ac8b39..1d9e6c0e 100644
--- a/src/components/challenge/comments/index.tsx
+++ b/apps/web/src/components/challenge/comments/index.tsx
@@ -1,25 +1,25 @@
'use client';
-import type { CommentRoot } from '@prisma/client';
+import type { CommentRoot } from '@repo/db';
import { useQuery, useQueryClient } from '@tanstack/react-query';
import clsx from 'clsx';
import { ChevronDown, ChevronLeft, ChevronRight, MessageCircle } from 'lucide-react';
import { useRef, useState } from 'react';
-import { Comment } from '~/components/challenge/comments/comment';
-import { Button } from '~/components/ui/button';
-import { toast } from '~/components/ui/use-toast';
import { CommentInput } from './comment-input';
import { CommentSkeleton } from './comment-skeleton';
import { addComment } from './comment.action';
import { getPaginatedComments } from './getCommentRouteData';
import NoComments from './nocomments';
+import { toast } from '~/components/ui/use-toast';
+import { Button } from '~/components/ui/button';
+import { Comment } from '~/components/challenge/comments/comment';
interface Props {
rootId: number;
type: CommentRoot;
}
-export const Comments = ({ rootId, type }: Props) => {
+export function Comments({ rootId, type }: Props) {
const [showComments, setShowComments] = useState(false);
const [text, setText] = useState('');
const commentContainerRef = useRef<HTMLDivElement>(null);
@@ -76,7 +76,7 @@ export const Comments = ({ rootId, type }: Props) => {
return (
<div
className={clsx(
- 'absolute bottom-0 w-full overflow-hidden border-t border-zinc-300 bg-background/90 shadow-[0_0_3rem_-0.25rem_#0004] backdrop-blur-sm duration-300 dark:border-zinc-700 dark:border-b-muted dark:bg-muted/90 dark:shadow-[0_0_3rem_-0.25rem_#0008]',
+ 'bg-background/90 dark:border-b-muted dark:bg-muted/90 absolute bottom-0 w-full overflow-hidden border-t border-zinc-300 shadow-[0_0_3rem_-0.25rem_#0004] backdrop-blur-sm duration-300 dark:border-zinc-700 dark:shadow-[0_0_3rem_-0.25rem_#0008]',
{
'lg:border-t-none': showComments,
},
@@ -90,7 +90,7 @@ export const Comments = ({ rootId, type }: Props) => {
<div className="flex items-center gap-2">
<MessageCircle className="h-5 w-5" />
Comments
- {data?.totalComments != null && <span>({data?.totalComments})</span>}
+ {data?.totalComments != null && <span>({data.totalComments})</span>}
</div>
<ChevronDown
className={clsx('h-4 w-4 duration-300', {
@@ -99,7 +99,6 @@ export const Comments = ({ rootId, type }: Props) => {
/>
</button>
<div
- ref={commentContainerRef}
className={clsx(
'custom-scrollable-element flex flex-col overscroll-contain duration-300',
{
@@ -108,13 +107,14 @@ export const Comments = ({ rootId, type }: Props) => {
'overflow-y-auto': showComments && data?.comments.length !== 0,
},
)}
+ ref={commentContainerRef}
>
<div className="m-2 mt-0">
<CommentInput
+ mode="create"
onChange={setText}
- value={text}
onSubmit={createChallengeComment}
- mode="create"
+ value={text}
/>
</div>
{status === 'loading' && <CommentSkeleton />}
@@ -123,13 +123,13 @@ export const Comments = ({ rootId, type }: Props) => {
(data.comments.length === 0 ? (
<NoComments />
) : (
- data?.comments?.map((comment) => (
+ data.comments.map((comment) => (
<Comment
- key={comment.id}
comment={comment}
+ key={comment.id}
+ queryKey={queryKey}
rootId={rootId}
type={type}
- queryKey={queryKey}
/>
))
))}
@@ -138,8 +138,8 @@ export const Comments = ({ rootId, type }: Props) => {
<div className="mt-2 flex justify-center">
<Pagination
currentPage={page}
- totalPages={data?.totalPages ?? 0}
onClick={handleChangePage}
+ totalPages={data?.totalPages ?? 0}
/>
</div>
)}
@@ -147,7 +147,7 @@ export const Comments = ({ rootId, type }: Props) => {
</div>
</div>
);
-};
+}
function Pagination({
currentPage,
@@ -156,7 +156,7 @@ function Pagination({
}: {
totalPages: number;
currentPage: number;
- onClick(page: number): void;
+ onClick: (page: number) => void;
}) {
const maxVisiblePages = 5;
const halfVisiblePages = Math.floor(maxVisiblePages / 2);
@@ -179,26 +179,26 @@ function Pagination({
return (
<nav className="justify-space-between flex items-center gap-2">
<Button
- variant="ghost"
disabled={currentPage === 1}
onClick={() => onClick(Math.max(0, currentPage - 1))}
+ variant="ghost"
>
<ChevronLeft />
</Button>
{pages.map((page) => (
<Button
- variant="ghost"
- key={`pagination-${page}`}
className={clsx({ 'border border-black dark:border-white/30 ': page === currentPage })}
+ key={`pagination-${page}`}
onClick={() => onClick(page)}
+ variant="ghost"
>
{page}
</Button>
))}
<Button
- variant="ghost"
disabled={currentPage === totalPages}
onClick={() => onClick(Math.min(totalPages, currentPage + 1))}
+ variant="ghost"
>
<ChevronRight />
</Button>
diff --git a/src/components/challenge/comments/nocomments.tsx b/apps/web/src/components/challenge/comments/nocomments.tsx
similarity index 90%
rename from src/components/challenge/comments/nocomments.tsx
rename to apps/web/src/components/challenge/comments/nocomments.tsx
index e8502a2b..55a0c727 100644
--- a/src/components/challenge/comments/nocomments.tsx
+++ b/apps/web/src/components/challenge/comments/nocomments.tsx
@@ -1,53 +1,53 @@
-const NoComments = () => {
+function NoComments() {
return (
<div className="flex h-full items-center justify-center">
<p className="flex flex-col items-center gap-2 text-center text-neutral-500 dark:text-zinc-400">
<svg
- xmlns="http://www.w3.org/2000/svg"
- data-name="Layer 1"
className="mr-6 h-28 w-28"
+ data-name="Layer 1"
viewBox="0 0 647.63626 632.17383"
+ xmlns="http://www.w3.org/2000/svg"
>
<path
d="M687.3279,276.08691H512.81813a15.01828,15.01828,0,0,0-15,15v387.85l-2,.61005-42.81006,13.11a8.00676,8.00676,0,0,1-9.98974-5.31L315.678,271.39691a8.00313,8.00313,0,0,1,5.31006-9.99l65.97022-20.2,191.25-58.54,65.96972-20.2a7.98927,7.98927,0,0,1,9.99024,5.3l32.5498,106.32Z"
- transform="translate(-276.18187 -133.91309)"
fill="#4444"
+ transform="translate(-276.18187 -133.91309)"
/>
<path
d="M725.408,274.08691l-39.23-128.14a16.99368,16.99368,0,0,0-21.23-11.28l-92.75,28.39L380.95827,221.60693l-92.75,28.4a17.0152,17.0152,0,0,0-11.28028,21.23l134.08008,437.93a17.02661,17.02661,0,0,0,16.26026,12.03,16.78926,16.78926,0,0,0,4.96972-.75l63.58008-19.46,2-.62v-2.09l-2,.61-64.16992,19.65a15.01489,15.01489,0,0,1-18.73-9.95l-134.06983-437.94a14.97935,14.97935,0,0,1,9.94971-18.73l92.75-28.4,191.24024-58.54,92.75-28.4a15.15551,15.15551,0,0,1,4.40966-.66,15.01461,15.01461,0,0,1,14.32032,10.61l39.0498,127.56.62012,2h2.08008Z"
- transform="translate(-276.18187 -133.91309)"
fill="#888a"
+ transform="translate(-276.18187 -133.91309)"
/>
<path
d="M398.86279,261.73389a9.0157,9.0157,0,0,1-8.61133-6.3667l-12.88037-42.07178a8.99884,8.99884,0,0,1,5.9712-11.24023l175.939-53.86377a9.00867,9.00867,0,0,1,11.24072,5.9707l12.88037,42.07227a9.01029,9.01029,0,0,1-5.9707,11.24072L401.49219,261.33887A8.976,8.976,0,0,1,398.86279,261.73389Z"
- transform="translate(-276.18187 -133.91309)"
fill="#888a"
+ transform="translate(-276.18187 -133.91309)"
/>
- <circle cx="190.15351" cy="24.95465" r="20" fill="#888a" />
- <circle cx="190.15351" cy="24.95465" r="12.66462" fill="#444a" />
+ <circle cx="190.15351" cy="24.95465" fill="#888a" r="20" />
+ <circle cx="190.15351" cy="24.95465" fill="#444a" r="12.66462" />
<path
d="M878.81836,716.08691h-338a8.50981,8.50981,0,0,1-8.5-8.5v-405a8.50951,8.50951,0,0,1,8.5-8.5h338a8.50982,8.50982,0,0,1,8.5,8.5v405A8.51013,8.51013,0,0,1,878.81836,716.08691Z"
- transform="translate(-276.18187 -133.91309)"
fill="#4444"
+ transform="translate(-276.18187 -133.91309)"
/>
<path
d="M723.31813,274.08691h-210.5a17.02411,17.02411,0,0,0-17,17v407.8l2-.61v-407.19a15.01828,15.01828,0,0,1,15-15H723.93825Zm183.5,0h-394a17.02411,17.02411,0,0,0-17,17v458a17.0241,17.0241,0,0,0,17,17h394a17.0241,17.0241,0,0,0,17-17v-458A17.02411,17.02411,0,0,0,906.81813,274.08691Zm15,475a15.01828,15.01828,0,0,1-15,15h-394a15.01828,15.01828,0,0,1-15-15v-458a15.01828,15.01828,0,0,1,15-15h394a15.01828,15.01828,0,0,1,15,15Z"
- transform="translate(-276.18187 -133.91309)"
fill="#888a"
+ transform="translate(-276.18187 -133.91309)"
/>
<path
d="M801.81836,318.08691h-184a9.01015,9.01015,0,0,1-9-9v-44a9.01016,9.01016,0,0,1,9-9h184a9.01016,9.01016,0,0,1,9,9v44A9.01015,9.01015,0,0,1,801.81836,318.08691Z"
- transform="translate(-276.18187 -133.91309)"
fill="#888a"
+ transform="translate(-276.18187 -133.91309)"
/>
- <circle cx="433.63626" cy="105.17383" r="20" fill="#888a" />
- <circle cx="433.63626" cy="105.17383" r="12.18187" fill="#444a" />
+ <circle cx="433.63626" cy="105.17383" fill="#888a" r="20" />
+ <circle cx="433.63626" cy="105.17383" fill="#444a" r="12.18187" />
</svg>
No comments yet,
<br /> be the first to comment!
</p>
</div>
);
-};
+}
export default NoComments;
diff --git a/src/components/challenge/description/description-skeleton.tsx b/apps/web/src/components/challenge/description/description-skeleton.tsx
similarity index 66%
rename from src/components/challenge/description/description-skeleton.tsx
rename to apps/web/src/components/challenge/description/description-skeleton.tsx
index 1e498e7c..3647bb0b 100644
--- a/src/components/challenge/description/description-skeleton.tsx
+++ b/apps/web/src/components/challenge/description/description-skeleton.tsx
@@ -3,23 +3,23 @@ import { Skeleton } from '~/components/ui/skeleton';
export function DescriptionSkeleton() {
return (
<div className="flex flex-col space-y-10 px-4 py-3">
- <div className="prose-invert flex flex-col space-y-2 prose-h3:text-xl">
+ <div className="prose-invert prose-h3:text-xl flex flex-col space-y-2">
{/* TITLE */}
- <Skeleton className="h-4 w-2/6 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <Skeleton className="h-4 w-2/6 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
{/* BUTTONS */}
- <Skeleton className="h-4 w-2/6 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <Skeleton className="h-4 w-2/6 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
</div>
- <div className="prose-invert flex flex-col space-y-2 prose-h3:text-xl">
+ <div className="prose-invert prose-h3:text-xl flex flex-col space-y-2">
{/* DESCRIPTION */}
- <Skeleton className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <Skeleton className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
</div>
- <div className="prose-invert flex flex-col space-y-2 prose-h3:text-xl">
+ <div className="prose-invert prose-h3:text-xl flex flex-col space-y-2">
{/* FOR EXAMPLE */}
- <Skeleton className="h-4 w-1/6 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <Skeleton className="h-4 w-1/6 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
{/* FOR EXAMPLE BOX */}
- <Skeleton className="h-36 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <Skeleton className="h-36 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
</div>
</div>
);
diff --git a/src/components/challenge/description/index.tsx b/apps/web/src/components/challenge/description/index.tsx
similarity index 86%
rename from src/components/challenge/description/index.tsx
rename to apps/web/src/components/challenge/description/index.tsx
index d4327919..89db3e1f 100644
--- a/src/components/challenge/description/index.tsx
+++ b/apps/web/src/components/challenge/description/index.tsx
@@ -2,12 +2,13 @@
import { clsx } from 'clsx';
import { debounce } from 'lodash';
-
-import { useSession } from 'next-auth/react';
+import { useSession } from '@repo/auth/react';
import { useRouter } from 'next/navigation';
import { useRef, useState } from 'react';
-
import { Bookmark as BookmarkIcon, Flag, Share, ThumbsUp } from 'lucide-react';
+import { ShareForm } from '../share-form';
+import { addOrRemoveBookmark } from '../bookmark.action';
+import { incrementOrDecrementUpvote } from '../increment.action';
import { Button } from '~/components/ui/button';
import {
Dialog,
@@ -21,25 +22,21 @@ import { Markdown } from '~/components/ui/markdown';
import { Tooltip, TooltipContent, TooltipTrigger } from '~/components/ui/tooltip';
import { TypographyH3 } from '~/components/ui/typography/h3';
import { UserBadge } from '~/components/ui/user-badge';
-import { ShareForm } from '../share-form';
-
import { type ChallengeRouteData } from '~/app/challenge/[id]/getChallengeRouteData';
import ReportDialog from '~/components/report';
import { ActionMenu } from '~/components/ui/action-menu';
import { getRelativeTime } from '~/utils/relativeTime';
-import { addOrRemoveBookmark } from '../bookmark.action';
-import { incrementOrDecrementUpvote } from '../increment.action';
interface Props {
challenge: ChallengeRouteData;
}
-export type FormValues = {
+export interface FormValues {
comments: string;
examples: boolean;
derogatory: boolean;
other: boolean;
-};
+}
export function Description({ challenge }: Props) {
const router = useRouter();
@@ -83,9 +80,8 @@ export function Description({ challenge }: Props) {
<Tooltip>
<TooltipTrigger asChild>
<Button
- variant="ghost"
className="p-1"
- disabled={!session?.data?.user?.id}
+ disabled={!session.data?.user.id}
onClick={() => {
let shouldBookmark = false;
if (hasBookmarked) {
@@ -95,14 +91,13 @@ export function Description({ challenge }: Props) {
shouldBookmark = true;
setHasBookmarked(true);
}
- debouncedBookmark(
- challenge.id,
- session?.data?.user?.id as string,
- shouldBookmark,
- )?.catch((e) => {
- console.error(e);
- });
+ debouncedBookmark(challenge.id, session.data?.user.id!, shouldBookmark)?.catch(
+ (e) => {
+ console.error(e);
+ },
+ );
}}
+ variant="ghost"
>
<BookmarkIcon
className={clsx(
@@ -116,7 +111,7 @@ export function Description({ challenge }: Props) {
</Button>
</TooltipTrigger>
<TooltipContent>
- <p>{session?.data?.user?.id ? 'Bookmark' : 'Login to Bookmark'}</p>
+ <p>{session.data?.user.id ? 'Bookmark' : 'Login to Bookmark'}</p>
</TooltipContent>
</Tooltip>
<Dialog>
@@ -143,8 +138,7 @@ export function Description({ challenge }: Props) {
<TooltipTrigger asChild>
<Button
className="group gap-2 rounded-xl px-2 py-1"
- variant="ghost"
- disabled={!session?.data?.user?.id}
+ disabled={!session.data?.user.id}
onClick={() => {
let shouldIncrement = false;
if (hasVoted) {
@@ -156,14 +150,13 @@ export function Description({ challenge }: Props) {
shouldIncrement = true;
setHasVoted(true);
}
- debouncedSearch(
- challenge.id,
- session?.data?.user?.id as string,
- shouldIncrement,
- )?.catch((e) => {
- console.error(e);
- });
+ debouncedSearch(challenge.id, session.data?.user.id!, shouldIncrement)?.catch(
+ (e) => {
+ console.error(e);
+ },
+ );
}}
+ variant="ghost"
>
<ThumbsUp
className={clsx(
@@ -189,10 +182,10 @@ export function Description({ challenge }: Props) {
</Button>
</TooltipTrigger>
<TooltipContent>
- <p>{session?.data?.user?.id ? 'Upvote' : 'Login to Upvote'}</p>
+ <p>{session.data?.user.id ? 'Upvote' : 'Login to Upvote'}</p>
</TooltipContent>
</Tooltip>
- <ReportDialog reportType="CHALLENGE" challengeId={challenge.id}>
+ <ReportDialog challengeId={challenge.id} reportType="CHALLENGE">
<ActionMenu
items={[
{
@@ -211,11 +204,11 @@ export function Description({ challenge }: Props) {
<div className="mb-6 flex items-center gap-4">
<DifficultyBadge difficulty={challenge.difficulty} />
<UserBadge username={challenge.user.name} />
- <span className="-ml-1 text-xs text-muted-foreground">
+ <span className="text-muted-foreground -ml-1 text-xs">
{getRelativeTime(challenge.updatedAt)}
</span>
</div>
- <div className="prose-invert leading-8 prose-h3:text-xl">
+ <div className="prose-invert prose-h3:text-xl leading-8">
<Markdown>{challenge.description}</Markdown>
</div>
</div>
diff --git a/src/components/challenge/increment.action.ts b/apps/web/src/components/challenge/increment.action.ts
similarity index 95%
rename from src/components/challenge/increment.action.ts
rename to apps/web/src/components/challenge/increment.action.ts
index 87ad6a7e..2c3160d0 100644
--- a/src/components/challenge/increment.action.ts
+++ b/apps/web/src/components/challenge/increment.action.ts
@@ -1,5 +1,5 @@
'use server';
-import { prisma } from '~/server/db';
+import { prisma } from '@repo/db';
export async function incrementOrDecrementUpvote(
challengeId: number,
diff --git a/apps/web/src/components/challenge/left-panel-skeleton.tsx b/apps/web/src/components/challenge/left-panel-skeleton.tsx
new file mode 100644
index 00000000..85790c8c
--- /dev/null
+++ b/apps/web/src/components/challenge/left-panel-skeleton.tsx
@@ -0,0 +1,94 @@
+import { Tabs, TabsContent, TabsList, TabsTrigger } from '../ui/tabs';
+
+export function DescriptionPanelSkeleton() {
+ return (
+ <Tabs className="w-full" defaultValue="description">
+ <TabsList className="bg-background dark:bg-muted sticky top-0 grid h-auto w-full grid-cols-3 rounded-none border-b border-zinc-300 dark:border-zinc-700">
+ <TabsTrigger
+ className="rounded-md rounded-tl-xl duration-300 data-[state=active]:bg-neutral-200 dark:data-[state=active]:bg-neutral-700"
+ value="description"
+ >
+ Description
+ </TabsTrigger>
+ <TabsTrigger
+ className="rounded-md duration-300 data-[state=active]:bg-neutral-200 dark:data-[state=active]:bg-neutral-700"
+ value="solutions"
+ >
+ Solutions
+ </TabsTrigger>
+ <TabsTrigger
+ className="rounded-md rounded-tr-lg duration-300 data-[state=active]:bg-neutral-200 dark:data-[state=active]:bg-neutral-700"
+ value="submissions"
+ >
+ Submissions
+ </TabsTrigger>
+ </TabsList>
+ <TabsContent className="dark:bg-muted mt-0" value="description">
+ <div className="h-full p-5">
+ <div className="mb-2 h-8 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700"> </div>
+ <div className="mb-6 flex items-center gap-6 py-4">
+ <div className="h-6 w-10 rounded-full bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-6 w-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-6 w-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-6 w-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ </div>
+ <div className="flex flex-col space-y-10">
+ <div className="prose-invert prose-h3:text-xl flex flex-col space-y-2">
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ </div>
+ <div className="prose-invert prose-h3:text-xl flex flex-col space-y-2">
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ </div>
+ <div className="prose-invert prose-h3:text-xl flex flex-col space-y-2">
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ </div>
+ </div>
+ </div>
+ </TabsContent>
+ <TabsContent className="flex h-full flex-col space-y-2 p-5" value="solutions">
+ <div className="flex flex-col space-y-10">
+ <div className="prose-invert prose-h3:text-xl flex flex-col space-y-2">
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ </div>
+ <div className="prose-invert prose-h3:text-xl flex flex-col space-y-2">
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ </div>
+ <div className="prose-invert prose-h3:text-xl flex flex-col space-y-2">
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ </div>
+ </div>
+ </TabsContent>
+ <TabsContent className="flex h-full flex-col space-y-2 p-5" value="submissions">
+ <div className="flex flex-col space-y-10">
+ <div className="prose-invert prose-h3:text-xl flex flex-col space-y-2">
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ </div>
+ <div className="prose-invert prose-h3:text-xl flex flex-col space-y-2">
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ </div>
+ <div className="prose-invert prose-h3:text-xl flex flex-col space-y-2">
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ </div>
+ </div>
+ </TabsContent>
+ </Tabs>
+ );
+}
diff --git a/src/components/challenge/save-submission.action.ts b/apps/web/src/components/challenge/save-submission.action.ts
similarity index 87%
rename from src/components/challenge/save-submission.action.ts
rename to apps/web/src/components/challenge/save-submission.action.ts
index 0ecf72f4..0d905f58 100644
--- a/src/components/challenge/save-submission.action.ts
+++ b/apps/web/src/components/challenge/save-submission.action.ts
@@ -1,5 +1,5 @@
'use server';
-import { prisma } from '~/server/db';
+import { prisma } from '@repo/db';
export async function saveSubmission(
challengeId: number,
diff --git a/src/components/challenge/settings-form.tsx b/apps/web/src/components/challenge/settings-form.tsx
similarity index 92%
rename from src/components/challenge/settings-form.tsx
rename to apps/web/src/components/challenge/settings-form.tsx
index f85b6b68..ced4e6b5 100644
--- a/src/components/challenge/settings-form.tsx
+++ b/apps/web/src/components/challenge/settings-form.tsx
@@ -4,7 +4,9 @@ import { zodResolver } from '@hookform/resolvers/zod';
import * as DialogPrimitive from '@radix-ui/react-dialog';
import { useForm } from 'react-hook-form';
import * as z from 'zod';
-
+import { useToast } from '../ui/use-toast';
+import { DialogFooter } from '../ui/dialog';
+import { useEditorSettingsStore } from './settings-store';
import { Button } from '~/components/ui/button';
import {
Form,
@@ -21,9 +23,6 @@ import {
SelectTrigger,
SelectValue,
} from '~/components/ui/select';
-import { useEditorSettingsStore } from './settings-store';
-import { useToast } from '../ui/use-toast';
-import { DialogFooter } from '../ui/dialog';
const formSchema = z.object({
fontSize: z.string(),
@@ -61,7 +60,6 @@ export function SettingsForm() {
return (
<Form {...form}>
- {/* eslint-disable-next-line @typescript-eslint/no-misused-promises */}
<form onSubmit={form.handleSubmit(onSubmit)}>
<FormField
control={form.control}
@@ -69,7 +67,7 @@ export function SettingsForm() {
render={({ field }) => (
<FormItem className="mb-3">
<FormLabel>Font Size</FormLabel>
- <Select onValueChange={field.onChange} defaultValue={field.value}>
+ <Select defaultValue={field.value} onValueChange={field.onChange}>
<FormControl>
<SelectTrigger>
<SelectValue placeholder="Select a font size" />
@@ -98,7 +96,7 @@ export function SettingsForm() {
render={({ field }) => (
<FormItem className="mb-3">
<FormLabel>Key Bindings</FormLabel>
- <Select onValueChange={field.onChange} defaultValue={field.value}>
+ <Select defaultValue={field.value} onValueChange={field.onChange}>
<FormControl>
<SelectTrigger>
<SelectValue placeholder="Select a font size" />
@@ -119,7 +117,7 @@ export function SettingsForm() {
render={({ field }) => (
<FormItem className="mb-3">
<FormLabel>Tab Size</FormLabel>
- <Select onValueChange={field.onChange} defaultValue={field.value}>
+ <Select defaultValue={field.value} onValueChange={field.onChange}>
<FormControl>
<SelectTrigger>
<SelectValue placeholder="Select a tab size" />
diff --git a/src/components/challenge/settings-store.ts b/apps/web/src/components/challenge/settings-store.ts
similarity index 100%
rename from src/components/challenge/settings-store.ts
rename to apps/web/src/components/challenge/settings-store.ts
diff --git a/src/components/challenge/share-form.tsx b/apps/web/src/components/challenge/share-form.tsx
similarity index 100%
rename from src/components/challenge/share-form.tsx
rename to apps/web/src/components/challenge/share-form.tsx
index 9825f3f1..427d3256 100644
--- a/src/components/challenge/share-form.tsx
+++ b/apps/web/src/components/challenge/share-form.tsx
@@ -4,8 +4,8 @@ import { CheckCircle2 as CheckCircle2Icon, Clipboard as ClipboardIcon } from 'lu
import lzstring from 'lz-string';
import { useParams } from 'next/navigation';
import { useCallback, useState } from 'react';
-import { useLocalStorage } from '~/utils/useLocalStorage';
import { DialogFooter } from '../ui/dialog';
+import { useLocalStorage } from '~/utils/useLocalStorage';
export function ShareForm() {
const { id: challengeId } = useParams();
diff --git a/src/components/challenge/solutions/index.tsx b/apps/web/src/components/challenge/solutions/index.tsx
similarity index 87%
rename from src/components/challenge/solutions/index.tsx
rename to apps/web/src/components/challenge/solutions/index.tsx
index 1c65be6e..7f2428b5 100644
--- a/src/components/challenge/solutions/index.tsx
+++ b/apps/web/src/components/challenge/solutions/index.tsx
@@ -1,24 +1,23 @@
'use client';
import { ArrowUp, MessageCircle } from 'lucide-react';
-
-import { useSession } from 'next-auth/react';
+import { useSession } from '@repo/auth/react';
import Link from 'next/link';
import { useState } from 'react';
-import type { ChallengeSolutionsRouteData } from '~/app/challenge/[id]/solutions/page';
-import { getRelativeTime } from '~/utils/relativeTime';
import { SolutionEditor } from './solution-editor';
-import { UserBadge } from '~/components/ui/user-badge';
import NoSolutions from './nosolutions';
import SubmitSolution from './submit-solution';
+import type { ChallengeSolutionsRouteData } from '~/app/challenge/[id]/solutions/page';
+import { getRelativeTime } from '~/utils/relativeTime';
+import { UserBadge } from '~/components/ui/user-badge';
import { Button } from '~/components/ui/button';
interface Props {
challenge: ChallengeSolutionsRouteData;
}
-type View = 'editor' | 'list' | 'details';
+type View = 'details' | 'editor' | 'list';
export function Solutions({ challenge }: Props) {
const [view, setView] = useState<View>('list');
- const loggedInUserHasSolution = challenge?.submission?.length;
+ const loggedInUserHasSolution = challenge.submission.length;
const session = useSession();
return (
@@ -31,26 +30,26 @@ export function Solutions({ challenge }: Props) {
<>
{challenge.sharedSolution.length !== 0 ? (
<>
- <div className="absolute right-0 top-0 flex w-full justify-end border-b border-zinc-300 bg-background/70 p-2 backdrop-blur-sm dark:border-zinc-700 dark:bg-muted/70">
+ <div className="bg-background/70 dark:bg-muted/70 absolute right-0 top-0 flex w-full justify-end border-b border-zinc-300 p-2 backdrop-blur-sm dark:border-zinc-700">
<SubmitSolution disabled={Boolean(!loggedInUserHasSolution)} setView={setView} />
</div>
<div className="custom-scrollable-element h-full overflow-y-auto pt-12">
- {challenge?.sharedSolution.map((solution) => (
+ {challenge.sharedSolution.map((solution) => (
<SolutionRow
- key={solution.id}
- solution={solution}
handleClick={() => {
setView('details');
}}
+ key={solution.id}
+ solution={solution}
/>
))}
</div>
</>
) : (
<NoSolutions
+ loggedInUser={Boolean(session.data?.user)}
+ loggedInUserHasSolution={loggedInUserHasSolution > 0}
setView={setView}
- loggedInUser={session?.data?.user ? true : false}
- loggedInUserHasSolution={loggedInUserHasSolution > 0 ? true : false}
/>
)}
</>
diff --git a/src/components/challenge/solutions/nosolutions.tsx b/apps/web/src/components/challenge/solutions/nosolutions.tsx
similarity index 90%
rename from src/components/challenge/solutions/nosolutions.tsx
rename to apps/web/src/components/challenge/solutions/nosolutions.tsx
index 273ffb2e..8c012017 100644
--- a/src/components/challenge/solutions/nosolutions.tsx
+++ b/apps/web/src/components/challenge/solutions/nosolutions.tsx
@@ -6,50 +6,50 @@ interface Props {
setView: (view: 'editor' | 'list') => void;
}
-const NoSolutions = ({ setView, loggedInUser, loggedInUserHasSolution }: Props) => {
+function NoSolutions({ setView, loggedInUser, loggedInUserHasSolution }: Props) {
return (
<div className="flex h-full items-center justify-center">
<p className="flex flex-col items-center gap-2 text-center text-neutral-500 dark:text-zinc-400">
<svg
- xmlns="http://www.w3.org/2000/svg"
- data-name="Layer 1"
className="mr-6 h-28 w-28"
+ data-name="Layer 1"
viewBox="0 0 647.63626 632.17383"
+ xmlns="http://www.w3.org/2000/svg"
>
<path
d="M687.3279,276.08691H512.81813a15.01828,15.01828,0,0,0-15,15v387.85l-2,.61005-42.81006,13.11a8.00676,8.00676,0,0,1-9.98974-5.31L315.678,271.39691a8.00313,8.00313,0,0,1,5.31006-9.99l65.97022-20.2,191.25-58.54,65.96972-20.2a7.98927,7.98927,0,0,1,9.99024,5.3l32.5498,106.32Z"
- transform="translate(-276.18187 -133.91309)"
fill="#4444"
+ transform="translate(-276.18187 -133.91309)"
/>
<path
d="M725.408,274.08691l-39.23-128.14a16.99368,16.99368,0,0,0-21.23-11.28l-92.75,28.39L380.95827,221.60693l-92.75,28.4a17.0152,17.0152,0,0,0-11.28028,21.23l134.08008,437.93a17.02661,17.02661,0,0,0,16.26026,12.03,16.78926,16.78926,0,0,0,4.96972-.75l63.58008-19.46,2-.62v-2.09l-2,.61-64.16992,19.65a15.01489,15.01489,0,0,1-18.73-9.95l-134.06983-437.94a14.97935,14.97935,0,0,1,9.94971-18.73l92.75-28.4,191.24024-58.54,92.75-28.4a15.15551,15.15551,0,0,1,4.40966-.66,15.01461,15.01461,0,0,1,14.32032,10.61l39.0498,127.56.62012,2h2.08008Z"
- transform="translate(-276.18187 -133.91309)"
fill="#888a"
+ transform="translate(-276.18187 -133.91309)"
/>
<path
d="M398.86279,261.73389a9.0157,9.0157,0,0,1-8.61133-6.3667l-12.88037-42.07178a8.99884,8.99884,0,0,1,5.9712-11.24023l175.939-53.86377a9.00867,9.00867,0,0,1,11.24072,5.9707l12.88037,42.07227a9.01029,9.01029,0,0,1-5.9707,11.24072L401.49219,261.33887A8.976,8.976,0,0,1,398.86279,261.73389Z"
- transform="translate(-276.18187 -133.91309)"
fill="#888a"
+ transform="translate(-276.18187 -133.91309)"
/>
- <circle cx="190.15351" cy="24.95465" r="20" fill="#888a" />
- <circle cx="190.15351" cy="24.95465" r="12.66462" fill="#444a" />
+ <circle cx="190.15351" cy="24.95465" fill="#888a" r="20" />
+ <circle cx="190.15351" cy="24.95465" fill="#444a" r="12.66462" />
<path
d="M878.81836,716.08691h-338a8.50981,8.50981,0,0,1-8.5-8.5v-405a8.50951,8.50951,0,0,1,8.5-8.5h338a8.50982,8.50982,0,0,1,8.5,8.5v405A8.51013,8.51013,0,0,1,878.81836,716.08691Z"
- transform="translate(-276.18187 -133.91309)"
fill="#4444"
+ transform="translate(-276.18187 -133.91309)"
/>
<path
d="M723.31813,274.08691h-210.5a17.02411,17.02411,0,0,0-17,17v407.8l2-.61v-407.19a15.01828,15.01828,0,0,1,15-15H723.93825Zm183.5,0h-394a17.02411,17.02411,0,0,0-17,17v458a17.0241,17.0241,0,0,0,17,17h394a17.0241,17.0241,0,0,0,17-17v-458A17.02411,17.02411,0,0,0,906.81813,274.08691Zm15,475a15.01828,15.01828,0,0,1-15,15h-394a15.01828,15.01828,0,0,1-15-15v-458a15.01828,15.01828,0,0,1,15-15h394a15.01828,15.01828,0,0,1,15,15Z"
- transform="translate(-276.18187 -133.91309)"
fill="#888a"
+ transform="translate(-276.18187 -133.91309)"
/>
<path
d="M801.81836,318.08691h-184a9.01015,9.01015,0,0,1-9-9v-44a9.01016,9.01016,0,0,1,9-9h184a9.01016,9.01016,0,0,1,9,9v44A9.01015,9.01015,0,0,1,801.81836,318.08691Z"
- transform="translate(-276.18187 -133.91309)"
fill="#888a"
+ transform="translate(-276.18187 -133.91309)"
/>
- <circle cx="433.63626" cy="105.17383" r="20" fill="#888a" />
- <circle cx="433.63626" cy="105.17383" r="12.18187" fill="#444a" />
+ <circle cx="433.63626" cy="105.17383" fill="#888a" r="20" />
+ <circle cx="433.63626" cy="105.17383" fill="#444a" r="12.18187" />
</svg>
No solutions yet, <br />
{loggedInUser && loggedInUserHasSolution ? (
@@ -62,6 +62,6 @@ const NoSolutions = ({ setView, loggedInUser, loggedInUserHasSolution }: Props)
</p>
</div>
);
-};
+}
export default NoSolutions;
diff --git a/src/components/challenge/solutions/post-solution.action.ts b/apps/web/src/components/challenge/solutions/post-solution.action.ts
similarity index 89%
rename from src/components/challenge/solutions/post-solution.action.ts
rename to apps/web/src/components/challenge/solutions/post-solution.action.ts
index 5280d30d..167d7d60 100644
--- a/src/components/challenge/solutions/post-solution.action.ts
+++ b/apps/web/src/components/challenge/solutions/post-solution.action.ts
@@ -1,5 +1,5 @@
'use server';
-import { prisma } from '~/server/db';
+import { prisma } from '@repo/db';
interface Args {
challengeId: number;
diff --git a/src/components/challenge/solutions/solution-detail.tsx b/apps/web/src/components/challenge/solutions/solution-detail.tsx
similarity index 87%
rename from src/components/challenge/solutions/solution-detail.tsx
rename to apps/web/src/components/challenge/solutions/solution-detail.tsx
index 81eb71b2..05e858d4 100644
--- a/src/components/challenge/solutions/solution-detail.tsx
+++ b/apps/web/src/components/challenge/solutions/solution-detail.tsx
@@ -2,6 +2,7 @@
import { Calendar, Flag, Share, X } from 'lucide-react';
import Link from 'next/link';
+import { Comments } from '../comments';
import type { ChallengeSolution } from '~/app/challenge/[id]/solutions/[solutionId]/page';
import { Avatar, AvatarFallback, AvatarImage } from '~/components/ui/avatar';
import { Button } from '~/components/ui/button';
@@ -11,7 +12,6 @@ import { toast } from '~/components/ui/use-toast';
import { UserBadge } from '~/components/ui/user-badge';
import ReportDialog from '~/components/report';
import { ActionMenu } from '~/components/ui/action-menu';
-import { Comments } from '../comments';
import { Tooltip, TooltipContent, TooltipTrigger } from '~/components/ui/tooltip';
interface Props {
@@ -32,9 +32,9 @@ export function SolutionDetails({ solution }: Props) {
return (
<div className="relative h-full">
<div className="relative flex h-full flex-col">
- <div className="sticky right-0 top-0 flex w-full border-b border-zinc-300 bg-background/90 p-2 backdrop-blur-sm dark:border-zinc-700 dark:bg-muted/90">
+ <div className="bg-background/90 dark:bg-muted/90 sticky right-0 top-0 flex w-full border-b border-zinc-300 p-2 backdrop-blur-sm dark:border-zinc-700">
<Link href={`/challenge/${solution.challengeId}/solutions`}>
- <X size={20} className="stroke-gray-500 hover:stroke-gray-400" />
+ <X className="stroke-gray-500 hover:stroke-gray-400" size={20} />
</Link>
</div>
<div className="custom-scrollable-element flex-1 overflow-y-auto px-4 py-3">
@@ -42,7 +42,7 @@ export function SolutionDetails({ solution }: Props) {
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
<Avatar>
- <AvatarImage src={solution.user?.image ?? ''} alt="github profile picture" />
+ <AvatarImage alt="github profile picture" src={solution.user?.image ?? ''} />
<AvatarFallback>{solution.user?.name}</AvatarFallback>
</Avatar>
<TypographyLarge>{solution.title}</TypographyLarge>
@@ -51,9 +51,9 @@ export function SolutionDetails({ solution }: Props) {
<Tooltip>
<TooltipTrigger asChild>
<Button
- variant="ghost"
- onClick={handleShareClick}
className="group p-0 text-gray-500 group-hover:text-gray-400"
+ onClick={handleShareClick}
+ variant="ghost"
>
<Share className="mr-2 h-4 w-4 stroke-gray-500 group-hover:stroke-gray-400" />
</Button>
@@ -62,7 +62,7 @@ export function SolutionDetails({ solution }: Props) {
<p>Share challenge</p>
</TooltipContent>
</Tooltip>
- <ReportDialog reportType="SOLUTION" solutionId={solution.id as number}>
+ <ReportDialog reportType="SOLUTION" solutionId={solution.id!}>
<ActionMenu
items={[
{
@@ -83,7 +83,7 @@ export function SolutionDetails({ solution }: Props) {
<div className="flex items-center">
<Calendar className="mr-2 h-4 w-4 stroke-gray-400" />
<span className="text-xs text-gray-400">
- {solution?.createdAt?.toLocaleString()}
+ {solution.createdAt?.toLocaleString()}
</span>
</div>
</div>
@@ -91,7 +91,7 @@ export function SolutionDetails({ solution }: Props) {
<Markdown>{solution.description || ''}</Markdown>
</div>
</div>
- <Comments rootId={solution.id as number} type="SOLUTION" />
+ <Comments rootId={solution.id!} type="SOLUTION" />
</div>
);
}
diff --git a/src/components/challenge/solutions/solution-editor.tsx b/apps/web/src/components/challenge/solutions/solution-editor.tsx
similarity index 89%
rename from src/components/challenge/solutions/solution-editor.tsx
rename to apps/web/src/components/challenge/solutions/solution-editor.tsx
index 0f8649bc..91209ce6 100644
--- a/src/components/challenge/solutions/solution-editor.tsx
+++ b/apps/web/src/components/challenge/solutions/solution-editor.tsx
@@ -1,15 +1,14 @@
import { zodResolver } from '@hookform/resolvers/zod';
-import { useSession } from 'next-auth/react';
+import { useSession } from '@repo/auth/react';
import { useTheme } from 'next-themes';
import { useRouter } from 'next/navigation';
import { useForm } from 'react-hook-form';
import { z } from 'zod';
+import { postSolution } from './post-solution.action';
import { Button } from '~/components/ui/button';
import { Form, FormControl, FormField, FormItem, FormMessage } from '~/components/ui/form';
import { Input } from '~/components/ui/input';
import { useToast } from '~/components/ui/use-toast';
-import { postSolution } from './post-solution.action';
-
import type { ChallengeSolutionsRouteData } from '~/app/challenge/[id]/solutions/page';
import { RichMarkdownEditor } from '~/components/ui/rich-markdown-editor';
@@ -56,7 +55,7 @@ export function SolutionEditor({ dismiss, challenge }: Props) {
challengeId: challenge.id,
description: data.content ?? '',
title: data.title ?? '',
- userId: session?.data?.user?.id as string,
+ userId: session.data?.user.id!,
});
toast({
@@ -77,15 +76,14 @@ export function SolutionEditor({ dismiss, challenge }: Props) {
};
const { theme } = useTheme();
- theme == 'dark'
+ theme === 'dark'
? document.documentElement.setAttribute('data-color-mode', 'dark')
: document.documentElement.setAttribute('data-color-mode', 'light');
return (
<Form {...form}>
- {/* eslint-disable-next-line @typescript-eslint/no-misused-promises */}
<form className="relative flex h-full flex-col" onSubmit={form.handleSubmit(onSubmit)}>
- <div className="sticky right-0 top-0 z-10 flex w-full items-center justify-between gap-2 border-b border-zinc-300 bg-background/90 bg-opacity-20 p-1 pr-2 backdrop-blur-sm dark:border-zinc-700 dark:bg-muted/90">
+ <div className="bg-background/90 dark:bg-muted/90 sticky right-0 top-0 z-10 flex w-full items-center justify-between gap-2 border-b border-zinc-300 bg-opacity-20 p-1 pr-2 backdrop-blur-sm dark:border-zinc-700">
<div className="flex-1">
<FormField
control={form.control}
@@ -106,8 +104,8 @@ export function SolutionEditor({ dismiss, challenge }: Props) {
</div>
<Button
className="h-8 rounded-lg bg-white px-3 py-2 text-black hover:bg-zinc-200 focus-visible:bg-zinc-200 focus-visible:ring-offset-0 dark:bg-zinc-800 dark:text-zinc-300 dark:hover:bg-zinc-700 dark:focus-visible:bg-zinc-700"
- type="button"
onClick={dismiss}
+ type="button"
>
Cancel
</Button>
@@ -120,12 +118,11 @@ export function SolutionEditor({ dismiss, challenge }: Props) {
control={form.control}
name="content"
render={({ field }) => (
- // @ts-ignore
<RichMarkdownEditor
+ allowImageUpload
value={field.value}
// non-split-screen by default
onChange={field.onChange}
- allowImageUpload
/>
)}
/>
diff --git a/src/components/challenge/solutions/solution-skeleton.tsx b/apps/web/src/components/challenge/solutions/solution-skeleton.tsx
similarity index 74%
rename from src/components/challenge/solutions/solution-skeleton.tsx
rename to apps/web/src/components/challenge/solutions/solution-skeleton.tsx
index ed2fcbb6..8f8c462c 100644
--- a/src/components/challenge/solutions/solution-skeleton.tsx
+++ b/apps/web/src/components/challenge/solutions/solution-skeleton.tsx
@@ -5,21 +5,21 @@ export function SolutionsSkeleton() {
<div className="flex flex-col space-y-10 px-4 py-3">
{/* SOLUTION BUTTON */}
<div className="flex justify-end">
- <Skeleton className="h-9 w-1/6 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <Skeleton className="h-9 w-1/6 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
</div>
{/* DIVIDER */}
<div className="flex flex-col">
- <Skeleton className="w-6/6 h-1 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <Skeleton className="w-6/6 h-1 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
</div>
{/* SOLUTIONS */}
- <div className="prose-invert flex flex-col space-y-2 prose-h3:text-xl">
- <Skeleton className="h-10 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="w-6/6 h-10 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="w-6/6 h-10 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="w-6/6 h-10 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="w-6/6 h-10 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="w-6/6 h-10 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="w-6/6 h-10 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <div className="prose-invert prose-h3:text-xl flex flex-col space-y-2">
+ <Skeleton className="h-10 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="w-6/6 h-10 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="w-6/6 h-10 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="w-6/6 h-10 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="w-6/6 h-10 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="w-6/6 h-10 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="w-6/6 h-10 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
</div>
</div>
);
diff --git a/src/components/challenge/solutions/submit-solution.tsx b/apps/web/src/components/challenge/solutions/submit-solution.tsx
similarity index 88%
rename from src/components/challenge/solutions/submit-solution.tsx
rename to apps/web/src/components/challenge/solutions/submit-solution.tsx
index 5de7e42d..dab98a04 100644
--- a/src/components/challenge/solutions/submit-solution.tsx
+++ b/apps/web/src/components/challenge/solutions/submit-solution.tsx
@@ -6,16 +6,16 @@ interface Props {
setView: (view: 'editor' | 'list') => void;
}
-const SubmitSolution = ({ disabled, setView }: Props) => {
+function SubmitSolution({ disabled, setView }: Props) {
return (
<Button
className="h-8 rounded-lg bg-emerald-600 px-3 py-2 hover:bg-emerald-500 dark:bg-emerald-400 dark:hover:bg-emerald-300"
- onClick={() => setView('editor')}
disabled={disabled}
+ onClick={() => setView('editor')}
>
<Plus className="mr-2 h-4 w-4" /> Solution
</Button>
);
-};
+}
export default SubmitSolution;
diff --git a/src/components/challenge/submissions/index.tsx b/apps/web/src/components/challenge/submissions/index.tsx
similarity index 86%
rename from src/components/challenge/submissions/index.tsx
rename to apps/web/src/components/challenge/submissions/index.tsx
index e0a71ff1..65e5b7ee 100644
--- a/src/components/challenge/submissions/index.tsx
+++ b/apps/web/src/components/challenge/submissions/index.tsx
@@ -1,19 +1,18 @@
'use client';
-import type { Submission } from '@prisma/client';
+import type { Submission } from '@repo/db';
import clsx from 'clsx';
-import { getRelativeTime } from '~/utils/relativeTime';
-
import Link from 'next/link';
import { useMemo, useState } from 'react';
-import type { ChallengeSubmissions } from '~/app/challenge/[id]/submissions/getChallengeSubmissions';
import NoSubmissions from './nosubmissions';
+import type { ChallengeSubmissions } from '~/app/challenge/[id]/submissions/getChallengeSubmissions';
+import { getRelativeTime } from '~/utils/relativeTime';
interface Props {
submissions: ChallengeSubmissions;
}
-type Status = 'all' | 'accepted' | 'rejected';
+type Status = 'accepted' | 'all' | 'rejected';
export function Submissions({ submissions }: Props) {
const [selectedStatus, setSelectStatus] = useState<Status>('all');
@@ -28,11 +27,11 @@ export function Submissions({ submissions }: Props) {
return (
<div className="relative h-full">
{submissions.length !== 0 ? (
- <div className="absolute right-0 top-0 z-10 flex w-full gap-2 border-b border-zinc-300 bg-background/70 p-2 px-4 backdrop-blur-sm dark:border-zinc-700 dark:bg-muted/70">
+ <div className="bg-background/70 dark:bg-muted/70 absolute right-0 top-0 z-10 flex w-full gap-2 border-b border-zinc-300 p-2 px-4 backdrop-blur-sm dark:border-zinc-700">
<div
className={`flex cursor-pointer gap-2 rounded-lg px-4 py-1 duration-300 ${
selectedStatus === 'all'
- ? 'bg-blue-600 text-background dark:bg-blue-400'
+ ? 'text-background bg-blue-600 dark:bg-blue-400'
: 'bg-blue-600/10 text-blue-600 hover:bg-blue-600/30 dark:bg-blue-400/10 dark:text-blue-400 dark:hover:bg-blue-400/30'
}
`}
@@ -43,7 +42,7 @@ export function Submissions({ submissions }: Props) {
<div
className={`flex cursor-pointer gap-2 rounded-lg px-4 py-1 duration-300 ${
selectedStatus === 'accepted'
- ? 'bg-emerald-600 text-background dark:bg-emerald-400'
+ ? 'text-background bg-emerald-600 dark:bg-emerald-400'
: 'bg-emerald-600/10 text-emerald-600 hover:bg-emerald-600/30 dark:bg-emerald-400/10 dark:text-emerald-400 dark:hover:bg-emerald-400/30'
}`}
onClick={() => setSelectStatus('accepted')}
@@ -53,7 +52,7 @@ export function Submissions({ submissions }: Props) {
<div
className={`flex cursor-pointer gap-2 rounded-lg px-4 py-1 duration-300 ${
selectedStatus === 'rejected'
- ? 'bg-rose-600 text-background dark:bg-rose-400'
+ ? 'text-background bg-rose-600 dark:bg-rose-400'
: 'bg-rose-600/10 text-rose-600 hover:bg-rose-600/30 dark:bg-rose-400/10 dark:text-rose-400 dark:hover:bg-rose-400/30'
}`}
onClick={() => setSelectStatus('rejected')}
@@ -70,8 +69,8 @@ export function Submissions({ submissions }: Props) {
return (
<SubmissionRow
challengeId={submission.challengeId}
- submission={submission}
key={submission.id}
+ submission={submission}
/>
);
})}
@@ -80,7 +79,6 @@ export function Submissions({ submissions }: Props) {
);
}
-// eslint-disable-next-line @typescript-eslint/no-unused-vars
function SubmissionRow({
challengeId,
submission,
diff --git a/src/components/challenge/submissions/nosubmissions.tsx b/apps/web/src/components/challenge/submissions/nosubmissions.tsx
similarity index 90%
rename from src/components/challenge/submissions/nosubmissions.tsx
rename to apps/web/src/components/challenge/submissions/nosubmissions.tsx
index 4b90a93d..e12c19a7 100644
--- a/src/components/challenge/submissions/nosubmissions.tsx
+++ b/apps/web/src/components/challenge/submissions/nosubmissions.tsx
@@ -1,53 +1,53 @@
-const NoSubmissions = () => {
+function NoSubmissions() {
return (
<div className="flex h-full items-center justify-center">
<p className="flex flex-col items-center gap-2 text-center text-neutral-500 dark:text-zinc-400">
<svg
- xmlns="http://www.w3.org/2000/svg"
- data-name="Layer 1"
className="mr-6 h-28 w-28"
+ data-name="Layer 1"
viewBox="0 0 647.63626 632.17383"
+ xmlns="http://www.w3.org/2000/svg"
>
<path
d="M687.3279,276.08691H512.81813a15.01828,15.01828,0,0,0-15,15v387.85l-2,.61005-42.81006,13.11a8.00676,8.00676,0,0,1-9.98974-5.31L315.678,271.39691a8.00313,8.00313,0,0,1,5.31006-9.99l65.97022-20.2,191.25-58.54,65.96972-20.2a7.98927,7.98927,0,0,1,9.99024,5.3l32.5498,106.32Z"
- transform="translate(-276.18187 -133.91309)"
fill="#4444"
+ transform="translate(-276.18187 -133.91309)"
/>
<path
d="M725.408,274.08691l-39.23-128.14a16.99368,16.99368,0,0,0-21.23-11.28l-92.75,28.39L380.95827,221.60693l-92.75,28.4a17.0152,17.0152,0,0,0-11.28028,21.23l134.08008,437.93a17.02661,17.02661,0,0,0,16.26026,12.03,16.78926,16.78926,0,0,0,4.96972-.75l63.58008-19.46,2-.62v-2.09l-2,.61-64.16992,19.65a15.01489,15.01489,0,0,1-18.73-9.95l-134.06983-437.94a14.97935,14.97935,0,0,1,9.94971-18.73l92.75-28.4,191.24024-58.54,92.75-28.4a15.15551,15.15551,0,0,1,4.40966-.66,15.01461,15.01461,0,0,1,14.32032,10.61l39.0498,127.56.62012,2h2.08008Z"
- transform="translate(-276.18187 -133.91309)"
fill="#888a"
+ transform="translate(-276.18187 -133.91309)"
/>
<path
d="M398.86279,261.73389a9.0157,9.0157,0,0,1-8.61133-6.3667l-12.88037-42.07178a8.99884,8.99884,0,0,1,5.9712-11.24023l175.939-53.86377a9.00867,9.00867,0,0,1,11.24072,5.9707l12.88037,42.07227a9.01029,9.01029,0,0,1-5.9707,11.24072L401.49219,261.33887A8.976,8.976,0,0,1,398.86279,261.73389Z"
- transform="translate(-276.18187 -133.91309)"
fill="#888a"
+ transform="translate(-276.18187 -133.91309)"
/>
- <circle cx="190.15351" cy="24.95465" r="20" fill="#888a" />
- <circle cx="190.15351" cy="24.95465" r="12.66462" fill="#444a" />
+ <circle cx="190.15351" cy="24.95465" fill="#888a" r="20" />
+ <circle cx="190.15351" cy="24.95465" fill="#444a" r="12.66462" />
<path
d="M878.81836,716.08691h-338a8.50981,8.50981,0,0,1-8.5-8.5v-405a8.50951,8.50951,0,0,1,8.5-8.5h338a8.50982,8.50982,0,0,1,8.5,8.5v405A8.51013,8.51013,0,0,1,878.81836,716.08691Z"
- transform="translate(-276.18187 -133.91309)"
fill="#4444"
+ transform="translate(-276.18187 -133.91309)"
/>
<path
d="M723.31813,274.08691h-210.5a17.02411,17.02411,0,0,0-17,17v407.8l2-.61v-407.19a15.01828,15.01828,0,0,1,15-15H723.93825Zm183.5,0h-394a17.02411,17.02411,0,0,0-17,17v458a17.0241,17.0241,0,0,0,17,17h394a17.0241,17.0241,0,0,0,17-17v-458A17.02411,17.02411,0,0,0,906.81813,274.08691Zm15,475a15.01828,15.01828,0,0,1-15,15h-394a15.01828,15.01828,0,0,1-15-15v-458a15.01828,15.01828,0,0,1,15-15h394a15.01828,15.01828,0,0,1,15,15Z"
- transform="translate(-276.18187 -133.91309)"
fill="#888a"
+ transform="translate(-276.18187 -133.91309)"
/>
<path
d="M801.81836,318.08691h-184a9.01015,9.01015,0,0,1-9-9v-44a9.01016,9.01016,0,0,1,9-9h184a9.01016,9.01016,0,0,1,9,9v44A9.01015,9.01015,0,0,1,801.81836,318.08691Z"
- transform="translate(-276.18187 -133.91309)"
fill="#888a"
+ transform="translate(-276.18187 -133.91309)"
/>
- <circle cx="433.63626" cy="105.17383" r="20" fill="#888a" />
- <circle cx="433.63626" cy="105.17383" r="12.18187" fill="#444a" />
+ <circle cx="433.63626" cy="105.17383" fill="#888a" r="20" />
+ <circle cx="433.63626" cy="105.17383" fill="#444a" r="12.18187" />
</svg>
No submissions yet,
<br /> submit the challenge!
</p>
</div>
);
-};
+}
export default NoSubmissions;
diff --git a/src/components/challenge/submissions/overview.tsx b/apps/web/src/components/challenge/submissions/overview.tsx
similarity index 91%
rename from src/components/challenge/submissions/overview.tsx
rename to apps/web/src/components/challenge/submissions/overview.tsx
index 164ffe92..3958fb01 100644
--- a/src/components/challenge/submissions/overview.tsx
+++ b/apps/web/src/components/challenge/submissions/overview.tsx
@@ -40,13 +40,13 @@ export function SubmissionOverview({ submissionId }: Props) {
<>
<div className="sticky top-0 flex h-[40px] items-center justify-between border-b border-zinc-300 px-3 py-2 dark:border-zinc-700 dark:bg-[#1e1e1e]">
<Link href={`/challenge/${submission.challengeId}/submissions`}>
- <X size={20} className="stroke-gray-500 hover:stroke-gray-400" />
+ <X className="stroke-gray-500 hover:stroke-gray-400" size={20} />
</Link>
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
- <Button variant="ghost" onClick={copyToClipboard}>
- <Copy size={20} className="stroke-gray-500 hover:stroke-gray-400" />
+ <Button onClick={copyToClipboard} variant="ghost">
+ <Copy className="stroke-gray-500 hover:stroke-gray-400" size={20} />
</Button>
</TooltipTrigger>
<TooltipContent>
diff --git a/src/components/challenge/submissions/submissions-skeleton.tsx b/apps/web/src/components/challenge/submissions/submissions-skeleton.tsx
similarity index 70%
rename from src/components/challenge/submissions/submissions-skeleton.tsx
rename to apps/web/src/components/challenge/submissions/submissions-skeleton.tsx
index fc96372b..b8087183 100644
--- a/src/components/challenge/submissions/submissions-skeleton.tsx
+++ b/apps/web/src/components/challenge/submissions/submissions-skeleton.tsx
@@ -1,27 +1,28 @@
import { Skeleton } from '~/components/ui/skeleton';
+
export function SubmissionsSkeleton() {
return (
<div className="mb-0 flex flex-col space-y-10 px-4 pt-3">
{/* ALL / ACCEPTED / REJECTED */}
- <div className="align-center prose-invert flex prose-h3:text-xl">
- <Skeleton className="mr-2 h-8 w-1/6 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="mr-2 h-8 w-1/6 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="mr-2 h-8 w-1/6 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <div className="align-center prose-invert prose-h3:text-xl flex">
+ <Skeleton className="mr-2 h-8 w-1/6 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="mr-2 h-8 w-1/6 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="mr-2 h-8 w-1/6 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
</div>
{/* DIVIDER */}
<div className="flex flex-col">
- <Skeleton className=" h-1 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <Skeleton className=" h-1 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
</div>
{/* SUBMISSIONS */}
- <div className="prose-invert flex flex-col space-y-2 prose-h3:text-xl">
- <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
- <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <div className="prose-invert prose-h3:text-xl flex flex-col space-y-2">
+ <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
+ <Skeleton className="h-12 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
</div>
</div>
);
diff --git a/src/components/create/explore-card-inputs.tsx b/apps/web/src/components/create/explore-card-inputs.tsx
similarity index 93%
rename from src/components/create/explore-card-inputs.tsx
rename to apps/web/src/components/create/explore-card-inputs.tsx
index 9e9edbd6..7b2ed645 100644
--- a/src/components/create/explore-card-inputs.tsx
+++ b/apps/web/src/components/create/explore-card-inputs.tsx
@@ -1,12 +1,12 @@
'use client';
// TODO: unify this with the explore card into single component (maybe? idk how that'd work, too many changes)
import { MessageCircle, ThumbsUp } from 'lucide-react';
+import { type Difficulty } from '@repo/db';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../ui/card';
-import { getRelativeTime } from '~/utils/relativeTime';
-import { Select, SelectContent, SelectItem, SelectTrigger } from '~/components/ui/select';
-import { type Difficulty } from '@prisma/client';
import { Button } from '../ui/button';
import { DifficultyBadge } from '../ui/difficulty-badge';
+import { getRelativeTime } from '~/utils/relativeTime';
+import { Select, SelectContent, SelectItem, SelectTrigger } from '~/components/ui/select';
// NOTE: this does not have hover: effects from explore-card
const GRADIENTS_BY_DIFFICULTY = {
@@ -28,14 +28,14 @@ interface Props {
shortDescription: string;
setShortDescription: (shortDescription: string) => void;
}
-const ExploreCardInputs = ({
+function ExploreCardInputs({
name,
setName,
difficulty,
setDifficulty,
shortDescription,
setShortDescription,
-}: Props) => {
+}: Props) {
return (
<Card
className={`overflow-hidden duration-300
@@ -46,10 +46,10 @@ const ExploreCardInputs = ({
<CardTitle className="pb-4 pt-0 text-3xl dark:text-white">
<input
className="bg-transparent placeholder-black/50 focus:outline-none dark:placeholder-white/70"
+ onChange={(ev) => setName(ev.currentTarget.value)}
+ placeholder="Enter Challenge Title"
style={{ textShadow: '0 0 0.5rem #0003' }}
value={name}
- placeholder="Enter Challenge Title"
- onChange={(ev) => setName(ev.currentTarget.value)}
/>
</CardTitle>
<div className="flex items-center gap-6 text-center text-white duration-300 dark:group-hover:text-black">
@@ -75,28 +75,28 @@ const ExploreCardInputs = ({
</div>
</CardHeader>
- <CardContent className="relative flex flex-col justify-between gap-2 rounded-xl bg-background p-6 pb-0 duration-300 group-hover:bg-card-hovered">
+ <CardContent className="bg-background group-hover:bg-card-hovered relative flex flex-col justify-between gap-2 rounded-xl p-6 pb-0 duration-300">
<div className="flex items-center gap-2">
<Button
- size="sm"
className="-ml-[0.33rem] flex h-auto w-fit items-center rounded-full bg-transparent py-1 pl-[0.33rem] pr-2 text-xs font-bold text-neutral-700 hover:bg-black/10 dark:text-white dark:hover:bg-white/20"
+ size="sm"
>
@you
</Button>
- <div className="text-sm text-muted-foreground">{getRelativeTime(new Date())}</div>
+ <div className="text-muted-foreground text-sm">{getRelativeTime(new Date())}</div>
</div>
<CardDescription className="relative h-20 overflow-hidden pb-4">
<div className="pointer-events-none absolute inset-0 h-full w-full shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card))] duration-300 group-hover:shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card-hovered))] group-focus:shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card-hovered))]" />
<textarea
className="w-full resize-none bg-transparent placeholder-black/70 focus:outline-none dark:text-white dark:placeholder-white/70"
- value={shortDescription}
- placeholder="Enter Short Description"
onChange={(ev) => setShortDescription(ev.currentTarget.value)}
+ placeholder="Enter Short Description"
+ value={shortDescription}
/>
</CardDescription>
</CardContent>
</Card>
);
-};
+}
export default ExploreCardInputs;
diff --git a/src/components/explore/explore-card-skeleton.tsx b/apps/web/src/components/explore/explore-card-skeleton.tsx
similarity index 86%
rename from src/components/explore/explore-card-skeleton.tsx
rename to apps/web/src/components/explore/explore-card-skeleton.tsx
index dcca2960..5cdb5185 100644
--- a/src/components/explore/explore-card-skeleton.tsx
+++ b/apps/web/src/components/explore/explore-card-skeleton.tsx
@@ -6,30 +6,30 @@ export function ExploreCardSkeleton() {
<Card className="group duration-300">
<CardHeader className="relative grid items-start gap-4">
<div className="flex flex-col items-start gap-2">
- <Skeleton className="h-6 w-16 rounded-full bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <Skeleton className="h-6 w-16 rounded-full bg-zinc-300 dark:bg-zinc-700" />
<CardTitle className="h-10 w-full animate-pulse rounded-lg bg-zinc-300 pb-4 text-3xl text-white dark:bg-zinc-700">
{' '}
</CardTitle>
</div>
</CardHeader>
- <CardContent className="relative rounded-xl p-6 duration-300 group-hover:bg-card-hovered">
+ <CardContent className="group-hover:bg-card-hovered relative rounded-xl p-6 duration-300">
<CardDescription className="relative h-14 max-w-[75%] overflow-hidden pb-4">
<div className="pointer-events-none absolute inset-0 h-full w-full shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card))] duration-300 group-hover:shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card-hovered))] group-focus:shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card-hovered))]" />
- <Skeleton className="h-6 w-full rounded-full bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <Skeleton className="h-6 w-full rounded-full bg-zinc-300 dark:bg-zinc-700" />
</CardDescription>
<div className="text-muted-foreground">
<div className="flex items-center justify-between">
<div className="flex items-center gap-6 text-center">
<div className="flex items-center gap-2">
- <Skeleton className="h-6 w-16 rounded-full bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <Skeleton className="h-6 w-16 rounded-full bg-zinc-300 dark:bg-zinc-700" />
</div>
<div className="flex items-center gap-2">
- <Skeleton className="h-6 w-16 rounded-full bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <Skeleton className="h-6 w-16 rounded-full bg-zinc-300 dark:bg-zinc-700" />
</div>
</div>
<div className="flex items-center gap-2 text-sm">
- <Skeleton className="h-6 w-16 rounded-full bg-zinc-300 dark:bg-zinc-700"></Skeleton>
+ <Skeleton className="h-6 w-16 rounded-full bg-zinc-300 dark:bg-zinc-700" />
</div>
</div>
</div>
diff --git a/src/components/explore/explore-card.tsx b/apps/web/src/components/explore/explore-card.tsx
similarity index 88%
rename from src/components/explore/explore-card.tsx
rename to apps/web/src/components/explore/explore-card.tsx
index f00ce8ff..fee5aeca 100644
--- a/src/components/explore/explore-card.tsx
+++ b/apps/web/src/components/explore/explore-card.tsx
@@ -1,14 +1,13 @@
import { Circle, Diamond, MessageCircle, Plus, Sparkle, ThumbsUp, Triangle } from 'lucide-react';
-
-import { getRelativeTime } from '~/utils/relativeTime';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../ui/card';
-import { type ExploreChallengeFetcher } from './';
import { DifficultyBadge } from '../ui/difficulty-badge';
+import { type ExploreChallengeFetcher } from '.';
+import { getRelativeTime } from '~/utils/relativeTime';
interface ExploreCardProps {
challenge: Pick<
Awaited<ReturnType<ExploreChallengeFetcher>>[0],
- 'difficulty' | 'name' | 'shortDescription' | 'user' | '_count' | 'updatedAt'
+ '_count' | 'difficulty' | 'name' | 'shortDescription' | 'updatedAt' | 'user'
>;
}
@@ -44,7 +43,7 @@ const GRADIENTS_BY_DIFFICULTY = {
'bg-gradient-to-br hover:bg-[right_-2px_bottom] bg-[length:200%_200%] bg-left-top dark:from-orange-950 dark:via-orange-500 dark:to-orange-300 dark:via-30% from-orange-400 via-orange-600 via-30% to-orange-600',
};
-export const ExploreCard = ({ challenge }: ExploreCardProps) => {
+export function ExploreCard({ challenge }: ExploreCardProps) {
return (
<Card
className={`group relative overflow-hidden duration-300 sm:min-w-[300px] xl:min-w-[333px]
@@ -55,32 +54,32 @@ export const ExploreCard = ({ challenge }: ExploreCardProps) => {
>
{challenge.difficulty === 'BEGINNER' && (
<>
- <Circle className="absolute -right-4 -top-8 h-24 w-24 origin-top-right stroke-1 text-white/30 duration-300 group-hover:scale-90 dark:group-hover:text-black/30"></Circle>
- <Circle className="absolute -right-4 -top-8 h-32 w-32 origin-top-right stroke-1 text-white/30 duration-500 group-hover:scale-90 dark:group-hover:text-black/30"></Circle>
+ <Circle className="absolute -right-4 -top-8 h-24 w-24 origin-top-right stroke-1 text-white/30 duration-300 group-hover:scale-90 dark:group-hover:text-black/30" />
+ <Circle className="absolute -right-4 -top-8 h-32 w-32 origin-top-right stroke-1 text-white/30 duration-500 group-hover:scale-90 dark:group-hover:text-black/30" />
</>
)}
{challenge.difficulty === 'EASY' && (
<>
- <Diamond className="absolute -right-5 -top-10 h-24 w-24 origin-top-right stroke-1 text-white/30 duration-300 group-hover:rotate-6 group-hover:scale-90 dark:group-hover:text-black/30"></Diamond>
- <Diamond className="absolute -right-6 -top-12 h-36 w-36 rotate-12 stroke-[0.75] text-white/30 duration-300 group-hover:-translate-y-2 group-hover:translate-x-3 group-hover:rotate-6 group-hover:scale-90 dark:group-hover:text-black/30"></Diamond>
+ <Diamond className="absolute -right-5 -top-10 h-24 w-24 origin-top-right stroke-1 text-white/30 duration-300 group-hover:rotate-6 group-hover:scale-90 dark:group-hover:text-black/30" />
+ <Diamond className="absolute -right-6 -top-12 h-36 w-36 rotate-12 stroke-[0.75] text-white/30 duration-300 group-hover:-translate-y-2 group-hover:translate-x-3 group-hover:rotate-6 group-hover:scale-90 dark:group-hover:text-black/30" />
</>
)}
{challenge.difficulty === 'MEDIUM' && (
<>
- <Triangle className="absolute -right-5 -top-5 h-16 w-16 rotate-0 stroke-2 text-white/50 duration-500 group-hover:-translate-x-10 group-hover:translate-y-10 group-hover:rotate-[90deg] dark:group-hover:text-black/30"></Triangle>
- <Triangle className="absolute -right-14 -top-16 h-36 w-36 rotate-0 stroke-1 text-white/50 duration-300 group-hover:translate-x-3 group-hover:rotate-[30deg] group-hover:scale-50 group-hover:stroke-2 dark:group-hover:text-black/30"></Triangle>
+ <Triangle className="absolute -right-5 -top-5 h-16 w-16 rotate-0 stroke-2 text-white/50 duration-500 group-hover:-translate-x-10 group-hover:translate-y-10 group-hover:rotate-[90deg] dark:group-hover:text-black/30" />
+ <Triangle className="absolute -right-14 -top-16 h-36 w-36 rotate-0 stroke-1 text-white/50 duration-300 group-hover:translate-x-3 group-hover:rotate-[30deg] group-hover:scale-50 group-hover:stroke-2 dark:group-hover:text-black/30" />
</>
)}
{challenge.difficulty === 'HARD' && (
<>
- <Plus className="absolute -right-4 -top-8 h-24 w-24 stroke-1 text-white/30 duration-300 group-hover:scale-0 dark:group-hover:text-black/30"></Plus>
- <Plus className="absolute -right-4 -top-8 h-32 w-32 stroke-1 text-white/30 duration-500 group-hover:-translate-y-5 group-hover:translate-x-5 group-hover:-rotate-90 group-hover:scale-75 dark:group-hover:text-black/30"></Plus>
+ <Plus className="absolute -right-4 -top-8 h-24 w-24 stroke-1 text-white/30 duration-300 group-hover:scale-0 dark:group-hover:text-black/30" />
+ <Plus className="absolute -right-4 -top-8 h-32 w-32 stroke-1 text-white/30 duration-500 group-hover:-translate-y-5 group-hover:translate-x-5 group-hover:-rotate-90 group-hover:scale-75 dark:group-hover:text-black/30" />
</>
)}
{challenge.difficulty === 'EXTREME' && (
<>
- <Sparkle className="absolute -right-4 -top-10 h-24 w-24 stroke-1 text-white/40 duration-500 group-hover:-translate-x-4 group-hover:translate-y-10 group-hover:-rotate-[125deg] dark:group-hover:text-black/30"></Sparkle>
- <Sparkle className="absolute -right-12 -top-20 h-48 w-48 origin-top-right stroke-1 text-white/40 duration-300 group-hover:scale-50 dark:group-hover:text-black/30"></Sparkle>
+ <Sparkle className="absolute -right-4 -top-10 h-24 w-24 stroke-1 text-white/40 duration-500 group-hover:-translate-x-4 group-hover:translate-y-10 group-hover:-rotate-[125deg] dark:group-hover:text-black/30" />
+ <Sparkle className="absolute -right-12 -top-20 h-48 w-48 origin-top-right stroke-1 text-white/40 duration-300 group-hover:scale-50 dark:group-hover:text-black/30" />
</>
)}
<CardHeader className="relative flex flex-col items-start gap-1 py-5">
@@ -99,22 +98,22 @@ export const ExploreCard = ({ challenge }: ExploreCardProps) => {
</div>
</div>
</CardHeader>
- <CardContent className="relative flex flex-col justify-between gap-2 rounded-xl bg-background p-6 pb-0 duration-300 group-hover:bg-card-hovered">
+ <CardContent className="bg-background group-hover:bg-card-hovered relative flex flex-col justify-between gap-2 rounded-xl p-6 pb-0 duration-300">
<div className="flex items-center gap-2">
<div className="-ml-[0.33rem] flex h-auto w-fit items-center whitespace-nowrap rounded-full bg-transparent py-1 pl-[0.33rem] pr-2 text-xs font-bold text-neutral-700 duration-300 hover:bg-black/10 dark:text-white dark:hover:bg-white/20">
@{challenge.user.name}
</div>
- <div className="whitespace-nowrap text-sm text-muted-foreground">
+ <div className="text-muted-foreground whitespace-nowrap text-sm">
{getRelativeTime(challenge.updatedAt)}
</div>
</div>
<CardDescription className="relative h-20 overflow-hidden pb-4">
<div className="pointer-events-none absolute inset-0 h-full w-full shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card))] duration-300 group-hover:shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card-hovered))] group-focus:shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card-hovered))]" />
- {challenge?.shortDescription}
+ {challenge.shortDescription}
</CardDescription>
</CardContent>
</Card>
);
-};
+}
export default ExploreCard;
diff --git a/src/components/explore/index.tsx b/apps/web/src/components/explore/index.tsx
similarity index 88%
rename from src/components/explore/index.tsx
rename to apps/web/src/components/explore/index.tsx
index 010fac4c..67644fdc 100644
--- a/src/components/explore/index.tsx
+++ b/apps/web/src/components/explore/index.tsx
@@ -1,5 +1,5 @@
import { Suspense } from 'react';
-import { prisma } from '~/server/db';
+import { prisma } from '@repo/db';
import { ExploreSection } from './section';
import { ExploreSectionSkeleton } from './section-skeleton';
@@ -15,15 +15,15 @@ export async function Explore() {
<span className="font-semibold dark:text-neutral-200">perfect</span> challenge!
</p>
<Suspense fallback={<ExploreSectionSkeleton />}>
- <ExploreSection title="Great for Beginners" fetcher={getEasyChallenges} />
+ <ExploreSection fetcher={getEasyChallenges} title="Great for Beginners" />
</Suspense>
<Suspense fallback={<ExploreSectionSkeleton />}>
- <ExploreSection title="Great for Enthusiasts" fetcher={getMediumChallenges} />
+ <ExploreSection fetcher={getMediumChallenges} title="Great for Enthusiasts" />
</Suspense>
<Suspense fallback={<ExploreSectionSkeleton />}>
- <ExploreSection title="For the Experts" fetcher={getHardChallenges} />
+ <ExploreSection fetcher={getHardChallenges} title="For the Experts" />
</Suspense>
</div>
);
diff --git a/src/components/explore/section-carousel.tsx b/apps/web/src/components/explore/section-carousel.tsx
similarity index 88%
rename from src/components/explore/section-carousel.tsx
rename to apps/web/src/components/explore/section-carousel.tsx
index 9dd29396..dc951432 100644
--- a/src/components/explore/section-carousel.tsx
+++ b/apps/web/src/components/explore/section-carousel.tsx
@@ -1,9 +1,9 @@
'use client';
import Link from 'next/link';
-import { ExploreCard } from './explore-card';
-import type { Difficulty } from '@prisma/client';
+import type { Difficulty } from '@repo/db';
import { useEffect, useRef, useState } from 'react';
import { ChevronRight } from 'lucide-react';
+import { ExploreCard } from './explore-card';
import type { ExploreChallengeFetcher } from '.';
interface Props {
@@ -79,9 +79,9 @@ export function ExploreCarousel({ challenges }: Props) {
return (
<div
+ className="hide-scrollbar flex w-full snap-x flex-nowrap gap-4 overflow-x-scroll scroll-smooth p-6"
id="container"
ref={containerRef}
- className="hide-scrollbar flex w-full snap-x flex-nowrap gap-4 overflow-x-scroll scroll-smooth p-6"
>
{challenges
.sort((a, b) =>
@@ -95,17 +95,17 @@ export function ExploreCarousel({ challenges }: Props) {
href={`/challenge/${challenge.id}`}
key={challenge.id}
>
- <ExploreCard key={`challenge-${challenge.id}`} challenge={challenge} />
+ <ExploreCard challenge={challenge} key={`challenge-${challenge.id}`} />
</Link>
))}
<button
- className="absolute -right-5 top-1/2 hidden -translate-y-1/2 rounded-[5rem] bg-background p-4 pl-1 duration-300 active:scale-95 sm:block"
+ className="bg-background absolute -right-5 top-1/2 hidden -translate-y-1/2 rounded-[5rem] p-4 pl-1 duration-300 active:scale-95 sm:block"
id="slideRight"
>
<ChevronRight className="h-4 w-4" />
</button>
<button
- className="absolute -left-5 top-1/2 hidden -translate-y-1/2 rounded-[5rem] bg-background p-4 pr-1 duration-300 active:scale-95 sm:block"
+ className="bg-background absolute -left-5 top-1/2 hidden -translate-y-1/2 rounded-[5rem] p-4 pr-1 duration-300 active:scale-95 sm:block"
id="slideLeft"
>
<ChevronRight className="h-4 w-4 rotate-180 transform" />
diff --git a/src/components/explore/section-skeleton.tsx b/apps/web/src/components/explore/section-skeleton.tsx
similarity index 94%
rename from src/components/explore/section-skeleton.tsx
rename to apps/web/src/components/explore/section-skeleton.tsx
index 296e3050..c52e788c 100644
--- a/src/components/explore/section-skeleton.tsx
+++ b/apps/web/src/components/explore/section-skeleton.tsx
@@ -5,7 +5,7 @@ export function ExploreSectionSkeleton() {
return (
<div className="w-full py-5">
<div className="flex items-center justify-between">
- <div className="ml-4 w-16"></div>
+ <div className="ml-4 w-16" />
<Skeleton className="my-4 h-10 w-1/3 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
<Skeleton className="my-4 mr-4 h-4 w-16 rounded-lg bg-zinc-300 dark:bg-zinc-700" />
</div>
diff --git a/src/components/explore/section.tsx b/apps/web/src/components/explore/section.tsx
similarity index 86%
rename from src/components/explore/section.tsx
rename to apps/web/src/components/explore/section.tsx
index 02184282..22417200 100644
--- a/src/components/explore/section.tsx
+++ b/apps/web/src/components/explore/section.tsx
@@ -1,7 +1,7 @@
-import type { ExploreChallengeFetcher } from '.';
-import { Button } from '../ui/button';
import { ChevronRight, Diamond } from 'lucide-react';
+import { Button } from '../ui/button';
import { ExploreCarousel } from './section-carousel';
+import type { ExploreChallengeFetcher } from '.';
interface Props {
title: string;
@@ -44,22 +44,22 @@ export async function ExploreSection({ title, fetcher }: Props) {
>
{challenges[0]?.difficulty === 'EASY' && (
<>
- <Diamond className="absolute -right-5 -top-10 h-24 w-24 stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10"></Diamond>
- <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[5%] translate-y-[255%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10"></Diamond>
+ <Diamond className="absolute -right-5 -top-10 h-24 w-24 stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10" />
+ <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[5%] translate-y-[255%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10" />
- <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[130%] translate-y-[130%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10"></Diamond>
+ <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[130%] translate-y-[130%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10" />
- <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[265%] translate-y-[5%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10"></Diamond>
- <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[260%] translate-y-[260%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10"></Diamond>
+ <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[265%] translate-y-[5%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10" />
+ <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[260%] translate-y-[260%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10" />
- <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[395%] translate-y-[135%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10"></Diamond>
+ <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[395%] translate-y-[135%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10" />
- <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[525%] translate-y-[265%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10"></Diamond>
- <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[535%] translate-y-[15%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10"></Diamond>
+ <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[525%] translate-y-[265%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10" />
+ <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[535%] translate-y-[15%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10" />
- <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[665%] translate-y-[145%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10"></Diamond>
+ <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[665%] translate-y-[145%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10" />
- <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[795%] translate-y-[275%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10"></Diamond>
+ <Diamond className="absolute -right-5 -top-10 h-24 w-24 -translate-x-[795%] translate-y-[275%] stroke-1 text-green-600/10 duration-300 group-hover:scale-90 dark:text-green-500/10" />
</>
)}
@@ -73,9 +73,9 @@ export async function ExploreSection({ title, fetcher }: Props) {
{title}
</h2>
<Button
- variant="ghost"
className={`group items-center whitespace-nowrap rounded-full py-2 pl-4 pr-3 backdrop-blur-sm
${BUTTONS_BY_DIFFICULTY[challenges[0]?.difficulty || 'BEGINNER']}`}
+ variant="ghost"
>
view more
<ChevronRight className="ml-2 h-4 w-4 stroke-[3] duration-300 group-hover:translate-x-1" />
diff --git a/src/components/landing/community/community.module.css b/apps/web/src/components/landing/community/community.module.css
similarity index 100%
rename from src/components/landing/community/community.module.css
rename to apps/web/src/components/landing/community/community.module.css
diff --git a/src/components/landing/community/community.tsx b/apps/web/src/components/landing/community/community.tsx
similarity index 98%
rename from src/components/landing/community/community.tsx
rename to apps/web/src/components/landing/community/community.tsx
index 1688d8e0..39ba1ebc 100644
--- a/src/components/landing/community/community.tsx
+++ b/apps/web/src/components/landing/community/community.tsx
@@ -1,15 +1,13 @@
'use client';
-// eslint-disable-next-line no-restricted-imports
-import { contributors } from '../../../../public/contributors';
import { GitBranch } from 'lucide-react';
-
import { clsx } from 'clsx';
import { type CSSProperties } from 'react';
import { useInView } from 'react-intersection-observer';
+import { contributors } from '../../../../public/contributors';
import styles from '~/components/landing/community/community.module.css';
-const Community = function () {
+function Community() {
type WrapperStyle = CSSProperties & {
'--bottom': string;
};
@@ -22,17 +20,17 @@ const Community = function () {
<>
<div className="containerthing -z-10 flex rotate-180 opacity-50 dark:opacity-100">
<div
- ref={ref}
className={clsx(
{ 'scale-[3] md:scale-[2] 2xl:scale-[1.75]': inView },
'thething translate-z-0 translate-y-[-180px] rotate-180 scale-50 animate-none duration-1000',
)}
+ ref={ref}
style={
{
'--bottom': '#4188e6',
} as WrapperStyle
}
- ></div>
+ />
</div>
{/* backdrop styles don't apply for the last pixel row of the elment for some reason no there's p and m offsets*/}
<section className={clsx(styles.backdrop, 'relative -mb-[1px] pb-[1px]')}>
@@ -58,8 +56,8 @@ const Community = function () {
<button className="group mx-auto flex items-center gap-2 rounded-xl bg-neutral-200 px-3 py-2 text-sm font-bold duration-300 hover:bg-[#5865F2] hover:text-white dark:bg-neutral-800 dark:hover:bg-[#5865F2]">
<svg
className="h-4 w-4 fill-current group-hover:rotate-[360deg]"
- style={{ transition: 'color 0s, transform 0.3s' }}
role="img"
+ style={{ transition: 'color 0s, transform 0.3s' }}
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
@@ -71,8 +69,8 @@ const Community = function () {
<button className="group flex items-center gap-2 rounded-xl bg-neutral-200 px-3 py-2 text-sm font-bold duration-300 hover:bg-black hover:text-white dark:bg-neutral-800 dark:hover:bg-white dark:hover:text-black">
<svg
className="h-4 w-4 fill-current group-hover:-rotate-[360deg]"
- style={{ transition: 'color 0s, transform 0.3s' }}
role="img"
+ style={{ transition: 'color 0s, transform 0.3s' }}
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
@@ -91,14 +89,15 @@ const Community = function () {
{contributors.map((contributor) => (
<a
className="group rounded-full duration-300 hover:scale-125 active:scale-105 active:duration-100"
+ href={contributor.html_url}
key={contributor.id}
+ rel="noopener"
target="_blank"
- href={contributor.html_url}
>
<div
- style={{ backgroundImage: `url('${contributor.avatar_url}')` }}
className="honeycombchild h-16 w-16 rounded-3xl bg-cover duration-300 group-hover:rounded-[2rem] group-active:rounded-3xl group-active:duration-100"
- ></div>
+ style={{ backgroundImage: `url('${contributor.avatar_url}')` }}
+ />
</a>
))}
</div>
@@ -108,5 +107,5 @@ const Community = function () {
</section>
</>
);
-};
+}
export default Community;
diff --git a/src/components/landing/feature-card.tsx b/apps/web/src/components/landing/feature-card.tsx
similarity index 97%
rename from src/components/landing/feature-card.tsx
rename to apps/web/src/components/landing/feature-card.tsx
index 726bcd19..709cbb78 100644
--- a/src/components/landing/feature-card.tsx
+++ b/apps/web/src/components/landing/feature-card.tsx
@@ -16,7 +16,7 @@ type WrapperStyle = MotionStyle & {
'--y': MotionValue<string>;
};
-export const FeatureCard = ({
+export function FeatureCard({
title,
description,
className,
@@ -30,7 +30,7 @@ export const FeatureCard = ({
light: StaticImageData;
alt: string;
};
-}) => {
+}) {
const { resolvedTheme } = useTheme();
const [mounted, setMounted] = useState(false);
const mouseX = useMotionValue(0);
@@ -64,13 +64,13 @@ export const FeatureCard = ({
<h2 className="text-xl font-bold tracking-tight md:text-xl">{title}</h2>
<p className="text-base leading-7 text-zinc-600 dark:text-zinc-400">{description}</p>
</div>
- {mounted && (
+ {mounted ? (
<>
{resolvedTheme === 'light' && (
<Image
- src={image.light}
alt={image.alt}
className={className}
+ src={image.light}
style={{
position: 'absolute',
userSelect: 'none',
@@ -80,9 +80,9 @@ export const FeatureCard = ({
)}
{resolvedTheme === 'dark' && (
<Image
- src={image.dark}
alt={image.alt}
className={className}
+ src={image.dark}
style={{
position: 'absolute',
userSelect: 'none',
@@ -91,9 +91,9 @@ export const FeatureCard = ({
/>
)}
</>
- )}
+ ) : null}
</div>
</motion.div>
</motion.div>
);
-};
+}
diff --git a/src/components/landing/features.tsx b/apps/web/src/components/landing/features.tsx
similarity index 96%
rename from src/components/landing/features.tsx
rename to apps/web/src/components/landing/features.tsx
index daf7cfb4..36f7e339 100644
--- a/src/components/landing/features.tsx
+++ b/apps/web/src/components/landing/features.tsx
@@ -1,27 +1,26 @@
+import { Balancer } from 'react-wrap-balancer';
import { FeatureCard } from '~/components/landing/feature-card';
-
import FeatureCardChallengeDark from '~/assets/images/feature_card_challenge_dark.png';
import FeatureCardChallengeLight from '~/assets/images/feature_card_challenge_light.png';
-import { Balancer } from 'react-wrap-balancer';
-const Features = () => {
+function Features() {
return (
- <section id="features" className="relative overflow-hidden">
+ <section className="relative overflow-hidden" id="features">
<div className="container mb-[64px] grid items-center justify-center">
<div className="flex flex-col items-center justify-center gap-16">
<div className="flex flex-col gap-3 text-center">
<a
- href="#features"
className="mx-auto hidden rounded-full bg-gradient-to-r from-[#31bdc6] to-[#3178c6] p-[1px] brightness-90 contrast-150 dark:brightness-125 dark:contrast-100 sm:block"
+ href="#features"
>
<div className="rounded-full bg-white/80 px-3 py-1 dark:bg-black/80">
<span className="bg-gradient-to-r from-[#31bdc6] to-[#3178c6] bg-clip-text text-transparent">
<svg
className="mr-1 inline-block h-4 w-4 fill-[#31bdc6]"
- xmlns="http://www.w3.org/2000/svg"
viewBox="4 4 48 48"
+ xmlns="http://www.w3.org/2000/svg"
>
- <path d="m19.2 36.4-4.75-10.45L4 21.2l10.45-4.75L19.2 6l4.75 10.45L34.4 21.2l-10.45 4.75ZM36.4 42l-2.35-5.25-5.25-2.35 5.25-2.4 2.35-5.2 2.4 5.2 5.2 2.4-5.2 2.35Z"></path>
+ <path d="m19.2 36.4-4.75-10.45L4 21.2l10.45-4.75L19.2 6l4.75 10.45L34.4 21.2l-10.45 4.75ZM36.4 42l-2.35-5.25-5.25-2.35 5.25-2.4 2.35-5.2 2.4 5.2 5.2 2.4-5.2 2.35Z" />
</svg>
many features, wow
</span>
@@ -36,52 +35,52 @@ const Features = () => {
</div>
<div className="relative z-10 grid w-full gap-8 lg:grid-cols-2">
<FeatureCard
- title="Type Challenges"
- description="Engage in TypeScript challenges to strengthen your grasp of the type system and advanced features"
className="left-[35px] top-[35%] w-[150%] transition-transform duration-300 group-hover:scale-105 sm:left-[35px] sm:top-[30%] sm:w-[110%]"
+ description="Engage in TypeScript challenges to strengthen your grasp of the type system and advanced features"
image={{
dark: FeatureCardChallengeDark,
light: FeatureCardChallengeLight,
alt: 'Something',
}}
+ title="Type Challenges"
/>
<FeatureCard
- title="Collaborative Environment"
- description="Developers can share solutions and engage in discussions through commenting"
className="left-[35px] top-[35%] w-[150%] transition-transform duration-300 group-hover:scale-105 sm:left-[35px] sm:top-[30%] sm:w-[110%]"
+ description="Developers can share solutions and engage in discussions through commenting"
image={{
dark: FeatureCardChallengeDark,
light: FeatureCardChallengeLight,
alt: 'Something',
}}
+ title="Collaborative Environment"
/>
<FeatureCard
- title="Challenge Creation"
- description="Craft your own coding challenges to share with the Typehero community"
className="left-[35px] top-[35%] w-[150%] transition-transform duration-300 group-hover:scale-105 sm:left-[35px] sm:top-[30%] sm:w-[110%]"
+ description="Craft your own coding challenges to share with the Typehero community"
image={{
dark: FeatureCardChallengeDark,
light: FeatureCardChallengeLight,
alt: 'Something',
}}
+ title="Challenge Creation"
/>
<FeatureCard
- title="Track Your Progress"
- description="Keep tabs on your coding journey with the ability to track your progress on your user profile"
className="left-[35px] top-[35%] w-[150%] transition-transform duration-300 group-hover:scale-105 sm:left-[35px] sm:top-[30%] sm:w-[110%]"
+ description="Keep tabs on your coding journey with the ability to track your progress on your user profile"
image={{
dark: FeatureCardChallengeDark,
light: FeatureCardChallengeLight,
alt: 'Something',
}}
+ title="Track Your Progress"
/>
</div>
</div>
</div>
</section>
);
-};
+}
export default Features;
diff --git a/src/components/landing/hero-challenge-card.tsx b/apps/web/src/components/landing/hero-challenge-card.tsx
similarity index 92%
rename from src/components/landing/hero-challenge-card.tsx
rename to apps/web/src/components/landing/hero-challenge-card.tsx
index d090be16..845ddbee 100644
--- a/src/components/landing/hero-challenge-card.tsx
+++ b/apps/web/src/components/landing/hero-challenge-card.tsx
@@ -1,4 +1,4 @@
-import type { Difficulty } from '@prisma/client';
+import type { Difficulty } from '@repo/db';
import { clsx } from 'clsx';
import { motion, type SVGMotionProps } from 'framer-motion';
import type { ReactNode } from 'react';
@@ -13,12 +13,12 @@ function getRandomWidth() {
return rand;
}
-export type FakeChallengeCardProps = {
+export interface FakeChallengeCardProps {
title: string;
className?: string;
difficulty: Difficulty;
prompt: ReactNode;
-};
+}
const COLORS_BY_DIFFICULTY = {
BEGINNER: 'dark:bg-pink-300 bg-pink-600',
@@ -36,12 +36,12 @@ const codeLineProps = {
transition: { duration: 0.5, delay: 0.15 },
} as SVGMotionProps<SVGRectElement>;
-export const HeroChallengeCard = ({
+export function HeroChallengeCard({
prompt,
title,
className,
difficulty,
-}: FakeChallengeCardProps) => {
+}: FakeChallengeCardProps) {
return (
<div
className={clsx(className, {
@@ -52,7 +52,7 @@ export const HeroChallengeCard = ({
<p className="translate-x-1 text-lg font-medium">{title}</p>
<div className="flex gap-3">
<div
- className={`inline-flex w-fit translate-x-1 items-center rounded-full border border-transparent px-2.5 py-0.5 text-xs font-semibold text-primary-foreground duration-300 group-hover/card:-translate-x-0 group-hover/card:-translate-y-1 group-hover/card:shadow-[0.5rem_0.5rem_0.25rem_-0.25rem_#0004] ${
+ className={`text-primary-foreground inline-flex w-fit translate-x-1 items-center rounded-full border border-transparent px-2.5 py-0.5 text-xs font-semibold duration-300 group-hover/card:-translate-x-0 group-hover/card:-translate-y-1 group-hover/card:shadow-[0.5rem_0.5rem_0.25rem_-0.25rem_#0004] ${
COLORS_BY_DIFFICULTY[difficulty || 'HARD']
}`}
>
@@ -65,75 +65,75 @@ export const HeroChallengeCard = ({
<div className="translate-x-1 text-xs">{prompt}</div>
<div className="mt-4 h-56 flex-grow rounded-xl bg-zinc-300/70 p-4 duration-300 group-hover/card:-translate-x-1 group-hover/card:-translate-y-3 group-hover/card:shadow-[1rem_1rem_2.5rem_-1rem_#0008] dark:bg-zinc-800/70">
<svg
- width="256"
+ fill="none"
height="193"
viewBox="0 0 256 193"
- fill="none"
+ width="256"
xmlns="http://www.w3.org/2000/svg"
>
<motion.rect
{...codeLineProps}
animate={{ width: getRandomWidth() }}
- y="0"
fill="#2B2B32"
+ y="0"
/>
<motion.rect
{...codeLineProps}
animate={{ width: getRandomWidth() }}
- y="19"
fill="#544048"
+ y="19"
/>
<motion.rect
{...codeLineProps}
animate={{ width: getRandomWidth() }}
- y="38"
fill="#544048"
+ y="38"
/>
<motion.rect
{...codeLineProps}
animate={{ width: getRandomWidth() }}
- y="57"
fill="#404F54"
+ y="57"
/>
<motion.rect
{...codeLineProps}
animate={{ width: getRandomWidth() }}
- y="90"
fill="#2B2B32"
+ y="90"
/>
<motion.rect
{...codeLineProps}
animate={{ width: getRandomWidth() }}
- y="109"
fill="#2B2B32"
+ y="109"
/>
<motion.rect
{...codeLineProps}
animate={{ width: getRandomWidth() }}
+ fill="#544048"
transition={{ delay: 0.3, duration: 0.5 }}
y="128"
- fill="#544048"
/>
<motion.rect
{...codeLineProps}
animate={{ width: getRandomWidth() }}
- y="147"
fill="#544048"
+ y="147"
/>
<motion.rect
{...codeLineProps}
animate={{ width: getRandomWidth() }}
- y="166"
fill="#404F54"
+ y="166"
/>
<motion.rect
{...codeLineProps}
animate={{ width: getRandomWidth() }}
- y="184"
fill="#404F54"
+ y="184"
/>
</svg>
</div>
</div>
);
-};
+}
diff --git a/apps/web/src/components/landing/hero.tsx b/apps/web/src/components/landing/hero.tsx
new file mode 100644
index 00000000..03c75b83
--- /dev/null
+++ b/apps/web/src/components/landing/hero.tsx
@@ -0,0 +1,162 @@
+'use client';
+
+import { motion } from 'framer-motion';
+import { Github, Mail } from 'lucide-react';
+import Link from 'next/link';
+import { Balancer } from 'react-wrap-balancer';
+import { HeroChallengeCard } from '~/components/landing/hero-challenge-card';
+import { Button } from '~/components/ui/button';
+
+function TypeHeroLogo() {
+ return (
+ <svg
+ className="h-28 w-28 rounded-3xl sm:h-44 sm:w-44 sm:rounded-[2rem]"
+ fill="none"
+ viewBox="0 0 164 164"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M0 29.8182C0 13.3501 13.3501 0 29.8182 0H134.182C150.65 0 164 13.3501 164 29.8182V134.182C164 150.65 150.65 164 134.182 164H29.8182C13.3501 164 0 150.65 0 134.182V29.8182Z"
+ fill="#3178C6"
+ />
+ <path
+ clipRule="evenodd"
+ d="M71.4351 80.307H91.9394V67.0909H34.7879V80.307H55.1919V139.152H71.4351V80.307Z"
+ fill="white"
+ fillRule="evenodd"
+ />
+ <path
+ d="M91.9394 139.152V67.0909H106.946V96.9549H129.078V67.0909H144.121V139.152H129.078V109.182H106.946V139.152H91.9394Z"
+ fill="white"
+ />
+ </svg>
+ );
+}
+
+function Hero() {
+ return (
+ <section className="-mt-[56px] min-h-[calc(100vh)] overflow-hidden lg:min-h-0 lg:pt-[56px]">
+ <div className="container grid min-h-screen items-center justify-center lg:min-h-0 lg:grid-cols-2">
+ <div className="flex w-full flex-col items-center justify-center gap-10 lg:items-start">
+ <div className="relative flex w-full items-center justify-center gap-4 lg:justify-start">
+ <div className="absolute left-1/2 top-1/2 -z-10 hidden h-56 w-56 -translate-x-[15%] -translate-y-[50%] rounded-full bg-slate-400/10 blur-3xl dark:block" />
+ <div className="absolute right-1/2 top-1/2 -z-10 hidden h-56 w-56 -translate-y-[40%] rounded-full bg-[#3178c6]/20 blur-3xl dark:block" />
+ <TypeHeroLogo />
+ <h1 className="bg-gradient-to-r from-[#3178c6] to-black bg-clip-text text-6xl font-extrabold text-transparent dark:to-white sm:text-8xl sm:leading-[5.5rem]">
+ type
+ <br />
+ hero
+ </h1>
+ </div>
+
+ <p className="max-w-[55ch] bg-transparent px-8 text-center font-medium leading-8 text-black/50 dark:text-white/50 lg:px-0 lg:text-left">
+ <Balancer>
+ Connect, collaborate, and grow with a community of TypeScript developers. Elevate your
+ skills through interactive coding challenges, discussions, and knowledge sharing
+ </Balancer>
+ </p>
+ <div className="flex gap-3">
+ {/* <Button
+ className="relative flex items-center gap-2 overflow-hidden rounded-xl px-4 py-2 font-bold"
+ asChild
+ >
+ <Link href="/explore">Explore challenges</Link>
+ </Button> */}
+ <Button
+ asChild
+ className="hero-join-button group relative mx-auto w-fit overflow-hidden rounded-xl p-[2px] font-bold transition-all duration-300 hover:bg-transparent hover:shadow-[0_0_2rem_-0.5rem_#3178c6] dark:hidden md:mr-0 lg:mr-auto"
+ >
+ <Link href="/waitlist">
+ <span className="inline-flex h-full w-fit items-center gap-1 rounded-[10px] bg-white px-4 py-2 text-[#3178c6] transition-all duration-300">
+ <Mail className="mr-1 h-4 w-4 stroke-[3]" />
+ Join the Waitlist
+ </span>
+ </Link>
+ </Button>
+ <Button
+ asChild
+ className="hero-join-button-dark group relative mx-auto hidden w-fit overflow-hidden rounded-xl p-[1px] font-bold transition-all duration-300 dark:block dark:hover:shadow-[0_0_2rem_-0.5rem_#fff8] md:mr-0 lg:mr-auto"
+ >
+ <Link href="/waitlist">
+ <span className="inline-flex h-full w-fit items-center gap-1 rounded-xl px-4 py-2 transition-all duration-300 dark:bg-neutral-900 dark:text-white group-hover:dark:bg-black">
+ <Mail className="mr-1 h-4 w-4 stroke-[3]" />
+ Join the Waitlist
+ </span>
+ </Link>
+ </Button>
+ <Button
+ asChild
+ className="flex items-center gap-2 rounded-xl border-2 px-4 py-2 dark:text-white"
+ variant="outline"
+ >
+ <a className="inline-flex gap-1" href="https://github.com/">
+ <Github className="h-4 w-4" />
+ GitHub
+ </a>
+ </Button>
+ </div>
+ </div>
+
+ <div className="relative hidden h-[800px] overflow-visible rounded-full lg:block">
+ <div className="absolute -inset-40 top-1/2 -z-30 -translate-y-1/2 translate-x-[-30px] overflow-hidden rounded-full">
+ <div className="relative h-full w-full">
+ <motion.div
+ animate={{ opacity: 1 }}
+ className="moving-grid-background absolute h-[200%] w-full"
+ initial={{ opacity: 0 }}
+ transition={{ duration: 0.6, delay: 0.6 }}
+ />
+ <div className="shadow-background absolute h-full w-full rounded-full shadow-[inset_0_0_5rem_3rem]" />
+ </div>
+ </div>
+ <motion.div
+ animate={{
+ y: 140,
+ opacity: 1,
+ transition: {
+ duration: 0.4,
+ },
+ }}
+ className="group"
+ initial={{
+ y: 150,
+ x: 180,
+ opacity: 0,
+ }}
+ >
+ <HeroChallengeCard
+ className="absolute"
+ difficulty="EASY"
+ prompt="Implement a union type of number and string"
+ title="Implement a union type of number and string"
+ />
+ </motion.div>
+ <motion.div
+ animate={{
+ y: 260,
+ opacity: 1,
+ transition: {
+ duration: 0.4,
+ delay: 0.1,
+ },
+ }}
+ className="group"
+ initial={{
+ opacity: 0,
+ y: 270,
+ x: 80,
+ }}
+ >
+ <HeroChallengeCard
+ className="absolute"
+ difficulty="HARD"
+ prompt="Convert a string literal to a number"
+ title="String to Number"
+ />
+ </motion.div>
+ </div>
+ </div>
+ </section>
+ );
+}
+export default Hero;
diff --git a/src/components/landing/waitlist/banner.tsx b/apps/web/src/components/landing/waitlist/banner.tsx
similarity index 98%
rename from src/components/landing/waitlist/banner.tsx
rename to apps/web/src/components/landing/waitlist/banner.tsx
index 0275d09f..302b8bc6 100644
--- a/src/components/landing/waitlist/banner.tsx
+++ b/apps/web/src/components/landing/waitlist/banner.tsx
@@ -1,13 +1,11 @@
import Link from 'next/link';
import { clsx } from 'clsx';
-
import { Mail } from 'lucide-react';
import { Balancer } from 'react-wrap-balancer';
-
import { Button } from '~/components/ui/button';
import styles from '~/components/landing/waitlist/waitlist.module.css';
-const Waitlist = () => {
+function Waitlist() {
return (
<section className={clsx(styles.backdrop, 'relative overflow-hidden')}>
<div className="container relative grid grid-cols-1 items-center justify-center py-[64px] md:grid-cols-2">
@@ -25,8 +23,8 @@ const Waitlist = () => {
</p>
</div>
<Button
- className="group relative w-fit overflow-hidden rounded-xl bg-gradient-to-bl from-indigo-400 via-blue-400 to-emerald-400 p-[2px] font-bold transition-all duration-300 hover:rounded-3xl active:rounded-xl active:duration-150 sm:mx-16 md:mx-auto md:mr-0 lg:mr-auto lg:scale-[1.5] lg:hover:scale-[1.6] lg:active:scale-[1.5]"
asChild
+ className="group relative w-fit overflow-hidden rounded-xl bg-gradient-to-bl from-indigo-400 via-blue-400 to-emerald-400 p-[2px] font-bold transition-all duration-300 hover:rounded-3xl active:rounded-xl active:duration-150 sm:mx-16 md:mx-auto md:mr-0 lg:mr-auto lg:scale-[1.5] lg:hover:scale-[1.6] lg:active:scale-[1.5]"
>
<Link href="/waitlist">
<span className="inline-flex h-full w-fit items-center gap-1 rounded-[10px] bg-white/90 px-4 py-2 text-black transition-all duration-300 group-hover:rounded-3xl group-hover:bg-white/0 group-hover:text-white dark:bg-black/80 dark:text-white group-hover:dark:bg-black/0 dark:group-hover:text-black">
@@ -38,6 +36,6 @@ const Waitlist = () => {
</div>
</section>
);
-};
+}
export default Waitlist;
diff --git a/src/components/landing/waitlist/create.action.ts b/apps/web/src/components/landing/waitlist/create.action.ts
similarity index 94%
rename from src/components/landing/waitlist/create.action.ts
rename to apps/web/src/components/landing/waitlist/create.action.ts
index e9f8951d..3dcd839b 100644
--- a/src/components/landing/waitlist/create.action.ts
+++ b/apps/web/src/components/landing/waitlist/create.action.ts
@@ -1,6 +1,6 @@
'use server';
-import { prisma } from '~/server/db';
+import { prisma } from '@repo/db';
import { type WaitlistFormSchema } from '~/components/landing/waitlist/waitlist-form';
export async function uploadWaitlistEntry(data: WaitlistFormSchema) {
diff --git a/src/components/landing/waitlist/index.tsx b/apps/web/src/components/landing/waitlist/index.tsx
similarity index 99%
rename from src/components/landing/waitlist/index.tsx
rename to apps/web/src/components/landing/waitlist/index.tsx
index 503fe8e9..d376ca2c 100644
--- a/src/components/landing/waitlist/index.tsx
+++ b/apps/web/src/components/landing/waitlist/index.tsx
@@ -1,5 +1,4 @@
import { Balancer } from 'react-wrap-balancer';
-
import WaitlistForm from '~/components/landing/waitlist/waitlist-form';
import styles from '~/components/landing/waitlist/waitlist.module.css';
diff --git a/src/components/landing/waitlist/waitlist-form.tsx b/apps/web/src/components/landing/waitlist/waitlist-form.tsx
similarity index 93%
rename from src/components/landing/waitlist/waitlist-form.tsx
rename to apps/web/src/components/landing/waitlist/waitlist-form.tsx
index b604cb4b..8358befb 100644
--- a/src/components/landing/waitlist/waitlist-form.tsx
+++ b/apps/web/src/components/landing/waitlist/waitlist-form.tsx
@@ -5,8 +5,8 @@ import { z } from 'zod';
import { zodResolver } from '@hookform/resolvers/zod';
import { useForm } from 'react-hook-form';
import { AlertCircle, MailCheck } from 'lucide-react';
+import clsx from 'clsx';
import { Alert, AlertDescription } from '~/components/ui/alert';
-
import { uploadWaitlistEntry } from '~/components/landing/waitlist/create.action';
import { Button } from '~/components/ui/button';
import { Form, FormControl, FormField, FormItem } from '~/components/ui/form';
@@ -18,7 +18,6 @@ import {
SelectTrigger,
SelectValue,
} from '~/components/ui/select';
-import clsx from 'clsx';
const waitlistFormSchema = z.object({
name: z.string().min(1, 'Please enter your name'),
@@ -29,7 +28,7 @@ const waitlistFormSchema = z.object({
export type WaitlistFormSchema = z.infer<typeof waitlistFormSchema>;
export default function WaitlistForm() {
- const [state, setState] = useState<'idle' | 'submitting' | 'success' | 'error'>('idle');
+ const [state, setState] = useState<'error' | 'idle' | 'submitting' | 'success'>('idle');
const isSubmitting = state === 'submitting';
@@ -54,7 +53,7 @@ export default function WaitlistForm() {
return (
<div className="w-full md:w-[350px]">
<Form {...form}>
- <form onSubmit={form.handleSubmit(onSubmit)} className="flex flex-col">
+ <form className="flex flex-col" onSubmit={form.handleSubmit(onSubmit)}>
<FormField
control={form.control}
name="name"
@@ -69,8 +68,8 @@ export default function WaitlistForm() {
!form.formState.errors.name,
})}
{...field}
- id="name"
autoComplete="name"
+ id="name"
placeholder="Your name"
/>
</FormControl>
@@ -92,8 +91,8 @@ export default function WaitlistForm() {
!form.formState.errors.email,
})}
{...field}
- id="email"
autoComplete="email"
+ id="email"
placeholder="Your email address"
/>
</FormControl>
@@ -106,7 +105,7 @@ export default function WaitlistForm() {
name="intention"
render={({ field }) => (
<FormItem>
- <Select onValueChange={field.onChange} defaultValue={field.value} {...field}>
+ <Select defaultValue={field.value} onValueChange={field.onChange} {...field}>
<FormControl>
<SelectTrigger
className={clsx({
@@ -139,9 +138,9 @@ export default function WaitlistForm() {
/>
<Button
- type="submit"
- disabled={isSubmitting}
className="wl-form-button group relative mt-6 w-full overflow-hidden rounded-xl px-[2px] py-[2px] font-bold transition-shadow duration-300 hover:shadow-[0_0.5rem_2rem_-0.75rem_#3178c6] dark:hover:shadow-[0_0.5rem_2rem_-0.75rem_#5198f6]"
+ disabled={isSubmitting}
+ type="submit"
>
<span className="h-full w-full rounded-[10px] bg-white px-4 py-2 text-center font-bold text-black transition-colors duration-300 group-hover:bg-blue-100 dark:bg-black dark:text-white group-hover:dark:bg-cyan-950">
{isSubmitting ? 'Submitting...' : 'Join the waitlist'}
@@ -161,7 +160,7 @@ export function AlertDestructive() {
// destructive:
// 'destructive group border-destructive bg-destructive text-destructive-foreground',
return (
- <Alert variant="destructive" className="dark:bg-[#230808]">
+ <Alert className="dark:bg-[#230808]" variant="destructive">
<AlertCircle className="h-4 w-4" />
<AlertDescription className="text-left text-black dark:text-white">
Something went wrong. Please try again.
@@ -176,7 +175,12 @@ export function AlertSuccess() {
<MailCheck className="h-4 w-4" />
<AlertDescription className="text-left text-black dark:text-white">
Thanks for signing up for the waitlist! Consider{' '}
- <a target="_blank" className="underline" href="https://twitter.com/typeheroapp">
+ <a
+ className="underline"
+ href="https://twitter.com/typeheroapp"
+ rel="noopener"
+ target="_blank"
+ >
following us on twitter
</a>{' '}
for general updates.
diff --git a/src/components/landing/waitlist/waitlist.module.css b/apps/web/src/components/landing/waitlist/waitlist.module.css
similarity index 100%
rename from src/components/landing/waitlist/waitlist.module.css
rename to apps/web/src/components/landing/waitlist/waitlist.module.css
diff --git a/src/components/report/index.tsx b/apps/web/src/components/report/index.tsx
similarity index 97%
rename from src/components/report/index.tsx
rename to apps/web/src/components/report/index.tsx
index f3d0f008..a441e3dd 100644
--- a/src/components/report/index.tsx
+++ b/apps/web/src/components/report/index.tsx
@@ -1,5 +1,6 @@
-import { type IssueType } from '@prisma/client';
+import { type IssueType } from '@repo/db';
import React from 'react';
+import { useForm } from 'react-hook-form';
import {
type ChallengeReport,
type UserReport,
@@ -17,7 +18,6 @@ import {
DialogTrigger,
} from '~/components/ui/dialog';
import { Button } from '~/components/ui/button';
-import { useForm } from 'react-hook-form';
import { FormField, FormItem } from '~/components/ui/form';
import { Checkbox } from '~/components/ui/checkbox';
import { Textarea } from '~/components/ui/textarea';
@@ -54,10 +54,10 @@ export default function ReportDialog({
reportType = 'COMMENT',
...props
}: React.PropsWithChildren<
- | ReportUserDialogProps
| ReportChallengeDialogProps
| ReportCommentDialogProps
| ReportSolutionDialogProps
+ | ReportUserDialogProps
>) {
const {
handleSubmit,
@@ -97,16 +97,16 @@ export default function ReportDialog({
return (
<Dialog
- open={show}
onOpenChange={(e) => {
setShow(e);
}}
+ open={show}
>
<DialogTrigger asChild={triggerAsChild}>{children}</DialogTrigger>
<DialogContent>
<form
onSubmit={handleSubmit(async (e) => {
- let args = {} as UserReport | ChallengeReport | CommentReport | SolutionReport;
+ let args = {} as ChallengeReport | CommentReport | SolutionReport | UserReport;
switch (reportType) {
case 'CHALLENGE':
args = {
@@ -138,14 +138,14 @@ export default function ReportDialog({
}
// This shit is like... extra jank.
- const issues = Object.entries(e).reduce((all, [key, value]) => {
+ const issues = Object.entries(e).reduce<{ type: IssueType }[]>((all, [key, value]) => {
if (key === 'comments') return all;
if (value)
all.push({
type: key.toUpperCase() as IssueType,
});
return all;
- }, [] as { type: IssueType }[]);
+ }, []);
const value = await addReport({
...args,
@@ -183,6 +183,7 @@ export default function ReportDialog({
<div className="mt-4 flex flex-col gap-2">
<Text intent="leading">Please select all that apply:</Text>
<FormField
+ control={control}
name="derogatory"
render={({ field }) => (
<FormItem>
@@ -196,9 +197,9 @@ export default function ReportDialog({
</div>
</FormItem>
)}
- control={control}
/>
<FormField
+ control={control}
name="derogatory"
render={({ field }) => (
<FormItem>
@@ -212,9 +213,9 @@ export default function ReportDialog({
</div>
</FormItem>
)}
- control={control}
/>
<FormField
+ control={control}
name="hateSpeech"
render={({ field }) => (
<FormItem>
@@ -228,9 +229,9 @@ export default function ReportDialog({
</div>
</FormItem>
)}
- control={control}
/>
<FormField
+ control={control}
name="spam"
render={({ field }) => (
<FormItem>
@@ -244,9 +245,9 @@ export default function ReportDialog({
</div>
</FormItem>
)}
- control={control}
/>
<FormField
+ control={control}
name="threat"
render={({ field }) => (
<FormItem>
@@ -260,10 +261,10 @@ export default function ReportDialog({
</div>
</FormItem>
)}
- control={control}
/>
{reportType === 'CHALLENGE' && (
<FormField
+ control={control}
name="unclear"
render={({ field }) => (
<FormItem>
@@ -277,11 +278,11 @@ export default function ReportDialog({
</div>
</FormItem>
)}
- control={control}
/>
)}
<FormField
+ control={control}
name="comments"
render={({ field }) => (
<FormItem className="my-3">
@@ -294,17 +295,16 @@ export default function ReportDialog({
</div>
</FormItem>
)}
- control={control}
/>
</div>
<DialogFooter>
<Button
- variant="outline"
onClick={(e) => {
e.preventDefault();
setShow(false);
}}
+ variant="outline"
>
Cancel
</Button>
diff --git a/src/components/report/report.action.ts b/apps/web/src/components/report/report.action.ts
similarity index 90%
rename from src/components/report/report.action.ts
rename to apps/web/src/components/report/report.action.ts
index 0008566d..312294f4 100644
--- a/src/components/report/report.action.ts
+++ b/apps/web/src/components/report/report.action.ts
@@ -1,71 +1,75 @@
'use server';
-import { type Prisma, type Report } from '@prisma/client';
-import { getServerAuthSession } from '~/server/auth';
-import { prisma } from '~/server/db';
+import { type Prisma, type Report } from '@repo/db';
+import { prisma } from '@repo/db';
+import { getServerAuthSession } from '@repo/auth/server';
-export type ReportBase = {
+export interface ReportBase {
issues: Prisma.ReportIssueCreateWithoutReportInput[];
-};
+}
export type ChallengeReport = Omit<
Report,
- | 'id'
- | 'type'
- | 'userId'
| 'commentId'
+ | 'createdAt'
+ | 'id'
| 'reporterId'
- | 'status'
| 'solutionId'
+ | 'status'
+ | 'type'
| 'updatedAt'
- | 'createdAt'
-> & { type: 'CHALLENGE' } & ReportBase;
+ | 'userId'
+> &
+ ReportBase & { type: 'CHALLENGE' };
export type UserReport = Omit<
Report,
- | 'id'
- | 'type'
| 'challengeId'
| 'commentId'
+ | 'createdAt'
+ | 'id'
| 'reporterId'
- | 'status'
| 'solutionId'
+ | 'status'
+ | 'type'
| 'updatedAt'
- | 'createdAt'
-> & { type: 'USER' } & ReportBase;
+> &
+ ReportBase & { type: 'USER' };
export type CommentReport = Omit<
Report,
- | 'id'
- | 'type'
| 'challengeId'
- | 'userId'
+ | 'createdAt'
+ | 'id'
| 'reporterId'
- | 'status'
| 'solutionId'
+ | 'status'
+ | 'type'
| 'updatedAt'
- | 'createdAt'
-> & { type: 'COMMENT' } & ReportBase;
+ | 'userId'
+> &
+ ReportBase & { type: 'COMMENT' };
export type SolutionReport = Omit<
Report,
- | 'id'
- | 'type'
| 'challengeId'
- | 'userId'
+ | 'commentId'
+ | 'createdAt'
+ | 'id'
| 'reporterId'
| 'status'
- | 'commentId'
+ | 'type'
| 'updatedAt'
- | 'createdAt'
-> & { type: 'SOLUTION' } & ReportBase;
+ | 'userId'
+> &
+ ReportBase & { type: 'SOLUTION' };
/**
* @param report a report object specific to a user, challenge, or comment report type
* @returns 'created' if successful, 'not_logged_in' if the user is not logged in, and 'already_exists' if there's a pending report of the same type by the same user.
*/
export async function addReport(
- report: ChallengeReport | UserReport | CommentReport | SolutionReport,
+ report: ChallengeReport | CommentReport | SolutionReport | UserReport,
) {
const reporter = await getServerAuthSession();
if (!reporter?.user.id) return 'not_logged_in';
diff --git a/src/components/report/types/challenge.report.tsx b/apps/web/src/components/report/types/challenge.report.tsx
similarity index 92%
rename from src/components/report/types/challenge.report.tsx
rename to apps/web/src/components/report/types/challenge.report.tsx
index 30ecb60e..f1f0bff2 100644
--- a/src/components/report/types/challenge.report.tsx
+++ b/apps/web/src/components/report/types/challenge.report.tsx
@@ -2,10 +2,10 @@ import { ThumbsUp } from 'lucide-react';
import { type ReportWithInfo } from '~/app/admin/report/[id]/report.action';
import { getChallenge } from '~/components/admin/admin.actions';
import { CodeEditor } from '~/components/ui/code-editor';
-
import { Markdown } from '~/components/ui/markdown';
import Text from '~/components/ui/typography/typography';
import { UserBadge } from '~/components/ui/user-badge';
+
export interface ChallengeReportProps {
report: NonNullable<ReportWithInfo>;
}
@@ -14,7 +14,7 @@ export default async function ChallengeReport({ report }: ChallengeReportProps)
const challengeInfo = await getChallenge(report.challengeId);
return (
<section className="mt-6 flex flex-grow flex-col gap-4 overflow-auto md:flex-nowrap">
- <div className="w-full rounded-lg p-4 dark:bg-muted/90">
+ <div className="dark:bg-muted/90 w-full rounded-lg p-4">
<Text intent="h3">{report.challenge.name}</Text>
<Text className="mt-2">
Created at:{' '}
@@ -36,7 +36,7 @@ export default async function ChallengeReport({ report }: ChallengeReportProps)
</div>
<Markdown className="mt-4">{report.challenge.description}</Markdown>
</div>
- <CodeEditor value={report.challenge.prompt} height={'50vh'} />
+ <CodeEditor height="50vh" value={report.challenge.prompt} />
</section>
);
}
diff --git a/src/components/report/types/comment.report.tsx b/apps/web/src/components/report/types/comment.report.tsx
similarity index 77%
rename from src/components/report/types/comment.report.tsx
rename to apps/web/src/components/report/types/comment.report.tsx
index f85c377e..423505fb 100644
--- a/src/components/report/types/comment.report.tsx
+++ b/apps/web/src/components/report/types/comment.report.tsx
@@ -16,16 +16,16 @@ export default function CommentReport({ report }: { report: NonNullable<ReportWi
report.comment.rootChallengeId || report.comment.rootSolutionId
}`}
>
- <div className="mr-2 inline-block rounded-full bg-primary-foreground px-2 text-white">
+ <div className="bg-primary-foreground mr-2 inline-block rounded-full px-2 text-white">
{report.comment.rootType}
</div>
{report.comment.rootType === 'CHALLENGE'
- ? report.comment?.rootChallenge?.name
- : report.comment?.rootSolution?.title}
+ ? report.comment.rootChallenge?.name
+ : report.comment.rootSolution?.title}
</Link>
</header>
<section className="mt-4 rounded-lg bg-zinc-800">
- <Comment rootId={rootId} type={report.comment.rootType} comment={report.comment} readonly />
+ <Comment comment={report.comment} readonly rootId={rootId} type={report.comment.rootType} />
</section>
</div>
);
diff --git a/src/components/report/types/solution.report.tsx b/apps/web/src/components/report/types/solution.report.tsx
similarity index 97%
rename from src/components/report/types/solution.report.tsx
rename to apps/web/src/components/report/types/solution.report.tsx
index f4b334c1..cdfe5f12 100644
--- a/src/components/report/types/solution.report.tsx
+++ b/apps/web/src/components/report/types/solution.report.tsx
@@ -1,10 +1,10 @@
'use server';
import Link from 'next/link';
+import { prisma } from '@repo/db';
import { type ReportWithInfo } from '~/app/admin/report/[id]/report.action';
import { Markdown } from '~/components/ui/markdown';
import Text from '~/components/ui/typography/typography';
-import { prisma } from '~/server/db';
async function getSolutionChallenge(challengeId: number) {
return prisma.challenge.findFirstOrThrow({
@@ -27,8 +27,8 @@ export default async function SolutionReport({ report }: { report: NonNullable<R
<Link
className="text-blue-600 dark:text-blue-400"
href={`/challenge/${challenge.id}`}
- target="_blank"
rel="noreferrer"
+ target="_blank"
>
{challenge.name}
</Link>{' '}
diff --git a/apps/web/src/components/report/types/user.report.tsx b/apps/web/src/components/report/types/user.report.tsx
new file mode 100644
index 00000000..5b2018cc
--- /dev/null
+++ b/apps/web/src/components/report/types/user.report.tsx
@@ -0,0 +1,128 @@
+'use server';
+
+import { getReportedUserInformation } from '../report.action';
+import { type ReportWithInfo } from '~/app/admin/report/[id]/report.action';
+import { Comment } from '~/components/challenge/comments/comment';
+import { Expandable } from '~/components/ui/expandable';
+import { Markdown } from '~/components/ui/markdown';
+import Text from '~/components/ui/typography/typography';
+
+interface UserReportProps {
+ report: NonNullable<ReportWithInfo>;
+}
+
+export default async function UserReportUi({ report }: UserReportProps) {
+ if (!report.userId) return null;
+ const userInfo = await getReportedUserInformation(report.userId);
+ const commentRootId = report.comment?.rootChallengeId ?? report.comment?.rootSolutionId ?? -1;
+
+ return (
+ <div>
+ <Text intent="h3">
+ Most Recent Comments <small>(10)</small>
+ </Text>
+
+ <div className="mt-4 flex flex-col gap-4">
+ {userInfo.comment
+ ? userInfo.comment.map((comment) => (
+ <div
+ className="rounded border border-zinc-700 bg-zinc-800 p-2"
+ key={`comment-${comment.id}`}
+ >
+ <Comment
+ comment={comment}
+ readonly
+ rootId={commentRootId}
+ type={comment.rootType}
+ />
+ </div>
+ ))
+ : null}
+
+ {userInfo.comment && userInfo.comment.length === 0 ? (
+ <div className="mb-6 flex justify-center">No comments on record</div>
+ ) : null}
+ </div>
+
+ <Text className="mt-4" intent="h3">
+ Most Recent challenges <small>(5)</small>{' '}
+ </Text>
+
+ <div className="mt-4 flex flex-col gap-4">
+ {userInfo.challenge && userInfo.challenge.length === 0 ? (
+ <div className="text-center">No recent challenges.</div>
+ ) : null}
+ {userInfo.challenge
+ ? userInfo.challenge.map((ch, i) => (
+ <Expandable
+ className="rounded-xl border border-slate-600 p-3"
+ header={
+ <header className="flex w-full flex-col items-baseline justify-between gap-4 md:flex-row">
+ <Text intent="h2">{ch.name}</Text>
+ <div className="flex flex-wrap gap-2 text-xs md:flex-nowrap">
+ <div className="rounded-full bg-slate-300 px-3 py-1 text-gray-800">
+ <span className="font-semibold">Created at: </span>
+ {ch.createdAt.toLocaleString(undefined, {
+ dateStyle: 'medium',
+ timeStyle: 'short',
+ })}
+ </div>
+ <div className="rounded-full bg-slate-300 px-3 py-1 text-gray-800">
+ <span className="font-semibold">Updated at: </span>
+ {ch.updatedAt.toLocaleString(undefined, {
+ dateStyle: 'medium',
+ timeStyle: 'short',
+ })}
+ </div>
+ </div>
+ </header>
+ }
+ key={`challenge-${ch.id}`}
+ open={i === 0}
+ >
+ <div className="mt-4 rounded-lg bg-zinc-800 p-4" key={`challenge-${ch.id}`}>
+ <section className="mb-4 border-b border-slate-500 pb-4">
+ <div className="font-semibold">Short description</div>
+ <Markdown>{ch.shortDescription}</Markdown>
+ </section>
+ <Markdown>{ch.description}</Markdown>
+ </div>
+ </Expandable>
+ ))
+ : null}
+ </div>
+
+ <Text className="my-4" intent="h3">
+ Most recent solutions <small>(5)</small>
+ </Text>
+
+ {userInfo.sharedSolution ? (
+ <div className="flex flex-col gap-4">
+ {userInfo.sharedSolution.map((f) => (
+ <div
+ className="text:primary-foreground rounded-xl border bg-zinc-800 p-4"
+ key={`solution-${f.id}`}
+ >
+ <header className="flex justify-between">
+ <Text intent="h2" weight="bold">
+ {f.title}
+ </Text>
+ <div>
+ {f.createdAt.toLocaleString(undefined, {
+ dateStyle: 'medium',
+ timeStyle: 'medium',
+ })}
+ </div>
+ </header>
+ <section>
+ <Markdown>{f.description}</Markdown>
+ </section>
+ </div>
+ ))}
+ </div>
+ ) : null}
+
+ {userInfo.sharedSolution.length === 0 && <div className="mb-6">No solutions on record</div>}
+ </div>
+ );
+}
diff --git a/src/components/settings/index.tsx b/apps/web/src/components/settings/index.tsx
similarity index 83%
rename from src/components/settings/index.tsx
rename to apps/web/src/components/settings/index.tsx
index 90dd60d6..b299771d 100644
--- a/src/components/settings/index.tsx
+++ b/apps/web/src/components/settings/index.tsx
@@ -3,14 +3,14 @@
import { zodResolver } from '@hookform/resolvers/zod';
import { useFieldArray, useForm, useWatch } from 'react-hook-form';
import * as z from 'zod';
+import Link from 'next/link';
import { Button } from '../ui/button';
import { Form, FormField, FormItem, FormMessage } from '../ui/form';
import { Input } from '../ui/input';
import { RichMarkdownEditor } from '../ui/rich-markdown-editor';
import { toast } from '../ui/use-toast';
-import { updateProfile } from './settings.action';
-import Link from 'next/link';
import { MagicIcon } from '../ui/magic-icon';
+import { updateProfile } from './settings.action';
export interface UserLinkType {
id: string | null;
@@ -29,13 +29,7 @@ const formSchema = z.object({
export type FormSchema = z.infer<typeof formSchema>;
-export const Settings = ({
- profileData,
- username,
-}: {
- profileData: FormSchema;
- username: string;
-}) => {
+export function Settings({ profileData, username }: { profileData: FormSchema; username: string }) {
const form = useForm<FormSchema>({
resolver: zodResolver(formSchema),
defaultValues: {
@@ -78,8 +72,8 @@ export const Settings = ({
<h4 className="mb-4 mt-6 text-xl font-bold">Bio</h4>
</div>
- <Link href={`@${username}`} className="mb-6">
- <Button variant="outline" type="button">
+ <Link className="mb-6" href={`@${username}`}>
+ <Button type="button" variant="outline">
View profile
</Button>
</Link>
@@ -93,7 +87,7 @@ export const Settings = ({
name="bio"
render={({ field }) => (
<FormItem className="h-[300px] w-[600px]">
- <RichMarkdownEditor value={field.value as string} onChange={field.onChange} />
+ <RichMarkdownEditor onChange={field.onChange} value={field.value!} />
<FormMessage />
</FormItem>
)}
@@ -105,27 +99,27 @@ export const Settings = ({
return (
<FormItem className="mb-3" key={`url-link-${i}`}>
<div className="flex items-center gap-2">
- <MagicIcon url={userLinks?.[i]?.url ?? ''} />
+ <MagicIcon url={userLinks[i]?.url ?? ''} />
<Input
- defaultValue={val?.url}
- placeholder="Link to social profile"
className="w-64"
+ defaultValue={val.url}
+ placeholder="Link to social profile"
{...register(`userLinks.${i}.url`)}
/>
- {errors.userLinks?.[i]?.url?.message && (
- <div className="text-destructive">{errors.userLinks?.[i]?.url?.message}</div>
- )}
+ {errors.userLinks?.[i]?.url?.message ? (
+ <div className="text-destructive">{errors.userLinks[i]?.url?.message}</div>
+ ) : null}
</div>
</FormItem>
);
})}
</div>
- <Button type="submit" className="mt-6">
+ <Button className="mt-6" type="submit">
Save
</Button>
</form>
</Form>
</div>
);
-};
+}
diff --git a/src/components/settings/settings.action.ts b/apps/web/src/components/settings/settings.action.ts
similarity index 75%
rename from src/components/settings/settings.action.ts
rename to apps/web/src/components/settings/settings.action.ts
index f41a2a03..7db843bd 100644
--- a/src/components/settings/settings.action.ts
+++ b/apps/web/src/components/settings/settings.action.ts
@@ -1,11 +1,9 @@
'use server';
-import { getServerSession } from 'next-auth';
-
-import { prisma } from '~/server/db';
-import { authOptions } from '~/server/auth';
-import type { FormSchema } from '.';
+import { getServerAuthSession } from '@repo/auth/server';
import { revalidatePath } from 'next/cache';
+import { prisma } from '@repo/db';
+import type { FormSchema } from '.';
/**
* This will only let you update your own profile
@@ -13,14 +11,14 @@ import { revalidatePath } from 'next/cache';
*/
// TODO: add transactions to this update #GFI
export async function updateProfile(profileData: FormSchema) {
- const session = await getServerSession(authOptions);
+ const session = await getServerAuthSession();
// 1. Checks that the user is logged in
if (!session?.user.id) return 'unauthorized';
// 2. Update the user bio field in the db
await prisma.user.update({
- where: { id: session?.user.id },
+ where: { id: session.user.id },
data: { bio: profileData.bio },
});
@@ -32,7 +30,7 @@ export async function updateProfile(profileData: FormSchema) {
update: { url: link.url },
create: {
url: link.url,
- user: { connect: { id: session?.user.id } },
+ user: { connect: { id: session.user.id } },
},
}),
),
diff --git a/src/components/ui/action-menu.tsx b/apps/web/src/components/ui/action-menu.tsx
similarity index 94%
rename from src/components/ui/action-menu.tsx
rename to apps/web/src/components/ui/action-menu.tsx
index 27a13b1b..c5027738 100644
--- a/src/components/ui/action-menu.tsx
+++ b/apps/web/src/components/ui/action-menu.tsx
@@ -1,7 +1,7 @@
-/* eslint-disable import/namespace */
'use client';
import React from 'react';
+import { MoreHorizontal, type LucideIcon } from 'lucide-react';
import {
DropdownMenu,
DropdownMenuTrigger,
@@ -9,13 +9,11 @@ import {
DropdownMenuItem,
} from './dropdown-menu';
-import { MoreHorizontal, type LucideIcon } from 'lucide-react';
-
-export type ActionMenuItem = {
+export interface ActionMenuItem {
icon?: LucideIcon;
label: string;
key: string;
-};
+}
export interface ActionMenuProps {
items: ActionMenuItem[];
@@ -33,9 +31,9 @@ export function ActionMenu(props: ActionMenuProps) {
const Icon = item.icon;
return (
<DropdownMenuItem
- onClick={() => props.onChange(item)}
- key={item.key}
className="flex items-center gap-2 py-2 pl-3 pr-0"
+ key={item.key}
+ onClick={() => props.onChange(item)}
>
<div>{Icon ? <Icon size={16} /> : null}</div>
<div>{item.label}</div>
diff --git a/src/components/ui/alert.tsx b/apps/web/src/components/ui/alert.tsx
similarity index 89%
rename from src/components/ui/alert.tsx
rename to apps/web/src/components/ui/alert.tsx
index 64a25464..c52eeed3 100644
--- a/src/components/ui/alert.tsx
+++ b/apps/web/src/components/ui/alert.tsx
@@ -1,6 +1,5 @@
import * as React from 'react';
import { cva, type VariantProps } from 'class-variance-authority';
-
import { cn } from '~/utils/cn';
const alertVariants = cva(
@@ -25,15 +24,15 @@ const Alert = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>
>(({ className, variant, ...props }, ref) => (
- <div ref={ref} role="alert" className={cn(alertVariants({ variant }), className)} {...props} />
+ <div className={cn(alertVariants({ variant }), className)} ref={ref} role="alert" {...props} />
));
Alert.displayName = 'Alert';
const AlertTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(
({ className, ...props }, ref) => (
<h5
- ref={ref}
className={cn('mb-1 font-medium leading-none tracking-tight', className)}
+ ref={ref}
{...props}
/>
),
@@ -44,7 +43,7 @@ const AlertDescription = React.forwardRef<
HTMLParagraphElement,
React.HTMLAttributes<HTMLParagraphElement>
>(({ className, ...props }, ref) => (
- <div ref={ref} className={cn('text-sm [&_p]:leading-relaxed', className)} {...props} />
+ <div className={cn('text-sm [&_p]:leading-relaxed', className)} ref={ref} {...props} />
));
AlertDescription.displayName = 'AlertDescription';
diff --git a/src/components/ui/avatar.tsx b/apps/web/src/components/ui/avatar.tsx
similarity index 94%
rename from src/components/ui/avatar.tsx
rename to apps/web/src/components/ui/avatar.tsx
index 5e54c995..4fa0a969 100644
--- a/src/components/ui/avatar.tsx
+++ b/apps/web/src/components/ui/avatar.tsx
@@ -2,7 +2,6 @@
import * as React from 'react';
import * as AvatarPrimitive from '@radix-ui/react-avatar';
-
import { cn } from '~/utils/cn';
const Avatar = React.forwardRef<
@@ -10,8 +9,8 @@ const Avatar = React.forwardRef<
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>
>(({ className, ...props }, ref) => (
<AvatarPrimitive.Root
- ref={ref}
className={cn('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', className)}
+ ref={ref}
{...props}
/>
));
@@ -22,8 +21,8 @@ const AvatarImage = React.forwardRef<
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>
>(({ className, ...props }, ref) => (
<AvatarPrimitive.Image
- ref={ref}
className={cn('aspect-square h-full w-full', className)}
+ ref={ref}
{...props}
/>
));
@@ -34,11 +33,11 @@ const AvatarFallback = React.forwardRef<
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>
>(({ className, ...props }, ref) => (
<AvatarPrimitive.Fallback
- ref={ref}
className={cn(
- 'flex h-full w-full items-center justify-center rounded-full bg-muted',
+ 'bg-muted flex h-full w-full items-center justify-center rounded-full',
className,
)}
+ ref={ref}
{...props}
/>
));
diff --git a/src/components/ui/badge.tsx b/apps/web/src/components/ui/badge.tsx
similarity index 99%
rename from src/components/ui/badge.tsx
rename to apps/web/src/components/ui/badge.tsx
index c78fcf3d..750e5336 100644
--- a/src/components/ui/badge.tsx
+++ b/apps/web/src/components/ui/badge.tsx
@@ -2,7 +2,6 @@
import * as React from 'react';
import { cva, type VariantProps } from 'class-variance-authority';
-
import { cn } from '~/utils/cn';
const badgeVariants = cva(
diff --git a/src/components/ui/button.tsx b/apps/web/src/components/ui/button.tsx
similarity index 99%
rename from src/components/ui/button.tsx
rename to apps/web/src/components/ui/button.tsx
index 8b0bd902..4d02f594 100644
--- a/src/components/ui/button.tsx
+++ b/apps/web/src/components/ui/button.tsx
@@ -2,7 +2,6 @@
import * as React from 'react';
import { Slot } from '@radix-ui/react-slot';
import { cva, type VariantProps } from 'class-variance-authority';
-
import { cn } from '~/utils/cn';
const buttonVariants = cva(
diff --git a/src/components/ui/calendar.tsx b/apps/web/src/components/ui/calendar.tsx
similarity index 99%
rename from src/components/ui/calendar.tsx
rename to apps/web/src/components/ui/calendar.tsx
index 83424dda..f1d122a8 100644
--- a/src/components/ui/calendar.tsx
+++ b/apps/web/src/components/ui/calendar.tsx
@@ -3,7 +3,6 @@
import * as React from 'react';
import { ChevronLeft, ChevronRight } from 'lucide-react';
import { DayPicker } from 'react-day-picker';
-
import { cn } from '~/utils/cn';
import { buttonVariants } from '~/components/ui/button';
@@ -12,7 +11,6 @@ export type CalendarProps = React.ComponentProps<typeof DayPicker>;
function Calendar({ className, classNames, showOutsideDays = true, ...props }: CalendarProps) {
return (
<DayPicker
- showOutsideDays={showOutsideDays}
className={cn('p-3', className)}
classNames={{
months: 'flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0',
@@ -48,6 +46,7 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }: C
IconLeft: () => <ChevronLeft className="h-4 w-4" />,
IconRight: () => <ChevronRight className="h-4 w-4" />,
}}
+ showOutsideDays={showOutsideDays}
{...props}
/>
);
diff --git a/src/components/ui/card.tsx b/apps/web/src/components/ui/card.tsx
similarity index 76%
rename from src/components/ui/card.tsx
rename to apps/web/src/components/ui/card.tsx
index 2817fa54..c57803c4 100644
--- a/src/components/ui/card.tsx
+++ b/apps/web/src/components/ui/card.tsx
@@ -1,13 +1,12 @@
'use client';
import * as React from 'react';
-
import { cn } from '~/utils/cn';
const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
({ className, ...props }, ref) => (
<div
+ className={cn('bg-card text-card-foreground rounded-3xl border shadow-sm', className)}
ref={ref}
- className={cn('rounded-3xl border bg-card text-card-foreground shadow-sm', className)}
{...props}
/>
),
@@ -16,7 +15,7 @@ Card.displayName = 'Card';
const CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
({ className, ...props }, ref) => (
- <div ref={ref} className={cn('flex flex-col space-y-1.5 p-6', className)} {...props} />
+ <div className={cn('flex flex-col space-y-1.5 p-6', className)} ref={ref} {...props} />
),
);
CardHeader.displayName = 'CardHeader';
@@ -24,8 +23,8 @@ CardHeader.displayName = 'CardHeader';
const CardTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(
({ className, ...props }, ref) => (
<h3
- ref={ref}
className={cn('text-lg font-semibold leading-none tracking-tight', className)}
+ ref={ref}
{...props}
/>
),
@@ -34,21 +33,21 @@ CardTitle.displayName = 'CardTitle';
const CardDescription = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
({ className, ...props }, ref) => (
- <div ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} />
+ <div className={cn('text-muted-foreground text-sm', className)} ref={ref} {...props} />
),
);
CardDescription.displayName = 'CardDescription';
const CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
({ className, ...props }, ref) => (
- <div ref={ref} className={cn('p-6 pt-0', className)} {...props} />
+ <div className={cn('p-6 pt-0', className)} ref={ref} {...props} />
),
);
CardContent.displayName = 'CardContent';
const CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
({ className, ...props }, ref) => (
- <div ref={ref} className={cn(' flex items-center p-6 pt-0', className)} {...props} />
+ <div className={cn(' flex items-center p-6 pt-0', className)} ref={ref} {...props} />
),
);
CardFooter.displayName = 'CardFooter';
diff --git a/src/components/ui/checkbox.tsx b/apps/web/src/components/ui/checkbox.tsx
similarity index 70%
rename from src/components/ui/checkbox.tsx
rename to apps/web/src/components/ui/checkbox.tsx
index ad6c9ff1..d4cc12cf 100644
--- a/src/components/ui/checkbox.tsx
+++ b/apps/web/src/components/ui/checkbox.tsx
@@ -3,7 +3,6 @@
import * as React from 'react';
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
import { Check } from 'lucide-react';
-
import { cn } from '~/utils/cn';
const Checkbox = React.forwardRef<
@@ -11,11 +10,11 @@ const Checkbox = React.forwardRef<
React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>
>(({ className, ...props }, ref) => (
<CheckboxPrimitive.Root
- ref={ref}
className={cn(
- 'peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground',
+ 'border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground peer h-4 w-4 shrink-0 rounded-sm border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
className,
)}
+ ref={ref}
{...props}
>
<CheckboxPrimitive.Indicator className={cn('flex items-center justify-center text-current')}>
diff --git a/src/components/ui/code-editor.tsx b/apps/web/src/components/ui/code-editor.tsx
similarity index 100%
rename from src/components/ui/code-editor.tsx
rename to apps/web/src/components/ui/code-editor.tsx
index f9024ac4..bdab7b63 100644
--- a/src/components/ui/code-editor.tsx
+++ b/apps/web/src/components/ui/code-editor.tsx
@@ -40,12 +40,12 @@ export function CodeEditor({ onChange, onMount, options, value, ...props }: Prop
return (
<Editor
{...props}
- theme={editorTheme}
- options={editorOptions}
defaultLanguage="typescript"
+ onChange={onChange}
onMount={onMount}
+ options={editorOptions}
+ theme={editorTheme}
value={value}
- onChange={onChange}
{...props}
/>
);
diff --git a/src/components/ui/command.tsx b/apps/web/src/components/ui/command.tsx
similarity index 73%
rename from src/components/ui/command.tsx
rename to apps/web/src/components/ui/command.tsx
index 1900971c..2308f115 100644
--- a/src/components/ui/command.tsx
+++ b/apps/web/src/components/ui/command.tsx
@@ -3,7 +3,6 @@ import * as React from 'react';
import type { DialogProps } from '@radix-ui/react-dialog';
import { Command as CommandPrimitive } from 'cmdk';
import { Search } from 'lucide-react';
-
import { cn } from '~/utils/cn';
import { Dialog, DialogContent } from '~/components/ui/dialog';
@@ -12,29 +11,29 @@ const Command = React.forwardRef<
React.ComponentPropsWithoutRef<typeof CommandPrimitive>
>(({ className, ...props }, ref) => (
<CommandPrimitive
- ref={ref}
className={cn(
- 'flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground',
+ 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',
className,
)}
+ ref={ref}
{...props}
/>
));
Command.displayName = CommandPrimitive.displayName;
-interface CommandDialogProps extends DialogProps {}
+type CommandDialogProps = DialogProps;
-const CommandDialog = ({ children, ...props }: CommandDialogProps) => {
+function CommandDialog({ children, ...props }: CommandDialogProps) {
return (
<Dialog {...props}>
<DialogContent className="overflow-hidden p-0 shadow-lg">
- <Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
+ <Command className="[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
{children}
</Command>
</DialogContent>
</Dialog>
);
-};
+}
const CommandInput = React.forwardRef<
React.ElementRef<typeof CommandPrimitive.Input>,
@@ -43,11 +42,11 @@ const CommandInput = React.forwardRef<
<div className="flex items-center border-b px-3" cmdk-input-wrapper="">
<Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
<CommandPrimitive.Input
- ref={ref}
className={cn(
- 'flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50',
+ 'placeholder:text-muted-foreground flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50',
className,
)}
+ ref={ref}
{...props}
/>
</div>
@@ -60,8 +59,8 @@ const CommandList = React.forwardRef<
React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>
>(({ className, ...props }, ref) => (
<CommandPrimitive.List
- ref={ref}
className={cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className)}
+ ref={ref}
{...props}
/>
));
@@ -72,7 +71,7 @@ const CommandEmpty = React.forwardRef<
React.ElementRef<typeof CommandPrimitive.Empty>,
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>
>((props, ref) => (
- <CommandPrimitive.Empty ref={ref} className="py-6 text-center text-sm" {...props} />
+ <CommandPrimitive.Empty className="py-6 text-center text-sm" ref={ref} {...props} />
));
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
@@ -82,11 +81,11 @@ const CommandGroup = React.forwardRef<
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>
>(({ className, ...props }, ref) => (
<CommandPrimitive.Group
- ref={ref}
className={cn(
- 'overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground',
+ 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',
className,
)}
+ ref={ref}
{...props}
/>
));
@@ -98,8 +97,8 @@ const CommandSeparator = React.forwardRef<
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>
>(({ className, ...props }, ref) => (
<CommandPrimitive.Separator
+ className={cn('bg-border -mx-1 h-px', className)}
ref={ref}
- className={cn('-mx-1 h-px bg-border', className)}
{...props}
/>
));
@@ -110,25 +109,25 @@ const CommandItem = React.forwardRef<
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>
>(({ className, ...props }, ref) => (
<CommandPrimitive.Item
- ref={ref}
className={cn(
- 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
+ 'aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
className,
)}
+ ref={ref}
{...props}
/>
));
CommandItem.displayName = CommandPrimitive.Item.displayName;
-const CommandShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {
+function CommandShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) {
return (
<span
- className={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)}
+ className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}
{...props}
/>
);
-};
+}
CommandShortcut.displayName = 'CommandShortcut';
export {
diff --git a/src/components/ui/dialog.tsx b/apps/web/src/components/ui/dialog.tsx
similarity index 57%
rename from src/components/ui/dialog.tsx
rename to apps/web/src/components/ui/dialog.tsx
index c4d9a296..41c9c166 100644
--- a/src/components/ui/dialog.tsx
+++ b/apps/web/src/components/ui/dialog.tsx
@@ -3,16 +3,15 @@
import * as React from 'react';
import * as DialogPrimitive from '@radix-ui/react-dialog';
import { X } from 'lucide-react';
-
import { cn } from '~/utils/cn';
const Dialog = DialogPrimitive.Root;
const DialogTrigger = DialogPrimitive.Trigger;
-const DialogPortal = ({ className, ...props }: DialogPrimitive.DialogPortalProps) => (
- <DialogPrimitive.Portal className={cn(className)} {...props} />
-);
+function DialogPortal({ className, ...props }: DialogPrimitive.DialogPortalProps) {
+ return <DialogPrimitive.Portal className={cn(className)} {...props} />;
+}
DialogPortal.displayName = DialogPrimitive.Portal.displayName;
interface ContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
@@ -24,11 +23,11 @@ const DialogOverlay = React.forwardRef<
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>
>(({ className, ...props }, ref) => (
<DialogPrimitive.Overlay
- ref={ref}
className={cn(
- 'fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
+ 'bg-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-sm',
className,
)}
+ ref={ref}
{...props}
/>
));
@@ -41,36 +40,43 @@ const DialogContent = React.forwardRef<
<DialogPortal>
<DialogOverlay />
<DialogPrimitive.Content
- ref={ref}
className={cn(
- 'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-3xl md:w-full',
+ 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-3xl md:w-full',
className,
)}
+ ref={ref}
{...props}
>
{children}
- {displayX && (
- <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
+ {displayX ? (
+ <DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none">
<X className="h-4 w-4" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
- )}
+ ) : null}
</DialogPrimitive.Content>
</DialogPortal>
));
DialogContent.displayName = DialogPrimitive.Content.displayName;
-const DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
- <div className={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)} {...props} />
-);
+function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
+ return (
+ <div
+ className={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)}
+ {...props}
+ />
+ );
+}
DialogHeader.displayName = 'DialogHeader';
-const DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)}
- {...props}
- />
-);
+function DialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
+ return (
+ <div
+ className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)}
+ {...props}
+ />
+ );
+}
DialogFooter.displayName = 'DialogFooter';
const DialogTitle = React.forwardRef<
@@ -78,8 +84,8 @@ const DialogTitle = React.forwardRef<
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
>(({ className, ...props }, ref) => (
<DialogPrimitive.Title
- ref={ref}
className={cn('text-lg font-semibold leading-none tracking-tight', className)}
+ ref={ref}
{...props}
/>
));
@@ -90,8 +96,8 @@ const DialogDescription = React.forwardRef<
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>
>(({ className, ...props }, ref) => (
<DialogPrimitive.Description
+ className={cn('text-muted-foreground text-sm', className)}
ref={ref}
- className={cn('text-sm text-muted-foreground', className)}
{...props}
/>
));
diff --git a/src/components/ui/difficulty-badge.tsx b/apps/web/src/components/ui/difficulty-badge.tsx
similarity index 94%
rename from src/components/ui/difficulty-badge.tsx
rename to apps/web/src/components/ui/difficulty-badge.tsx
index a8612c73..7f9acb72 100644
--- a/src/components/ui/difficulty-badge.tsx
+++ b/apps/web/src/components/ui/difficulty-badge.tsx
@@ -1,4 +1,4 @@
-import { type Difficulty } from '@prisma/client';
+import { type Difficulty } from '@repo/db';
import { Badge } from './badge';
interface Props {
diff --git a/src/components/ui/dropdown-menu.tsx b/apps/web/src/components/ui/dropdown-menu.tsx
similarity index 79%
rename from src/components/ui/dropdown-menu.tsx
rename to apps/web/src/components/ui/dropdown-menu.tsx
index 987839ab..49e2455f 100644
--- a/src/components/ui/dropdown-menu.tsx
+++ b/apps/web/src/components/ui/dropdown-menu.tsx
@@ -3,7 +3,6 @@
import * as React from 'react';
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
import { Check, ChevronRight, Circle } from 'lucide-react';
-
import { cn } from '~/utils/cn';
const DropdownMenu = DropdownMenuPrimitive.Root;
@@ -25,12 +24,12 @@ const DropdownMenuSubTrigger = React.forwardRef<
}
>(({ className, inset, children, ...props }, ref) => (
<DropdownMenuPrimitive.SubTrigger
- ref={ref}
className={cn(
- 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent',
+ 'focus:bg-accent data-[state=open]:bg-accent flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none',
inset && 'pl-8',
className,
)}
+ ref={ref}
{...props}
>
{children}
@@ -44,11 +43,11 @@ const DropdownMenuSubContent = React.forwardRef<
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>
>(({ className, ...props }, ref) => (
<DropdownMenuPrimitive.SubContent
- ref={ref}
className={cn(
- 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1',
+ 'bg-popover text-popover-foreground animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md',
className,
)}
+ ref={ref}
{...props}
/>
));
@@ -60,12 +59,12 @@ const DropdownMenuContent = React.forwardRef<
>(({ className, sideOffset = 4, ...props }, ref) => (
<DropdownMenuPrimitive.Portal>
<DropdownMenuPrimitive.Content
- ref={ref}
- sideOffset={sideOffset}
className={cn(
- 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
+ 'bg-popover text-popover-foreground animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md',
className,
)}
+ ref={ref}
+ sideOffset={sideOffset}
{...props}
/>
</DropdownMenuPrimitive.Portal>
@@ -79,12 +78,12 @@ const DropdownMenuItem = React.forwardRef<
}
>(({ className, inset, ...props }, ref) => (
<DropdownMenuPrimitive.Item
- ref={ref}
className={cn(
- 'relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
+ 'focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
inset && 'pl-8',
className,
)}
+ ref={ref}
{...props}
/>
));
@@ -95,12 +94,12 @@ const DropdownMenuCheckboxItem = React.forwardRef<
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>
>(({ className, children, checked, ...props }, ref) => (
<DropdownMenuPrimitive.CheckboxItem
- ref={ref}
+ checked={checked}
className={cn(
- 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
+ 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
className,
)}
- checked={checked}
+ ref={ref}
{...props}
>
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
@@ -118,11 +117,11 @@ const DropdownMenuRadioItem = React.forwardRef<
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>
>(({ className, children, ...props }, ref) => (
<DropdownMenuPrimitive.RadioItem
- ref={ref}
className={cn(
- 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
+ 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
className,
)}
+ ref={ref}
{...props}
>
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
@@ -142,8 +141,8 @@ const DropdownMenuLabel = React.forwardRef<
}
>(({ className, inset, ...props }, ref) => (
<DropdownMenuPrimitive.Label
- ref={ref}
className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}
+ ref={ref}
{...props}
/>
));
@@ -154,18 +153,18 @@ const DropdownMenuSeparator = React.forwardRef<
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>
>(({ className, ...props }, ref) => (
<DropdownMenuPrimitive.Separator
+ className={cn('bg-muted -mx-1 my-1 h-px', className)}
ref={ref}
- className={cn('-mx-1 my-1 h-px bg-muted', className)}
{...props}
/>
));
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
-const DropdownMenuShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {
+function DropdownMenuShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) {
return (
<span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />
);
-};
+}
DropdownMenuShortcut.displayName = 'DropdownMenuShortcut';
export {
diff --git a/src/components/ui/expandable.tsx b/apps/web/src/components/ui/expandable.tsx
similarity index 100%
rename from src/components/ui/expandable.tsx
rename to apps/web/src/components/ui/expandable.tsx
diff --git a/src/components/ui/footsies.tsx b/apps/web/src/components/ui/footsies.tsx
similarity index 100%
rename from src/components/ui/footsies.tsx
rename to apps/web/src/components/ui/footsies.tsx
diff --git a/src/components/ui/force-render-until-client.tsx b/apps/web/src/components/ui/force-render-until-client.tsx
similarity index 100%
rename from src/components/ui/force-render-until-client.tsx
rename to apps/web/src/components/ui/force-render-until-client.tsx
diff --git a/src/components/ui/form.tsx b/apps/web/src/components/ui/form.tsx
similarity index 89%
rename from src/components/ui/form.tsx
rename to apps/web/src/components/ui/form.tsx
index bdee9c49..ee85a975 100644
--- a/src/components/ui/form.tsx
+++ b/apps/web/src/components/ui/form.tsx
@@ -11,33 +11,30 @@ import {
FormProvider,
useFormContext,
} from 'react-hook-form';
-
import { cn } from '~/utils/cn';
import { Label } from '~/components/ui/label';
const Form = FormProvider;
-type FormFieldContextValue<
+interface FormFieldContextValue<
TFieldValues extends FieldValues = FieldValues,
TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
-> = {
+> {
name: TName;
-};
+}
const FormFieldContext = React.createContext<FormFieldContextValue>({} as FormFieldContextValue);
-const FormField = <
+function FormField<
TFieldValues extends FieldValues = FieldValues,
TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
->({
- ...props
-}: ControllerProps<TFieldValues, TName>) => {
+>({ ...props }: ControllerProps<TFieldValues, TName>) {
return (
<FormFieldContext.Provider value={{ name: props.name }}>
<Controller {...props} />
</FormFieldContext.Provider>
);
-};
+}
const useFormField = () => {
const fieldContext = React.useContext(FormFieldContext);
@@ -62,9 +59,9 @@ const useFormField = () => {
};
};
-type FormItemContextValue = {
+interface FormItemContextValue {
id: string;
-};
+}
const FormItemContext = React.createContext<FormItemContextValue>({} as FormItemContextValue);
@@ -74,7 +71,7 @@ const FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivEl
return (
<FormItemContext.Provider value={{ id }}>
- <div ref={ref} className={cn('space-y-2', className)} {...props} />
+ <div className={cn('space-y-2', className)} ref={ref} {...props} />
</FormItemContext.Provider>
);
},
@@ -89,9 +86,9 @@ const FormLabel = React.forwardRef<
return (
<Label
- ref={ref}
className={cn(error && 'text-destructive', className)}
htmlFor={formItemId}
+ ref={ref}
{...props}
/>
);
@@ -106,10 +103,10 @@ const FormControl = React.forwardRef<
return (
<Slot
- ref={ref}
- id={formItemId}
aria-describedby={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}
- aria-invalid={!!error}
+ aria-invalid={Boolean(error)}
+ id={formItemId}
+ ref={ref}
{...props}
/>
);
@@ -124,9 +121,9 @@ const FormDescription = React.forwardRef<
return (
<p
- ref={ref}
+ className={cn('text-muted-foreground text-sm', className)}
id={formDescriptionId}
- className={cn('text-sm text-muted-foreground', className)}
+ ref={ref}
{...props}
/>
);
@@ -138,7 +135,7 @@ const FormMessage = React.forwardRef<
React.HTMLAttributes<HTMLParagraphElement>
>(({ className, children, ...props }, ref) => {
const { error, formMessageId } = useFormField();
- const body = error ? String(error?.message) : children;
+ const body = error ? String(error.message) : children;
if (!body) {
return null;
@@ -146,9 +143,9 @@ const FormMessage = React.forwardRef<
return (
<p
- ref={ref}
+ className={cn('text-destructive text-sm font-medium', className)}
id={formMessageId}
- className={cn('text-sm font-medium text-destructive', className)}
+ ref={ref}
{...props}
>
{body}
diff --git a/src/components/ui/icon-button.tsx b/apps/web/src/components/ui/icon-button.tsx
similarity index 85%
rename from src/components/ui/icon-button.tsx
rename to apps/web/src/components/ui/icon-button.tsx
index e6bcf1c7..b641b5b2 100644
--- a/src/components/ui/icon-button.tsx
+++ b/apps/web/src/components/ui/icon-button.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable import/namespace */
'use client';
import type { LucideIcon } from 'lucide-react';
@@ -7,7 +6,7 @@ import { Button, type ButtonProps } from './button';
export interface IconButtonProps extends ButtonProps {
icon: LucideIcon;
- iconSize?: string | number;
+ iconSize?: number | string;
}
export function IconButton({ icon: Icon, iconSize, ...props }: IconButtonProps) {
diff --git a/src/components/ui/input.tsx b/apps/web/src/components/ui/input.tsx
similarity index 52%
rename from src/components/ui/input.tsx
rename to apps/web/src/components/ui/input.tsx
index 94671624..7d42e723 100644
--- a/src/components/ui/input.tsx
+++ b/apps/web/src/components/ui/input.tsx
@@ -1,20 +1,19 @@
'use client';
import * as React from 'react';
-
import { cn } from '~/utils/cn';
-export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}
+export type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
const Input = React.forwardRef<HTMLInputElement, InputProps>(
({ className, type, ...props }, ref) => {
return (
<input
- type={type}
className={cn(
- 'flex h-10 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
+ 'border-input ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border bg-transparent px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
className,
)}
ref={ref}
+ type={type}
{...props}
/>
);
diff --git a/src/components/ui/label.tsx b/apps/web/src/components/ui/label.tsx
similarity index 87%
rename from src/components/ui/label.tsx
rename to apps/web/src/components/ui/label.tsx
index 18fbaeef..387bda6a 100644
--- a/src/components/ui/label.tsx
+++ b/apps/web/src/components/ui/label.tsx
@@ -3,7 +3,6 @@
import * as React from 'react';
import * as LabelPrimitive from '@radix-ui/react-label';
import { cva, type VariantProps } from 'class-variance-authority';
-
import { cn } from '~/utils/cn';
const labelVariants = cva(
@@ -14,7 +13,7 @@ const Label = React.forwardRef<
React.ElementRef<typeof LabelPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>
>(({ className, ...props }, ref) => (
- <LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />
+ <LabelPrimitive.Root className={cn(labelVariants(), className)} ref={ref} {...props} />
));
Label.displayName = LabelPrimitive.Root.displayName;
diff --git a/src/components/ui/magic-icon.tsx b/apps/web/src/components/ui/magic-icon.tsx
similarity index 100%
rename from src/components/ui/magic-icon.tsx
rename to apps/web/src/components/ui/magic-icon.tsx
diff --git a/src/components/ui/markdown.tsx b/apps/web/src/components/ui/markdown.tsx
similarity index 99%
rename from src/components/ui/markdown.tsx
rename to apps/web/src/components/ui/markdown.tsx
index e9dcdb05..e31830e8 100644
--- a/src/components/ui/markdown.tsx
+++ b/apps/web/src/components/ui/markdown.tsx
@@ -4,7 +4,6 @@ import ReactMarkdown from 'react-markdown';
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
import remarkGfm from 'remark-gfm';
import { vs, vscDarkPlus } from 'react-syntax-highlighter/dist/esm/styles/prism';
-
import clsx from 'clsx';
import { visit, SKIP, type BuildVisitor } from 'unist-util-visit';
import type { Transformer } from 'unified';
@@ -44,7 +43,6 @@ export function Markdown({ children, className }: { children: string; className?
return (
<ReactMarkdown
className={className}
- remarkPlugins={[removeHtmlComments, remarkGfm]}
components={{
a: ({ className, ...props }) => (
<a className={clsx(className, 'text-blue-500')} {...props} />
@@ -66,10 +64,10 @@ export function Markdown({ children, className }: { children: string; className?
const match = /language-(\w+)/.exec(className || '');
return !inline && match ? (
<SyntaxHighlighter
- style={syntaxHighlighterTheme} // theme
+ PreTag="section" // parent tag
className={clsx(className, 'rounded-xl dark:rounded-md')}
language={match[1]}
- PreTag="section" // parent tag
+ style={syntaxHighlighterTheme} // theme
{...props}
>
{String(children).replace(/\n$/, '')}
@@ -81,6 +79,7 @@ export function Markdown({ children, className }: { children: string; className?
);
},
}}
+ remarkPlugins={[removeHtmlComments, remarkGfm]}
>
{children}
</ReactMarkdown>
diff --git a/src/components/ui/navigation-menu.tsx b/apps/web/src/components/ui/navigation-menu.tsx
similarity index 80%
rename from src/components/ui/navigation-menu.tsx
rename to apps/web/src/components/ui/navigation-menu.tsx
index b6433ab0..82870f29 100644
--- a/src/components/ui/navigation-menu.tsx
+++ b/apps/web/src/components/ui/navigation-menu.tsx
@@ -3,7 +3,6 @@ import * as React from 'react';
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
import { cva } from 'class-variance-authority';
import { ChevronDown } from 'lucide-react';
-
import { cn } from '~/utils/cn';
const NavigationMenu = React.forwardRef<
@@ -11,8 +10,8 @@ const NavigationMenu = React.forwardRef<
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>
>(({ className, children, ...props }, ref) => (
<NavigationMenuPrimitive.Root
- ref={ref}
className={cn('relative z-10 flex flex-1 items-center justify-center', className)}
+ ref={ref}
{...props}
>
{children}
@@ -26,8 +25,8 @@ const NavigationMenuList = React.forwardRef<
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>
>(({ className, ...props }, ref) => (
<NavigationMenuPrimitive.List
- ref={ref}
className={cn('group flex flex-1 list-none items-center justify-center space-x-1', className)}
+ ref={ref}
{...props}
/>
));
@@ -44,14 +43,14 @@ const NavigationMenuTrigger = React.forwardRef<
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>
>(({ className, children, ...props }, ref) => (
<NavigationMenuPrimitive.Trigger
- ref={ref}
className={cn(navigationMenuTriggerStyle(), 'group', className)}
+ ref={ref}
{...props}
>
{children}{' '}
<ChevronDown
- className="relative top-[1px] ml-3 h-4 w-4 transition duration-200 group-data-[state=open]:rotate-180"
aria-hidden="true"
+ className="relative top-[1px] ml-3 h-4 w-4 transition duration-200 group-data-[state=open]:rotate-180"
/>
</NavigationMenuPrimitive.Trigger>
));
@@ -62,11 +61,11 @@ const NavigationMenuContent = React.forwardRef<
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>
>(({ className, ...props }, ref) => (
<NavigationMenuPrimitive.Content
- ref={ref}
className={cn(
- 'left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ',
+ 'data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 left-0 top-0 w-full md:absolute md:w-auto ',
className,
)}
+ ref={ref}
{...props}
/>
));
@@ -81,7 +80,7 @@ const NavigationMenuViewport = React.forwardRef<
<div className={cn('absolute left-0 top-full flex justify-center')}>
<NavigationMenuPrimitive.Viewport
className={cn(
- 'origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]',
+ 'origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow-lg md:w-[var(--radix-navigation-menu-viewport-width)]',
className,
)}
ref={ref}
@@ -96,14 +95,14 @@ const NavigationMenuIndicator = React.forwardRef<
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>
>(({ className, ...props }, ref) => (
<NavigationMenuPrimitive.Indicator
- ref={ref}
className={cn(
- 'top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in',
+ 'data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden',
className,
)}
+ ref={ref}
{...props}
>
- <div className="relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" />
+ <div className="bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" />
</NavigationMenuPrimitive.Indicator>
));
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
diff --git a/src/components/ui/navigation.tsx b/apps/web/src/components/ui/navigation.tsx
similarity index 59%
rename from src/components/ui/navigation.tsx
rename to apps/web/src/components/ui/navigation.tsx
index 90f4d190..9f00984b 100644
--- a/src/components/ui/navigation.tsx
+++ b/apps/web/src/components/ui/navigation.tsx
@@ -1,12 +1,11 @@
'use client';
import { useTheme } from 'next-themes';
-
-import { RoleTypes } from '@prisma/client';
+import { RoleTypes } from '@repo/db';
import { Loader2, LogIn, Moon, Plus, Settings, Settings2, Sun, User } from 'lucide-react';
-import { signIn, signOut, useSession } from 'next-auth/react';
+import { signIn, signOut, useSession } from '@repo/auth/react';
import Link from 'next/link';
-import { usePathname, useRouter } from 'next/navigation';
+import { usePathname } from 'next/navigation';
import { useEffect, useState } from 'react';
import { Button } from './button';
import {
@@ -43,10 +42,10 @@ export function Navigation() {
fill="#3178C6"
/>
<path
- fillRule="evenodd"
clipRule="evenodd"
d="M239.78 284.082H304V243H125V284.082H188.906V467H239.78V284.082Z"
fill="white"
+ fillRule="evenodd"
/>
<path
d="M303.13 466.986V242.986H349.72V335.818H418.427V242.986H465.13V466.986H418.427V373.827H349.72V466.986H303.13Z"
@@ -55,7 +54,7 @@ export function Navigation() {
</g>
<defs>
<clipPath id="clip0_1_2">
- <rect width="512" height="512" fill="white" />
+ <rect fill="white" height="512" width="512" />
</clipPath>
</defs>
</svg>
@@ -93,18 +92,18 @@ function ThemeButton() {
return (
<>
- {mounted && (
+ {mounted ? (
<button
- type="button"
- className="rounded-lg p-2 duration-300 focus:bg-accent focus:outline-none"
+ className="focus:bg-accent rounded-lg p-2 duration-300 focus:outline-none"
onClick={() => {
setTheme(resolvedTheme === 'dark' ? 'light' : 'dark');
}}
+ type="button"
>
- {resolvedTheme === 'dark' && <Moon className="h-5 w-5" aria-hidden="true" />}
- {resolvedTheme === 'light' && <Sun className="h-5 w-5" aria-hidden="true" />}
+ {resolvedTheme === 'dark' && <Moon aria-hidden="true" className="h-5 w-5" />}
+ {resolvedTheme === 'light' && <Sun aria-hidden="true" className="h-5 w-5" />}
</button>
- )}
+ ) : null}
</>
);
}
@@ -112,10 +111,9 @@ function ThemeButton() {
function LoginButton() {
const [loading, setLoading] = useState(false);
const { data: session, status } = useSession();
- const router = useRouter();
- const isAdmin = session?.user?.role?.includes(RoleTypes.ADMIN);
- const isMod = session?.user?.role?.includes(RoleTypes.MODERATOR);
+ const isAdmin = session?.user.role.includes(RoleTypes.ADMIN);
+ const isMod = session?.user.role.includes(RoleTypes.MODERATOR);
const isAdminOrMod = isAdmin || isMod;
// NOTE: 1. loading == true -> 2. signIn() -> 3. session status == 'loading' (loading == false)
@@ -134,59 +132,57 @@ function LoginButton() {
};
return session ? (
- <>
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <button className="rounded-lg p-2 duration-300 focus:bg-accent focus:outline-none">
- <User className="h-5 w-5" />
- </button>
- </DropdownMenuTrigger>
- <DropdownMenuContent
- align="end"
- className="mt-[0.33rem] w-56 rounded-xl bg-white/50 backdrop-blur-sm dark:bg-neutral-950/50"
- >
- <Link className="block" href="/wizard">
- <DropdownMenuItem className="rounded-lg p-2 duration-300 focus:bg-accent focus:outline-none dark:hover:bg-neutral-700/50">
- <Plus className="mr-2 h-4 w-4" />
- <span>Create a Challenge</span>
- </DropdownMenuItem>
- </Link>
- <Link className="block" href={`/@${session.user.name}`}>
- <DropdownMenuItem className="rounded-lg p-2 duration-300 focus:bg-accent focus:outline-none dark:hover:bg-neutral-700/50">
- <User className="mr-2 h-4 w-4" />
- <span>Profile</span>
- </DropdownMenuItem>
- </Link>
- <Link className="block" href="/settings">
- <DropdownMenuItem className="rounded-lg p-2 duration-300 focus:bg-accent focus:outline-none">
- <Settings2 className="mr-2 h-4 w-4" />
- <span>Settings</span>
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <button className="focus:bg-accent rounded-lg p-2 duration-300 focus:outline-none">
+ <User className="h-5 w-5" />
+ </button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent
+ align="end"
+ className="mt-[0.33rem] w-56 rounded-xl bg-white/50 backdrop-blur-sm dark:bg-neutral-950/50"
+ >
+ <Link className="block" href="/wizard">
+ <DropdownMenuItem className="focus:bg-accent rounded-lg p-2 duration-300 focus:outline-none dark:hover:bg-neutral-700/50">
+ <Plus className="mr-2 h-4 w-4" />
+ <span>Create a Challenge</span>
+ </DropdownMenuItem>
+ </Link>
+ <Link className="block" href={`/@${session.user.name}`}>
+ <DropdownMenuItem className="focus:bg-accent rounded-lg p-2 duration-300 focus:outline-none dark:hover:bg-neutral-700/50">
+ <User className="mr-2 h-4 w-4" />
+ <span>Profile</span>
+ </DropdownMenuItem>
+ </Link>
+ <Link className="block" href="/settings">
+ <DropdownMenuItem className="focus:bg-accent rounded-lg p-2 duration-300 focus:outline-none">
+ <Settings2 className="mr-2 h-4 w-4" />
+ <span>Settings</span>
+ </DropdownMenuItem>
+ </Link>
+ {isAdminOrMod ? (
+ <Link className="block" href="/admin">
+ <DropdownMenuItem className="focus:bg-accent rounded-lg p-2 duration-300 focus:outline-none dark:hover:bg-neutral-700/50">
+ <Settings className="mr-2 h-4 w-4" />
+ <span>Admin</span>
</DropdownMenuItem>
</Link>
- {isAdminOrMod && (
- <Link className="block" href="/admin">
- <DropdownMenuItem className="rounded-lg p-2 duration-300 focus:bg-accent focus:outline-none dark:hover:bg-neutral-700/50">
- <Settings className="mr-2 h-4 w-4" />
- <span>Admin</span>
- </DropdownMenuItem>
- </Link>
- )}
- <DropdownMenuSeparator />
- <Button
- variant="ghost"
- className="h-8 w-full justify-start rounded-b-lg rounded-t-sm bg-opacity-50 px-2 text-red-500 hover:bg-red-500/20 hover:text-red-500"
- onClick={handleSignOut}
- >
- <span className="text-red-500">Log out</span>
- </Button>
- </DropdownMenuContent>
- </DropdownMenu>
- </>
+ ) : null}
+ <DropdownMenuSeparator />
+ <Button
+ className="h-8 w-full justify-start rounded-b-lg rounded-t-sm bg-opacity-50 px-2 text-red-500 hover:bg-red-500/20 hover:text-red-500"
+ onClick={handleSignOut}
+ variant="ghost"
+ >
+ <span className="text-red-500">Log out</span>
+ </Button>
+ </DropdownMenuContent>
+ </DropdownMenu>
) : (
<Button
+ className="focus:bg-accent w-20 rounded-lg bg-transparent p-2 text-black duration-300 hover:bg-gray-200 focus:outline-none dark:text-white hover:dark:bg-gray-800"
disabled={loading || status === 'loading'}
onClick={handleSignIn}
- className="w-20 rounded-lg bg-transparent p-2 text-black duration-300 hover:bg-gray-200 focus:bg-accent focus:outline-none dark:text-white hover:dark:bg-gray-800"
>
{loading || status === 'loading' ? (
<Loader2 className="h-5 w-5 animate-spin" />
diff --git a/src/components/ui/pagination.tsx b/apps/web/src/components/ui/pagination.tsx
similarity index 96%
rename from src/components/ui/pagination.tsx
rename to apps/web/src/components/ui/pagination.tsx
index b7ee35d5..7ffa8179 100644
--- a/src/components/ui/pagination.tsx
+++ b/apps/web/src/components/ui/pagination.tsx
@@ -55,7 +55,7 @@ export default function Pagination({
{fuck.map((page, i) => (
<button key={`pagination-${page}`}>
{page}
- {i === fuck.length - 1 && hasNextPage && '+'}
+ {i === fuck.length - 1 && hasNextPage ? '+' : null}
</button>
))}
<div className="next">
diff --git a/src/components/ui/paragraph.tsx b/apps/web/src/components/ui/paragraph.tsx
similarity index 100%
rename from src/components/ui/paragraph.tsx
rename to apps/web/src/components/ui/paragraph.tsx
diff --git a/src/components/ui/popover.tsx b/apps/web/src/components/ui/popover.tsx
similarity index 64%
rename from src/components/ui/popover.tsx
rename to apps/web/src/components/ui/popover.tsx
index bba78501..1f5fb533 100644
--- a/src/components/ui/popover.tsx
+++ b/apps/web/src/components/ui/popover.tsx
@@ -1,7 +1,6 @@
'use client';
import * as React from 'react';
import * as PopoverPrimitive from '@radix-ui/react-popover';
-
import { cn } from '~/utils/cn';
const Popover = PopoverPrimitive.Root;
@@ -14,13 +13,13 @@ const PopoverContent = React.forwardRef<
>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (
<PopoverPrimitive.Portal>
<PopoverPrimitive.Content
- ref={ref}
align={align}
- sideOffset={sideOffset}
className={cn(
- 'z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
+ 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-none',
className,
)}
+ ref={ref}
+ sideOffset={sideOffset}
{...props}
/>
</PopoverPrimitive.Portal>
diff --git a/src/components/ui/rich-markdown-editor.tsx b/apps/web/src/components/ui/rich-markdown-editor.tsx
similarity index 93%
rename from src/components/ui/rich-markdown-editor.tsx
rename to apps/web/src/components/ui/rich-markdown-editor.tsx
index 9093b4f3..e9d9a8a1 100644
--- a/src/components/ui/rich-markdown-editor.tsx
+++ b/apps/web/src/components/ui/rich-markdown-editor.tsx
@@ -1,10 +1,10 @@
import { useTheme } from 'next-themes';
+import type { ChangeEvent } from 'react';
import { useContext, useEffect, useRef, useState } from 'react';
-
import MDEditor, { EditorContext, commands, type ICommand } from '@uiw/react-md-editor';
+import { toast } from './use-toast';
import { insertText } from '~/utils/domUtils';
import { useUploadThing } from '~/utils/useUploadthing';
-import { toast } from './use-toast';
const codePreview: ICommand = {
name: 'preview',
@@ -15,7 +15,7 @@ const codePreview: ICommand = {
interface Props {
value: string;
- onChange: (v: string) => void;
+ onChange: (v: ChangeEvent | string) => void;
dismissPreview?: boolean;
/**
* This will allow images to be uploaded to CDN
@@ -38,7 +38,7 @@ export function RichMarkdownEditor({
const { theme } = useTheme();
useEffect(() => {
- theme == 'dark'
+ theme === 'dark'
? document.documentElement.setAttribute('data-color-mode', 'dark')
: document.documentElement.setAttribute('data-color-mode', 'light');
}, [theme]);
@@ -50,11 +50,11 @@ export function RichMarkdownEditor({
keyCommand: 'image',
buttonProps: { 'aria-label': 'Insert title3' },
icon: (
- <svg width="12" height="12" viewBox="0 0 20 20">
+ <svg height="12" viewBox="0 0 20 20" width="12">
<path
- fill="currentColor"
d="M15 9c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4-7H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 13l-6-5-2 2-4-5-4 8V4h16v11z"
- ></path>
+ fill="currentColor"
+ />
</svg>
),
execute: async () => {
@@ -62,7 +62,7 @@ export function RichMarkdownEditor({
if (!ref) return;
- // @ts-ignore
+ // @ts-expect-error
ref.value = null;
ref.click();
},
@@ -87,7 +87,7 @@ export function RichMarkdownEditor({
// insert string at cursor position by calling on change
insertText(
`![${uploadedFile?.fileKey}](${uploadedFile?.fileUrl})`,
- // @ts-ignore
+ // @ts-expect-error
editorRef.current.textarea,
);
@@ -128,11 +128,11 @@ export function RichMarkdownEditor({
};
}, [startUpload, allowImageUpload]);
- const handlePasta = async (event: React.ClipboardEvent<HTMLTextAreaElement>) => {
+ const handlePasta = async (event: React.ClipboardEvent<HTMLDivElement>) => {
// only allow image if it's enabled
if (!allowImageUpload) return;
- const items = event.clipboardData?.items;
+ const items = event.clipboardData.items;
if (!items) return;
// upload the image to and endpoint
for (const item of items) {
@@ -152,18 +152,6 @@ export function RichMarkdownEditor({
return (
<div className="h-full flex-1">
<MDEditor
- ref={editorRef}
- height="100%"
- value={value}
- // non-split-screen by default
- preview="edit"
- visibleDragbar={false}
- extraCommands={extraCommands}
- commands={myCommands}
- // @ts-ignore
- onChange={onChange}
- // @ts-ignore
- onPaste={(event) => handlePasta(event)}
components={{
toolbar: (command) => {
// toolbar: (command, disabled, executeCommand) => {
@@ -183,15 +171,27 @@ export function RichMarkdownEditor({
}
},
}}
+ extraCommands={extraCommands}
+ height="100%"
+ onChange={(e) => onChange(e ?? '')}
+ onPaste={(event) => handlePasta(event)}
+ ref={editorRef}
+ // non-split-screen by default
+ value={value}
+ // @ts-ignore
+ preview="edit"
+ visibleDragbar={false}
+ // @ts-ignore
+ commands={myCommands}
/>
- {isImageUploading && (
+ {isImageUploading ? (
<div className="absolute bottom-0 flex w-full items-center bg-neutral-100 p-2 pl-3 dark:bg-zinc-700 dark:text-white">
<div role="status">
<svg
aria-hidden="true"
className="mr-3 h-5 w-5 animate-spin fill-black text-gray-300 dark:fill-white dark:text-neutral-500"
- viewBox="0 0 100 101"
fill="none"
+ viewBox="0 0 100 101"
xmlns="http://www.w3.org/2000/svg"
>
<path
@@ -207,8 +207,8 @@ export function RichMarkdownEditor({
</div>
<div>Uploading image...</div>
</div>
- )}
- <input type="file" ref={fileInputRef} className="hidden" onChange={handleFileChange} />
+ ) : null}
+ <input className="hidden" onChange={handleFileChange} ref={fileInputRef} type="file" />
</div>
);
}
@@ -225,13 +225,13 @@ function PreviewToggle() {
// TODO: styles don't work for some reason
<button
className="mr-2 w-10 px-2 font-bold"
+ onClick={click}
style={{
width: '4rem !important',
padding: '0.25rem 1rem !important',
fontWeight: 'bold !important',
}}
type="button"
- onClick={click}
>
Preview
</button>
@@ -241,13 +241,13 @@ function PreviewToggle() {
// TODO: styles don't work for some reason
<button
className="mr-2 w-10 px-2 font-bold"
+ onClick={click}
style={{
width: '4rem !important',
padding: '0.25rem 1rem !important',
fontWeight: 'bold !important',
}}
type="button"
- onClick={click}
>
Edit
</button>
diff --git a/src/components/ui/scroll-area.tsx b/apps/web/src/components/ui/scroll-area.tsx
similarity index 94%
rename from src/components/ui/scroll-area.tsx
rename to apps/web/src/components/ui/scroll-area.tsx
index 3d400bd7..de424ad3 100644
--- a/src/components/ui/scroll-area.tsx
+++ b/apps/web/src/components/ui/scroll-area.tsx
@@ -2,7 +2,6 @@
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
import * as React from 'react';
-
import { cn } from '~/utils/cn';
const ScrollArea = React.forwardRef<
@@ -10,8 +9,8 @@ const ScrollArea = React.forwardRef<
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
>(({ className, children, ...props }, ref) => (
<ScrollAreaPrimitive.Root
- ref={ref}
className={cn('relative overflow-hidden', className)}
+ ref={ref}
{...props}
>
<ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">
@@ -28,17 +27,17 @@ const ScrollBar = React.forwardRef<
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>
>(({ className, orientation = 'vertical', ...props }, ref) => (
<ScrollAreaPrimitive.ScrollAreaScrollbar
- ref={ref}
- orientation={orientation}
className={cn(
'flex touch-none select-none transition-colors',
orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent p-[1px]',
orientation === 'horizontal' && 'h-2.5 border-t border-t-transparent p-[1px]',
className,
)}
+ orientation={orientation}
+ ref={ref}
{...props}
>
- <ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />
+ <ScrollAreaPrimitive.ScrollAreaThumb className="bg-border relative flex-1 rounded-full" />
</ScrollAreaPrimitive.ScrollAreaScrollbar>
));
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
diff --git a/src/components/ui/select.tsx b/apps/web/src/components/ui/select.tsx
similarity index 78%
rename from src/components/ui/select.tsx
rename to apps/web/src/components/ui/select.tsx
index cddf4ae8..62071fac 100644
--- a/src/components/ui/select.tsx
+++ b/apps/web/src/components/ui/select.tsx
@@ -3,7 +3,6 @@
import * as React from 'react';
import * as SelectPrimitive from '@radix-ui/react-select';
import { Check, ChevronDown } from 'lucide-react';
-
import { cn } from '~/utils/cn';
const Select = SelectPrimitive.Root;
@@ -17,11 +16,11 @@ const SelectTrigger = React.forwardRef<
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
>(({ className, children, ...props }, ref) => (
<SelectPrimitive.Trigger
- ref={ref}
className={cn(
- 'flex h-10 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
+ 'border-input ring-offset-background placeholder:text-muted-foreground focus:ring-ring flex h-10 w-full items-center justify-between rounded-md border bg-transparent px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
className,
)}
+ ref={ref}
{...props}
>
{children}
@@ -38,14 +37,14 @@ const SelectContent = React.forwardRef<
>(({ className, children, position = 'popper', ...props }, ref) => (
<SelectPrimitive.Portal>
<SelectPrimitive.Content
- ref={ref}
className={cn(
- 'relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
+ 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 min-w-[8rem] overflow-hidden rounded-md border shadow-md',
position === 'popper' &&
'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
className,
)}
position={position}
+ ref={ref}
{...props}
>
<SelectPrimitive.Viewport
@@ -67,8 +66,8 @@ const SelectLabel = React.forwardRef<
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
>(({ className, ...props }, ref) => (
<SelectPrimitive.Label
- ref={ref}
className={cn('py-1.5 pl-8 pr-2 text-sm font-semibold', className)}
+ ref={ref}
{...props}
/>
));
@@ -79,11 +78,11 @@ const SelectItem = React.forwardRef<
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
>(({ className, children, ...props }, ref) => (
<SelectPrimitive.Item
- ref={ref}
className={cn(
- 'relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
+ 'focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
className,
)}
+ ref={ref}
{...props}
>
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
@@ -102,8 +101,8 @@ const SelectSeparator = React.forwardRef<
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
>(({ className, ...props }, ref) => (
<SelectPrimitive.Separator
+ className={cn('bg-muted -mx-1 my-1 h-px', className)}
ref={ref}
- className={cn('-mx-1 my-1 h-px bg-muted', className)}
{...props}
/>
));
diff --git a/src/components/ui/separator.tsx b/apps/web/src/components/ui/separator.tsx
similarity index 96%
rename from src/components/ui/separator.tsx
rename to apps/web/src/components/ui/separator.tsx
index 3a46b2ff..e699a387 100644
--- a/src/components/ui/separator.tsx
+++ b/apps/web/src/components/ui/separator.tsx
@@ -2,7 +2,6 @@
import * as React from 'react';
import * as SeparatorPrimitive from '@radix-ui/react-separator';
-
import { cn } from '~/utils/cn';
const Separator = React.forwardRef<
@@ -10,14 +9,14 @@ const Separator = React.forwardRef<
React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
>(({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (
<SeparatorPrimitive.Root
- ref={ref}
- decorative={decorative}
- orientation={orientation}
className={cn(
- 'shrink-0 bg-border',
+ 'bg-border shrink-0',
orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',
className,
)}
+ decorative={decorative}
+ orientation={orientation}
+ ref={ref}
{...props}
/>
));
diff --git a/src/components/ui/skeleton.tsx b/apps/web/src/components/ui/skeleton.tsx
similarity index 59%
rename from src/components/ui/skeleton.tsx
rename to apps/web/src/components/ui/skeleton.tsx
index 62f58e1b..d730d288 100644
--- a/src/components/ui/skeleton.tsx
+++ b/apps/web/src/components/ui/skeleton.tsx
@@ -1,7 +1,7 @@
import { cn } from '~/utils/cn';
function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
- return <div className={cn('animate-pulse rounded-md bg-primary/10', className)} {...props} />;
+ return <div className={cn('bg-primary/10 animate-pulse rounded-md', className)} {...props} />;
}
export { Skeleton };
diff --git a/src/components/ui/table.tsx b/apps/web/src/components/ui/table.tsx
similarity index 77%
rename from src/components/ui/table.tsx
rename to apps/web/src/components/ui/table.tsx
index 152c22d1..2812912e 100644
--- a/src/components/ui/table.tsx
+++ b/apps/web/src/components/ui/table.tsx
@@ -1,11 +1,10 @@
import * as React from 'react';
-
import { cn } from '~/utils/cn';
const Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(
({ className, ...props }, ref) => (
<div className="w-full overflow-auto">
- <table ref={ref} className={cn('w-full caption-bottom text-sm', className)} {...props} />
+ <table className={cn('w-full caption-bottom text-sm', className)} ref={ref} {...props} />
</div>
),
);
@@ -15,7 +14,7 @@ const TableHeader = React.forwardRef<
HTMLTableSectionElement,
React.HTMLAttributes<HTMLTableSectionElement>
>(({ className, ...props }, ref) => (
- <thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props} />
+ <thead className={cn('[&_tr]:border-b', className)} ref={ref} {...props} />
));
TableHeader.displayName = 'TableHeader';
@@ -23,7 +22,7 @@ const TableBody = React.forwardRef<
HTMLTableSectionElement,
React.HTMLAttributes<HTMLTableSectionElement>
>(({ className, ...props }, ref) => (
- <tbody ref={ref} className={cn('[&_tr:last-child]:border-0', className)} {...props} />
+ <tbody className={cn('[&_tr:last-child]:border-0', className)} ref={ref} {...props} />
));
TableBody.displayName = 'TableBody';
@@ -32,8 +31,8 @@ const TableFooter = React.forwardRef<
React.HTMLAttributes<HTMLTableSectionElement>
>(({ className, ...props }, ref) => (
<tfoot
+ className={cn('bg-primary text-primary-foreground font-medium', className)}
ref={ref}
- className={cn('bg-primary font-medium text-primary-foreground', className)}
{...props}
/>
));
@@ -42,11 +41,11 @@ TableFooter.displayName = 'TableFooter';
const TableRow = React.forwardRef<HTMLTableRowElement, React.HTMLAttributes<HTMLTableRowElement>>(
({ className, ...props }, ref) => (
<tr
- ref={ref}
className={cn(
- 'border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted',
+ 'hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors',
className,
)}
+ ref={ref}
{...props}
/>
),
@@ -58,11 +57,11 @@ const TableHead = React.forwardRef<
React.ThHTMLAttributes<HTMLTableCellElement>
>(({ className, ...props }, ref) => (
<th
- ref={ref}
className={cn(
- 'h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0',
+ 'text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0',
className,
)}
+ ref={ref}
{...props}
/>
));
@@ -73,8 +72,8 @@ const TableCell = React.forwardRef<
React.TdHTMLAttributes<HTMLTableCellElement>
>(({ className, ...props }, ref) => (
<td
- ref={ref}
className={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)}
+ ref={ref}
{...props}
/>
));
@@ -84,7 +83,7 @@ const TableCaption = React.forwardRef<
HTMLTableCaptionElement,
React.HTMLAttributes<HTMLTableCaptionElement>
>(({ className, ...props }, ref) => (
- <caption ref={ref} className={cn('mt-4 text-sm text-muted-foreground', className)} {...props} />
+ <caption className={cn('text-muted-foreground mt-4 text-sm', className)} ref={ref} {...props} />
));
TableCaption.displayName = 'TableCaption';
diff --git a/src/components/ui/tabs.tsx b/apps/web/src/components/ui/tabs.tsx
similarity index 67%
rename from src/components/ui/tabs.tsx
rename to apps/web/src/components/ui/tabs.tsx
index 4e4009a2..56d6dc0b 100644
--- a/src/components/ui/tabs.tsx
+++ b/apps/web/src/components/ui/tabs.tsx
@@ -2,7 +2,6 @@
import * as React from 'react';
import * as TabsPrimitive from '@radix-ui/react-tabs';
-
import { cn } from '~/utils/cn';
const Tabs = TabsPrimitive.Root;
@@ -12,11 +11,11 @@ const TabsList = React.forwardRef<
React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>
>(({ className, ...props }, ref) => (
<TabsPrimitive.List
- ref={ref}
className={cn(
- 'inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground',
+ 'bg-muted text-muted-foreground inline-flex h-10 items-center justify-center rounded-md p-1',
className,
)}
+ ref={ref}
{...props}
/>
));
@@ -27,11 +26,11 @@ const TabsTrigger = React.forwardRef<
React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>
>(({ className, ...props }, ref) => (
<TabsPrimitive.Trigger
- ref={ref}
className={cn(
- 'inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm',
+ 'ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm',
className,
)}
+ ref={ref}
{...props}
/>
));
@@ -42,11 +41,11 @@ const TabsContent = React.forwardRef<
React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>
>(({ className, ...props }, ref) => (
<TabsPrimitive.Content
- ref={ref}
className={cn(
- 'mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',
+ 'ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',
className,
)}
+ ref={ref}
{...props}
/>
));
diff --git a/src/components/ui/textarea.tsx b/apps/web/src/components/ui/textarea.tsx
similarity index 55%
rename from src/components/ui/textarea.tsx
rename to apps/web/src/components/ui/textarea.tsx
index 716e4579..fe7a2579 100644
--- a/src/components/ui/textarea.tsx
+++ b/apps/web/src/components/ui/textarea.tsx
@@ -1,15 +1,14 @@
import * as React from 'react';
-
import { cn } from '~/utils/cn';
-export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
+export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
({ className, ...props }, ref) => {
return (
<textarea
className={cn(
- 'flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
+ 'border-input ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[80px] w-full rounded-md border bg-transparent px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
className,
)}
ref={ref}
diff --git a/src/components/ui/toast.tsx b/apps/web/src/components/ui/toast.tsx
similarity index 84%
rename from src/components/ui/toast.tsx
rename to apps/web/src/components/ui/toast.tsx
index 3418fc76..77319159 100644
--- a/src/components/ui/toast.tsx
+++ b/apps/web/src/components/ui/toast.tsx
@@ -3,7 +3,6 @@ import * as React from 'react';
import * as ToastPrimitives from '@radix-ui/react-toast';
import { cva, type VariantProps } from 'class-variance-authority';
import { X } from 'lucide-react';
-
import { cn } from '~/utils/cn';
const ToastProvider = ToastPrimitives.Provider;
@@ -13,11 +12,11 @@ const ToastViewport = React.forwardRef<
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>
>(({ className, ...props }, ref) => (
<ToastPrimitives.Viewport
- ref={ref}
className={cn(
'fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]',
className,
)}
+ ref={ref}
{...props}
/>
));
@@ -46,8 +45,8 @@ const Toast = React.forwardRef<
>(({ className, variant, ...props }, ref) => {
return (
<ToastPrimitives.Root
- ref={ref}
className={cn(toastVariants({ variant }), className)}
+ ref={ref}
{...props}
/>
);
@@ -59,11 +58,11 @@ const ToastAction = React.forwardRef<
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>
>(({ className, ...props }, ref) => (
<ToastPrimitives.Action
- ref={ref}
className={cn(
- 'inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive',
+ 'ring-offset-background hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
className,
)}
+ ref={ref}
{...props}
/>
));
@@ -74,11 +73,11 @@ const ToastClose = React.forwardRef<
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>
>(({ className, ...props }, ref) => (
<ToastPrimitives.Close
- ref={ref}
className={cn(
- 'absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600',
+ 'text-foreground/50 hover:text-foreground absolute right-2 top-2 rounded-md p-1 opacity-0 transition-opacity focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600',
className,
)}
+ ref={ref}
toast-close=""
{...props}
>
@@ -91,7 +90,7 @@ const ToastTitle = React.forwardRef<
React.ElementRef<typeof ToastPrimitives.Title>,
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>
>(({ className, ...props }, ref) => (
- <ToastPrimitives.Title ref={ref} className={cn('text-sm font-semibold', className)} {...props} />
+ <ToastPrimitives.Title className={cn('text-sm font-semibold', className)} ref={ref} {...props} />
));
ToastTitle.displayName = ToastPrimitives.Title.displayName;
@@ -100,8 +99,8 @@ const ToastDescription = React.forwardRef<
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>
>(({ className, ...props }, ref) => (
<ToastPrimitives.Description
- ref={ref}
className={cn('text-sm opacity-90', className)}
+ ref={ref}
{...props}
/>
));
diff --git a/src/components/ui/toaster.tsx b/apps/web/src/components/ui/toaster.tsx
similarity index 80%
rename from src/components/ui/toaster.tsx
rename to apps/web/src/components/ui/toaster.tsx
index eb72cc22..c981130f 100644
--- a/src/components/ui/toaster.tsx
+++ b/apps/web/src/components/ui/toaster.tsx
@@ -19,8 +19,8 @@ export function Toaster() {
return (
<Toast key={id} {...props}>
<div className="grid gap-1">
- {title && <ToastTitle>{title}</ToastTitle>}
- {description && <ToastDescription>{description}</ToastDescription>}
+ {title ? <ToastTitle>{title}</ToastTitle> : null}
+ {description ? <ToastDescription>{description}</ToastDescription> : null}
</div>
{action}
<ToastClose />
diff --git a/src/components/ui/tooltip.tsx b/apps/web/src/components/ui/tooltip.tsx
similarity index 66%
rename from src/components/ui/tooltip.tsx
rename to apps/web/src/components/ui/tooltip.tsx
index c19b2621..179c59de 100644
--- a/src/components/ui/tooltip.tsx
+++ b/apps/web/src/components/ui/tooltip.tsx
@@ -2,7 +2,6 @@
import * as React from 'react';
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
-
import { cn } from '~/utils/cn';
const TooltipProvider = TooltipPrimitive.Provider;
@@ -16,12 +15,12 @@ const TooltipContent = React.forwardRef<
React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
>(({ className, sideOffset = 4, ...props }, ref) => (
<TooltipPrimitive.Content
- ref={ref}
- sideOffset={sideOffset}
className={cn(
- 'z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
+ 'bg-popover text-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md',
className,
)}
+ ref={ref}
+ sideOffset={sideOffset}
{...props}
/>
));
diff --git a/src/components/ui/typography/h1.tsx b/apps/web/src/components/ui/typography/h1.tsx
similarity index 100%
rename from src/components/ui/typography/h1.tsx
rename to apps/web/src/components/ui/typography/h1.tsx
diff --git a/src/components/ui/typography/h2.tsx b/apps/web/src/components/ui/typography/h2.tsx
similarity index 100%
rename from src/components/ui/typography/h2.tsx
rename to apps/web/src/components/ui/typography/h2.tsx
diff --git a/src/components/ui/typography/h3.tsx b/apps/web/src/components/ui/typography/h3.tsx
similarity index 100%
rename from src/components/ui/typography/h3.tsx
rename to apps/web/src/components/ui/typography/h3.tsx
diff --git a/src/components/ui/typography/large.tsx b/apps/web/src/components/ui/typography/large.tsx
similarity index 100%
rename from src/components/ui/typography/large.tsx
rename to apps/web/src/components/ui/typography/large.tsx
diff --git a/src/components/ui/typography/typography.tsx b/apps/web/src/components/ui/typography/typography.tsx
similarity index 93%
rename from src/components/ui/typography/typography.tsx
rename to apps/web/src/components/ui/typography/typography.tsx
index 048c3d6b..b054c9b5 100644
--- a/src/components/ui/typography/typography.tsx
+++ b/apps/web/src/components/ui/typography/typography.tsx
@@ -2,12 +2,12 @@ import React from 'react';
import { cva } from 'class-variance-authority';
import { cn } from '~/utils/cn';
-export type Intent = 'body' | 'leading' | 'title' | 'h1' | 'h2' | 'h3';
+export type Intent = 'body' | 'h1' | 'h2' | 'h3' | 'leading' | 'title';
export interface TextProps<T extends TagOptions = 'text'> {
intent?: Intent;
- weight?: 'bold' | 'semi' | 'medium' | 'default';
- color?: 'primary' | 'default';
+ weight?: 'bold' | 'default' | 'medium' | 'semi';
+ color?: 'default' | 'primary';
tag?: T;
}
diff --git a/src/components/ui/use-toast.ts b/apps/web/src/components/ui/use-toast.ts
similarity index 97%
rename from src/components/ui/use-toast.ts
rename to apps/web/src/components/ui/use-toast.ts
index 1be87a02..92cef6c4 100644
--- a/src/components/ui/use-toast.ts
+++ b/apps/web/src/components/ui/use-toast.ts
@@ -1,6 +1,5 @@
// Inspired by react-hot-toast library
import * as React from 'react';
-
import type { ToastActionElement, ToastProps } from '~/components/ui/toast';
const TOAST_LIMIT = 1;
@@ -34,10 +33,6 @@ type Action =
type: ActionType['ADD_TOAST'];
toast: ToasterToast;
}
- | {
- type: ActionType['UPDATE_TOAST'];
- toast: Partial<ToasterToast>;
- }
| {
type: ActionType['DISMISS_TOAST'];
toastId?: ToasterToast['id'];
@@ -45,6 +40,10 @@ type Action =
| {
type: ActionType['REMOVE_TOAST'];
toastId?: ToasterToast['id'];
+ }
+ | {
+ type: ActionType['UPDATE_TOAST'];
+ toast: Partial<ToasterToast>;
};
interface State {
@@ -62,7 +61,7 @@ const addToRemoveQueue = (toastId: string) => {
toastTimeouts.delete(toastId);
dispatch({
type: 'REMOVE_TOAST',
- toastId: toastId,
+ toastId,
});
}, TOAST_REMOVE_DELAY);
@@ -122,7 +121,7 @@ export const reducer = (state: State, action: Action): State => {
}
};
-const listeners: Array<(state: State) => void> = [];
+const listeners: ((state: State) => void)[] = [];
let memoryState: State = { toasts: [] };
@@ -158,7 +157,7 @@ function toast({ ...props }: Toast) {
});
return {
- id: id,
+ id,
dismiss,
update,
};
diff --git a/src/components/ui/user-badge.tsx b/apps/web/src/components/ui/user-badge.tsx
similarity index 94%
rename from src/components/ui/user-badge.tsx
rename to apps/web/src/components/ui/user-badge.tsx
index a0410d07..770f8798 100644
--- a/src/components/ui/user-badge.tsx
+++ b/apps/web/src/components/ui/user-badge.tsx
@@ -1,12 +1,12 @@
-import { Tooltip, TooltipContent, TooltipTrigger } from './tooltip';
import Link from 'next/link';
+import { Tooltip, TooltipContent, TooltipTrigger } from './tooltip';
import { Button } from '~/components/ui/button';
export interface UserBadgeProps {
username: string;
}
-const UserBadge = (props: UserBadgeProps) => {
+function UserBadge(props: UserBadgeProps) {
return (
<Tooltip>
<TooltipTrigger asChild>
@@ -28,6 +28,6 @@ const UserBadge = (props: UserBadgeProps) => {
</TooltipContent>
</Tooltip>
);
-};
+}
export { UserBadge };
diff --git a/src/components/user/dashboard/bookmark-tab.tsx b/apps/web/src/components/user/dashboard/bookmark-tab.tsx
similarity index 100%
rename from src/components/user/dashboard/bookmark-tab.tsx
rename to apps/web/src/components/user/dashboard/bookmark-tab.tsx
diff --git a/src/components/user/dashboard/in-progress-tab.tsx b/apps/web/src/components/user/dashboard/in-progress-tab.tsx
similarity index 100%
rename from src/components/user/dashboard/in-progress-tab.tsx
rename to apps/web/src/components/user/dashboard/in-progress-tab.tsx
diff --git a/src/components/user/dashboard/index.tsx b/apps/web/src/components/user/dashboard/index.tsx
similarity index 82%
rename from src/components/user/dashboard/index.tsx
rename to apps/web/src/components/user/dashboard/index.tsx
index aad2277b..b2914c2e 100644
--- a/src/components/user/dashboard/index.tsx
+++ b/apps/web/src/components/user/dashboard/index.tsx
@@ -1,18 +1,17 @@
import Image from 'next/image';
+import type { User } from '@repo/db';
+import Link from 'next/link';
+import { getServerAuthSession } from '@repo/auth/server';
+import { ReactMarkdown } from 'react-markdown/lib/react-markdown';
+import { prisma } from '@repo/db';
+import { Overview } from './overview';
+import { InProgressTab } from './in-progress-tab';
+import { SolutionsTab } from './solutions-tab';
+import UserHeader from './user-header';
import { Card, CardContent, CardHeader, CardTitle } from '~/components/ui/card';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '~/components/ui/tabs';
-import { Overview } from '../dashboard/overview';
-import { InProgressTab } from '../dashboard/in-progress-tab';
-import { SolutionsTab } from '../dashboard/solutions-tab';
-import type { User } from '@prisma/client';
import { getRelativeTime } from '~/utils/relativeTime';
-import { prisma } from '~/server/db';
-import UserHeader from './user-header';
import { Button } from '~/components/ui/button';
-import Link from 'next/link';
-import { getServerSession } from 'next-auth';
-import { authOptions } from '~/server/auth';
-import { ReactMarkdown } from 'react-markdown/lib/react-markdown';
import { MagicIcon } from '~/components/ui/magic-icon';
import { stripProtocolAndWWW } from '~/utils/stringUtils';
@@ -50,7 +49,7 @@ async function getUserdata(id: string) {
export default async function Dashboard({ user }: Props) {
const userData = await getUserdata(user.id);
- const session = await getServerSession(authOptions);
+ const session = await getServerAuthSession();
// TODO: this seems sus
if (!userData) {
@@ -63,11 +62,11 @@ export default async function Dashboard({ user }: Props) {
<div className="flex gap-4">
<div className="pace-x-2 flex">
<Image
- className="rounded-3xl"
alt="user avatar"
- width="100"
+ className="rounded-3xl"
height="100"
src={user.image ?? '/avatar.jpeg'}
+ width="100"
/>
</div>
<div className="flex w-full justify-between">
@@ -104,8 +103,8 @@ export default async function Dashboard({ user }: Props) {
<a
className="hover:text-zinc-400"
href={link.url}
- target="_blank"
rel="noopener noreferrer"
+ target="_blank"
>
{stripProtocolAndWWW(link.url)}
</a>
@@ -114,36 +113,36 @@ export default async function Dashboard({ user }: Props) {
</div>
)}
- <Tabs defaultValue="in-progress" className="space-y-4">
- <TabsList className="rounded-full border border-border bg-background">
+ <Tabs className="space-y-4" defaultValue="in-progress">
+ <TabsList className="border-border bg-background rounded-full border">
<TabsTrigger
- className="rounded-lg rounded-l-2xl duration-300 data-[state=active]:bg-border"
+ className="data-[state=active]:bg-border rounded-lg rounded-l-2xl duration-300"
value="in-progress"
>
In-Progress
</TabsTrigger>
<TabsTrigger
- className="rounded-lg duration-300 data-[state=active]:bg-border"
+ className="data-[state=active]:bg-border rounded-lg duration-300"
value="solutions"
>
Solutions
</TabsTrigger>
<TabsTrigger
- className="rounded-lg duration-300 data-[state=active]:bg-border"
- value="bookmarks"
+ className="data-[state=active]:bg-border rounded-lg duration-300"
disabled
+ value="bookmarks"
>
Bookmarks
</TabsTrigger>
<TabsTrigger
- className="rounded-l-lg rounded-r-full duration-300 data-[state=active]:bg-border"
- value="comments"
+ className="data-[state=active]:bg-border rounded-l-lg rounded-r-full duration-300"
disabled
+ value="comments"
>
Comments
</TabsTrigger>
</TabsList>
- <TabsContent value="overview" className="space-y-4">
+ <TabsContent className="space-y-4" value="overview">
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-7">
<Card className="col-span-4">
<CardHeader>
@@ -155,7 +154,7 @@ export default async function Dashboard({ user }: Props) {
</Card>
</div>
</TabsContent>
- <TabsContent value="in-progress" className="space-y-4">
+ <TabsContent className="space-y-4" value="in-progress">
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-7">
<Card className="col-span-4">
<CardHeader>
@@ -167,7 +166,7 @@ export default async function Dashboard({ user }: Props) {
</Card>
</div>
</TabsContent>
- <TabsContent value="solutions" className="space-y-4">
+ <TabsContent className="space-y-4" value="solutions">
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-7">
<Card className="col-span-4">
<CardHeader>
diff --git a/src/components/user/dashboard/overview.tsx b/apps/web/src/components/user/dashboard/overview.tsx
similarity index 100%
rename from src/components/user/dashboard/overview.tsx
rename to apps/web/src/components/user/dashboard/overview.tsx
diff --git a/src/components/user/dashboard/solutions-tab.tsx b/apps/web/src/components/user/dashboard/solutions-tab.tsx
similarity index 100%
rename from src/components/user/dashboard/solutions-tab.tsx
rename to apps/web/src/components/user/dashboard/solutions-tab.tsx
index 79eaf787..99fd582a 100644
--- a/src/components/user/dashboard/solutions-tab.tsx
+++ b/apps/web/src/components/user/dashboard/solutions-tab.tsx
@@ -1,3 +1,5 @@
+import Link from 'next/link';
+import type { UserData } from '.';
import {
Table,
TableBody,
@@ -7,8 +9,6 @@ import {
TableHeader,
TableRow,
} from '~/components/ui/table';
-import type { UserData } from '.';
-import Link from 'next/link';
export function SolutionsTab({ submissions = [] }: { submissions: UserData['submission'] }) {
return (
diff --git a/src/components/user/dashboard/user-header.tsx b/apps/web/src/components/user/dashboard/user-header.tsx
similarity index 94%
rename from src/components/user/dashboard/user-header.tsx
rename to apps/web/src/components/user/dashboard/user-header.tsx
index 39d0f250..c54dccd0 100644
--- a/src/components/user/dashboard/user-header.tsx
+++ b/apps/web/src/components/user/dashboard/user-header.tsx
@@ -1,10 +1,10 @@
'use client';
+import { type User } from '@repo/db';
+import { Flag } from 'lucide-react';
import Text from '~/components/ui/typography/typography';
-import { type User } from '@prisma/client';
import ReportDialog from '~/components/report';
import { ActionMenu } from '~/components/ui/action-menu';
-import { Flag } from 'lucide-react';
export interface UserHeaderProps {
user: User;
diff --git a/src/components/user/profile.tsx b/apps/web/src/components/user/profile.tsx
similarity index 94%
rename from src/components/user/profile.tsx
rename to apps/web/src/components/user/profile.tsx
index a33f4d06..3791939b 100644
--- a/src/components/user/profile.tsx
+++ b/apps/web/src/components/user/profile.tsx
@@ -1,7 +1,7 @@
import { notFound } from 'next/navigation';
-import { prisma } from '~/server/db';
-import Dashboard from './dashboard';
import type { Metadata } from 'next';
+import { prisma } from '@repo/db';
+import Dashboard from './dashboard';
interface Props {
username: string;
diff --git a/src/components/wizard/ChallengeCardEditor.tsx b/apps/web/src/components/wizard/ChallengeCardEditor.tsx
similarity index 98%
rename from src/components/wizard/ChallengeCardEditor.tsx
rename to apps/web/src/components/wizard/ChallengeCardEditor.tsx
index 4c8b2faa..49f07eb2 100644
--- a/src/components/wizard/ChallengeCardEditor.tsx
+++ b/apps/web/src/components/wizard/ChallengeCardEditor.tsx
@@ -1,7 +1,6 @@
'use client';
import { useWatch } from 'react-hook-form';
-import type { WizardForm } from '.';
import type { ExploreChallengeFetcher } from '../explore';
import { ExploreCard } from '../explore/explore-card';
import { FormControl, FormField, FormItem, FormLabel, FormMessage } from '../ui/form';
@@ -9,6 +8,7 @@ import { Input } from '../ui/input';
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../ui/select';
import { Textarea } from '../ui/textarea';
import { TypographyH3 } from '../ui/typography/h3';
+import type { WizardForm } from '.';
interface Props {
form: WizardForm;
@@ -21,7 +21,7 @@ export function ChallengeCardEditor({ form }: Props) {
const data: Pick<
Awaited<ReturnType<ExploreChallengeFetcher>>[0],
- 'difficulty' | 'name' | 'shortDescription' | 'user' | '_count' | 'updatedAt'
+ '_count' | 'difficulty' | 'name' | 'shortDescription' | 'updatedAt' | 'user'
> = {
difficulty,
name: title || 'Your Title Here',
@@ -53,8 +53,8 @@ export function ChallengeCardEditor({ form }: Props) {
<FormItem>
<FormLabel className="mt-2">Difficulty: </FormLabel>
<Select
- onValueChange={field.onChange as (value: string) => void}
defaultValue={field.value}
+ onValueChange={field.onChange as (value: string) => void}
>
<FormControl>
<SelectTrigger className="rounded-xl bg-neutral-200 dark:bg-neutral-800">
@@ -109,8 +109,8 @@ export function ChallengeCardEditor({ form }: Props) {
<FormLabel>Short Description:</FormLabel>
<FormControl>
<Textarea
- placeholder="Enter a Short Description"
className="resize-none rounded-xl bg-neutral-200 dark:bg-neutral-800"
+ placeholder="Enter a Short Description"
{...field}
/>
</FormControl>
diff --git a/src/components/wizard/DescriptionEditor.tsx b/apps/web/src/components/wizard/DescriptionEditor.tsx
similarity index 96%
rename from src/components/wizard/DescriptionEditor.tsx
rename to apps/web/src/components/wizard/DescriptionEditor.tsx
index 00cd6dc0..9ea9d1c0 100644
--- a/src/components/wizard/DescriptionEditor.tsx
+++ b/apps/web/src/components/wizard/DescriptionEditor.tsx
@@ -1,11 +1,11 @@
'use client';
import { useWatch } from 'react-hook-form';
-import { type WizardForm } from '.';
import { FormField, FormItem, FormMessage } from '../ui/form';
import { Markdown } from '../ui/markdown';
import { RichMarkdownEditor } from '../ui/rich-markdown-editor';
import { TypographyH3 } from '../ui/typography/h3';
+import { type WizardForm } from '.';
interface Props {
form: WizardForm;
@@ -25,9 +25,9 @@ export function DescriptionEditor({ form }: Props) {
return (
<FormItem className="h-full">
<RichMarkdownEditor
- value={field.value as string}
- onChange={field.onChange}
dismissPreview
+ onChange={field.onChange}
+ value={field.value}
/>
<FormMessage />
</FormItem>
diff --git a/apps/web/src/components/wizard/NextBack.tsx b/apps/web/src/components/wizard/NextBack.tsx
new file mode 100644
index 00000000..9b28d41a
--- /dev/null
+++ b/apps/web/src/components/wizard/NextBack.tsx
@@ -0,0 +1,40 @@
+import { Button } from '../ui/button';
+import { STEPS } from '.';
+
+interface Props {
+ current: number;
+ onChange: (index: number) => void;
+ onNext: () => void;
+ onSubmit: () => Promise<void>;
+}
+
+export function NextBack({ current, onChange, onNext, onSubmit }: Props) {
+ return (
+ <div className={`flex justify-center gap-3 ${current === STEPS.Summary && ''}`}>
+ {current > STEPS.ChallengeCard && (
+ <Button
+ className="rounded-full bg-neutral-200 duration-300 active:scale-95 dark:bg-neutral-800 dark:hover:bg-neutral-700"
+ onClick={() => onChange(current - 1)}
+ variant="ghost"
+ >
+ Back
+ </Button>
+ )}
+ {current === STEPS.Summary ? (
+ <Button
+ className="w-[79px] rounded-full bg-emerald-500 transition-all duration-300 ease-out hover:bg-emerald-400 hover:px-16 active:scale-95"
+ onClick={onSubmit}
+ >
+ Submit
+ </Button>
+ ) : (
+ <Button
+ className="w-[79px] rounded-full transition-all duration-300 ease-out hover:pl-8 active:scale-95"
+ onClick={onNext}
+ >
+ Next
+ </Button>
+ )}
+ </div>
+ );
+}
diff --git a/src/components/wizard/Steps.tsx b/apps/web/src/components/wizard/Steps.tsx
similarity index 92%
rename from src/components/wizard/Steps.tsx
rename to apps/web/src/components/wizard/Steps.tsx
index f55e3a5e..991a5e48 100644
--- a/src/components/wizard/Steps.tsx
+++ b/apps/web/src/components/wizard/Steps.tsx
@@ -9,22 +9,22 @@ interface Props<T extends Step> {
export function Steps<T extends Step>({ steps, current, onChange }: Props<T>) {
return (
- <nav className="flex justify-center px-4 lg:-mt-[56px]" aria-label="Progress">
+ <nav aria-label="Progress" className="flex justify-center px-4 lg:-mt-[56px]">
<ol
- role="list"
className="flex w-full flex-wrap items-start justify-start gap-2 divide-y sm:justify-center md:w-10/12 md:divide-y-0"
+ role="list"
>
{steps.map((step, stepIdx) => (
<li
- key={step.name}
className={`relative rounded-full ${
current > stepIdx ? 'bg-emerald-500/20' : 'bg-gray-500/10'
} py-1 pl-[0.4rem] pr-3 md:flex`}
+ key={step.name}
>
{current > stepIdx ? (
<a
- href={'#'}
className="group flex w-full items-center"
+ href="#"
onClick={() => onChange(stepIdx)}
>
<span className="flex items-center gap-2 text-sm font-medium">
@@ -40,7 +40,7 @@ export function Steps<T extends Step>({ steps, current, onChange }: Props<T>) {
</span>
</a>
) : current === stepIdx ? (
- <span className="flex items-center gap-2 text-sm font-medium" aria-current="step">
+ <span aria-current="step" className="flex items-center gap-2 text-sm font-medium">
<span className="flex h-5 w-8 flex-shrink-0 items-center justify-center rounded-full bg-gray-500/30 p-2 dark:bg-gray-500/50">
<span className="text-xs">{step.id}</span>
</span>
diff --git a/src/components/wizard/Summary.tsx b/apps/web/src/components/wizard/Summary.tsx
similarity index 100%
rename from src/components/wizard/Summary.tsx
rename to apps/web/src/components/wizard/Summary.tsx
diff --git a/src/components/wizard/TestCasesEditor.tsx b/apps/web/src/components/wizard/TestCasesEditor.tsx
similarity index 98%
rename from src/components/wizard/TestCasesEditor.tsx
rename to apps/web/src/components/wizard/TestCasesEditor.tsx
index 13d52cab..52f62ef4 100644
--- a/src/components/wizard/TestCasesEditor.tsx
+++ b/apps/web/src/components/wizard/TestCasesEditor.tsx
@@ -2,6 +2,14 @@ import type { OnChange } from '@monaco-editor/react';
import { Settings } from 'lucide-react';
import type * as monaco from 'monaco-editor';
import { useCallback } from 'react';
+import { LIB_URI, type TsErrors } from '../challenge/code-panel';
+import { libSource } from '../challenge/code-panel/editor-types';
+import { SettingsForm } from '../challenge/settings-form';
+import { CodeEditor } from '../ui/code-editor';
+import { FormField, FormItem, FormMessage } from '../ui/form';
+import { TypographyH3 } from '../ui/typography/h3';
+import type { WizardForm } from '.';
+import { Tooltip, TooltipContent, TooltipTrigger } from '~/components/ui/tooltip';
import {
Dialog,
DialogContent,
@@ -9,14 +17,6 @@ import {
DialogTitle,
DialogTrigger,
} from '~/components/ui/dialog';
-import { Tooltip, TooltipContent, TooltipTrigger } from '~/components/ui/tooltip';
-import type { WizardForm } from '.';
-import { LIB_URI, type TsErrors } from '../challenge/code-panel';
-import { libSource } from '../challenge/code-panel/editor-types';
-import { SettingsForm } from '../challenge/settings-form';
-import { CodeEditor } from '../ui/code-editor';
-import { FormField, FormItem, FormMessage } from '../ui/form';
-import { TypographyH3 } from '../ui/typography/h3';
interface Props {
form: WizardForm;
@@ -84,8 +84,8 @@ export function TestCasesEditor({ form, hasTsErrors, setTsErrors }: Props) {
<Tooltip>
<TooltipTrigger asChild>
<Settings
- size={20}
className="stroke-zinc-500 stroke-1 hover:stroke-zinc-400"
+ size={20}
/>
</TooltipTrigger>
<TooltipContent className="px-2 py-1">Settings</TooltipContent>
@@ -103,14 +103,14 @@ export function TestCasesEditor({ form, hasTsErrors, setTsErrors }: Props) {
</div>
<div className="w-full flex-1">
<CodeEditor
+ onChange={field.onChange as OnChange}
onMount={onMount(setTsErrors)}
value={field.value}
- onChange={field.onChange as OnChange}
/>
</div>
<FormMessage />
{!hasTsErrors && (
- <div className="text-sm text-destructive">You must have failing test cases</div>
+ <div className="text-destructive text-sm">You must have failing test cases</div>
)}
</div>
</FormItem>
diff --git a/src/components/wizard/create.action.ts b/apps/web/src/components/wizard/create.action.ts
similarity index 85%
rename from src/components/wizard/create.action.ts
rename to apps/web/src/components/wizard/create.action.ts
index fe0f7931..581da4b5 100644
--- a/src/components/wizard/create.action.ts
+++ b/apps/web/src/components/wizard/create.action.ts
@@ -1,7 +1,7 @@
'use server';
-import { prisma } from '~/server/db';
-import { getServerAuthSession } from '~/server/auth';
+import { prisma } from '@repo/db';
+import { getServerAuthSession } from '@repo/auth/server';
import { type CreateChallengeSchema } from '.';
export async function uploadChallenge(data: CreateChallengeSchema, isUserACreator: boolean) {
diff --git a/src/components/wizard/default-challenge.md b/apps/web/src/components/wizard/default-challenge.md
similarity index 100%
rename from src/components/wizard/default-challenge.md
rename to apps/web/src/components/wizard/default-challenge.md
diff --git a/src/components/wizard/default-description.md b/apps/web/src/components/wizard/default-description.md
similarity index 100%
rename from src/components/wizard/default-description.md
rename to apps/web/src/components/wizard/default-description.md
diff --git a/src/components/wizard/index.tsx b/apps/web/src/components/wizard/index.tsx
similarity index 95%
rename from src/components/wizard/index.tsx
rename to apps/web/src/components/wizard/index.tsx
index 2c1205d3..8ad7928a 100644
--- a/src/components/wizard/index.tsx
+++ b/apps/web/src/components/wizard/index.tsx
@@ -5,8 +5,9 @@ import { useRouter } from 'next/navigation';
import { useEffect, useMemo, useState } from 'react';
import { useForm, type UseFormReturn } from 'react-hook-form';
import { z } from 'zod';
-import { Form } from '~/components/ui/form';
+import { useSession } from '@repo/auth/react';
import { USER_CODE_START, USER_CODE_START_REGEX } from '../challenge/code-panel/constants';
+import type { TsErrors } from '../challenge/code-panel';
import { ChallengeCardEditor } from './ChallengeCardEditor';
import { DescriptionEditor } from './DescriptionEditor';
import { Steps } from './Steps';
@@ -16,8 +17,7 @@ import { TestCasesEditor } from './TestCasesEditor';
import { uploadChallenge } from './create.action';
import DEFAULT_CHALLENGE_TEMPLATE from './default-challenge.md';
import DEFAULT_DESCRIPTION from './default-description.md';
-import type { TsErrors } from '../challenge/code-panel';
-import { useSession } from 'next-auth/react';
+import { Form } from '~/components/ui/form';
export const enum STEPS {
ChallengeCard,
@@ -74,8 +74,8 @@ export function Wizard() {
const [tsErrors, setTsErrors] = useState<TsErrors>([[], [], [], []]);
const isUserACreator = useMemo(
- () => session?.user.role.includes('CREATOR') ?? false,
- [session?.user.role],
+ () => session?.user?.role.includes('CREATOR') ?? false,
+ [session?.user?.role],
);
const hasTsErrors = useMemo(() => tsErrors.some((e) => e.length), [tsErrors]);
@@ -123,8 +123,8 @@ export function Wizard() {
return (
<div className="flex h-full flex-col gap-4 pb-4 pt-4 lg:gap-6 lg:pb-8">
{/* we cant nest this in the form because it causes the editor to resize inifinitely hence the onSubmit(wtf..) */}
- <Steps steps={steps} current={step} onChange={(idx) => setStep(idx)} />
- {rendered && (
+ <Steps current={step} onChange={(idx) => setStep(idx)} steps={steps} />
+ {rendered ? (
<Form {...form}>
<form
className={`container ${
@@ -139,7 +139,7 @@ export function Wizard() {
{step === 3 && <Summary isUserACreator={isUserACreator} />}
</form>
</Form>
- )}
+ ) : null}
<NextBack
current={step}
onChange={(idx) => setStep(idx)}
diff --git a/src/middleware.ts b/apps/web/src/middleware.ts
similarity index 100%
rename from src/middleware.ts
rename to apps/web/src/middleware.ts
diff --git a/src/styles/globals.css b/apps/web/src/styles/globals.css
similarity index 100%
rename from src/styles/globals.css
rename to apps/web/src/styles/globals.css
diff --git a/src/utils/cn.ts b/apps/web/src/utils/cn.ts
similarity index 100%
rename from src/utils/cn.ts
rename to apps/web/src/utils/cn.ts
diff --git a/src/utils/domUtils.ts b/apps/web/src/utils/domUtils.ts
similarity index 100%
rename from src/utils/domUtils.ts
rename to apps/web/src/utils/domUtils.ts
diff --git a/src/utils/featureFlags.ts b/apps/web/src/utils/featureFlags.ts
similarity index 100%
rename from src/utils/featureFlags.ts
rename to apps/web/src/utils/featureFlags.ts
diff --git a/src/utils/getBaseUrl.ts b/apps/web/src/utils/getBaseUrl.ts
similarity index 100%
rename from src/utils/getBaseUrl.ts
rename to apps/web/src/utils/getBaseUrl.ts
diff --git a/src/utils/relativeTime.ts b/apps/web/src/utils/relativeTime.ts
similarity index 100%
rename from src/utils/relativeTime.ts
rename to apps/web/src/utils/relativeTime.ts
diff --git a/src/utils/stringUtils.ts b/apps/web/src/utils/stringUtils.ts
similarity index 55%
rename from src/utils/stringUtils.ts
rename to apps/web/src/utils/stringUtils.ts
index 5bc1b735..2899a040 100644
--- a/src/utils/stringUtils.ts
+++ b/apps/web/src/utils/stringUtils.ts
@@ -1,8 +1,8 @@
/**
* Replace the protocol and www subdomain with empty string
* @example
- * https://www.google.com => google.com
+ * https://www.google.com =\> google.com
*/
export const stripProtocolAndWWW = (url: string) => {
- return url.replace(/(^\w+:|^)\/\//, '').replace(/^www\./, '');
+ return url.replace(/(?:^\w+:|^)\/\//, '').replace(/^www\./, '');
};
diff --git a/src/utils/useLocalStorage.ts b/apps/web/src/utils/useLocalStorage.ts
similarity index 100%
rename from src/utils/useLocalStorage.ts
rename to apps/web/src/utils/useLocalStorage.ts
diff --git a/src/utils/useUploadthing.ts b/apps/web/src/utils/useUploadthing.ts
similarity index 87%
rename from src/utils/useUploadthing.ts
rename to apps/web/src/utils/useUploadthing.ts
index 1d671719..bece044c 100644
--- a/src/utils/useUploadthing.ts
+++ b/apps/web/src/utils/useUploadthing.ts
@@ -1,5 +1,4 @@
import { generateReactHelpers } from '@uploadthing/react/hooks';
-
import type { OurFileRouter } from '~/app/api/uploadthing/core';
-export const { useUploadThing, uploadFiles } = generateReactHelpers < OurFileRouter > ();
+export const { useUploadThing, uploadFiles } = generateReactHelpers<OurFileRouter>();
diff --git a/tailwind.config.ts b/apps/web/tailwind.config.ts
similarity index 100%
rename from tailwind.config.ts
rename to apps/web/tailwind.config.ts
diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json
new file mode 100644
index 00000000..6136c1f7
--- /dev/null
+++ b/apps/web/tsconfig.json
@@ -0,0 +1,26 @@
+{
+ "extends": "@repo/tsconfig/nextjs.json",
+ "compilerOptions": {
+ "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",
+ "baseUrl": ".",
+ "paths": {
+ "~/*": ["src/*"]
+ },
+ "plugins": [
+ {
+ "name": "next"
+ }
+ ]
+ },
+ "include": [
+ "next-env.d.ts",
+ "**/*.js",
+ "**/*.ts",
+ "**/*.tsx",
+ ".next/types/**/*.ts",
+ "next.config.js",
+ "next.config.mjs",
+ "postcss.config.cjs"
+ ],
+ "exclude": ["node_modules", ".next", "public"]
+}
diff --git a/apps/web/turbo.json b/apps/web/turbo.json
new file mode 100644
index 00000000..40214004
--- /dev/null
+++ b/apps/web/turbo.json
@@ -0,0 +1,8 @@
+{
+ "extends": ["//"],
+ "pipeline": {
+ "start": {
+ "cache": false
+ }
+ }
+}
diff --git a/apps/web/vercel.json b/apps/web/vercel.json
new file mode 100644
index 00000000..106d6f0f
--- /dev/null
+++ b/apps/web/vercel.json
@@ -0,0 +1,5 @@
+{
+ "ignoreCommand": "npx turbo-ignore",
+ "framework": "nextjs",
+ "buildCommand": "turbo build"
+}
diff --git a/components.json b/components.json
index c707ce6e..77af5e57 100644
--- a/components.json
+++ b/components.json
@@ -3,8 +3,8 @@
"style": "default",
"rsc": true,
"tailwind": {
- "config": "tailwind.config.js",
- "css": "src/styles/globals.css",
+ "config": "apps/web/tailwind.config.js",
+ "css": "apps/web/src/styles/globals.css",
"baseColor": "zinc",
"cssVariables": true
},
diff --git a/global.d.ts b/global.d.ts
deleted file mode 100644
index 2347b3e2..00000000
--- a/global.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-declare module '*.md' {
- const text: string;
- export default text;
-}
-declare module '*.png';
diff --git a/package.json b/package.json
index d810d2a5..b3bb6076 100644
--- a/package.json
+++ b/package.json
@@ -1,131 +1,40 @@
{
- "name": "type-hero",
+ "name": "typehero",
"version": "0.1.0",
"private": true,
"scripts": {
- "build": "next build",
- "dev": "next dev",
- "postinstall": "prisma generate && pnpm dl-monaco",
- "lint": "next lint",
- "reset": "prisma db push --force-reset",
- "format": "prettier -w \"src/**/*.{ts,tsx,css,cjs,mjs,json}\"",
- "start": "next start",
- "refresh": "pnpm reset && pnpm prisma db seed",
- "typecheck": "tsc --noEmit",
+ "build": "turbo build",
+ "db:push": "turbo db:push",
+ "db:reset": "turbo db:reset",
+ "db:seed": "turbo db:seed",
+ "db:studio": "turbo db:studio",
+ "dev": "turbo dev",
+ "dl-git": "turbo dl-git",
+ "dl-monaco:force": "turbo dl-monaco --force",
+ "format": "turbo format format-root --continue -- --cache --loglevel=warn",
+ "format-root": "prettier \"**/*.{ts,tsx,md,mdx,json}\" \"!apps/**\" \"!packages/**\" --check --loglevel=warn",
+ "format:fix": "turbo format format-root --continue -- --write --cache --loglevel=warn",
+ "format:precommit": "turbo format format-root --continue -- --write --cache --loglevel=warn",
+ "postinstall": "turbo dl-monaco db:generate",
+ "lint": "turbo lint --continue -- --cache --cache-location 'node_modules/.cache/.eslintcache'",
+ "lint:fix": "turbo lint --continue -- --fix --cache --cache-location 'node_modules/.cache/.eslintcache'",
"prepare": "husky install",
- "dl-git": "tsx scripts/contributors.ts",
- "dl-monaco": "tsx scripts/dl-monaco.ts",
- "dl-monaco:force": "tsx scripts/dl-monaco.ts --force"
- },
- "type": "module",
- "dependencies": {
- "@hookform/error-message": "^2.0.1",
- "@hookform/resolvers": "^3.1.1",
- "@monaco-editor/loader": "^1.3.3",
- "@monaco-editor/react": "^4.5.1",
- "@next-auth/prisma-adapter": "^1.0.7",
- "@prisma/client": "^5.0.0",
- "@radix-ui/react-avatar": "^1.0.3",
- "@radix-ui/react-checkbox": "^1.0.4",
- "@radix-ui/react-dialog": "^1.0.4",
- "@radix-ui/react-dropdown-menu": "^2.0.5",
- "@radix-ui/react-label": "^2.0.2",
- "@radix-ui/react-navigation-menu": "^1.1.3",
- "@radix-ui/react-popover": "^1.0.6",
- "@radix-ui/react-scroll-area": "^1.0.4",
- "@radix-ui/react-select": "^1.2.2",
- "@radix-ui/react-separator": "^1.0.3",
- "@radix-ui/react-slot": "^1.0.2",
- "@radix-ui/react-tabs": "^1.0.4",
- "@radix-ui/react-toast": "^1.1.4",
- "@radix-ui/react-tooltip": "^1.0.6",
- "@t3-oss/env-nextjs": "^0.6.0",
- "@tanstack/react-query": "^4.29.25",
- "@tanstack/react-table": "^8.9.3",
- "@types/lodash": "^4.14.195",
- "@uiw/react-md-editor": "^3.23.3",
- "@uploadthing/react": "^5.2.0",
- "class-variance-authority": "^0.6.1",
- "clsx": "^2.0.0",
- "cmdk": "^0.2.0",
- "date-fns": "^2.30.0",
- "dotenv": "^16.3.1",
- "framer-motion": "^10.12.22",
- "lodash": "^4.17.21",
- "lucide-react": "^0.260.0",
- "lz-string": "^1.5.0",
- "monaco-editor": "^0.40.0",
- "monaco-vim": "^0.4.0",
- "next": "^13.4.10",
- "next-auth": "^4.22.1",
- "next-themes": "^0.2.1",
- "octokit": "^3.0.0",
- "react": "18.2.0",
- "react-day-picker": "^8.8.0",
- "react-dom": "18.2.0",
- "react-dropzone": "^14.2.3",
- "react-hook-form": "^7.45.1",
- "react-intersection-observer": "^9.5.2",
- "react-markdown": "^8.0.7",
- "react-syntax-highlighter": "^15.5.0",
- "react-wrap-balancer": "^1.0.0",
- "remark-gfm": "^3.0.1",
- "simple-git": "^3.19.1",
- "superjson": "1.12.4",
- "tailwind-merge": "^1.14.0",
- "tailwindcss-animate": "^1.0.6",
- "unified": "^10.1.2",
- "unist-util-visit": "^5.0.0",
- "uploadthing": "^5.2.1",
- "uuid-by-string": "^4.0.0",
- "zod": "^3.21.4",
- "zustand": "^4.3.9"
+ "refresh": "pnpm reset && turbo db:seed",
+ "typecheck": "turbo typecheck --continue"
},
"devDependencies": {
- "@faker-js/faker": "^8.0.2",
- "@tailwindcss/container-queries": "^0.1.1",
- "@tailwindcss/typography": "^0.5.9",
- "@types/eslint": "^8.44.0",
- "@types/node": "^20.4.2",
- "@types/prettier": "^2.7.3",
- "@types/react": "^18.2.15",
- "@types/react-dom": "^18.2.7",
- "@types/react-syntax-highlighter": "^15.5.7",
- "@typescript-eslint/eslint-plugin": "^6.0.0",
- "@typescript-eslint/parser": "^6.0.0",
- "autoprefixer": "^10.4.14",
- "eslint": "^8.45.0",
- "eslint-config-next": "^13.4.10",
- "eslint-plugin-import": "^2.27.5",
"husky": "^8.0.3",
- "lint-staged": "^13.2.3",
- "postcss": "^8.4.26",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.4.1",
- "prisma": "^5.0.0",
- "raw-loader": "^4.0.2",
- "tailwindcss": "^3.3.3",
- "tsx": "^3.12.7",
- "typescript": "^5.1.6",
- "yaml": "^2.3.1"
- },
- "ct3aMetadata": {
- "initVersion": "7.13.1"
- },
- "prisma": {
- "schema": "./prisma/schema.prisma",
- "seed": "npx tsx ./prisma/seed.ts"
+ "turbo": "^1.10.12",
+ "typescript": "^5.1.6"
},
+ "packageManager": "[email protected]",
"pnpm": {
"patchedDependencies": {
"@monaco-editor/[email protected]": "patches/@[email protected]",
}
- },
- "lint-staged": {
- "src/**/*.{ts,tsx,css}": "prettier --write"
- },
- "packageManager": "[email protected]"
+ }
}
diff --git a/packages/auth/.eslintrc.js b/packages/auth/.eslintrc.js
new file mode 100644
index 00000000..6c5b786f
--- /dev/null
+++ b/packages/auth/.eslintrc.js
@@ -0,0 +1,8 @@
+/** @type {import("eslint").Linter.Config} */
+module.exports = {
+ root: true,
+ extends: [require.resolve('@repo/lint/node')],
+ parserOptions: {
+ project: `${__dirname}/tsconfig.json`,
+ },
+};
diff --git a/packages/auth/package.json b/packages/auth/package.json
new file mode 100644
index 00000000..592e73c7
--- /dev/null
+++ b/packages/auth/package.json
@@ -0,0 +1,42 @@
+{
+ "name": "@repo/auth",
+ "version": "0.1.1",
+ "private": true,
+ "exports": {
+ "./react": "./src/react.ts",
+ "./server": "./src/server.ts",
+ "./next-auth": "./src/next-auth.ts"
+ },
+ "typesVersions": {
+ "*": {
+ "react": [
+ "./src/react.ts"
+ ],
+ "server": [
+ "./src/server.ts"
+ ],
+ "next-auth": [
+ "./src/next-auth.ts"
+ ]
+ }
+ },
+ "scripts": {
+ "format": "prettier \"**/*.{ts,tsx,md,mdx,json}\" --check",
+ "lint": "eslint .",
+ "typecheck": "tsc --noEmit"
+ },
+ "dependencies": {
+ "@next-auth/prisma-adapter": "^1.0.7",
+ "@repo/db": "workspace:*",
+ "next-auth": "^4.22.1"
+ },
+ "devDependencies": {
+ "@repo/lint": "workspace:*",
+ "@repo/tsconfig": "workspace:*",
+ "@types/node": "^16.18.11",
+ "eslint": "^8.42.0",
+ "prisma": "^5.0.0",
+ "tsup": "5.12.0",
+ "typescript": "^5.1.3"
+ }
+}
diff --git a/packages/auth/src/next-auth.ts b/packages/auth/src/next-auth.ts
new file mode 100644
index 00000000..8aad39fb
--- /dev/null
+++ b/packages/auth/src/next-auth.ts
@@ -0,0 +1,3 @@
+import NextAuth from 'next-auth/next';
+
+export default NextAuth;
diff --git a/packages/auth/src/react.ts b/packages/auth/src/react.ts
new file mode 100644
index 00000000..95ba4e9f
--- /dev/null
+++ b/packages/auth/src/react.ts
@@ -0,0 +1,16 @@
+import type { DefaultSession } from 'next-auth';
+import type { RoleTypes } from '@repo/db/*';
+import type { SessionContextValue } from 'next-auth/react';
+import { useSession as useAuthSession } from 'next-auth/react';
+
+export { SessionProvider, signIn, signOut } from 'next-auth/react';
+
+interface Session extends DefaultSession {
+ user: DefaultSession['user'] & {
+ id: string;
+ role: RoleTypes[];
+ };
+}
+
+// @ts-expect-error Hacking the type so we don't have to do the module augmentation technique.
+export const useSession: () => Session & SessionContextValue = useAuthSession;
diff --git a/src/server/auth.ts b/packages/auth/src/server.ts
similarity index 82%
rename from src/server/auth.ts
rename to packages/auth/src/server.ts
index 7df301e0..1bfc4981 100644
--- a/src/server/auth.ts
+++ b/packages/auth/src/server.ts
@@ -1,9 +1,10 @@
import { PrismaAdapter } from '@next-auth/prisma-adapter';
-import type { Role, RoleTypes } from '@prisma/client';
+import type { Role, RoleTypes } from '@repo/db';
import { getServerSession, type DefaultSession, type NextAuthOptions } from 'next-auth';
import GitHubProvider from 'next-auth/providers/github';
-import { env } from '~/env.mjs';
-import { prisma } from '~/server/db';
+import { prisma } from '@repo/db';
+
+export type { Session, DefaultSession as DefaultAuthSession } from 'next-auth';
/**
* Module augmentation for `next-auth` types. Allows us to add custom properties to the `session`
@@ -13,10 +14,10 @@ import { prisma } from '~/server/db';
*/
declare module 'next-auth' {
interface Session extends DefaultSession {
- user: {
+ user: DefaultSession['user'] & {
id: string;
role: RoleTypes[];
- } & DefaultSession['user'];
+ };
}
interface User {
@@ -25,9 +26,17 @@ declare module 'next-auth' {
}
}
+if (!process.env.GITHUB_ID) {
+ throw new Error('No GITHUB_ID has been provided.');
+}
+
+if (!process.env.GITHUB_SECRET) {
+ throw new Error('No GITHUB_SECRET has been provided.');
+}
+
export const authOptions: NextAuthOptions = {
callbacks: {
- redirect: async ({ url, baseUrl }) => {
+ redirect: ({ url, baseUrl }) => {
if (url.startsWith('/')) return `${baseUrl}${url}`;
else if (new URL(url).origin === baseUrl) return url;
return baseUrl;
@@ -87,8 +96,8 @@ export const authOptions: NextAuthOptions = {
adapter: PrismaAdapter(prisma),
providers: [
GitHubProvider({
- clientId: env.GITHUB_ID,
- clientSecret: env.GITHUB_SECRET,
+ clientId: process.env.GITHUB_ID,
+ clientSecret: process.env.GITHUB_SECRET,
}),
],
};
diff --git a/packages/auth/tsconfig.json b/packages/auth/tsconfig.json
new file mode 100644
index 00000000..e29a5ed3
--- /dev/null
+++ b/packages/auth/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "@repo/tsconfig/base.json",
+ "compilerOptions": {
+ "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
+ },
+ "include": ["src/**/*.ts"],
+ "exclude": ["node_modules"]
+}
diff --git a/packages/db/.eslintrc.cjs b/packages/db/.eslintrc.cjs
new file mode 100644
index 00000000..6c5b786f
--- /dev/null
+++ b/packages/db/.eslintrc.cjs
@@ -0,0 +1,8 @@
+/** @type {import("eslint").Linter.Config} */
+module.exports = {
+ root: true,
+ extends: [require.resolve('@repo/lint/node')],
+ parserOptions: {
+ project: `${__dirname}/tsconfig.json`,
+ },
+};
diff --git a/prisma/challenges.mock.ts b/packages/db/mocks/challenges.mock.ts
similarity index 94%
rename from prisma/challenges.mock.ts
rename to packages/db/mocks/challenges.mock.ts
index ca4861bd..64a1de67 100644
--- a/prisma/challenges.mock.ts
+++ b/packages/db/mocks/challenges.mock.ts
@@ -1,14 +1,14 @@
-import { ChallengeStatus, type Difficulty, type Prisma } from '@prisma/client';
-import { gId, trashId } from './seed';
-import url from 'url';
+import url from 'node:url';
+import { readdir, readFile, rm } from 'node:fs/promises';
+import fs from 'node:fs';
+import { resolve } from 'node:path';
import { parse } from 'yaml';
-import { readdir, readFile, rm } from 'fs/promises';
-import fs from 'fs';
import { faker } from '@faker-js/faker';
import { simpleGit } from 'simple-git';
-import { resolve } from 'path';
+import { ChallengeStatus, type Difficulty, type Prisma } from '@prisma/client';
+import { gId, trashId } from '../seed';
-export type InfoFile = {
+export interface InfoFile {
title: string;
author: {
name: string;
@@ -16,8 +16,8 @@ export type InfoFile = {
github: string;
};
tags: string;
- difficulty: 'easy' | 'medium' | 'warm' | 'hard' | 'extreme';
-};
+ difficulty: 'easy' | 'extreme' | 'hard' | 'medium' | 'warm';
+}
/**
* @description clones the type-challenges repo and extracts our necessary data from them
diff --git a/prisma/comment.mock.ts b/packages/db/mocks/comment.mock.ts
similarity index 81%
rename from prisma/comment.mock.ts
rename to packages/db/mocks/comment.mock.ts
index ce1243b3..83476483 100644
--- a/prisma/comment.mock.ts
+++ b/packages/db/mocks/comment.mock.ts
@@ -1,5 +1,5 @@
import { type Prisma } from '@prisma/client';
-import { trashId } from './seed';
+import { trashId } from '../seed';
/**
*
@@ -9,6 +9,6 @@ export default function CommentMock(parentId?: number): Prisma.CommentCreateMany
return {
text: 'here is a comment',
userId: trashId,
- parentId: parentId,
+ parentId,
};
}
diff --git a/prisma/user.mock.ts b/packages/db/mocks/user.mock.ts
similarity index 99%
rename from prisma/user.mock.ts
rename to packages/db/mocks/user.mock.ts
index ba8692be..50b8668b 100644
--- a/prisma/user.mock.ts
+++ b/packages/db/mocks/user.mock.ts
@@ -2,7 +2,7 @@ import { faker } from '@faker-js/faker';
import { type Prisma, UserStatus } from '@prisma/client';
/**
- *
+ *
* @returns Creates a mock user.
*/
export default function UserMock(): Prisma.UserCreateManyInput {
diff --git a/prisma/vote.mock.ts b/packages/db/mocks/vote.mock.ts
similarity index 78%
rename from prisma/vote.mock.ts
rename to packages/db/mocks/vote.mock.ts
index 9e991c6a..27280a41 100644
--- a/prisma/vote.mock.ts
+++ b/packages/db/mocks/vote.mock.ts
@@ -1,7 +1,4 @@
-import {
- type Prisma
-} from '@prisma/client';
-
+import { type Prisma } from '@prisma/client';
import { faker } from '@faker-js/faker';
export function VoteMock(userIds: string[]): Prisma.VoteCreateManyInput {
diff --git a/packages/db/node_modules/@repo/lint b/packages/db/node_modules/@repo/lint
new file mode 120000
index 00000000..fe685f6c
--- /dev/null
+++ b/packages/db/node_modules/@repo/lint
@@ -0,0 +1 @@
+../../../../tooling/config-eslint
\ No newline at end of file
diff --git a/packages/db/node_modules/@repo/tsconfig b/packages/db/node_modules/@repo/tsconfig
new file mode 120000
index 00000000..9d1fbf34
--- /dev/null
+++ b/packages/db/node_modules/@repo/tsconfig
@@ -0,0 +1 @@
+../../../../tooling/config-typescript
\ No newline at end of file
diff --git a/packages/db/package.json b/packages/db/package.json
new file mode 100644
index 00000000..70e825d5
--- /dev/null
+++ b/packages/db/package.json
@@ -0,0 +1,48 @@
+{
+ "name": "@repo/db",
+ "version": "0.1.1",
+ "private": true,
+ "type": "module",
+ "exports": {
+ ".": "./src/index.ts"
+ },
+ "typesVersions": {
+ "*": {
+ "*": [
+ "./src/index.ts"
+ ]
+ }
+ },
+ "scripts": {
+ "db:format": "prisma format",
+ "db:generate": "prisma generate",
+ "db:push": "dotenv prisma db push",
+ "db:reset": "prisma db push --force-reset",
+ "db:seed": "dotenv tsx --transpile-only ./seed/index.ts",
+ "db:studio": "prisma studio",
+ "format": "prettier \"**/*.{ts,tsx,md,mdx,json}\" --check",
+ "lint": "eslint .",
+ "typecheck": "tsc --noEmit"
+ },
+ "dependencies": {
+ "@prisma/client": "^5.0.0"
+ },
+ "devDependencies": {
+ "@faker-js/faker": "^8.0.2",
+ "@repo/lint": "workspace:*",
+ "@repo/tsconfig": "workspace:*",
+ "@types/node": "^16.18.11",
+ "dotenv-cli": "^7.2.1",
+ "eslint": "^8.42.0",
+ "prisma": "^5.0.0",
+ "simple-git": "^3.19.1",
+ "tsup": "5.12.0",
+ "tsx": "^3.12.7",
+ "typescript": "^5.1.3",
+ "uuid-by-string": "^4.0.0",
+ "yaml": "^2.3.1"
+ },
+ "prisma": {
+ "seed": "tsx ./seed.ts"
+ }
+}
diff --git a/prisma/schema.prisma b/packages/db/schema.prisma
similarity index 100%
rename from prisma/schema.prisma
rename to packages/db/schema.prisma
diff --git a/__seed__/easy/desc.md b/packages/db/seed/data/beginner/desc.md
similarity index 100%
rename from __seed__/easy/desc.md
rename to packages/db/seed/data/beginner/desc.md
diff --git a/__seed__/beginner/prompt.md b/packages/db/seed/data/beginner/prompt.md
similarity index 85%
rename from __seed__/beginner/prompt.md
rename to packages/db/seed/data/beginner/prompt.md
index d9c6add3..228545b4 100644
--- a/__seed__/beginner/prompt.md
+++ b/packages/db/seed/data/beginner/prompt.md
@@ -1,4 +1,4 @@
-// TEST CASE START
+// TEST CASE START
Extends<HelloWorld, `Hello, ${string}`>()
Extends<HelloWorld, `${string}!`>()
diff --git a/__seed__/beginner/desc.md b/packages/db/seed/data/easy/desc.md
similarity index 55%
rename from __seed__/beginner/desc.md
rename to packages/db/seed/data/easy/desc.md
index d9365684..d89071a7 100644
--- a/__seed__/beginner/desc.md
+++ b/packages/db/seed/data/easy/desc.md
@@ -6,15 +6,15 @@ For example:
```ts
interface Todo {
- title: string
- description: string
- completed: boolean
+ title: string;
+ description: string;
+ completed: boolean;
}
-type TodoPreview = MyPick<Todo, 'title' | 'completed'>
+type TodoPreview = MyPick<Todo, 'title' | 'completed'>;
const todo: TodoPreview = {
- title: 'Clean room',
- completed: false,
-}
+ title: 'Clean room',
+ completed: false,
+};
```
diff --git a/__seed__/easy/prompt.md b/packages/db/seed/data/easy/prompt.md
similarity index 85%
rename from __seed__/easy/prompt.md
rename to packages/db/seed/data/easy/prompt.md
index d9c6add3..228545b4 100644
--- a/__seed__/easy/prompt.md
+++ b/packages/db/seed/data/easy/prompt.md
@@ -1,4 +1,4 @@
-// TEST CASE START
+// TEST CASE START
Extends<HelloWorld, `Hello, ${string}`>()
Extends<HelloWorld, `${string}!`>()
diff --git a/packages/db/seed/data/extreme/desc.md b/packages/db/seed/data/extreme/desc.md
new file mode 100644
index 00000000..0ac99951
--- /dev/null
+++ b/packages/db/seed/data/extreme/desc.md
@@ -0,0 +1,13 @@
+Implement a generic `GetReadonlyKeys<T>` that returns a union of the readonly keys of an Object.
+
+For example
+
+```ts
+interface Todo {
+ readonly title: string;
+ readonly description: string;
+ completed: boolean;
+}
+
+type Keys = GetReadonlyKeys<Todo>; // expected to be "title" | "description"
+```
diff --git a/__seed__/extreme/prompt.md b/packages/db/seed/data/extreme/prompt.md
similarity index 85%
rename from __seed__/extreme/prompt.md
rename to packages/db/seed/data/extreme/prompt.md
index d9c6add3..228545b4 100644
--- a/__seed__/extreme/prompt.md
+++ b/packages/db/seed/data/extreme/prompt.md
@@ -1,4 +1,4 @@
-// TEST CASE START
+// TEST CASE START
Extends<HelloWorld, `Hello, ${string}`>()
Extends<HelloWorld, `${string}!`>()
diff --git a/__seed__/hard/desc.md b/packages/db/seed/data/hard/desc.md
similarity index 90%
rename from __seed__/hard/desc.md
rename to packages/db/seed/data/hard/desc.md
index f345250c..ca9324ff 100644
--- a/__seed__/hard/desc.md
+++ b/packages/db/seed/data/hard/desc.md
@@ -19,17 +19,17 @@ const instance = SimpleVue({
firstname: 'Type',
lastname: 'Challenges',
amount: 10,
- }
+ };
},
computed: {
fullname() {
- return this.firstname + ' ' + this.lastname
- }
+ return this.firstname + ' ' + this.lastname;
+ },
},
methods: {
hi() {
- alert(this.fullname.toLowerCase())
- }
- }
-})
+ alert(this.fullname.toLowerCase());
+ },
+ },
+});
```
diff --git a/__seed__/hard/prompt.md b/packages/db/seed/data/hard/prompt.md
similarity index 85%
rename from __seed__/hard/prompt.md
rename to packages/db/seed/data/hard/prompt.md
index d9c6add3..228545b4 100644
--- a/__seed__/hard/prompt.md
+++ b/packages/db/seed/data/hard/prompt.md
@@ -1,4 +1,4 @@
-// TEST CASE START
+// TEST CASE START
Extends<HelloWorld, `Hello, ${string}`>()
Extends<HelloWorld, `${string}!`>()
diff --git a/__seed__/medium/desc.md b/packages/db/seed/data/medium/desc.md
similarity index 64%
rename from __seed__/medium/desc.md
rename to packages/db/seed/data/medium/desc.md
index 522b5a3e..20cf4210 100644
--- a/__seed__/medium/desc.md
+++ b/packages/db/seed/data/medium/desc.md
@@ -6,14 +6,14 @@ For example:
```ts
interface Todo {
- title: string
- description: string
- completed: boolean
+ title: string;
+ description: string;
+ completed: boolean;
}
-type TodoPreview = MyOmit<Todo, 'description' | 'title'>
+type TodoPreview = MyOmit<Todo, 'description' | 'title'>;
const todo: TodoPreview = {
completed: false,
-}
+};
```
diff --git a/packages/db/seed/data/medium/prompt.md b/packages/db/seed/data/medium/prompt.md
new file mode 100644
index 00000000..228545b4
--- /dev/null
+++ b/packages/db/seed/data/medium/prompt.md
@@ -0,0 +1,7 @@
+// TEST CASE START
+Extends<HelloWorld, `Hello, ${string}`>()
+
+Extends<HelloWorld, `${string}!`>()
+
+// CODE START
+type HelloWorld = ""
diff --git a/prisma/seed.ts b/packages/db/seed/index.ts
similarity index 92%
rename from prisma/seed.ts
rename to packages/db/seed/index.ts
index 5c5dd2f2..afe029b1 100644
--- a/prisma/seed.ts
+++ b/packages/db/seed/index.ts
@@ -1,9 +1,9 @@
import { faker } from '@faker-js/faker';
import { PrismaClient, type Prisma } from '@prisma/client';
import uuidByString from 'uuid-by-string';
-import { loadChallengesFromTypeChallenge } from './challenges.mock';
-import CommentMock from './comment.mock';
-import UserMock from './user.mock';
+import { loadChallengesFromTypeChallenge } from '../mocks/challenges.mock';
+import CommentMock from '../mocks/comment.mock';
+import UserMock from '../mocks/user.mock';
const prisma = new PrismaClient();
diff --git a/src/server/db.ts b/packages/db/src/index.ts
similarity index 52%
rename from src/server/db.ts
rename to packages/db/src/index.ts
index eb35e9da..b9bf5022 100644
--- a/src/server/db.ts
+++ b/packages/db/src/index.ts
@@ -1,5 +1,4 @@
import { PrismaClient } from '@prisma/client';
-import { env } from '~/env.mjs';
const globalForPrisma = globalThis as unknown as {
prisma: PrismaClient | undefined;
@@ -8,7 +7,9 @@ const globalForPrisma = globalThis as unknown as {
export const prisma =
globalForPrisma.prisma ??
new PrismaClient({
- log: env.NODE_ENV === 'development' ? ['query', 'error', 'warn'] : ['error'],
+ log: process.env.NODE_ENV === 'development' ? ['query', 'error', 'warn'] : ['error'],
});
-if (env.NODE_ENV !== 'production') globalForPrisma.prisma = prisma;
+if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = prisma;
+
+export * from '@prisma/client';
diff --git a/scripts/truncate.ts b/packages/db/truncate.ts
similarity index 100%
rename from scripts/truncate.ts
rename to packages/db/truncate.ts
diff --git a/packages/db/tsconfig.json b/packages/db/tsconfig.json
new file mode 100644
index 00000000..09b4b269
--- /dev/null
+++ b/packages/db/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "@repo/tsconfig/base.json",
+ "compilerOptions": {
+ "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
+ },
+ "include": ["**/*.ts"],
+ "exclude": ["node_modules"]
+}
diff --git a/packages/db/turbo.json b/packages/db/turbo.json
new file mode 100644
index 00000000..4312e3c8
--- /dev/null
+++ b/packages/db/turbo.json
@@ -0,0 +1,25 @@
+{
+ "extends": ["//"],
+ "pipeline": {
+ "db:generate": {
+ "outputs": ["../../node_modules/.prisma/**"],
+ "outputMode": "new-only"
+ },
+ "db:deploy": {
+ "cache": false
+ },
+ "db:push": {
+ "cache": false
+ },
+ "db:reset": {
+ "cache": false
+ },
+ "db:seed": {
+ "dependsOn": ["db:push"],
+ "cache": false
+ },
+ "db:studio": {
+ "cache": false
+ }
+ }
+}
diff --git a/patches/[email protected] b/patches/[email protected]
deleted file mode 100644
index e9f847fe..00000000
--- a/patches/[email protected]
+++ /dev/null
@@ -1,10 +0,0 @@
-diff --git a/dist/lucide-react.d.ts b/dist/lucide-react.d.ts
-index 13b72d02e301318294f40959a59ead6dc3d1ad84..3a5be29f29a44e5751658363a41f268d9cf958d0 100644
---- a/dist/lucide-react.d.ts
-+++ b/dist/lucide-react.d.ts
-@@ -26351,4 +26351,4 @@ declare const dynamicIconImports: {
- 'zoom-out': () => Promise<typeof __icons_zoom_out>;
- };
-
--export { Accessibility, Accessibility as AccessibilityIcon, Activity, Activity as ActivityIcon, ActivitySquare, ActivitySquare as ActivitySquareIcon, AirVent, AirVent as AirVentIcon, Airplay, Airplay as AirplayIcon, AlarmCheck, AlarmCheck as AlarmCheckIcon, AlarmClock, AlarmClock as AlarmClockIcon, AlarmClockOff, AlarmClockOff as AlarmClockOffIcon, AlarmMinus, AlarmMinus as AlarmMinusIcon, AlarmPlus, AlarmPlus as AlarmPlusIcon, Album, Album as AlbumIcon, AlertCircle, AlertCircle as AlertCircleIcon, AlertOctagon, AlertOctagon as AlertOctagonIcon, AlertTriangle, AlertTriangle as AlertTriangleIcon, AlignCenter, AlignCenterHorizontal, AlignCenterHorizontal as AlignCenterHorizontalIcon, AlignCenter as AlignCenterIcon, AlignCenterVertical, AlignCenterVertical as AlignCenterVerticalIcon, AlignEndHorizontal, AlignEndHorizontal as AlignEndHorizontalIcon, AlignEndVertical, AlignEndVertical as AlignEndVerticalIcon, AlignHorizontalDistributeCenter, AlignHorizontalDistributeCenter as AlignHorizontalDistributeCenterIcon, AlignHorizontalDistributeEnd, AlignHorizontalDistributeEnd as AlignHorizontalDistributeEndIcon, AlignHorizontalDistributeStart, AlignHorizontalDistributeStart as AlignHorizontalDistributeStartIcon, AlignHorizontalJustifyCenter, AlignHorizontalJustifyCenter as AlignHorizontalJustifyCenterIcon, AlignHorizontalJustifyEnd, AlignHorizontalJustifyEnd as AlignHorizontalJustifyEndIcon, AlignHorizontalJustifyStart, AlignHorizontalJustifyStart as AlignHorizontalJustifyStartIcon, AlignHorizontalSpaceAround, AlignHorizontalSpaceAround as AlignHorizontalSpaceAroundIcon, AlignHorizontalSpaceBetween, AlignHorizontalSpaceBetween as AlignHorizontalSpaceBetweenIcon, AlignJustify, AlignJustify as AlignJustifyIcon, AlignLeft, AlignLeft as AlignLeftIcon, AlignRight, AlignRight as AlignRightIcon, AlignStartHorizontal, AlignStartHorizontal as AlignStartHorizontalIcon, AlignStartVertical, AlignStartVertical as AlignStartVerticalIcon, AlignVerticalDistributeCenter, AlignVerticalDistributeCenter as AlignVerticalDistributeCenterIcon, AlignVerticalDistributeEnd, AlignVerticalDistributeEnd as AlignVerticalDistributeEndIcon, AlignVerticalDistributeStart, AlignVerticalDistributeStart as AlignVerticalDistributeStartIcon, AlignVerticalJustifyCenter, AlignVerticalJustifyCenter as AlignVerticalJustifyCenterIcon, AlignVerticalJustifyEnd, AlignVerticalJustifyEnd as AlignVerticalJustifyEndIcon, AlignVerticalJustifyStart, AlignVerticalJustifyStart as AlignVerticalJustifyStartIcon, AlignVerticalSpaceAround, AlignVerticalSpaceAround as AlignVerticalSpaceAroundIcon, AlignVerticalSpaceBetween, AlignVerticalSpaceBetween as AlignVerticalSpaceBetweenIcon, Ampersand, Ampersand as AmpersandIcon, Ampersands, Ampersands as AmpersandsIcon, Anchor, Anchor as AnchorIcon, Angry, Angry as AngryIcon, Annoyed, Annoyed as AnnoyedIcon, Aperture, Aperture as ApertureIcon, AppWindow, AppWindow as AppWindowIcon, Apple, Apple as AppleIcon, Archive, Archive as ArchiveIcon, ArchiveRestore, ArchiveRestore as ArchiveRestoreIcon, AreaChart, AreaChart as AreaChartIcon, Armchair, Armchair as ArmchairIcon, ArrowBigDown, ArrowBigDownDash, ArrowBigDownDash as ArrowBigDownDashIcon, ArrowBigDown as ArrowBigDownIcon, ArrowBigLeft, ArrowBigLeftDash, ArrowBigLeftDash as ArrowBigLeftDashIcon, ArrowBigLeft as ArrowBigLeftIcon, ArrowBigRight, ArrowBigRightDash, ArrowBigRightDash as ArrowBigRightDashIcon, ArrowBigRight as ArrowBigRightIcon, ArrowBigUp, ArrowBigUpDash, ArrowBigUpDash as ArrowBigUpDashIcon, ArrowBigUp as ArrowBigUpIcon, ArrowDown, ArrowDown01, ArrowDown01 as ArrowDown01Icon, ArrowDown10, ArrowDown10 as ArrowDown10Icon, ArrowDownAZ, ArrowDownAZ as ArrowDownAZIcon, ArrowDownCircle, ArrowDownCircle as ArrowDownCircleIcon, ArrowDownFromLine, ArrowDownFromLine as ArrowDownFromLineIcon, ArrowDown as ArrowDownIcon, ArrowDownLeft, ArrowDownLeftFromCircle, ArrowDownLeftFromCircle as ArrowDownLeftFromCircleIcon, ArrowDownLeft as ArrowDownLeftIcon, ArrowDownLeftSquare, ArrowDownLeftSquare as ArrowDownLeftSquareIcon, ArrowDownNarrowWide, ArrowDownNarrowWide as ArrowDownNarrowWideIcon, ArrowDownRight, ArrowDownRightFromCircle, ArrowDownRightFromCircle as ArrowDownRightFromCircleIcon, ArrowDownRight as ArrowDownRightIcon, ArrowDownRightSquare, ArrowDownRightSquare as ArrowDownRightSquareIcon, ArrowDownSquare, ArrowDownSquare as ArrowDownSquareIcon, ArrowDownToDot, ArrowDownToDot as ArrowDownToDotIcon, ArrowDownToLine, ArrowDownToLine as ArrowDownToLineIcon, ArrowDownUp, ArrowDownUp as ArrowDownUpIcon, ArrowDownWideNarrow, ArrowDownWideNarrow as ArrowDownWideNarrowIcon, ArrowDownZA, ArrowDownZA as ArrowDownZAIcon, ArrowLeft, ArrowLeftCircle, ArrowLeftCircle as ArrowLeftCircleIcon, ArrowLeftFromLine, ArrowLeftFromLine as ArrowLeftFromLineIcon, ArrowLeft as ArrowLeftIcon, ArrowLeftRight, ArrowLeftRight as ArrowLeftRightIcon, ArrowLeftSquare, ArrowLeftSquare as ArrowLeftSquareIcon, ArrowLeftToLine, ArrowLeftToLine as ArrowLeftToLineIcon, ArrowRight, ArrowRightCircle, ArrowRightCircle as ArrowRightCircleIcon, ArrowRightFromLine, ArrowRightFromLine as ArrowRightFromLineIcon, ArrowRight as ArrowRightIcon, ArrowRightLeft, ArrowRightLeft as ArrowRightLeftIcon, ArrowRightSquare, ArrowRightSquare as ArrowRightSquareIcon, ArrowRightToLine, ArrowRightToLine as ArrowRightToLineIcon, ArrowUp, ArrowUp01, ArrowUp01 as ArrowUp01Icon, ArrowUp10, ArrowUp10 as ArrowUp10Icon, ArrowUpAZ, ArrowUpAZ as ArrowUpAZIcon, ArrowUpCircle, ArrowUpCircle as ArrowUpCircleIcon, ArrowUpDown, ArrowUpDown as ArrowUpDownIcon, ArrowUpFromDot, ArrowUpFromDot as ArrowUpFromDotIcon, ArrowUpFromLine, ArrowUpFromLine as ArrowUpFromLineIcon, ArrowUp as ArrowUpIcon, ArrowUpLeft, ArrowUpLeftFromCircle, ArrowUpLeftFromCircle as ArrowUpLeftFromCircleIcon, ArrowUpLeft as ArrowUpLeftIcon, ArrowUpLeftSquare, ArrowUpLeftSquare as ArrowUpLeftSquareIcon, ArrowUpNarrowWide, ArrowUpNarrowWide as ArrowUpNarrowWideIcon, ArrowUpRight, ArrowUpRightFromCircle, ArrowUpRightFromCircle as ArrowUpRightFromCircleIcon, ArrowUpRight as ArrowUpRightIcon, ArrowUpRightSquare, ArrowUpRightSquare as ArrowUpRightSquareIcon, ArrowUpSquare, ArrowUpSquare as ArrowUpSquareIcon, ArrowUpToLine, ArrowUpToLine as ArrowUpToLineIcon, ArrowUpWideNarrow, ArrowUpWideNarrow as ArrowUpWideNarrowIcon, ArrowUpZA, ArrowUpZA as ArrowUpZAIcon, ArrowsUpFromLine, ArrowsUpFromLine as ArrowsUpFromLineIcon, Asterisk, Asterisk as AsteriskIcon, AtSign, AtSign as AtSignIcon, Atom, Atom as AtomIcon, Award, Award as AwardIcon, Axe, Axe as AxeIcon, Axis3d, Axis3d as Axis3dIcon, Baby, Baby as BabyIcon, Backpack, Backpack as BackpackIcon, Badge, BadgeAlert, BadgeAlert as BadgeAlertIcon, BadgeCheck, BadgeCheck as BadgeCheckIcon, BadgeDollarSign, BadgeDollarSign as BadgeDollarSignIcon, BadgeHelp, BadgeHelp as BadgeHelpIcon, Badge as BadgeIcon, BadgeInfo, BadgeInfo as BadgeInfoIcon, BadgeMinus, BadgeMinus as BadgeMinusIcon, BadgePercent, BadgePercent as BadgePercentIcon, BadgePlus, BadgePlus as BadgePlusIcon, BadgeX, BadgeX as BadgeXIcon, BaggageClaim, BaggageClaim as BaggageClaimIcon, Ban, Ban as BanIcon, Banana, Banana as BananaIcon, Banknote, Banknote as BanknoteIcon, BarChart, BarChart2, BarChart2 as BarChart2Icon, BarChart3, BarChart3 as BarChart3Icon, BarChart4, BarChart4 as BarChart4Icon, BarChartBig, BarChartBig as BarChartBigIcon, BarChartHorizontal, BarChartHorizontalBig, BarChartHorizontalBig as BarChartHorizontalBigIcon, BarChartHorizontal as BarChartHorizontalIcon, BarChart as BarChartIcon, Baseline, Baseline as BaselineIcon, Bath, Bath as BathIcon, Battery, BatteryCharging, BatteryCharging as BatteryChargingIcon, BatteryFull, BatteryFull as BatteryFullIcon, Battery as BatteryIcon, BatteryLow, BatteryLow as BatteryLowIcon, BatteryMedium, BatteryMedium as BatteryMediumIcon, BatteryWarning, BatteryWarning as BatteryWarningIcon, Beaker, Beaker as BeakerIcon, Bean, Bean as BeanIcon, BeanOff, BeanOff as BeanOffIcon, Bed, BedDouble, BedDouble as BedDoubleIcon, Bed as BedIcon, BedSingle, BedSingle as BedSingleIcon, Beef, Beef as BeefIcon, Beer, Beer as BeerIcon, Bell, BellDot, BellDot as BellDotIcon, Bell as BellIcon, BellMinus, BellMinus as BellMinusIcon, BellOff, BellOff as BellOffIcon, BellPlus, BellPlus as BellPlusIcon, BellRing, BellRing as BellRingIcon, Bike, Bike as BikeIcon, Binary, Binary as BinaryIcon, Biohazard, Biohazard as BiohazardIcon, Bird, Bird as BirdIcon, Bitcoin, Bitcoin as BitcoinIcon, Blinds, Blinds as BlindsIcon, Bluetooth, BluetoothConnected, BluetoothConnected as BluetoothConnectedIcon, Bluetooth as BluetoothIcon, BluetoothOff, BluetoothOff as BluetoothOffIcon, BluetoothSearching, BluetoothSearching as BluetoothSearchingIcon, Bold, Bold as BoldIcon, Bomb, Bomb as BombIcon, Bone, Bone as BoneIcon, Book, BookCopy, BookCopy as BookCopyIcon, BookDown, BookDown as BookDownIcon, Book as BookIcon, BookKey, BookKey as BookKeyIcon, BookLock, BookLock as BookLockIcon, BookMarked, BookMarked as BookMarkedIcon, BookMinus, BookMinus as BookMinusIcon, BookOpen, BookOpenCheck, BookOpenCheck as BookOpenCheckIcon, BookOpen as BookOpenIcon, BookPlus, BookPlus as BookPlusIcon, BookTemplate, BookTemplate as BookTemplateIcon, BookUp, BookUp2, BookUp2 as BookUp2Icon, BookUp as BookUpIcon, BookX, BookX as BookXIcon, Bookmark, Bookmark as BookmarkIcon, BookmarkMinus, BookmarkMinus as BookmarkMinusIcon, BookmarkPlus, BookmarkPlus as BookmarkPlusIcon, Bot, Bot as BotIcon, Box, Box as BoxIcon, BoxSelect, BoxSelect as BoxSelectIcon, Boxes, Boxes as BoxesIcon, Braces, Braces as BracesIcon, Brackets, Brackets as BracketsIcon, Brain, BrainCircuit, BrainCircuit as BrainCircuitIcon, BrainCog, BrainCog as BrainCogIcon, Brain as BrainIcon, Briefcase, Briefcase as BriefcaseIcon, Brush, Brush as BrushIcon, Bug, Bug as BugIcon, Building, Building2, Building2 as Building2Icon, Building as BuildingIcon, Bus, Bus as BusIcon, Cake, Cake as CakeIcon, CakeSlice, CakeSlice as CakeSliceIcon, Calculator, Calculator as CalculatorIcon, Calendar, CalendarCheck, CalendarCheck2, CalendarCheck2 as CalendarCheck2Icon, CalendarCheck as CalendarCheckIcon, CalendarClock, CalendarClock as CalendarClockIcon, CalendarDays, CalendarDays as CalendarDaysIcon, CalendarHeart, CalendarHeart as CalendarHeartIcon, Calendar as CalendarIcon, CalendarMinus, CalendarMinus as CalendarMinusIcon, CalendarOff, CalendarOff as CalendarOffIcon, CalendarPlus, CalendarPlus as CalendarPlusIcon, CalendarRange, CalendarRange as CalendarRangeIcon, CalendarSearch, CalendarSearch as CalendarSearchIcon, CalendarX, CalendarX2, CalendarX2 as CalendarX2Icon, CalendarX as CalendarXIcon, Camera, Camera as CameraIcon, CameraOff, CameraOff as CameraOffIcon, CandlestickChart, CandlestickChart as CandlestickChartIcon, Candy, CandyCane, CandyCane as CandyCaneIcon, Candy as CandyIcon, CandyOff, CandyOff as CandyOffIcon, Car, Car as CarIcon, Carrot, Carrot as CarrotIcon, CaseLower, CaseLower as CaseLowerIcon, CaseSensitive, CaseSensitive as CaseSensitiveIcon, CaseUpper, CaseUpper as CaseUpperIcon, CassetteTape, CassetteTape as CassetteTapeIcon, Cast, Cast as CastIcon, Castle, Castle as CastleIcon, Cat, Cat as CatIcon, Check, CheckCheck, CheckCheck as CheckCheckIcon, CheckCircle, CheckCircle2, CheckCircle2 as CheckCircle2Icon, CheckCircle as CheckCircleIcon, Check as CheckIcon, CheckSquare, CheckSquare as CheckSquareIcon, ChefHat, ChefHat as ChefHatIcon, Cherry, Cherry as CherryIcon, ChevronDown, ChevronDownCircle, ChevronDownCircle as ChevronDownCircleIcon, ChevronDown as ChevronDownIcon, ChevronDownSquare, ChevronDownSquare as ChevronDownSquareIcon, ChevronFirst, ChevronFirst as ChevronFirstIcon, ChevronLast, ChevronLast as ChevronLastIcon, ChevronLeft, ChevronLeftCircle, ChevronLeftCircle as ChevronLeftCircleIcon, ChevronLeft as ChevronLeftIcon, ChevronLeftSquare, ChevronLeftSquare as ChevronLeftSquareIcon, ChevronRight, ChevronRightCircle, ChevronRightCircle as ChevronRightCircleIcon, ChevronRight as ChevronRightIcon, ChevronRightSquare, ChevronRightSquare as ChevronRightSquareIcon, ChevronUp, ChevronUpCircle, ChevronUpCircle as ChevronUpCircleIcon, ChevronUp as ChevronUpIcon, ChevronUpSquare, ChevronUpSquare as ChevronUpSquareIcon, ChevronsDown, ChevronsDown as ChevronsDownIcon, ChevronsDownUp, ChevronsDownUp as ChevronsDownUpIcon, ChevronsLeft, ChevronsLeft as ChevronsLeftIcon, ChevronsLeftRight, ChevronsLeftRight as ChevronsLeftRightIcon, ChevronsRight, ChevronsRight as ChevronsRightIcon, ChevronsRightLeft, ChevronsRightLeft as ChevronsRightLeftIcon, ChevronsUp, ChevronsUpDown, ChevronsUpDown as ChevronsUpDownIcon, ChevronsUp as ChevronsUpIcon, Chrome, Chrome as ChromeIcon, Church, Church as ChurchIcon, Cigarette, Cigarette as CigaretteIcon, CigaretteOff, CigaretteOff as CigaretteOffIcon, Circle, CircleDashed, CircleDashed as CircleDashedIcon, CircleDollarSign, CircleDollarSign as CircleDollarSignIcon, CircleDot, CircleDotDashed, CircleDotDashed as CircleDotDashedIcon, CircleDot as CircleDotIcon, CircleEllipsis, CircleEllipsis as CircleEllipsisIcon, CircleEqual, CircleEqual as CircleEqualIcon, Circle as CircleIcon, CircleOff, CircleOff as CircleOffIcon, CircleSlash, CircleSlash2, CircleSlash2 as CircleSlash2Icon, CircleSlash as CircleSlashIcon, CircleSlash2 as CircleSlashed, CircleSlash2 as CircleSlashedIcon, CircuitBoard, CircuitBoard as CircuitBoardIcon, Citrus, Citrus as CitrusIcon, Clapperboard, Clapperboard as ClapperboardIcon, Clipboard, ClipboardCheck, ClipboardCheck as ClipboardCheckIcon, ClipboardCopy, ClipboardCopy as ClipboardCopyIcon, ClipboardEdit, ClipboardEdit as ClipboardEditIcon, Clipboard as ClipboardIcon, ClipboardList, ClipboardList as ClipboardListIcon, ClipboardPaste, ClipboardPaste as ClipboardPasteIcon, ClipboardSignature, ClipboardSignature as ClipboardSignatureIcon, ClipboardType, ClipboardType as ClipboardTypeIcon, ClipboardX, ClipboardX as ClipboardXIcon, Clock, Clock1, Clock10, Clock10 as Clock10Icon, Clock11, Clock11 as Clock11Icon, Clock12, Clock12 as Clock12Icon, Clock1 as Clock1Icon, Clock2, Clock2 as Clock2Icon, Clock3, Clock3 as Clock3Icon, Clock4, Clock4 as Clock4Icon, Clock5, Clock5 as Clock5Icon, Clock6, Clock6 as Clock6Icon, Clock7, Clock7 as Clock7Icon, Clock8, Clock8 as Clock8Icon, Clock9, Clock9 as Clock9Icon, Clock as ClockIcon, Cloud, CloudCog, CloudCog as CloudCogIcon, CloudDrizzle, CloudDrizzle as CloudDrizzleIcon, CloudFog, CloudFog as CloudFogIcon, CloudHail, CloudHail as CloudHailIcon, Cloud as CloudIcon, CloudLightning, CloudLightning as CloudLightningIcon, CloudMoon, CloudMoon as CloudMoonIcon, CloudMoonRain, CloudMoonRain as CloudMoonRainIcon, CloudOff, CloudOff as CloudOffIcon, CloudRain, CloudRain as CloudRainIcon, CloudRainWind, CloudRainWind as CloudRainWindIcon, CloudSnow, CloudSnow as CloudSnowIcon, CloudSun, CloudSun as CloudSunIcon, CloudSunRain, CloudSunRain as CloudSunRainIcon, Cloudy, Cloudy as CloudyIcon, Clover, Clover as CloverIcon, Club, Club as ClubIcon, Code, Code2, Code2 as Code2Icon, Code as CodeIcon, Codepen, Codepen as CodepenIcon, Codesandbox, Codesandbox as CodesandboxIcon, Coffee, Coffee as CoffeeIcon, Cog, Cog as CogIcon, Coins, Coins as CoinsIcon, Columns, Columns as ColumnsIcon, Combine, Combine as CombineIcon, Command, Command as CommandIcon, Compass, Compass as CompassIcon, Component, Component as ComponentIcon, ConciergeBell, ConciergeBell as ConciergeBellIcon, Construction, Construction as ConstructionIcon, Contact, Contact2, Contact2 as Contact2Icon, Contact as ContactIcon, Container, Container as ContainerIcon, Contrast, Contrast as ContrastIcon, Cookie, Cookie as CookieIcon, Copy, CopyCheck, CopyCheck as CopyCheckIcon, Copy as CopyIcon, CopyMinus, CopyMinus as CopyMinusIcon, CopyPlus, CopyPlus as CopyPlusIcon, CopySlash, CopySlash as CopySlashIcon, CopyX, CopyX as CopyXIcon, Copyleft, Copyleft as CopyleftIcon, Copyright, Copyright as CopyrightIcon, CornerDownLeft, CornerDownLeft as CornerDownLeftIcon, CornerDownRight, CornerDownRight as CornerDownRightIcon, CornerLeftDown, CornerLeftDown as CornerLeftDownIcon, CornerLeftUp, CornerLeftUp as CornerLeftUpIcon, CornerRightDown, CornerRightDown as CornerRightDownIcon, CornerRightUp, CornerRightUp as CornerRightUpIcon, CornerUpLeft, CornerUpLeft as CornerUpLeftIcon, CornerUpRight, CornerUpRight as CornerUpRightIcon, Cpu, Cpu as CpuIcon, CreativeCommons, CreativeCommons as CreativeCommonsIcon, CreditCard, CreditCard as CreditCardIcon, Croissant, Croissant as CroissantIcon, Crop, Crop as CropIcon, Cross, Cross as CrossIcon, Crosshair, Crosshair as CrosshairIcon, Crown, Crown as CrownIcon, CupSoda, CupSoda as CupSodaIcon, Braces as CurlyBraces, Braces as CurlyBracesIcon, Currency, Currency as CurrencyIcon, Database, DatabaseBackup, DatabaseBackup as DatabaseBackupIcon, Database as DatabaseIcon, Delete, Delete as DeleteIcon, Dessert, Dessert as DessertIcon, Diamond, Diamond as DiamondIcon, Dice1, Dice1 as Dice1Icon, Dice2, Dice2 as Dice2Icon, Dice3, Dice3 as Dice3Icon, Dice4, Dice4 as Dice4Icon, Dice5, Dice5 as Dice5Icon, Dice6, Dice6 as Dice6Icon, Dices, Dices as DicesIcon, Diff, Diff as DiffIcon, Disc, Disc2, Disc2 as Disc2Icon, Disc3, Disc3 as Disc3Icon, Disc as DiscIcon, Divide, DivideCircle, DivideCircle as DivideCircleIcon, Divide as DivideIcon, DivideSquare, DivideSquare as DivideSquareIcon, Dna, Dna as DnaIcon, DnaOff, DnaOff as DnaOffIcon, Dog, Dog as DogIcon, DollarSign, DollarSign as DollarSignIcon, Donut, Donut as DonutIcon, DoorClosed, DoorClosed as DoorClosedIcon, DoorOpen, DoorOpen as DoorOpenIcon, Dot, Dot as DotIcon, Download, DownloadCloud, DownloadCloud as DownloadCloudIcon, Download as DownloadIcon, Dribbble, Dribbble as DribbbleIcon, Droplet, Droplet as DropletIcon, Droplets, Droplets as DropletsIcon, Drumstick, Drumstick as DrumstickIcon, Dumbbell, Dumbbell as DumbbellIcon, Ear, Ear as EarIcon, EarOff, EarOff as EarOffIcon, Edit, Edit2, Edit2 as Edit2Icon, Edit3, Edit3 as Edit3Icon, Edit as EditIcon, Egg, EggFried, EggFried as EggFriedIcon, Egg as EggIcon, EggOff, EggOff as EggOffIcon, Equal, Equal as EqualIcon, EqualNot, EqualNot as EqualNotIcon, Eraser, Eraser as EraserIcon, Euro, Euro as EuroIcon, Expand, Expand as ExpandIcon, ExternalLink, ExternalLink as ExternalLinkIcon, Eye, Eye as EyeIcon, EyeOff, EyeOff as EyeOffIcon, Facebook, Facebook as FacebookIcon, Factory, Factory as FactoryIcon, Fan, Fan as FanIcon, FastForward, FastForward as FastForwardIcon, Feather, Feather as FeatherIcon, FerrisWheel, FerrisWheel as FerrisWheelIcon, Figma, Figma as FigmaIcon, File, FileArchive, FileArchive as FileArchiveIcon, FileAudio, FileAudio2, FileAudio2 as FileAudio2Icon, FileAudio as FileAudioIcon, FileAxis3d, FileAxis3d as FileAxis3dIcon, FileBadge, FileBadge2, FileBadge2 as FileBadge2Icon, FileBadge as FileBadgeIcon, FileBarChart, FileBarChart2, FileBarChart2 as FileBarChart2Icon, FileBarChart as FileBarChartIcon, FileBox, FileBox as FileBoxIcon, FileCheck, FileCheck2, FileCheck2 as FileCheck2Icon, FileCheck as FileCheckIcon, FileClock, FileClock as FileClockIcon, FileCode, FileCode2, FileCode2 as FileCode2Icon, FileCode as FileCodeIcon, FileCog, FileCog2, FileCog2 as FileCog2Icon, FileCog as FileCogIcon, FileDiff, FileDiff as FileDiffIcon, FileDigit, FileDigit as FileDigitIcon, FileDown, FileDown as FileDownIcon, FileEdit, FileEdit as FileEditIcon, FileHeart, FileHeart as FileHeartIcon, File as FileIcon, FileImage, FileImage as FileImageIcon, FileInput, FileInput as FileInputIcon, FileJson, FileJson2, FileJson2 as FileJson2Icon, FileJson as FileJsonIcon, FileKey, FileKey2, FileKey2 as FileKey2Icon, FileKey as FileKeyIcon, FileLineChart, FileLineChart as FileLineChartIcon, FileLock, FileLock2, FileLock2 as FileLock2Icon, FileLock as FileLockIcon, FileMinus, FileMinus2, FileMinus2 as FileMinus2Icon, FileMinus as FileMinusIcon, FileOutput, FileOutput as FileOutputIcon, FilePieChart, FilePieChart as FilePieChartIcon, FilePlus, FilePlus2, FilePlus2 as FilePlus2Icon, FilePlus as FilePlusIcon, FileQuestion, FileQuestion as FileQuestionIcon, FileScan, FileScan as FileScanIcon, FileSearch, FileSearch2, FileSearch2 as FileSearch2Icon, FileSearch as FileSearchIcon, FileSignature, FileSignature as FileSignatureIcon, FileSpreadsheet, FileSpreadsheet as FileSpreadsheetIcon, FileStack, FileStack as FileStackIcon, FileSymlink, FileSymlink as FileSymlinkIcon, FileTerminal, FileTerminal as FileTerminalIcon, FileText, FileText as FileTextIcon, FileType, FileType2, FileType2 as FileType2Icon, FileType as FileTypeIcon, FileUp, FileUp as FileUpIcon, FileVideo, FileVideo2, FileVideo2 as FileVideo2Icon, FileVideo as FileVideoIcon, FileVolume, FileVolume2, FileVolume2 as FileVolume2Icon, FileVolume as FileVolumeIcon, FileWarning, FileWarning as FileWarningIcon, FileX, FileX2, FileX2 as FileX2Icon, FileX as FileXIcon, Files, Files as FilesIcon, Film, Film as FilmIcon, Filter, Filter as FilterIcon, FilterX, FilterX as FilterXIcon, Fingerprint, Fingerprint as FingerprintIcon, Fish, Fish as FishIcon, FishOff, FishOff as FishOffIcon, Flag, Flag as FlagIcon, FlagOff, FlagOff as FlagOffIcon, FlagTriangleLeft, FlagTriangleLeft as FlagTriangleLeftIcon, FlagTriangleRight, FlagTriangleRight as FlagTriangleRightIcon, Flame, Flame as FlameIcon, Flashlight, Flashlight as FlashlightIcon, FlashlightOff, FlashlightOff as FlashlightOffIcon, FlaskConical, FlaskConical as FlaskConicalIcon, FlaskConicalOff, FlaskConicalOff as FlaskConicalOffIcon, FlaskRound, FlaskRound as FlaskRoundIcon, FlipHorizontal, FlipHorizontal2, FlipHorizontal2 as FlipHorizontal2Icon, FlipHorizontal as FlipHorizontalIcon, FlipVertical, FlipVertical2, FlipVertical2 as FlipVertical2Icon, FlipVertical as FlipVerticalIcon, Flower, Flower2, Flower2 as Flower2Icon, Flower as FlowerIcon, Focus, Focus as FocusIcon, FoldHorizontal, FoldHorizontal as FoldHorizontalIcon, FoldVertical, FoldVertical as FoldVerticalIcon, Folder, FolderArchive, FolderArchive as FolderArchiveIcon, FolderCheck, FolderCheck as FolderCheckIcon, FolderClock, FolderClock as FolderClockIcon, FolderClosed, FolderClosed as FolderClosedIcon, FolderCog, FolderCog2, FolderCog2 as FolderCog2Icon, FolderCog as FolderCogIcon, FolderDot, FolderDot as FolderDotIcon, FolderDown, FolderDown as FolderDownIcon, FolderEdit, FolderEdit as FolderEditIcon, FolderGit, FolderGit2, FolderGit2 as FolderGit2Icon, FolderGit as FolderGitIcon, FolderHeart, FolderHeart as FolderHeartIcon, Folder as FolderIcon, FolderInput, FolderInput as FolderInputIcon, FolderKanban, FolderKanban as FolderKanbanIcon, FolderKey, FolderKey as FolderKeyIcon, FolderLock, FolderLock as FolderLockIcon, FolderMinus, FolderMinus as FolderMinusIcon, FolderOpen, FolderOpenDot, FolderOpenDot as FolderOpenDotIcon, FolderOpen as FolderOpenIcon, FolderOutput, FolderOutput as FolderOutputIcon, FolderPlus, FolderPlus as FolderPlusIcon, FolderRoot, FolderRoot as FolderRootIcon, FolderSearch, FolderSearch2, FolderSearch2 as FolderSearch2Icon, FolderSearch as FolderSearchIcon, FolderSymlink, FolderSymlink as FolderSymlinkIcon, FolderSync, FolderSync as FolderSyncIcon, FolderTree, FolderTree as FolderTreeIcon, FolderUp, FolderUp as FolderUpIcon, FolderX, FolderX as FolderXIcon, Folders, Folders as FoldersIcon, Footprints, Footprints as FootprintsIcon, Forklift, Forklift as ForkliftIcon, FormInput, FormInput as FormInputIcon, Forward, Forward as ForwardIcon, Frame, Frame as FrameIcon, Framer, Framer as FramerIcon, Frown, Frown as FrownIcon, Fuel, Fuel as FuelIcon, FunctionSquare, FunctionSquare as FunctionSquareIcon, GalleryHorizontal, GalleryHorizontalEnd, GalleryHorizontalEnd as GalleryHorizontalEndIcon, GalleryHorizontal as GalleryHorizontalIcon, GalleryThumbnails, GalleryThumbnails as GalleryThumbnailsIcon, GalleryVertical, GalleryVerticalEnd, GalleryVerticalEnd as GalleryVerticalEndIcon, GalleryVertical as GalleryVerticalIcon, Gamepad, Gamepad2, Gamepad2 as Gamepad2Icon, Gamepad as GamepadIcon, GanttChart, GanttChart as GanttChartIcon, GanttChartSquare, GanttChartSquare as GanttChartSquareIcon, Gauge, GaugeCircle, GaugeCircle as GaugeCircleIcon, Gauge as GaugeIcon, Gavel, Gavel as GavelIcon, Gem, Gem as GemIcon, Ghost, Ghost as GhostIcon, Gift, Gift as GiftIcon, GitBranch, GitBranch as GitBranchIcon, GitBranchPlus, GitBranchPlus as GitBranchPlusIcon, GitCommit, GitCommit as GitCommitIcon, GitCompare, GitCompare as GitCompareIcon, GitFork, GitFork as GitForkIcon, GitMerge, GitMerge as GitMergeIcon, GitPullRequest, GitPullRequestClosed, GitPullRequestClosed as GitPullRequestClosedIcon, GitPullRequestDraft, GitPullRequestDraft as GitPullRequestDraftIcon, GitPullRequest as GitPullRequestIcon, Github, Github as GithubIcon, Gitlab, Gitlab as GitlabIcon, GlassWater, GlassWater as GlassWaterIcon, Glasses, Glasses as GlassesIcon, Globe, Globe2, Globe2 as Globe2Icon, Globe as GlobeIcon, Goal, Goal as GoalIcon, Grab, Grab as GrabIcon, GraduationCap, GraduationCap as GraduationCapIcon, Grape, Grape as GrapeIcon, Grid, Grid as GridIcon, Grip, GripHorizontal, GripHorizontal as GripHorizontalIcon, Grip as GripIcon, GripVertical, GripVertical as GripVerticalIcon, Group, Group as GroupIcon, Hammer, Hammer as HammerIcon, Hand, Hand as HandIcon, HandMetal, HandMetal as HandMetalIcon, HardDrive, HardDrive as HardDriveIcon, HardHat, HardHat as HardHatIcon, Hash, Hash as HashIcon, Haze, Haze as HazeIcon, Heading, Heading1, Heading1 as Heading1Icon, Heading2, Heading2 as Heading2Icon, Heading3, Heading3 as Heading3Icon, Heading4, Heading4 as Heading4Icon, Heading5, Heading5 as Heading5Icon, Heading6, Heading6 as Heading6Icon, Heading as HeadingIcon, Headphones, Headphones as HeadphonesIcon, Heart, HeartCrack, HeartCrack as HeartCrackIcon, HeartHandshake, HeartHandshake as HeartHandshakeIcon, Heart as HeartIcon, HeartOff, HeartOff as HeartOffIcon, HeartPulse, HeartPulse as HeartPulseIcon, HelpCircle, HelpCircle as HelpCircleIcon, HelpingHand, HelpingHand as HelpingHandIcon, Hexagon, Hexagon as HexagonIcon, Highlighter, Highlighter as HighlighterIcon, History, History as HistoryIcon, Home, Home as HomeIcon, Hop, Hop as HopIcon, HopOff, HopOff as HopOffIcon, Hotel, Hotel as HotelIcon, Hourglass, Hourglass as HourglassIcon, IceCream, IceCream2, IceCream2 as IceCream2Icon, IceCream as IceCreamIcon, IconNode, Image, Image as ImageIcon, ImageMinus, ImageMinus as ImageMinusIcon, ImageOff, ImageOff as ImageOffIcon, ImagePlus, ImagePlus as ImagePlusIcon, Import, Import as ImportIcon, Inbox, Inbox as InboxIcon, Indent, Indent as IndentIcon, IndianRupee, IndianRupee as IndianRupeeIcon, Infinity, Infinity as InfinityIcon, Info, Info as InfoIcon, Inspect, Inspect as InspectIcon, Instagram, Instagram as InstagramIcon, Italic, Italic as ItalicIcon, IterationCcw, IterationCcw as IterationCcwIcon, IterationCw, IterationCw as IterationCwIcon, JapaneseYen, JapaneseYen as JapaneseYenIcon, Joystick, Joystick as JoystickIcon, Kanban, Kanban as KanbanIcon, KanbanSquare, KanbanSquareDashed, KanbanSquareDashed as KanbanSquareDashedIcon, KanbanSquare as KanbanSquareIcon, Key, Key as KeyIcon, KeyRound, KeyRound as KeyRoundIcon, KeySquare, KeySquare as KeySquareIcon, Keyboard, Keyboard as KeyboardIcon, Lamp, LampCeiling, LampCeiling as LampCeilingIcon, LampDesk, LampDesk as LampDeskIcon, LampFloor, LampFloor as LampFloorIcon, Lamp as LampIcon, LampWallDown, LampWallDown as LampWallDownIcon, LampWallUp, LampWallUp as LampWallUpIcon, Landmark, Landmark as LandmarkIcon, Languages, Languages as LanguagesIcon, Laptop, Laptop2, Laptop2 as Laptop2Icon, Laptop as LaptopIcon, Lasso, Lasso as LassoIcon, LassoSelect, LassoSelect as LassoSelectIcon, Laugh, Laugh as LaughIcon, Layers, Layers as LayersIcon, Layout, LayoutDashboard, LayoutDashboard as LayoutDashboardIcon, LayoutGrid, LayoutGrid as LayoutGridIcon, Layout as LayoutIcon, LayoutList, LayoutList as LayoutListIcon, LayoutPanelLeft, LayoutPanelLeft as LayoutPanelLeftIcon, LayoutPanelTop, LayoutPanelTop as LayoutPanelTopIcon, LayoutTemplate, LayoutTemplate as LayoutTemplateIcon, Leaf, Leaf as LeafIcon, LeafyGreen, LeafyGreen as LeafyGreenIcon, Library, Library as LibraryIcon, LifeBuoy, LifeBuoy as LifeBuoyIcon, Ligature, Ligature as LigatureIcon, Lightbulb, Lightbulb as LightbulbIcon, LightbulbOff, LightbulbOff as LightbulbOffIcon, LineChart, LineChart as LineChartIcon, Link, Link2, Link2 as Link2Icon, Link2Off, Link2Off as Link2OffIcon, Link as LinkIcon, Linkedin, Linkedin as LinkedinIcon, List, ListChecks, ListChecks as ListChecksIcon, ListEnd, ListEnd as ListEndIcon, ListFilter, ListFilter as ListFilterIcon, List as ListIcon, ListMinus, ListMinus as ListMinusIcon, ListMusic, ListMusic as ListMusicIcon, ListOrdered, ListOrdered as ListOrderedIcon, ListPlus, ListPlus as ListPlusIcon, ListRestart, ListRestart as ListRestartIcon, ListStart, ListStart as ListStartIcon, ListTodo, ListTodo as ListTodoIcon, ListTree, ListTree as ListTreeIcon, ListVideo, ListVideo as ListVideoIcon, ListX, ListX as ListXIcon, Loader, Loader2, Loader2 as Loader2Icon, Loader as LoaderIcon, Locate, LocateFixed, LocateFixed as LocateFixedIcon, Locate as LocateIcon, LocateOff, LocateOff as LocateOffIcon, Lock, Lock as LockIcon, LogIn, LogIn as LogInIcon, LogOut, LogOut as LogOutIcon, Lollipop, Lollipop as LollipopIcon, Accessibility as LucideAccessibility, Activity as LucideActivity, ActivitySquare as LucideActivitySquare, AirVent as LucideAirVent, Airplay as LucideAirplay, AlarmCheck as LucideAlarmCheck, AlarmClock as LucideAlarmClock, AlarmClockOff as LucideAlarmClockOff, AlarmMinus as LucideAlarmMinus, AlarmPlus as LucideAlarmPlus, Album as LucideAlbum, AlertCircle as LucideAlertCircle, AlertOctagon as LucideAlertOctagon, AlertTriangle as LucideAlertTriangle, AlignCenter as LucideAlignCenter, AlignCenterHorizontal as LucideAlignCenterHorizontal, AlignCenterVertical as LucideAlignCenterVertical, AlignEndHorizontal as LucideAlignEndHorizontal, AlignEndVertical as LucideAlignEndVertical, AlignHorizontalDistributeCenter as LucideAlignHorizontalDistributeCenter, AlignHorizontalDistributeEnd as LucideAlignHorizontalDistributeEnd, AlignHorizontalDistributeStart as LucideAlignHorizontalDistributeStart, AlignHorizontalJustifyCenter as LucideAlignHorizontalJustifyCenter, AlignHorizontalJustifyEnd as LucideAlignHorizontalJustifyEnd, AlignHorizontalJustifyStart as LucideAlignHorizontalJustifyStart, AlignHorizontalSpaceAround as LucideAlignHorizontalSpaceAround, AlignHorizontalSpaceBetween as LucideAlignHorizontalSpaceBetween, AlignJustify as LucideAlignJustify, AlignLeft as LucideAlignLeft, AlignRight as LucideAlignRight, AlignStartHorizontal as LucideAlignStartHorizontal, AlignStartVertical as LucideAlignStartVertical, AlignVerticalDistributeCenter as LucideAlignVerticalDistributeCenter, AlignVerticalDistributeEnd as LucideAlignVerticalDistributeEnd, AlignVerticalDistributeStart as LucideAlignVerticalDistributeStart, AlignVerticalJustifyCenter as LucideAlignVerticalJustifyCenter, AlignVerticalJustifyEnd as LucideAlignVerticalJustifyEnd, AlignVerticalJustifyStart as LucideAlignVerticalJustifyStart, AlignVerticalSpaceAround as LucideAlignVerticalSpaceAround, AlignVerticalSpaceBetween as LucideAlignVerticalSpaceBetween, Ampersand as LucideAmpersand, Ampersands as LucideAmpersands, Anchor as LucideAnchor, Angry as LucideAngry, Annoyed as LucideAnnoyed, Aperture as LucideAperture, AppWindow as LucideAppWindow, Apple as LucideApple, Archive as LucideArchive, ArchiveRestore as LucideArchiveRestore, AreaChart as LucideAreaChart, Armchair as LucideArmchair, ArrowBigDown as LucideArrowBigDown, ArrowBigDownDash as LucideArrowBigDownDash, ArrowBigLeft as LucideArrowBigLeft, ArrowBigLeftDash as LucideArrowBigLeftDash, ArrowBigRight as LucideArrowBigRight, ArrowBigRightDash as LucideArrowBigRightDash, ArrowBigUp as LucideArrowBigUp, ArrowBigUpDash as LucideArrowBigUpDash, ArrowDown as LucideArrowDown, ArrowDown01 as LucideArrowDown01, ArrowDown10 as LucideArrowDown10, ArrowDownAZ as LucideArrowDownAZ, ArrowDownCircle as LucideArrowDownCircle, ArrowDownFromLine as LucideArrowDownFromLine, ArrowDownLeft as LucideArrowDownLeft, ArrowDownLeftFromCircle as LucideArrowDownLeftFromCircle, ArrowDownLeftSquare as LucideArrowDownLeftSquare, ArrowDownNarrowWide as LucideArrowDownNarrowWide, ArrowDownRight as LucideArrowDownRight, ArrowDownRightFromCircle as LucideArrowDownRightFromCircle, ArrowDownRightSquare as LucideArrowDownRightSquare, ArrowDownSquare as LucideArrowDownSquare, ArrowDownToDot as LucideArrowDownToDot, ArrowDownToLine as LucideArrowDownToLine, ArrowDownUp as LucideArrowDownUp, ArrowDownWideNarrow as LucideArrowDownWideNarrow, ArrowDownZA as LucideArrowDownZA, ArrowLeft as LucideArrowLeft, ArrowLeftCircle as LucideArrowLeftCircle, ArrowLeftFromLine as LucideArrowLeftFromLine, ArrowLeftRight as LucideArrowLeftRight, ArrowLeftSquare as LucideArrowLeftSquare, ArrowLeftToLine as LucideArrowLeftToLine, ArrowRight as LucideArrowRight, ArrowRightCircle as LucideArrowRightCircle, ArrowRightFromLine as LucideArrowRightFromLine, ArrowRightLeft as LucideArrowRightLeft, ArrowRightSquare as LucideArrowRightSquare, ArrowRightToLine as LucideArrowRightToLine, ArrowUp as LucideArrowUp, ArrowUp01 as LucideArrowUp01, ArrowUp10 as LucideArrowUp10, ArrowUpAZ as LucideArrowUpAZ, ArrowUpCircle as LucideArrowUpCircle, ArrowUpDown as LucideArrowUpDown, ArrowUpFromDot as LucideArrowUpFromDot, ArrowUpFromLine as LucideArrowUpFromLine, ArrowUpLeft as LucideArrowUpLeft, ArrowUpLeftFromCircle as LucideArrowUpLeftFromCircle, ArrowUpLeftSquare as LucideArrowUpLeftSquare, ArrowUpNarrowWide as LucideArrowUpNarrowWide, ArrowUpRight as LucideArrowUpRight, ArrowUpRightFromCircle as LucideArrowUpRightFromCircle, ArrowUpRightSquare as LucideArrowUpRightSquare, ArrowUpSquare as LucideArrowUpSquare, ArrowUpToLine as LucideArrowUpToLine, ArrowUpWideNarrow as LucideArrowUpWideNarrow, ArrowUpZA as LucideArrowUpZA, ArrowsUpFromLine as LucideArrowsUpFromLine, Asterisk as LucideAsterisk, AtSign as LucideAtSign, Atom as LucideAtom, Award as LucideAward, Axe as LucideAxe, Axis3d as LucideAxis3d, Baby as LucideBaby, Backpack as LucideBackpack, Badge as LucideBadge, BadgeAlert as LucideBadgeAlert, BadgeCheck as LucideBadgeCheck, BadgeDollarSign as LucideBadgeDollarSign, BadgeHelp as LucideBadgeHelp, BadgeInfo as LucideBadgeInfo, BadgeMinus as LucideBadgeMinus, BadgePercent as LucideBadgePercent, BadgePlus as LucideBadgePlus, BadgeX as LucideBadgeX, BaggageClaim as LucideBaggageClaim, Ban as LucideBan, Banana as LucideBanana, Banknote as LucideBanknote, BarChart as LucideBarChart, BarChart2 as LucideBarChart2, BarChart3 as LucideBarChart3, BarChart4 as LucideBarChart4, BarChartBig as LucideBarChartBig, BarChartHorizontal as LucideBarChartHorizontal, BarChartHorizontalBig as LucideBarChartHorizontalBig, Baseline as LucideBaseline, Bath as LucideBath, Battery as LucideBattery, BatteryCharging as LucideBatteryCharging, BatteryFull as LucideBatteryFull, BatteryLow as LucideBatteryLow, BatteryMedium as LucideBatteryMedium, BatteryWarning as LucideBatteryWarning, Beaker as LucideBeaker, Bean as LucideBean, BeanOff as LucideBeanOff, Bed as LucideBed, BedDouble as LucideBedDouble, BedSingle as LucideBedSingle, Beef as LucideBeef, Beer as LucideBeer, Bell as LucideBell, BellDot as LucideBellDot, BellMinus as LucideBellMinus, BellOff as LucideBellOff, BellPlus as LucideBellPlus, BellRing as LucideBellRing, Bike as LucideBike, Binary as LucideBinary, Biohazard as LucideBiohazard, Bird as LucideBird, Bitcoin as LucideBitcoin, Blinds as LucideBlinds, Bluetooth as LucideBluetooth, BluetoothConnected as LucideBluetoothConnected, BluetoothOff as LucideBluetoothOff, BluetoothSearching as LucideBluetoothSearching, Bold as LucideBold, Bomb as LucideBomb, Bone as LucideBone, Book as LucideBook, BookCopy as LucideBookCopy, BookDown as LucideBookDown, BookKey as LucideBookKey, BookLock as LucideBookLock, BookMarked as LucideBookMarked, BookMinus as LucideBookMinus, BookOpen as LucideBookOpen, BookOpenCheck as LucideBookOpenCheck, BookPlus as LucideBookPlus, BookTemplate as LucideBookTemplate, BookUp as LucideBookUp, BookUp2 as LucideBookUp2, BookX as LucideBookX, Bookmark as LucideBookmark, BookmarkMinus as LucideBookmarkMinus, BookmarkPlus as LucideBookmarkPlus, Bot as LucideBot, Box as LucideBox, BoxSelect as LucideBoxSelect, Boxes as LucideBoxes, Braces as LucideBraces, Brackets as LucideBrackets, Brain as LucideBrain, BrainCircuit as LucideBrainCircuit, BrainCog as LucideBrainCog, Briefcase as LucideBriefcase, Brush as LucideBrush, Bug as LucideBug, Building as LucideBuilding, Building2 as LucideBuilding2, Bus as LucideBus, Cake as LucideCake, CakeSlice as LucideCakeSlice, Calculator as LucideCalculator, Calendar as LucideCalendar, CalendarCheck as LucideCalendarCheck, CalendarCheck2 as LucideCalendarCheck2, CalendarClock as LucideCalendarClock, CalendarDays as LucideCalendarDays, CalendarHeart as LucideCalendarHeart, CalendarMinus as LucideCalendarMinus, CalendarOff as LucideCalendarOff, CalendarPlus as LucideCalendarPlus, CalendarRange as LucideCalendarRange, CalendarSearch as LucideCalendarSearch, CalendarX as LucideCalendarX, CalendarX2 as LucideCalendarX2, Camera as LucideCamera, CameraOff as LucideCameraOff, CandlestickChart as LucideCandlestickChart, Candy as LucideCandy, CandyCane as LucideCandyCane, CandyOff as LucideCandyOff, Car as LucideCar, Carrot as LucideCarrot, CaseLower as LucideCaseLower, CaseSensitive as LucideCaseSensitive, CaseUpper as LucideCaseUpper, CassetteTape as LucideCassetteTape, Cast as LucideCast, Castle as LucideCastle, Cat as LucideCat, Check as LucideCheck, CheckCheck as LucideCheckCheck, CheckCircle as LucideCheckCircle, CheckCircle2 as LucideCheckCircle2, CheckSquare as LucideCheckSquare, ChefHat as LucideChefHat, Cherry as LucideCherry, ChevronDown as LucideChevronDown, ChevronDownCircle as LucideChevronDownCircle, ChevronDownSquare as LucideChevronDownSquare, ChevronFirst as LucideChevronFirst, ChevronLast as LucideChevronLast, ChevronLeft as LucideChevronLeft, ChevronLeftCircle as LucideChevronLeftCircle, ChevronLeftSquare as LucideChevronLeftSquare, ChevronRight as LucideChevronRight, ChevronRightCircle as LucideChevronRightCircle, ChevronRightSquare as LucideChevronRightSquare, ChevronUp as LucideChevronUp, ChevronUpCircle as LucideChevronUpCircle, ChevronUpSquare as LucideChevronUpSquare, ChevronsDown as LucideChevronsDown, ChevronsDownUp as LucideChevronsDownUp, ChevronsLeft as LucideChevronsLeft, ChevronsLeftRight as LucideChevronsLeftRight, ChevronsRight as LucideChevronsRight, ChevronsRightLeft as LucideChevronsRightLeft, ChevronsUp as LucideChevronsUp, ChevronsUpDown as LucideChevronsUpDown, Chrome as LucideChrome, Church as LucideChurch, Cigarette as LucideCigarette, CigaretteOff as LucideCigaretteOff, Circle as LucideCircle, CircleDashed as LucideCircleDashed, CircleDollarSign as LucideCircleDollarSign, CircleDot as LucideCircleDot, CircleDotDashed as LucideCircleDotDashed, CircleEllipsis as LucideCircleEllipsis, CircleEqual as LucideCircleEqual, CircleOff as LucideCircleOff, CircleSlash as LucideCircleSlash, CircleSlash2 as LucideCircleSlash2, CircleSlash2 as LucideCircleSlashed, CircuitBoard as LucideCircuitBoard, Citrus as LucideCitrus, Clapperboard as LucideClapperboard, Clipboard as LucideClipboard, ClipboardCheck as LucideClipboardCheck, ClipboardCopy as LucideClipboardCopy, ClipboardEdit as LucideClipboardEdit, ClipboardList as LucideClipboardList, ClipboardPaste as LucideClipboardPaste, ClipboardSignature as LucideClipboardSignature, ClipboardType as LucideClipboardType, ClipboardX as LucideClipboardX, Clock as LucideClock, Clock1 as LucideClock1, Clock10 as LucideClock10, Clock11 as LucideClock11, Clock12 as LucideClock12, Clock2 as LucideClock2, Clock3 as LucideClock3, Clock4 as LucideClock4, Clock5 as LucideClock5, Clock6 as LucideClock6, Clock7 as LucideClock7, Clock8 as LucideClock8, Clock9 as LucideClock9, Cloud as LucideCloud, CloudCog as LucideCloudCog, CloudDrizzle as LucideCloudDrizzle, CloudFog as LucideCloudFog, CloudHail as LucideCloudHail, CloudLightning as LucideCloudLightning, CloudMoon as LucideCloudMoon, CloudMoonRain as LucideCloudMoonRain, CloudOff as LucideCloudOff, CloudRain as LucideCloudRain, CloudRainWind as LucideCloudRainWind, CloudSnow as LucideCloudSnow, CloudSun as LucideCloudSun, CloudSunRain as LucideCloudSunRain, Cloudy as LucideCloudy, Clover as LucideClover, Club as LucideClub, Code as LucideCode, Code2 as LucideCode2, Codepen as LucideCodepen, Codesandbox as LucideCodesandbox, Coffee as LucideCoffee, Cog as LucideCog, Coins as LucideCoins, Columns as LucideColumns, Combine as LucideCombine, Command as LucideCommand, Compass as LucideCompass, Component as LucideComponent, ConciergeBell as LucideConciergeBell, Construction as LucideConstruction, Contact as LucideContact, Contact2 as LucideContact2, Container as LucideContainer, Contrast as LucideContrast, Cookie as LucideCookie, Copy as LucideCopy, CopyCheck as LucideCopyCheck, CopyMinus as LucideCopyMinus, CopyPlus as LucideCopyPlus, CopySlash as LucideCopySlash, CopyX as LucideCopyX, Copyleft as LucideCopyleft, Copyright as LucideCopyright, CornerDownLeft as LucideCornerDownLeft, CornerDownRight as LucideCornerDownRight, CornerLeftDown as LucideCornerLeftDown, CornerLeftUp as LucideCornerLeftUp, CornerRightDown as LucideCornerRightDown, CornerRightUp as LucideCornerRightUp, CornerUpLeft as LucideCornerUpLeft, CornerUpRight as LucideCornerUpRight, Cpu as LucideCpu, CreativeCommons as LucideCreativeCommons, CreditCard as LucideCreditCard, Croissant as LucideCroissant, Crop as LucideCrop, Cross as LucideCross, Crosshair as LucideCrosshair, Crown as LucideCrown, CupSoda as LucideCupSoda, Braces as LucideCurlyBraces, Currency as LucideCurrency, Database as LucideDatabase, DatabaseBackup as LucideDatabaseBackup, Delete as LucideDelete, Dessert as LucideDessert, Diamond as LucideDiamond, Dice1 as LucideDice1, Dice2 as LucideDice2, Dice3 as LucideDice3, Dice4 as LucideDice4, Dice5 as LucideDice5, Dice6 as LucideDice6, Dices as LucideDices, Diff as LucideDiff, Disc as LucideDisc, Disc2 as LucideDisc2, Disc3 as LucideDisc3, Divide as LucideDivide, DivideCircle as LucideDivideCircle, DivideSquare as LucideDivideSquare, Dna as LucideDna, DnaOff as LucideDnaOff, Dog as LucideDog, DollarSign as LucideDollarSign, Donut as LucideDonut, DoorClosed as LucideDoorClosed, DoorOpen as LucideDoorOpen, Dot as LucideDot, Download as LucideDownload, DownloadCloud as LucideDownloadCloud, Dribbble as LucideDribbble, Droplet as LucideDroplet, Droplets as LucideDroplets, Drumstick as LucideDrumstick, Dumbbell as LucideDumbbell, Ear as LucideEar, EarOff as LucideEarOff, Edit as LucideEdit, Edit2 as LucideEdit2, Edit3 as LucideEdit3, Egg as LucideEgg, EggFried as LucideEggFried, EggOff as LucideEggOff, Equal as LucideEqual, EqualNot as LucideEqualNot, Eraser as LucideEraser, Euro as LucideEuro, Expand as LucideExpand, ExternalLink as LucideExternalLink, Eye as LucideEye, EyeOff as LucideEyeOff, Facebook as LucideFacebook, Factory as LucideFactory, Fan as LucideFan, FastForward as LucideFastForward, Feather as LucideFeather, FerrisWheel as LucideFerrisWheel, Figma as LucideFigma, File as LucideFile, FileArchive as LucideFileArchive, FileAudio as LucideFileAudio, FileAudio2 as LucideFileAudio2, FileAxis3d as LucideFileAxis3d, FileBadge as LucideFileBadge, FileBadge2 as LucideFileBadge2, FileBarChart as LucideFileBarChart, FileBarChart2 as LucideFileBarChart2, FileBox as LucideFileBox, FileCheck as LucideFileCheck, FileCheck2 as LucideFileCheck2, FileClock as LucideFileClock, FileCode as LucideFileCode, FileCode2 as LucideFileCode2, FileCog as LucideFileCog, FileCog2 as LucideFileCog2, FileDiff as LucideFileDiff, FileDigit as LucideFileDigit, FileDown as LucideFileDown, FileEdit as LucideFileEdit, FileHeart as LucideFileHeart, FileImage as LucideFileImage, FileInput as LucideFileInput, FileJson as LucideFileJson, FileJson2 as LucideFileJson2, FileKey as LucideFileKey, FileKey2 as LucideFileKey2, FileLineChart as LucideFileLineChart, FileLock as LucideFileLock, FileLock2 as LucideFileLock2, FileMinus as LucideFileMinus, FileMinus2 as LucideFileMinus2, FileOutput as LucideFileOutput, FilePieChart as LucideFilePieChart, FilePlus as LucideFilePlus, FilePlus2 as LucideFilePlus2, FileQuestion as LucideFileQuestion, FileScan as LucideFileScan, FileSearch as LucideFileSearch, FileSearch2 as LucideFileSearch2, FileSignature as LucideFileSignature, FileSpreadsheet as LucideFileSpreadsheet, FileStack as LucideFileStack, FileSymlink as LucideFileSymlink, FileTerminal as LucideFileTerminal, FileText as LucideFileText, FileType as LucideFileType, FileType2 as LucideFileType2, FileUp as LucideFileUp, FileVideo as LucideFileVideo, FileVideo2 as LucideFileVideo2, FileVolume as LucideFileVolume, FileVolume2 as LucideFileVolume2, FileWarning as LucideFileWarning, FileX as LucideFileX, FileX2 as LucideFileX2, Files as LucideFiles, Film as LucideFilm, Filter as LucideFilter, FilterX as LucideFilterX, Fingerprint as LucideFingerprint, Fish as LucideFish, FishOff as LucideFishOff, Flag as LucideFlag, FlagOff as LucideFlagOff, FlagTriangleLeft as LucideFlagTriangleLeft, FlagTriangleRight as LucideFlagTriangleRight, Flame as LucideFlame, Flashlight as LucideFlashlight, FlashlightOff as LucideFlashlightOff, FlaskConical as LucideFlaskConical, FlaskConicalOff as LucideFlaskConicalOff, FlaskRound as LucideFlaskRound, FlipHorizontal as LucideFlipHorizontal, FlipHorizontal2 as LucideFlipHorizontal2, FlipVertical as LucideFlipVertical, FlipVertical2 as LucideFlipVertical2, Flower as LucideFlower, Flower2 as LucideFlower2, Focus as LucideFocus, FoldHorizontal as LucideFoldHorizontal, FoldVertical as LucideFoldVertical, Folder as LucideFolder, FolderArchive as LucideFolderArchive, FolderCheck as LucideFolderCheck, FolderClock as LucideFolderClock, FolderClosed as LucideFolderClosed, FolderCog as LucideFolderCog, FolderCog2 as LucideFolderCog2, FolderDot as LucideFolderDot, FolderDown as LucideFolderDown, FolderEdit as LucideFolderEdit, FolderGit as LucideFolderGit, FolderGit2 as LucideFolderGit2, FolderHeart as LucideFolderHeart, FolderInput as LucideFolderInput, FolderKanban as LucideFolderKanban, FolderKey as LucideFolderKey, FolderLock as LucideFolderLock, FolderMinus as LucideFolderMinus, FolderOpen as LucideFolderOpen, FolderOpenDot as LucideFolderOpenDot, FolderOutput as LucideFolderOutput, FolderPlus as LucideFolderPlus, FolderRoot as LucideFolderRoot, FolderSearch as LucideFolderSearch, FolderSearch2 as LucideFolderSearch2, FolderSymlink as LucideFolderSymlink, FolderSync as LucideFolderSync, FolderTree as LucideFolderTree, FolderUp as LucideFolderUp, FolderX as LucideFolderX, Folders as LucideFolders, Footprints as LucideFootprints, Forklift as LucideForklift, FormInput as LucideFormInput, Forward as LucideForward, Frame as LucideFrame, Framer as LucideFramer, Frown as LucideFrown, Fuel as LucideFuel, FunctionSquare as LucideFunctionSquare, GalleryHorizontal as LucideGalleryHorizontal, GalleryHorizontalEnd as LucideGalleryHorizontalEnd, GalleryThumbnails as LucideGalleryThumbnails, GalleryVertical as LucideGalleryVertical, GalleryVerticalEnd as LucideGalleryVerticalEnd, Gamepad as LucideGamepad, Gamepad2 as LucideGamepad2, GanttChart as LucideGanttChart, GanttChartSquare as LucideGanttChartSquare, Gauge as LucideGauge, GaugeCircle as LucideGaugeCircle, Gavel as LucideGavel, Gem as LucideGem, Ghost as LucideGhost, Gift as LucideGift, GitBranch as LucideGitBranch, GitBranchPlus as LucideGitBranchPlus, GitCommit as LucideGitCommit, GitCompare as LucideGitCompare, GitFork as LucideGitFork, GitMerge as LucideGitMerge, GitPullRequest as LucideGitPullRequest, GitPullRequestClosed as LucideGitPullRequestClosed, GitPullRequestDraft as LucideGitPullRequestDraft, Github as LucideGithub, Gitlab as LucideGitlab, GlassWater as LucideGlassWater, Glasses as LucideGlasses, Globe as LucideGlobe, Globe2 as LucideGlobe2, Goal as LucideGoal, Grab as LucideGrab, GraduationCap as LucideGraduationCap, Grape as LucideGrape, Grid as LucideGrid, Grip as LucideGrip, GripHorizontal as LucideGripHorizontal, GripVertical as LucideGripVertical, Group as LucideGroup, Hammer as LucideHammer, Hand as LucideHand, HandMetal as LucideHandMetal, HardDrive as LucideHardDrive, HardHat as LucideHardHat, Hash as LucideHash, Haze as LucideHaze, Heading as LucideHeading, Heading1 as LucideHeading1, Heading2 as LucideHeading2, Heading3 as LucideHeading3, Heading4 as LucideHeading4, Heading5 as LucideHeading5, Heading6 as LucideHeading6, Headphones as LucideHeadphones, Heart as LucideHeart, HeartCrack as LucideHeartCrack, HeartHandshake as LucideHeartHandshake, HeartOff as LucideHeartOff, HeartPulse as LucideHeartPulse, HelpCircle as LucideHelpCircle, HelpingHand as LucideHelpingHand, Hexagon as LucideHexagon, Highlighter as LucideHighlighter, History as LucideHistory, Home as LucideHome, Hop as LucideHop, HopOff as LucideHopOff, Hotel as LucideHotel, Hourglass as LucideHourglass, IceCream as LucideIceCream, IceCream2 as LucideIceCream2, LucideIcon, Image as LucideImage, ImageMinus as LucideImageMinus, ImageOff as LucideImageOff, ImagePlus as LucideImagePlus, Import as LucideImport, Inbox as LucideInbox, Indent as LucideIndent, IndianRupee as LucideIndianRupee, Infinity as LucideInfinity, Info as LucideInfo, Inspect as LucideInspect, Instagram as LucideInstagram, Italic as LucideItalic, IterationCcw as LucideIterationCcw, IterationCw as LucideIterationCw, JapaneseYen as LucideJapaneseYen, Joystick as LucideJoystick, Kanban as LucideKanban, KanbanSquare as LucideKanbanSquare, KanbanSquareDashed as LucideKanbanSquareDashed, Key as LucideKey, KeyRound as LucideKeyRound, KeySquare as LucideKeySquare, Keyboard as LucideKeyboard, Lamp as LucideLamp, LampCeiling as LucideLampCeiling, LampDesk as LucideLampDesk, LampFloor as LucideLampFloor, LampWallDown as LucideLampWallDown, LampWallUp as LucideLampWallUp, Landmark as LucideLandmark, Languages as LucideLanguages, Laptop as LucideLaptop, Laptop2 as LucideLaptop2, Lasso as LucideLasso, LassoSelect as LucideLassoSelect, Laugh as LucideLaugh, Layers as LucideLayers, Layout as LucideLayout, LayoutDashboard as LucideLayoutDashboard, LayoutGrid as LucideLayoutGrid, LayoutList as LucideLayoutList, LayoutPanelLeft as LucideLayoutPanelLeft, LayoutPanelTop as LucideLayoutPanelTop, LayoutTemplate as LucideLayoutTemplate, Leaf as LucideLeaf, LeafyGreen as LucideLeafyGreen, Library as LucideLibrary, LifeBuoy as LucideLifeBuoy, Ligature as LucideLigature, Lightbulb as LucideLightbulb, LightbulbOff as LucideLightbulbOff, LineChart as LucideLineChart, Link as LucideLink, Link2 as LucideLink2, Link2Off as LucideLink2Off, Linkedin as LucideLinkedin, List as LucideList, ListChecks as LucideListChecks, ListEnd as LucideListEnd, ListFilter as LucideListFilter, ListMinus as LucideListMinus, ListMusic as LucideListMusic, ListOrdered as LucideListOrdered, ListPlus as LucideListPlus, ListRestart as LucideListRestart, ListStart as LucideListStart, ListTodo as LucideListTodo, ListTree as LucideListTree, ListVideo as LucideListVideo, ListX as LucideListX, Loader as LucideLoader, Loader2 as LucideLoader2, Locate as LucideLocate, LocateFixed as LucideLocateFixed, LocateOff as LucideLocateOff, Lock as LucideLock, LogIn as LucideLogIn, LogOut as LucideLogOut, Lollipop as LucideLollipop, Luggage as LucideLuggage, Magnet as LucideMagnet, Mail as LucideMail, MailCheck as LucideMailCheck, MailMinus as LucideMailMinus, MailOpen as LucideMailOpen, MailPlus as LucideMailPlus, MailQuestion as LucideMailQuestion, MailSearch as LucideMailSearch, MailWarning as LucideMailWarning, MailX as LucideMailX, Mailbox as LucideMailbox, Mails as LucideMails, Map as LucideMap, MapPin as LucideMapPin, MapPinOff as LucideMapPinOff, Martini as LucideMartini, Maximize as LucideMaximize, Maximize2 as LucideMaximize2, Medal as LucideMedal, Megaphone as LucideMegaphone, MegaphoneOff as LucideMegaphoneOff, Meh as LucideMeh, MemoryStick as LucideMemoryStick, Menu as LucideMenu, MenuSquare as LucideMenuSquare, Merge as LucideMerge, MessageCircle as LucideMessageCircle, MessageSquare as LucideMessageSquare, MessageSquareDashed as LucideMessageSquareDashed, MessageSquarePlus as LucideMessageSquarePlus, MessagesSquare as LucideMessagesSquare, Mic as LucideMic, Mic2 as LucideMic2, MicOff as LucideMicOff, Microscope as LucideMicroscope, Microwave as LucideMicrowave, Milestone as LucideMilestone, Milk as LucideMilk, MilkOff as LucideMilkOff, Minimize as LucideMinimize, Minimize2 as LucideMinimize2, Minus as LucideMinus, MinusCircle as LucideMinusCircle, MinusSquare as LucideMinusSquare, Monitor as LucideMonitor, MonitorCheck as LucideMonitorCheck, MonitorDot as LucideMonitorDot, MonitorDown as LucideMonitorDown, MonitorOff as LucideMonitorOff, MonitorPause as LucideMonitorPause, MonitorPlay as LucideMonitorPlay, MonitorSmartphone as LucideMonitorSmartphone, MonitorSpeaker as LucideMonitorSpeaker, MonitorStop as LucideMonitorStop, MonitorUp as LucideMonitorUp, MonitorX as LucideMonitorX, Moon as LucideMoon, MoonStar as LucideMoonStar, MoreHorizontal as LucideMoreHorizontal, MoreVertical as LucideMoreVertical, Mountain as LucideMountain, MountainSnow as LucideMountainSnow, Mouse as LucideMouse, MousePointer as LucideMousePointer, MousePointer2 as LucideMousePointer2, MousePointerClick as LucideMousePointerClick, Move as LucideMove, Move3d as LucideMove3d, MoveDiagonal as LucideMoveDiagonal, MoveDiagonal2 as LucideMoveDiagonal2, MoveDown as LucideMoveDown, MoveDownLeft as LucideMoveDownLeft, MoveDownRight as LucideMoveDownRight, MoveHorizontal as LucideMoveHorizontal, MoveLeft as LucideMoveLeft, MoveRight as LucideMoveRight, MoveUp as LucideMoveUp, MoveUpLeft as LucideMoveUpLeft, MoveUpRight as LucideMoveUpRight, MoveVertical as LucideMoveVertical, Music as LucideMusic, Music2 as LucideMusic2, Music3 as LucideMusic3, Music4 as LucideMusic4, Navigation as LucideNavigation, Navigation2 as LucideNavigation2, Navigation2Off as LucideNavigation2Off, NavigationOff as LucideNavigationOff, Network as LucideNetwork, Newspaper as LucideNewspaper, Nfc as LucideNfc, Nut as LucideNut, NutOff as LucideNutOff, Octagon as LucideOctagon, Option as LucideOption, Orbit as LucideOrbit, Outdent as LucideOutdent, Package as LucidePackage, Package2 as LucidePackage2, PackageCheck as LucidePackageCheck, PackageMinus as LucidePackageMinus, PackageOpen as LucidePackageOpen, PackagePlus as LucidePackagePlus, PackageSearch as LucidePackageSearch, PackageX as LucidePackageX, PaintBucket as LucidePaintBucket, Paintbrush as LucidePaintbrush, Paintbrush2 as LucidePaintbrush2, Palette as LucidePalette, Palmtree as LucidePalmtree, PanelBottom as LucidePanelBottom, PanelBottomClose as LucidePanelBottomClose, PanelBottomInactive as LucidePanelBottomInactive, PanelBottomOpen as LucidePanelBottomOpen, PanelLeft as LucidePanelLeft, PanelLeftClose as LucidePanelLeftClose, PanelLeftInactive as LucidePanelLeftInactive, PanelLeftOpen as LucidePanelLeftOpen, PanelRight as LucidePanelRight, PanelRightClose as LucidePanelRightClose, PanelRightInactive as LucidePanelRightInactive, PanelRightOpen as LucidePanelRightOpen, PanelTop as LucidePanelTop, PanelTopClose as LucidePanelTopClose, PanelTopInactive as LucidePanelTopInactive, PanelTopOpen as LucidePanelTopOpen, Paperclip as LucidePaperclip, Parentheses as LucideParentheses, ParkingCircle as LucideParkingCircle, ParkingCircleOff as LucideParkingCircleOff, ParkingSquare as LucideParkingSquare, ParkingSquareOff as LucideParkingSquareOff, PartyPopper as LucidePartyPopper, Pause as LucidePause, PauseCircle as LucidePauseCircle, PauseOctagon as LucidePauseOctagon, PcCase as LucidePcCase, Edit2 as LucidePen, Edit as LucidePenBox, Edit3 as LucidePenLine, PenTool as LucidePenTool, Pencil as LucidePencil, Percent as LucidePercent, PersonStanding as LucidePersonStanding, Phone as LucidePhone, PhoneCall as LucidePhoneCall, PhoneForwarded as LucidePhoneForwarded, PhoneIncoming as LucidePhoneIncoming, PhoneMissed as LucidePhoneMissed, PhoneOff as LucidePhoneOff, PhoneOutgoing as LucidePhoneOutgoing, Pi as LucidePi, PiSquare as LucidePiSquare, PictureInPicture as LucidePictureInPicture, PictureInPicture2 as LucidePictureInPicture2, PieChart as LucidePieChart, PiggyBank as LucidePiggyBank, Pilcrow as LucidePilcrow, PilcrowSquare as LucidePilcrowSquare, Pill as LucidePill, Pin as LucidePin, PinOff as LucidePinOff, Pipette as LucidePipette, Pizza as LucidePizza, Plane as LucidePlane, PlaneLanding as LucidePlaneLanding, PlaneTakeoff as LucidePlaneTakeoff, Play as LucidePlay, PlayCircle as LucidePlayCircle, PlaySquare as LucidePlaySquare, Plug as LucidePlug, Plug2 as LucidePlug2, PlugZap as LucidePlugZap, PlugZap2 as LucidePlugZap2, Plus as LucidePlus, PlusCircle as LucidePlusCircle, PlusSquare as LucidePlusSquare, Pocket as LucidePocket, PocketKnife as LucidePocketKnife, Podcast as LucidePodcast, Pointer as LucidePointer, Popcorn as LucidePopcorn, Popsicle as LucidePopsicle, PoundSterling as LucidePoundSterling, Power as LucidePower, PowerOff as LucidePowerOff, Presentation as LucidePresentation, Printer as LucidePrinter, Projector as LucideProjector, LucideProps, Puzzle as LucidePuzzle, QrCode as LucideQrCode, Quote as LucideQuote, Radar as LucideRadar, Radiation as LucideRadiation, Radio as LucideRadio, RadioReceiver as LucideRadioReceiver, RadioTower as LucideRadioTower, Rainbow as LucideRainbow, Rat as LucideRat, Receipt as LucideReceipt, RectangleHorizontal as LucideRectangleHorizontal, RectangleVertical as LucideRectangleVertical, Recycle as LucideRecycle, Redo as LucideRedo, Redo2 as LucideRedo2, RedoDot as LucideRedoDot, RefreshCcw as LucideRefreshCcw, RefreshCcwDot as LucideRefreshCcwDot, RefreshCw as LucideRefreshCw, RefreshCwOff as LucideRefreshCwOff, Refrigerator as LucideRefrigerator, Regex as LucideRegex, RemoveFormatting as LucideRemoveFormatting, Repeat as LucideRepeat, Repeat1 as LucideRepeat1, Repeat2 as LucideRepeat2, Replace as LucideReplace, ReplaceAll as LucideReplaceAll, Reply as LucideReply, ReplyAll as LucideReplyAll, Rewind as LucideRewind, Rocket as LucideRocket, RockingChair as LucideRockingChair, RollerCoaster as LucideRollerCoaster, Rotate3d as LucideRotate3d, RotateCcw as LucideRotateCcw, RotateCw as LucideRotateCw, Router as LucideRouter, Rows as LucideRows, Rss as LucideRss, Ruler as LucideRuler, RussianRuble as LucideRussianRuble, Sailboat as LucideSailboat, Salad as LucideSalad, Sandwich as LucideSandwich, Satellite as LucideSatellite, SatelliteDish as LucideSatelliteDish, Save as LucideSave, SaveAll as LucideSaveAll, Scale as LucideScale, Scale3d as LucideScale3d, Scaling as LucideScaling, Scan as LucideScan, ScanFace as LucideScanFace, ScanLine as LucideScanLine, ScatterChart as LucideScatterChart, School as LucideSchool, School2 as LucideSchool2, Scissors as LucideScissors, ScreenShare as LucideScreenShare, ScreenShareOff as LucideScreenShareOff, Scroll as LucideScroll, ScrollText as LucideScrollText, Search as LucideSearch, SearchCheck as LucideSearchCheck, SearchCode as LucideSearchCode, SearchSlash as LucideSearchSlash, SearchX as LucideSearchX, Send as LucideSend, SeparatorHorizontal as LucideSeparatorHorizontal, SeparatorVertical as LucideSeparatorVertical, Server as LucideServer, ServerCog as LucideServerCog, ServerCrash as LucideServerCrash, ServerOff as LucideServerOff, Settings as LucideSettings, Settings2 as LucideSettings2, Shapes as LucideShapes, Share as LucideShare, Share2 as LucideShare2, Sheet as LucideSheet, Shield as LucideShield, ShieldAlert as LucideShieldAlert, ShieldCheck as LucideShieldCheck, ShieldClose as LucideShieldClose, ShieldOff as LucideShieldOff, ShieldQuestion as LucideShieldQuestion, Ship as LucideShip, Shirt as LucideShirt, ShoppingBag as LucideShoppingBag, ShoppingCart as LucideShoppingCart, Shovel as LucideShovel, ShowerHead as LucideShowerHead, Shrink as LucideShrink, Shrub as LucideShrub, Shuffle as LucideShuffle, PanelLeft as LucideSidebar, PanelLeftClose as LucideSidebarClose, PanelLeftOpen as LucideSidebarOpen, Sigma as LucideSigma, SigmaSquare as LucideSigmaSquare, Signal as LucideSignal, SignalHigh as LucideSignalHigh, SignalLow as LucideSignalLow, SignalMedium as LucideSignalMedium, SignalZero as LucideSignalZero, Siren as LucideSiren, SkipBack as LucideSkipBack, SkipForward as LucideSkipForward, Skull as LucideSkull, Slack as LucideSlack, Ban as LucideSlash, Slice as LucideSlice, Sliders as LucideSliders, SlidersHorizontal as LucideSlidersHorizontal, Smartphone as LucideSmartphone, SmartphoneCharging as LucideSmartphoneCharging, SmartphoneNfc as LucideSmartphoneNfc, Smile as LucideSmile, SmilePlus as LucideSmilePlus, Snowflake as LucideSnowflake, Sofa as LucideSofa, ArrowUpNarrowWide as LucideSortAsc, ArrowDownWideNarrow as LucideSortDesc, Soup as LucideSoup, Space as LucideSpace, Spade as LucideSpade, Sparkle as LucideSparkle, Sparkles as LucideSparkles, Speaker as LucideSpeaker, SpellCheck as LucideSpellCheck, SpellCheck2 as LucideSpellCheck2, Spline as LucideSpline, Split as LucideSplit, SplitSquareHorizontal as LucideSplitSquareHorizontal, SplitSquareVertical as LucideSplitSquareVertical, SprayCan as LucideSprayCan, Sprout as LucideSprout, Square as LucideSquare, SquareAsterisk as LucideSquareAsterisk, SquareCode as LucideSquareCode, SquareDashedBottom as LucideSquareDashedBottom, SquareDashedBottomCode as LucideSquareDashedBottomCode, SquareDot as LucideSquareDot, SquareEqual as LucideSquareEqual, GanttChartSquare as LucideSquareGantt, KanbanSquare as LucideSquareKanban, KanbanSquareDashed as LucideSquareKanbanDashed, SquareSlash as LucideSquareSlash, SquareStack as LucideSquareStack, Squirrel as LucideSquirrel, Stamp as LucideStamp, Star as LucideStar, StarHalf as LucideStarHalf, StarOff as LucideStarOff, Sparkles as LucideStars, StepBack as LucideStepBack, StepForward as LucideStepForward, Stethoscope as LucideStethoscope, Sticker as LucideSticker, StickyNote as LucideStickyNote, StopCircle as LucideStopCircle, Store as LucideStore, StretchHorizontal as LucideStretchHorizontal, StretchVertical as LucideStretchVertical, Strikethrough as LucideStrikethrough, Subscript as LucideSubscript, Subtitles as LucideSubtitles, Sun as LucideSun, SunDim as LucideSunDim, SunMedium as LucideSunMedium, SunMoon as LucideSunMoon, SunSnow as LucideSunSnow, Sunrise as LucideSunrise, Sunset as LucideSunset, Superscript as LucideSuperscript, SwissFranc as LucideSwissFranc, SwitchCamera as LucideSwitchCamera, Sword as LucideSword, Swords as LucideSwords, Syringe as LucideSyringe, Table as LucideTable, Table2 as LucideTable2, TableProperties as LucideTableProperties, Tablet as LucideTablet, Tablets as LucideTablets, Tag as LucideTag, Tags as LucideTags, Tally1 as LucideTally1, Tally2 as LucideTally2, Tally3 as LucideTally3, Tally4 as LucideTally4, Tally5 as LucideTally5, Target as LucideTarget, Tent as LucideTent, Terminal as LucideTerminal, TerminalSquare as LucideTerminalSquare, TestTube as LucideTestTube, TestTube2 as LucideTestTube2, TestTubes as LucideTestTubes, Text as LucideText, TextCursor as LucideTextCursor, TextCursorInput as LucideTextCursorInput, TextQuote as LucideTextQuote, TextSelect as LucideTextSelect, TextSelect as LucideTextSelection, Thermometer as LucideThermometer, ThermometerSnowflake as LucideThermometerSnowflake, ThermometerSun as LucideThermometerSun, ThumbsDown as LucideThumbsDown, ThumbsUp as LucideThumbsUp, Ticket as LucideTicket, Timer as LucideTimer, TimerOff as LucideTimerOff, TimerReset as LucideTimerReset, ToggleLeft as LucideToggleLeft, ToggleRight as LucideToggleRight, Tornado as LucideTornado, Touchpad as LucideTouchpad, TouchpadOff as LucideTouchpadOff, TowerControl as LucideTowerControl, ToyBrick as LucideToyBrick, Train as LucideTrain, Trash as LucideTrash, Trash2 as LucideTrash2, TreeDeciduous as LucideTreeDeciduous, TreePine as LucideTreePine, Trees as LucideTrees, Trello as LucideTrello, TrendingDown as LucideTrendingDown, TrendingUp as LucideTrendingUp, Triangle as LucideTriangle, Trophy as LucideTrophy, Truck as LucideTruck, Tv as LucideTv, Tv2 as LucideTv2, Twitch as LucideTwitch, Twitter as LucideTwitter, Type as LucideType, Umbrella as LucideUmbrella, Underline as LucideUnderline, Undo as LucideUndo, Undo2 as LucideUndo2, UndoDot as LucideUndoDot, UnfoldHorizontal as LucideUnfoldHorizontal, UnfoldVertical as LucideUnfoldVertical, Ungroup as LucideUngroup, Unlink as LucideUnlink, Unlink2 as LucideUnlink2, Unlock as LucideUnlock, Unplug as LucideUnplug, Upload as LucideUpload, UploadCloud as LucideUploadCloud, Usb as LucideUsb, User as LucideUser, User2 as LucideUser2, UserCheck as LucideUserCheck, UserCheck2 as LucideUserCheck2, UserCircle as LucideUserCircle, UserCircle2 as LucideUserCircle2, UserCog as LucideUserCog, UserCog2 as LucideUserCog2, UserMinus as LucideUserMinus, UserMinus2 as LucideUserMinus2, UserPlus as LucideUserPlus, UserPlus2 as LucideUserPlus2, UserSquare as LucideUserSquare, UserSquare2 as LucideUserSquare2, UserX as LucideUserX, UserX2 as LucideUserX2, Users as LucideUsers, Users2 as LucideUsers2, Utensils as LucideUtensils, UtensilsCrossed as LucideUtensilsCrossed, UtilityPole as LucideUtilityPole, Variable as LucideVariable, Vegan as LucideVegan, VenetianMask as LucideVenetianMask, BadgeCheck as LucideVerified, Vibrate as LucideVibrate, VibrateOff as LucideVibrateOff, Video as LucideVideo, VideoOff as LucideVideoOff, Videotape as LucideVideotape, View as LucideView, Voicemail as LucideVoicemail, Volume as LucideVolume, Volume1 as LucideVolume1, Volume2 as LucideVolume2, VolumeX as LucideVolumeX, Vote as LucideVote, Wallet as LucideWallet, Wallet2 as LucideWallet2, WalletCards as LucideWalletCards, Wallpaper as LucideWallpaper, Wand as LucideWand, Wand2 as LucideWand2, Warehouse as LucideWarehouse, Watch as LucideWatch, Waves as LucideWaves, Webcam as LucideWebcam, Webhook as LucideWebhook, Wheat as LucideWheat, WheatOff as LucideWheatOff, WholeWord as LucideWholeWord, Wifi as LucideWifi, WifiOff as LucideWifiOff, Wind as LucideWind, Wine as LucideWine, WineOff as LucideWineOff, Workflow as LucideWorkflow, WrapText as LucideWrapText, Wrench as LucideWrench, X as LucideX, XCircle as LucideXCircle, XOctagon as LucideXOctagon, XSquare as LucideXSquare, Youtube as LucideYoutube, Zap as LucideZap, ZapOff as LucideZapOff, ZoomIn as LucideZoomIn, ZoomOut as LucideZoomOut, Luggage, Luggage as LuggageIcon, Magnet, Magnet as MagnetIcon, Mail, MailCheck, MailCheck as MailCheckIcon, Mail as MailIcon, MailMinus, MailMinus as MailMinusIcon, MailOpen, MailOpen as MailOpenIcon, MailPlus, MailPlus as MailPlusIcon, MailQuestion, MailQuestion as MailQuestionIcon, MailSearch, MailSearch as MailSearchIcon, MailWarning, MailWarning as MailWarningIcon, MailX, MailX as MailXIcon, Mailbox, Mailbox as MailboxIcon, Mails, Mails as MailsIcon, Map, Map as MapIcon, MapPin, MapPin as MapPinIcon, MapPinOff, MapPinOff as MapPinOffIcon, Martini, Martini as MartiniIcon, Maximize, Maximize2, Maximize2 as Maximize2Icon, Maximize as MaximizeIcon, Medal, Medal as MedalIcon, Megaphone, Megaphone as MegaphoneIcon, MegaphoneOff, MegaphoneOff as MegaphoneOffIcon, Meh, Meh as MehIcon, MemoryStick, MemoryStick as MemoryStickIcon, Menu, Menu as MenuIcon, MenuSquare, MenuSquare as MenuSquareIcon, Merge, Merge as MergeIcon, MessageCircle, MessageCircle as MessageCircleIcon, MessageSquare, MessageSquareDashed, MessageSquareDashed as MessageSquareDashedIcon, MessageSquare as MessageSquareIcon, MessageSquarePlus, MessageSquarePlus as MessageSquarePlusIcon, MessagesSquare, MessagesSquare as MessagesSquareIcon, Mic, Mic2, Mic2 as Mic2Icon, Mic as MicIcon, MicOff, MicOff as MicOffIcon, Microscope, Microscope as MicroscopeIcon, Microwave, Microwave as MicrowaveIcon, Milestone, Milestone as MilestoneIcon, Milk, Milk as MilkIcon, MilkOff, MilkOff as MilkOffIcon, Minimize, Minimize2, Minimize2 as Minimize2Icon, Minimize as MinimizeIcon, Minus, MinusCircle, MinusCircle as MinusCircleIcon, Minus as MinusIcon, MinusSquare, MinusSquare as MinusSquareIcon, Monitor, MonitorCheck, MonitorCheck as MonitorCheckIcon, MonitorDot, MonitorDot as MonitorDotIcon, MonitorDown, MonitorDown as MonitorDownIcon, Monitor as MonitorIcon, MonitorOff, MonitorOff as MonitorOffIcon, MonitorPause, MonitorPause as MonitorPauseIcon, MonitorPlay, MonitorPlay as MonitorPlayIcon, MonitorSmartphone, MonitorSmartphone as MonitorSmartphoneIcon, MonitorSpeaker, MonitorSpeaker as MonitorSpeakerIcon, MonitorStop, MonitorStop as MonitorStopIcon, MonitorUp, MonitorUp as MonitorUpIcon, MonitorX, MonitorX as MonitorXIcon, Moon, Moon as MoonIcon, MoonStar, MoonStar as MoonStarIcon, MoreHorizontal, MoreHorizontal as MoreHorizontalIcon, MoreVertical, MoreVertical as MoreVerticalIcon, Mountain, Mountain as MountainIcon, MountainSnow, MountainSnow as MountainSnowIcon, Mouse, Mouse as MouseIcon, MousePointer, MousePointer2, MousePointer2 as MousePointer2Icon, MousePointerClick, MousePointerClick as MousePointerClickIcon, MousePointer as MousePointerIcon, Move, Move3d, Move3d as Move3dIcon, MoveDiagonal, MoveDiagonal2, MoveDiagonal2 as MoveDiagonal2Icon, MoveDiagonal as MoveDiagonalIcon, MoveDown, MoveDown as MoveDownIcon, MoveDownLeft, MoveDownLeft as MoveDownLeftIcon, MoveDownRight, MoveDownRight as MoveDownRightIcon, MoveHorizontal, MoveHorizontal as MoveHorizontalIcon, Move as MoveIcon, MoveLeft, MoveLeft as MoveLeftIcon, MoveRight, MoveRight as MoveRightIcon, MoveUp, MoveUp as MoveUpIcon, MoveUpLeft, MoveUpLeft as MoveUpLeftIcon, MoveUpRight, MoveUpRight as MoveUpRightIcon, MoveVertical, MoveVertical as MoveVerticalIcon, Music, Music2, Music2 as Music2Icon, Music3, Music3 as Music3Icon, Music4, Music4 as Music4Icon, Music as MusicIcon, Navigation, Navigation2, Navigation2 as Navigation2Icon, Navigation2Off, Navigation2Off as Navigation2OffIcon, Navigation as NavigationIcon, NavigationOff, NavigationOff as NavigationOffIcon, Network, Network as NetworkIcon, Newspaper, Newspaper as NewspaperIcon, Nfc, Nfc as NfcIcon, Nut, Nut as NutIcon, NutOff, NutOff as NutOffIcon, Octagon, Octagon as OctagonIcon, Option, Option as OptionIcon, Orbit, Orbit as OrbitIcon, Outdent, Outdent as OutdentIcon, Package, Package2, Package2 as Package2Icon, PackageCheck, PackageCheck as PackageCheckIcon, Package as PackageIcon, PackageMinus, PackageMinus as PackageMinusIcon, PackageOpen, PackageOpen as PackageOpenIcon, PackagePlus, PackagePlus as PackagePlusIcon, PackageSearch, PackageSearch as PackageSearchIcon, PackageX, PackageX as PackageXIcon, PaintBucket, PaintBucket as PaintBucketIcon, Paintbrush, Paintbrush2, Paintbrush2 as Paintbrush2Icon, Paintbrush as PaintbrushIcon, Palette, Palette as PaletteIcon, Palmtree, Palmtree as PalmtreeIcon, PanelBottom, PanelBottomClose, PanelBottomClose as PanelBottomCloseIcon, PanelBottom as PanelBottomIcon, PanelBottomInactive, PanelBottomInactive as PanelBottomInactiveIcon, PanelBottomOpen, PanelBottomOpen as PanelBottomOpenIcon, PanelLeft, PanelLeftClose, PanelLeftClose as PanelLeftCloseIcon, PanelLeft as PanelLeftIcon, PanelLeftInactive, PanelLeftInactive as PanelLeftInactiveIcon, PanelLeftOpen, PanelLeftOpen as PanelLeftOpenIcon, PanelRight, PanelRightClose, PanelRightClose as PanelRightCloseIcon, PanelRight as PanelRightIcon, PanelRightInactive, PanelRightInactive as PanelRightInactiveIcon, PanelRightOpen, PanelRightOpen as PanelRightOpenIcon, PanelTop, PanelTopClose, PanelTopClose as PanelTopCloseIcon, PanelTop as PanelTopIcon, PanelTopInactive, PanelTopInactive as PanelTopInactiveIcon, PanelTopOpen, PanelTopOpen as PanelTopOpenIcon, Paperclip, Paperclip as PaperclipIcon, Parentheses, Parentheses as ParenthesesIcon, ParkingCircle, ParkingCircle as ParkingCircleIcon, ParkingCircleOff, ParkingCircleOff as ParkingCircleOffIcon, ParkingSquare, ParkingSquare as ParkingSquareIcon, ParkingSquareOff, ParkingSquareOff as ParkingSquareOffIcon, PartyPopper, PartyPopper as PartyPopperIcon, Pause, PauseCircle, PauseCircle as PauseCircleIcon, Pause as PauseIcon, PauseOctagon, PauseOctagon as PauseOctagonIcon, PcCase, PcCase as PcCaseIcon, Edit2 as Pen, Edit as PenBox, Edit as PenBoxIcon, Edit2 as PenIcon, Edit3 as PenLine, Edit3 as PenLineIcon, PenTool, PenTool as PenToolIcon, Pencil, Pencil as PencilIcon, Percent, Percent as PercentIcon, PersonStanding, PersonStanding as PersonStandingIcon, Phone, PhoneCall, PhoneCall as PhoneCallIcon, PhoneForwarded, PhoneForwarded as PhoneForwardedIcon, Phone as PhoneIcon, PhoneIncoming, PhoneIncoming as PhoneIncomingIcon, PhoneMissed, PhoneMissed as PhoneMissedIcon, PhoneOff, PhoneOff as PhoneOffIcon, PhoneOutgoing, PhoneOutgoing as PhoneOutgoingIcon, Pi, Pi as PiIcon, PiSquare, PiSquare as PiSquareIcon, PictureInPicture, PictureInPicture2, PictureInPicture2 as PictureInPicture2Icon, PictureInPicture as PictureInPictureIcon, PieChart, PieChart as PieChartIcon, PiggyBank, PiggyBank as PiggyBankIcon, Pilcrow, Pilcrow as PilcrowIcon, PilcrowSquare, PilcrowSquare as PilcrowSquareIcon, Pill, Pill as PillIcon, Pin, Pin as PinIcon, PinOff, PinOff as PinOffIcon, Pipette, Pipette as PipetteIcon, Pizza, Pizza as PizzaIcon, Plane, Plane as PlaneIcon, PlaneLanding, PlaneLanding as PlaneLandingIcon, PlaneTakeoff, PlaneTakeoff as PlaneTakeoffIcon, Play, PlayCircle, PlayCircle as PlayCircleIcon, Play as PlayIcon, PlaySquare, PlaySquare as PlaySquareIcon, Plug, Plug2, Plug2 as Plug2Icon, Plug as PlugIcon, PlugZap, PlugZap2, PlugZap2 as PlugZap2Icon, PlugZap as PlugZapIcon, Plus, PlusCircle, PlusCircle as PlusCircleIcon, Plus as PlusIcon, PlusSquare, PlusSquare as PlusSquareIcon, Pocket, Pocket as PocketIcon, PocketKnife, PocketKnife as PocketKnifeIcon, Podcast, Podcast as PodcastIcon, Pointer, Pointer as PointerIcon, Popcorn, Popcorn as PopcornIcon, Popsicle, Popsicle as PopsicleIcon, PoundSterling, PoundSterling as PoundSterlingIcon, Power, Power as PowerIcon, PowerOff, PowerOff as PowerOffIcon, Presentation, Presentation as PresentationIcon, Printer, Printer as PrinterIcon, Projector, Projector as ProjectorIcon, Puzzle, Puzzle as PuzzleIcon, QrCode, QrCode as QrCodeIcon, Quote, Quote as QuoteIcon, Radar, Radar as RadarIcon, Radiation, Radiation as RadiationIcon, Radio, Radio as RadioIcon, RadioReceiver, RadioReceiver as RadioReceiverIcon, RadioTower, RadioTower as RadioTowerIcon, Rainbow, Rainbow as RainbowIcon, Rat, Rat as RatIcon, Receipt, Receipt as ReceiptIcon, RectangleHorizontal, RectangleHorizontal as RectangleHorizontalIcon, RectangleVertical, RectangleVertical as RectangleVerticalIcon, Recycle, Recycle as RecycleIcon, Redo, Redo2, Redo2 as Redo2Icon, RedoDot, RedoDot as RedoDotIcon, Redo as RedoIcon, RefreshCcw, RefreshCcwDot, RefreshCcwDot as RefreshCcwDotIcon, RefreshCcw as RefreshCcwIcon, RefreshCw, RefreshCw as RefreshCwIcon, RefreshCwOff, RefreshCwOff as RefreshCwOffIcon, Refrigerator, Refrigerator as RefrigeratorIcon, Regex, Regex as RegexIcon, RemoveFormatting, RemoveFormatting as RemoveFormattingIcon, Repeat, Repeat1, Repeat1 as Repeat1Icon, Repeat2, Repeat2 as Repeat2Icon, Repeat as RepeatIcon, Replace, ReplaceAll, ReplaceAll as ReplaceAllIcon, Replace as ReplaceIcon, Reply, ReplyAll, ReplyAll as ReplyAllIcon, Reply as ReplyIcon, Rewind, Rewind as RewindIcon, Rocket, Rocket as RocketIcon, RockingChair, RockingChair as RockingChairIcon, RollerCoaster, RollerCoaster as RollerCoasterIcon, Rotate3d, Rotate3d as Rotate3dIcon, RotateCcw, RotateCcw as RotateCcwIcon, RotateCw, RotateCw as RotateCwIcon, Router, Router as RouterIcon, Rows, Rows as RowsIcon, Rss, Rss as RssIcon, Ruler, Ruler as RulerIcon, RussianRuble, RussianRuble as RussianRubleIcon, Sailboat, Sailboat as SailboatIcon, Salad, Salad as SaladIcon, Sandwich, Sandwich as SandwichIcon, Satellite, SatelliteDish, SatelliteDish as SatelliteDishIcon, Satellite as SatelliteIcon, Save, SaveAll, SaveAll as SaveAllIcon, Save as SaveIcon, Scale, Scale3d, Scale3d as Scale3dIcon, Scale as ScaleIcon, Scaling, Scaling as ScalingIcon, Scan, ScanFace, ScanFace as ScanFaceIcon, Scan as ScanIcon, ScanLine, ScanLine as ScanLineIcon, ScatterChart, ScatterChart as ScatterChartIcon, School, School2, School2 as School2Icon, School as SchoolIcon, Scissors, Scissors as ScissorsIcon, ScreenShare, ScreenShare as ScreenShareIcon, ScreenShareOff, ScreenShareOff as ScreenShareOffIcon, Scroll, Scroll as ScrollIcon, ScrollText, ScrollText as ScrollTextIcon, Search, SearchCheck, SearchCheck as SearchCheckIcon, SearchCode, SearchCode as SearchCodeIcon, Search as SearchIcon, SearchSlash, SearchSlash as SearchSlashIcon, SearchX, SearchX as SearchXIcon, Send, Send as SendIcon, SeparatorHorizontal, SeparatorHorizontal as SeparatorHorizontalIcon, SeparatorVertical, SeparatorVertical as SeparatorVerticalIcon, Server, ServerCog, ServerCog as ServerCogIcon, ServerCrash, ServerCrash as ServerCrashIcon, Server as ServerIcon, ServerOff, ServerOff as ServerOffIcon, Settings, Settings2, Settings2 as Settings2Icon, Settings as SettingsIcon, Shapes, Shapes as ShapesIcon, Share, Share2, Share2 as Share2Icon, Share as ShareIcon, Sheet, Sheet as SheetIcon, Shield, ShieldAlert, ShieldAlert as ShieldAlertIcon, ShieldCheck, ShieldCheck as ShieldCheckIcon, ShieldClose, ShieldClose as ShieldCloseIcon, Shield as ShieldIcon, ShieldOff, ShieldOff as ShieldOffIcon, ShieldQuestion, ShieldQuestion as ShieldQuestionIcon, Ship, Ship as ShipIcon, Shirt, Shirt as ShirtIcon, ShoppingBag, ShoppingBag as ShoppingBagIcon, ShoppingCart, ShoppingCart as ShoppingCartIcon, Shovel, Shovel as ShovelIcon, ShowerHead, ShowerHead as ShowerHeadIcon, Shrink, Shrink as ShrinkIcon, Shrub, Shrub as ShrubIcon, Shuffle, Shuffle as ShuffleIcon, PanelLeft as Sidebar, PanelLeftClose as SidebarClose, PanelLeftClose as SidebarCloseIcon, PanelLeft as SidebarIcon, PanelLeftOpen as SidebarOpen, PanelLeftOpen as SidebarOpenIcon, Sigma, Sigma as SigmaIcon, SigmaSquare, SigmaSquare as SigmaSquareIcon, Signal, SignalHigh, SignalHigh as SignalHighIcon, Signal as SignalIcon, SignalLow, SignalLow as SignalLowIcon, SignalMedium, SignalMedium as SignalMediumIcon, SignalZero, SignalZero as SignalZeroIcon, Siren, Siren as SirenIcon, SkipBack, SkipBack as SkipBackIcon, SkipForward, SkipForward as SkipForwardIcon, Skull, Skull as SkullIcon, Slack, Slack as SlackIcon, Ban as Slash, Ban as SlashIcon, Slice, Slice as SliceIcon, Sliders, SlidersHorizontal, SlidersHorizontal as SlidersHorizontalIcon, Sliders as SlidersIcon, Smartphone, SmartphoneCharging, SmartphoneCharging as SmartphoneChargingIcon, Smartphone as SmartphoneIcon, SmartphoneNfc, SmartphoneNfc as SmartphoneNfcIcon, Smile, Smile as SmileIcon, SmilePlus, SmilePlus as SmilePlusIcon, Snowflake, Snowflake as SnowflakeIcon, Sofa, Sofa as SofaIcon, ArrowUpNarrowWide as SortAsc, ArrowUpNarrowWide as SortAscIcon, ArrowDownWideNarrow as SortDesc, ArrowDownWideNarrow as SortDescIcon, Soup, Soup as SoupIcon, Space, Space as SpaceIcon, Spade, Spade as SpadeIcon, Sparkle, Sparkle as SparkleIcon, Sparkles, Sparkles as SparklesIcon, Speaker, Speaker as SpeakerIcon, SpellCheck, SpellCheck2, SpellCheck2 as SpellCheck2Icon, SpellCheck as SpellCheckIcon, Spline, Spline as SplineIcon, Split, Split as SplitIcon, SplitSquareHorizontal, SplitSquareHorizontal as SplitSquareHorizontalIcon, SplitSquareVertical, SplitSquareVertical as SplitSquareVerticalIcon, SprayCan, SprayCan as SprayCanIcon, Sprout, Sprout as SproutIcon, Square, SquareAsterisk, SquareAsterisk as SquareAsteriskIcon, SquareCode, SquareCode as SquareCodeIcon, SquareDashedBottom, SquareDashedBottomCode, SquareDashedBottomCode as SquareDashedBottomCodeIcon, SquareDashedBottom as SquareDashedBottomIcon, SquareDot, SquareDot as SquareDotIcon, SquareEqual, SquareEqual as SquareEqualIcon, GanttChartSquare as SquareGantt, GanttChartSquare as SquareGanttIcon, Square as SquareIcon, KanbanSquare as SquareKanban, KanbanSquareDashed as SquareKanbanDashed, KanbanSquareDashed as SquareKanbanDashedIcon, KanbanSquare as SquareKanbanIcon, SquareSlash, SquareSlash as SquareSlashIcon, SquareStack, SquareStack as SquareStackIcon, Squirrel, Squirrel as SquirrelIcon, Stamp, Stamp as StampIcon, Star, StarHalf, StarHalf as StarHalfIcon, Star as StarIcon, StarOff, StarOff as StarOffIcon, Sparkles as Stars, Sparkles as StarsIcon, StepBack, StepBack as StepBackIcon, StepForward, StepForward as StepForwardIcon, Stethoscope, Stethoscope as StethoscopeIcon, Sticker, Sticker as StickerIcon, StickyNote, StickyNote as StickyNoteIcon, StopCircle, StopCircle as StopCircleIcon, Store, Store as StoreIcon, StretchHorizontal, StretchHorizontal as StretchHorizontalIcon, StretchVertical, StretchVertical as StretchVerticalIcon, Strikethrough, Strikethrough as StrikethroughIcon, Subscript, Subscript as SubscriptIcon, Subtitles, Subtitles as SubtitlesIcon, Sun, SunDim, SunDim as SunDimIcon, Sun as SunIcon, SunMedium, SunMedium as SunMediumIcon, SunMoon, SunMoon as SunMoonIcon, SunSnow, SunSnow as SunSnowIcon, Sunrise, Sunrise as SunriseIcon, Sunset, Sunset as SunsetIcon, Superscript, Superscript as SuperscriptIcon, SwissFranc, SwissFranc as SwissFrancIcon, SwitchCamera, SwitchCamera as SwitchCameraIcon, Sword, Sword as SwordIcon, Swords, Swords as SwordsIcon, Syringe, Syringe as SyringeIcon, Table, Table2, Table2 as Table2Icon, Table as TableIcon, TableProperties, TableProperties as TablePropertiesIcon, Tablet, Tablet as TabletIcon, Tablets, Tablets as TabletsIcon, Tag, Tag as TagIcon, Tags, Tags as TagsIcon, Tally1, Tally1 as Tally1Icon, Tally2, Tally2 as Tally2Icon, Tally3, Tally3 as Tally3Icon, Tally4, Tally4 as Tally4Icon, Tally5, Tally5 as Tally5Icon, Target, Target as TargetIcon, Tent, Tent as TentIcon, Terminal, Terminal as TerminalIcon, TerminalSquare, TerminalSquare as TerminalSquareIcon, TestTube, TestTube2, TestTube2 as TestTube2Icon, TestTube as TestTubeIcon, TestTubes, TestTubes as TestTubesIcon, Text, TextCursor, TextCursor as TextCursorIcon, TextCursorInput, TextCursorInput as TextCursorInputIcon, Text as TextIcon, TextQuote, TextQuote as TextQuoteIcon, TextSelect, TextSelect as TextSelectIcon, TextSelect as TextSelection, TextSelect as TextSelectionIcon, Thermometer, Thermometer as ThermometerIcon, ThermometerSnowflake, ThermometerSnowflake as ThermometerSnowflakeIcon, ThermometerSun, ThermometerSun as ThermometerSunIcon, ThumbsDown, ThumbsDown as ThumbsDownIcon, ThumbsUp, ThumbsUp as ThumbsUpIcon, Ticket, Ticket as TicketIcon, Timer, Timer as TimerIcon, TimerOff, TimerOff as TimerOffIcon, TimerReset, TimerReset as TimerResetIcon, ToggleLeft, ToggleLeft as ToggleLeftIcon, ToggleRight, ToggleRight as ToggleRightIcon, Tornado, Tornado as TornadoIcon, Touchpad, Touchpad as TouchpadIcon, TouchpadOff, TouchpadOff as TouchpadOffIcon, TowerControl, TowerControl as TowerControlIcon, ToyBrick, ToyBrick as ToyBrickIcon, Train, Train as TrainIcon, Trash, Trash2, Trash2 as Trash2Icon, Trash as TrashIcon, TreeDeciduous, TreeDeciduous as TreeDeciduousIcon, TreePine, TreePine as TreePineIcon, Trees, Trees as TreesIcon, Trello, Trello as TrelloIcon, TrendingDown, TrendingDown as TrendingDownIcon, TrendingUp, TrendingUp as TrendingUpIcon, Triangle, Triangle as TriangleIcon, Trophy, Trophy as TrophyIcon, Truck, Truck as TruckIcon, Tv, Tv2, Tv2 as Tv2Icon, Tv as TvIcon, Twitch, Twitch as TwitchIcon, Twitter, Twitter as TwitterIcon, Type, Type as TypeIcon, Umbrella, Umbrella as UmbrellaIcon, Underline, Underline as UnderlineIcon, Undo, Undo2, Undo2 as Undo2Icon, UndoDot, UndoDot as UndoDotIcon, Undo as UndoIcon, UnfoldHorizontal, UnfoldHorizontal as UnfoldHorizontalIcon, UnfoldVertical, UnfoldVertical as UnfoldVerticalIcon, Ungroup, Ungroup as UngroupIcon, Unlink, Unlink2, Unlink2 as Unlink2Icon, Unlink as UnlinkIcon, Unlock, Unlock as UnlockIcon, Unplug, Unplug as UnplugIcon, Upload, UploadCloud, UploadCloud as UploadCloudIcon, Upload as UploadIcon, Usb, Usb as UsbIcon, User, User2, User2 as User2Icon, UserCheck, UserCheck2, UserCheck2 as UserCheck2Icon, UserCheck as UserCheckIcon, UserCircle, UserCircle2, UserCircle2 as UserCircle2Icon, UserCircle as UserCircleIcon, UserCog, UserCog2, UserCog2 as UserCog2Icon, UserCog as UserCogIcon, User as UserIcon, UserMinus, UserMinus2, UserMinus2 as UserMinus2Icon, UserMinus as UserMinusIcon, UserPlus, UserPlus2, UserPlus2 as UserPlus2Icon, UserPlus as UserPlusIcon, UserSquare, UserSquare2, UserSquare2 as UserSquare2Icon, UserSquare as UserSquareIcon, UserX, UserX2, UserX2 as UserX2Icon, UserX as UserXIcon, Users, Users2, Users2 as Users2Icon, Users as UsersIcon, Utensils, UtensilsCrossed, UtensilsCrossed as UtensilsCrossedIcon, Utensils as UtensilsIcon, UtilityPole, UtilityPole as UtilityPoleIcon, Variable, Variable as VariableIcon, Vegan, Vegan as VeganIcon, VenetianMask, VenetianMask as VenetianMaskIcon, BadgeCheck as Verified, BadgeCheck as VerifiedIcon, Vibrate, Vibrate as VibrateIcon, VibrateOff, VibrateOff as VibrateOffIcon, Video, Video as VideoIcon, VideoOff, VideoOff as VideoOffIcon, Videotape, Videotape as VideotapeIcon, View, View as ViewIcon, Voicemail, Voicemail as VoicemailIcon, Volume, Volume1, Volume1 as Volume1Icon, Volume2, Volume2 as Volume2Icon, Volume as VolumeIcon, VolumeX, VolumeX as VolumeXIcon, Vote, Vote as VoteIcon, Wallet, Wallet2, Wallet2 as Wallet2Icon, WalletCards, WalletCards as WalletCardsIcon, Wallet as WalletIcon, Wallpaper, Wallpaper as WallpaperIcon, Wand, Wand2, Wand2 as Wand2Icon, Wand as WandIcon, Warehouse, Warehouse as WarehouseIcon, Watch, Watch as WatchIcon, Waves, Waves as WavesIcon, Webcam, Webcam as WebcamIcon, Webhook, Webhook as WebhookIcon, Wheat, Wheat as WheatIcon, WheatOff, WheatOff as WheatOffIcon, WholeWord, WholeWord as WholeWordIcon, Wifi, Wifi as WifiIcon, WifiOff, WifiOff as WifiOffIcon, Wind, Wind as WindIcon, Wine, Wine as WineIcon, WineOff, WineOff as WineOffIcon, Workflow, Workflow as WorkflowIcon, WrapText, WrapText as WrapTextIcon, Wrench, Wrench as WrenchIcon, X, XCircle, XCircle as XCircleIcon, X as XIcon, XOctagon, XOctagon as XOctagonIcon, XSquare, XSquare as XSquareIcon, Youtube, Youtube as YoutubeIcon, Zap, Zap as ZapIcon, ZapOff, ZapOff as ZapOffIcon, ZoomIn, ZoomIn as ZoomInIcon, ZoomOut, ZoomOut as ZoomOutIcon, createLucideIcon, dynamicIconImports, index as icons };
-+export { Accessibility,Activity,ActivitySquare,AirVent,Airplay,AlarmCheck,AlarmClock,AlarmClockOff,AlarmMinus,AlarmPlus,Album,AlertCircle,AlertOctagon,AlertTriangle,AlignCenter, AlignCenterHorizontal,AlignCenterVertical,AlignEndHorizontal,AlignEndVertical,AlignHorizontalDistributeCenter,AlignHorizontalDistributeEnd,AlignHorizontalDistributeStart,AlignHorizontalJustifyCenter,AlignHorizontalJustifyEnd,AlignHorizontalJustifyStart,AlignHorizontalSpaceAround,AlignHorizontalSpaceBetween,AlignJustify,AlignLeft,AlignRight,AlignStartHorizontal,AlignStartVertical,AlignVerticalDistributeCenter,AlignVerticalDistributeEnd,AlignVerticalDistributeStart,AlignVerticalJustifyCenter,AlignVerticalJustifyEnd,AlignVerticalJustifyStart,AlignVerticalSpaceAround,AlignVerticalSpaceBetween,Ampersand,Ampersands,Anchor,Angry,Annoyed,Aperture,AppWindow,Apple,Archive,ArchiveRestore,AreaChart,Armchair,ArrowBigDown, ArrowBigDownDash,ArrowBigLeft, ArrowBigLeftDash,ArrowBigRight, ArrowBigRightDash,ArrowBigUp, ArrowBigUpDash,ArrowDown, ArrowDown01,ArrowDown10,ArrowDownAZ,ArrowDownCircle,ArrowDownFromLine,ArrowDownLeft, ArrowDownLeftFromCircle,ArrowDownLeftSquare,ArrowDownNarrowWide,ArrowDownRight, ArrowDownRightFromCircle,ArrowDownRightSquare,ArrowDownSquare,ArrowDownToDot,ArrowDownToLine,ArrowDownUp,ArrowDownWideNarrow,ArrowDownZA,ArrowLeft, ArrowLeftCircle,ArrowLeftFromLine,ArrowLeftRight,ArrowLeftSquare,ArrowLeftToLine,ArrowRight, ArrowRightCircle,ArrowRightFromLine,ArrowRightLeft,ArrowRightSquare,ArrowRightToLine,ArrowUp, ArrowUp01,ArrowUp10,ArrowUpAZ,ArrowUpCircle,ArrowUpDown,ArrowUpFromDot,ArrowUpFromLine,ArrowUpLeft, ArrowUpLeftFromCircle,ArrowUpLeftSquare,ArrowUpNarrowWide,ArrowUpRight, ArrowUpRightFromCircle,ArrowUpRightSquare,ArrowUpSquare,ArrowUpToLine,ArrowUpWideNarrow,ArrowUpZA,ArrowsUpFromLine,Asterisk,AtSign,Atom,Award,Axe,Axis3d,Baby,Backpack,Badge, BadgeAlert,BadgeCheck,BadgeDollarSign,BadgeHelp,BadgeInfo,BadgeMinus,BadgePercent,BadgePlus,BadgeX,BaggageClaim,Ban,Banana,Banknote,BarChart, BarChart2,BarChart3,BarChart4,BarChartBig,BarChartHorizontal, BarChartHorizontalBig,Baseline,Bath,Battery, BatteryCharging,BatteryFull,BatteryLow,BatteryMedium,BatteryWarning,Beaker,Bean,BeanOff,Bed, BedDouble,BedSingle,Beef,Beer,Bell, BellDot,BellMinus,BellOff,BellPlus,BellRing,Bike,Binary,Biohazard,Bird,Bitcoin,Blinds,Bluetooth, BluetoothConnected,BluetoothOff,BluetoothSearching,Bold,Bomb,Bone,Book, BookCopy,BookDown,BookKey,BookLock,BookMarked,BookMinus,BookOpen, BookOpenCheck,BookPlus,BookTemplate,BookUp, BookUp2,BookX,Bookmark,BookmarkMinus,BookmarkPlus,Bot,Box,BoxSelect,Boxes,Braces,Brackets,Brain, BrainCircuit,BrainCog,Briefcase,Brush,Bug,Building, Building2,Bus,Cake,CakeSlice,Calculator,Calendar, CalendarCheck, CalendarCheck2,CalendarClock,CalendarDays,CalendarHeart,CalendarMinus,CalendarOff,CalendarPlus,CalendarRange,CalendarSearch,CalendarX, CalendarX2,Camera,CameraOff,CandlestickChart,Candy, CandyCane,CandyOff,Car,Carrot,CaseLower,CaseSensitive,CaseUpper,CassetteTape,Cast,Castle,Cat,Check, CheckCheck,CheckCircle, CheckCircle2,CheckSquare,ChefHat,Cherry,ChevronDown, ChevronDownCircle,ChevronDownSquare,ChevronFirst,ChevronLast,ChevronLeft, ChevronLeftCircle,ChevronLeftSquare,ChevronRight, ChevronRightCircle,ChevronRightSquare,ChevronUp, ChevronUpCircle,ChevronUpSquare,ChevronsDown,ChevronsDownUp,ChevronsLeft,ChevronsLeftRight,ChevronsRight,ChevronsRightLeft,ChevronsUp, ChevronsUpDown,Chrome,Church,Cigarette,CigaretteOff,Circle, CircleDashed,CircleDollarSign,CircleDot, CircleDotDashed,CircleEllipsis,CircleEqual,CircleOff,CircleSlash, CircleSlash2,CircuitBoard,Citrus,Clapperboard,Clipboard, ClipboardCheck,ClipboardCopy,ClipboardEdit,ClipboardList,ClipboardPaste,ClipboardSignature,ClipboardType,ClipboardX,Clock, Clock1, Clock10,Clock11,Clock12,Clock2,Clock3,Clock4,Clock5,Clock6,Clock7,Clock8,Clock9,Cloud, CloudCog,CloudDrizzle,CloudFog,CloudHail,CloudLightning,CloudMoon,CloudMoonRain,CloudOff,CloudRain,CloudRainWind,CloudSnow,CloudSun,CloudSunRain,Cloudy,Clover,Club,Code, Code2,Codepen,Codesandbox,Coffee,Cog,Coins,Columns,Combine,Command,Compass,Component,ConciergeBell,Construction,Contact, Contact2,Container,Contrast,Cookie,Copy, CopyCheck,CopyMinus,CopyPlus,CopySlash,CopyX,Copyleft,Copyright,CornerDownLeft,CornerDownRight,CornerLeftDown,CornerLeftUp,CornerRightDown,CornerRightUp,CornerUpLeft,CornerUpRight,Cpu,CreativeCommons,CreditCard,Croissant,Crop,Cross,Crosshair,Crown,CupSoda,Currency,Database, DatabaseBackup,Delete,Dessert,Diamond,Dice1,Dice2,Dice3,Dice4,Dice5,Dice6,Dices,Diff,Disc, Disc2,Disc3,Divide, DivideCircle,DivideSquare,Dna,DnaOff,Dog,DollarSign,Donut,DoorClosed,DoorOpen,Dot,Download, DownloadCloud,Dribbble,Droplet,Droplets,Drumstick,Dumbbell,Ear,EarOff,Edit, Edit2,Edit3,Egg, EggFried,EggOff,Equal,EqualNot,Eraser,Euro,Expand,ExternalLink,Eye,EyeOff,Facebook,Factory,Fan,FastForward,Feather,FerrisWheel,Figma,File, FileArchive,FileAudio, FileAudio2,FileAxis3d,FileBadge, FileBadge2,FileBarChart, FileBarChart2,FileBox,FileCheck, FileCheck2,FileClock,FileCode, FileCode2,FileCog, FileCog2,FileDiff,FileDigit,FileDown,FileEdit,FileHeart,FileImage,FileInput,FileJson, FileJson2,FileKey, FileKey2,FileLineChart,FileLock, FileLock2,FileMinus, FileMinus2,FileOutput,FilePieChart,FilePlus, FilePlus2,FileQuestion,FileScan,FileSearch, FileSearch2,FileSignature,FileSpreadsheet,FileStack,FileSymlink,FileTerminal,FileText,FileType, FileType2,FileUp,FileVideo, FileVideo2,FileVolume, FileVolume2,FileWarning,FileX, FileX2,Files,Film,Filter,FilterX,Fingerprint,Fish,FishOff,Flag,FlagOff,FlagTriangleLeft,FlagTriangleRight,Flame,Flashlight,FlashlightOff,FlaskConical,FlaskConicalOff,FlaskRound,FlipHorizontal, FlipHorizontal2,FlipVertical, FlipVertical2,Flower, Flower2,Focus,FoldHorizontal,FoldVertical,Folder, FolderArchive,FolderCheck,FolderClock,FolderClosed,FolderCog, FolderCog2,FolderDot,FolderDown,FolderEdit,FolderGit, FolderGit2,FolderHeart,FolderInput,FolderKanban,FolderKey,FolderLock,FolderMinus,FolderOpen, FolderOpenDot,FolderOutput,FolderPlus,FolderRoot,FolderSearch, FolderSearch2,FolderSymlink,FolderSync,FolderTree,FolderUp,FolderX,Folders,Footprints,Forklift,FormInput,Forward,Frame,Framer,Frown,Fuel,FunctionSquare,GalleryHorizontal, GalleryHorizontalEnd,GalleryThumbnails,GalleryVertical, GalleryVerticalEnd,Gamepad, Gamepad2,GanttChart,GanttChartSquare,Gauge, GaugeCircle,Gavel,Gem,Ghost,Gift,GitBranch,GitBranchPlus,GitCommit,GitCompare,GitFork,GitMerge,GitPullRequest, GitPullRequestClosed,GitPullRequestDraft,Github,Gitlab,GlassWater,Glasses,Globe, Globe2,Goal,Grab,GraduationCap,Grape,Grid,Grip, GripHorizontal,GripVertical,Group,Hammer,Hand,HandMetal,HardDrive,HardHat,Hash,Haze,Heading, Heading1,Heading2,Heading3,Heading4,Heading5,Heading6,Headphones,Heart, HeartCrack,HeartHandshake,HeartOff,HeartPulse,HelpCircle,HelpingHand,Hexagon,Highlighter,History,Home,Hop,HopOff,Hotel,Hourglass,IceCream, IceCream2,IconNode, Image,ImageMinus,ImageOff,ImagePlus,Import,Inbox,Indent,IndianRupee,Infinity,Info,Inspect,Instagram,Italic,IterationCcw,IterationCw,JapaneseYen,Joystick,Kanban,KanbanSquare, KanbanSquareDashed,Key,KeyRound,KeySquare,Keyboard,Lamp, LampCeiling,LampDesk,LampFloor,LampWallDown,LampWallUp,Landmark,Languages,Laptop, Laptop2,Lasso,LassoSelect,Laugh,Layers,Layout, LayoutDashboard,LayoutGrid,LayoutList,LayoutPanelLeft,LayoutPanelTop,LayoutTemplate,Leaf,LeafyGreen,Library,LifeBuoy,Ligature,Lightbulb,LightbulbOff,LineChart,Link, Link2,Link2Off,Linkedin,List, ListChecks,ListEnd,ListFilter,ListMinus,ListMusic,ListOrdered,ListPlus,ListRestart,ListStart,ListTodo,ListTree,ListVideo,ListX,Loader, Loader2,Locate, LocateFixed,LocateOff,Lock,LogIn,LogOut,Lollipop,LucideIcon,LucideProps,Luggage,Magnet,Mail, MailCheck,MailMinus,MailOpen,MailPlus,MailQuestion,MailSearch,MailWarning,MailX,Mailbox,Mails,Map,MapPin,MapPinOff,Martini,Maximize, Maximize2,Medal,Megaphone,MegaphoneOff,Meh,MemoryStick,Menu,MenuSquare,Merge,MessageCircle,MessageSquare, MessageSquareDashed,MessageSquarePlus,MessagesSquare,Mic, Mic2,MicOff,Microscope,Microwave,Milestone,Milk,MilkOff,Minimize, Minimize2,Minus, MinusCircle,MinusSquare,Monitor, MonitorCheck,MonitorDot,MonitorDown,MonitorOff,MonitorPause,MonitorPlay,MonitorSmartphone,MonitorSpeaker,MonitorStop,MonitorUp,MonitorX,Moon,MoonStar,MoreHorizontal,MoreVertical,Mountain,MountainSnow,Mouse,MousePointer, MousePointer2,MousePointerClick,Move, Move3d,MoveDiagonal, MoveDiagonal2,MoveDown,MoveDownLeft,MoveDownRight,MoveHorizontal,MoveLeft,MoveRight,MoveUp,MoveUpLeft,MoveUpRight,MoveVertical,Music, Music2,Music3,Music4,Navigation, Navigation2,Navigation2Off,NavigationOff,Network,Newspaper,Nfc,Nut,NutOff,Octagon,Option,Orbit,Outdent,Package, Package2,PackageCheck,PackageMinus,PackageOpen,PackagePlus,PackageSearch,PackageX,PaintBucket,Paintbrush, Paintbrush2,Palette,Palmtree,PanelBottom, PanelBottomClose,PanelBottomInactive,PanelBottomOpen,PanelLeft, PanelLeftClose,PanelLeftInactive,PanelLeftOpen,PanelRight, PanelRightClose,PanelRightInactive,PanelRightOpen,PanelTop, PanelTopClose,PanelTopInactive,PanelTopOpen,Paperclip,Parentheses,ParkingCircle,ParkingCircleOff,ParkingSquare,ParkingSquareOff,PartyPopper,Pause, PauseCircle,PauseOctagon,PcCase,PenTool,Pencil,Percent,PersonStanding,Phone, PhoneCall,PhoneForwarded,PhoneIncoming,PhoneMissed,PhoneOff,PhoneOutgoing,Pi,PiSquare,PictureInPicture, PictureInPicture2,PieChart,PiggyBank,Pilcrow,PilcrowSquare,Pill,Pin,PinOff,Pipette,Pizza,Plane,PlaneLanding,PlaneTakeoff,Play, PlayCircle,PlaySquare,Plug, Plug2,PlugZap, PlugZap2,Plus, PlusCircle,PlusSquare,Pocket,PocketKnife,Podcast,Pointer,Popcorn,Popsicle,PoundSterling,Power,PowerOff,Presentation,Printer,Projector,Puzzle,QrCode,Quote,Radar,Radiation,Radio,RadioReceiver,RadioTower,Rainbow,Rat,Receipt,RectangleHorizontal,RectangleVertical,Recycle,Redo, Redo2,RedoDot,RefreshCcw, RefreshCcwDot,RefreshCw,RefreshCwOff,Refrigerator,Regex,RemoveFormatting,Repeat, Repeat1,Repeat2,Replace, ReplaceAll,Reply, ReplyAll,Rewind,Rocket,RockingChair,RollerCoaster,Rotate3d,RotateCcw,RotateCw,Router,Rows,Rss,Ruler,RussianRuble,Sailboat,Salad,Sandwich,Satellite, SatelliteDish,Save, SaveAll,Scale, Scale3d,Scaling,Scan, ScanFace,ScanLine,ScatterChart,School, School2,Scissors,ScreenShare,ScreenShareOff,Scroll,ScrollText,Search, SearchCheck,SearchCode,SearchSlash,SearchX,Send,SeparatorHorizontal,SeparatorVertical,Server, ServerCog,ServerCrash,ServerOff,Settings, Settings2,Shapes,Share, Share2,Sheet,Shield, ShieldAlert,ShieldCheck,ShieldClose,ShieldOff,ShieldQuestion,Ship,Shirt,ShoppingBag,ShoppingCart,Shovel,ShowerHead,Shrink,Shrub,Shuffle,Sigma,SigmaSquare,Signal, SignalHigh,SignalLow,SignalMedium,SignalZero,Siren,SkipBack,SkipForward,Skull,Slack,Slice,Sliders, SlidersHorizontal,Smartphone, SmartphoneCharging,SmartphoneNfc,Smile,SmilePlus,Snowflake,Sofa,Soup,Space,Spade,Sparkle,Sparkles,Speaker,SpellCheck, SpellCheck2,Spline,Split,SplitSquareHorizontal,SplitSquareVertical,SprayCan,Sprout,Square, SquareAsterisk,SquareCode,SquareDashedBottom, SquareDashedBottomCode,SquareDot,SquareEqual,SquareSlash,SquareStack,Squirrel,Stamp,Star, StarHalf,StarOff,StepBack,StepForward,Stethoscope,Sticker,StickyNote,StopCircle,Store,StretchHorizontal,StretchVertical,Strikethrough,Subscript,Subtitles,Sun, SunDim,SunMedium,SunMoon,SunSnow,Sunrise,Sunset,Superscript,SwissFranc,SwitchCamera,Sword,Swords,Syringe,Table, Table2,TableProperties,Tablet,Tablets,Tag,Tags,Tally1,Tally2,Tally3,Tally4,Tally5,Target,Tent,Terminal,TerminalSquare,TestTube, TestTube2,TestTubes,Text, TextCursor,TextCursorInput,TextQuote,TextSelect,Thermometer,ThermometerSnowflake,ThermometerSun,ThumbsDown,ThumbsUp,Ticket,Timer,TimerOff,TimerReset,ToggleLeft,ToggleRight,Tornado,Touchpad,TouchpadOff,TowerControl,ToyBrick,Train,Trash, Trash2,TreeDeciduous,TreePine,Trees,Trello,TrendingDown,TrendingUp,Triangle,Trophy,Truck,Tv, Tv2,Twitch,Twitter,Type,Umbrella,Underline,Undo, Undo2,UndoDot,UnfoldHorizontal,UnfoldVertical,Ungroup,Unlink, Unlink2,Unlock,Unplug,Upload, UploadCloud,Usb,User, User2,UserCheck, UserCheck2,UserCircle, UserCircle2,UserCog, UserCog2,UserMinus, UserMinus2,UserPlus, UserPlus2,UserSquare, UserSquare2,UserX, UserX2,Users, Users2,Utensils, UtensilsCrossed,UtilityPole,Variable,Vegan,VenetianMask,Vibrate,VibrateOff,Video,VideoOff,Videotape,View,Voicemail,Volume, Volume1,Volume2,VolumeX,Vote,Wallet, Wallet2,WalletCards,Wallpaper,Wand, Wand2,Warehouse,Watch,Waves,Webcam,Webhook,Wheat,WheatOff,WholeWord,Wifi,WifiOff,Wind,Wine,WineOff,Workflow,WrapText,Wrench,X, XCircle,XOctagon,XSquare,Youtube,Zap,ZapOff,ZoomIn,ZoomOut,createLucideIcon, dynamicIconImports, index as icons };
\ No newline at end of file
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2837ee7d..afb96e37 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -8,9 +8,6 @@ patchedDependencies:
'@monaco-editor/[email protected]':
hash: xep4qb27qzc6gvlhv2fxe3r2ka
path: patches/@[email protected]
- hash: h6w6ds4pfexdcc2jeo33qccehm
- path: patches/[email protected]
hash: j3oqxjoadtct3pc6tokddngzsm
path: patches/[email protected]
@@ -18,288 +15,632 @@ patchedDependencies:
hash: mr6pbhgbmy4dt4xo4hxm5k4ym4
path: patches/[email protected]
-dependencies:
- '@hookform/error-message':
- specifier: ^2.0.1
- '@hookform/resolvers':
- specifier: ^3.1.1
- version: 3.1.1([email protected])
- '@monaco-editor/loader':
- specifier: ^1.3.3
- version: 1.3.3([email protected])
- '@monaco-editor/react':
- specifier: ^4.5.1
- version: 4.5.1(patch_hash=xep4qb27qzc6gvlhv2fxe3r2ka)([email protected])([email protected])([email protected])
- '@next-auth/prisma-adapter':
- specifier: ^1.0.7
- version: 1.0.7(@prisma/[email protected])([email protected])
- '@prisma/client':
- specifier: ^5.0.0
- version: 5.0.0([email protected])
- '@radix-ui/react-avatar':
- specifier: ^1.0.3
- '@radix-ui/react-checkbox':
- specifier: ^1.0.4
- '@radix-ui/react-dialog':
- specifier: ^1.0.4
- '@radix-ui/react-dropdown-menu':
- specifier: ^2.0.5
- '@radix-ui/react-label':
- specifier: ^2.0.2
- '@radix-ui/react-navigation-menu':
- specifier: ^1.1.3
- '@radix-ui/react-popover':
- specifier: ^1.0.6
- '@radix-ui/react-scroll-area':
- specifier: ^1.0.4
- '@radix-ui/react-select':
- specifier: ^1.2.2
- '@radix-ui/react-separator':
- specifier: ^1.0.3
- '@radix-ui/react-slot':
- specifier: ^1.0.2
- version: 1.0.2(@types/[email protected])([email protected])
- '@radix-ui/react-tabs':
- specifier: ^1.0.4
- '@radix-ui/react-toast':
- specifier: ^1.1.4
- '@radix-ui/react-tooltip':
- specifier: ^1.0.6
- '@t3-oss/env-nextjs':
- specifier: ^0.6.0
- '@tanstack/react-query':
- specifier: ^4.29.25
- '@tanstack/react-table':
- specifier: ^8.9.3
- '@types/lodash':
- specifier: ^4.14.195
- version: 4.14.195
- '@uiw/react-md-editor':
- specifier: ^3.23.3
- '@uploadthing/react':
- specifier: ^5.2.0
- class-variance-authority:
- specifier: ^0.6.1
- version: 0.6.1
- clsx:
- specifier: ^2.0.0
- version: 2.0.0
- cmdk:
- specifier: ^0.2.0
- date-fns:
- specifier: ^2.30.0
- version: 2.30.0
- dotenv:
- specifier: ^16.3.1
- version: 16.3.1
- framer-motion:
- specifier: ^10.12.22
- lodash:
- specifier: ^4.17.21
- version: 4.17.21
- lucide-react:
- specifier: ^0.260.0
- version: 0.260.0(patch_hash=h6w6ds4pfexdcc2jeo33qccehm)([email protected])
- lz-string:
- specifier: ^1.5.0
- version: 1.5.0
- monaco-editor:
- specifier: ^0.40.0
- version: 0.40.0
- monaco-vim:
- specifier: ^0.4.0
- version: 0.4.0(patch_hash=j3oqxjoadtct3pc6tokddngzsm)([email protected])
- next:
- specifier: ^13.4.10
- next-auth:
- specifier: ^4.22.1
- version: 4.22.1(patch_hash=mr6pbhgbmy4dt4xo4hxm5k4ym4)([email protected])([email protected])([email protected])
- next-themes:
- specifier: ^0.2.1
- octokit:
- specifier: ^3.0.0
- version: 3.0.0
- react:
- specifier: 18.2.0
- version: 18.2.0
- react-day-picker:
- specifier: ^8.8.0
- react-dom:
- specifier: 18.2.0
- version: 18.2.0([email protected])
- react-dropzone:
- specifier: ^14.2.3
- version: 14.2.3([email protected])
- react-hook-form:
- specifier: ^7.45.1
- version: 7.45.1([email protected])
- react-intersection-observer:
- specifier: ^9.5.2
- version: 9.5.2([email protected])
- react-markdown:
- specifier: ^8.0.7
- version: 8.0.7(@types/[email protected])([email protected])
- react-syntax-highlighter:
- specifier: ^15.5.0
- version: 15.5.0([email protected])
- react-wrap-balancer:
- specifier: ^1.0.0
- version: 1.0.0([email protected])
- remark-gfm:
- specifier: ^3.0.1
- version: 3.0.1
- simple-git:
- specifier: ^3.19.1
- version: 3.19.1
- superjson:
- specifier: 1.12.4
- version: 1.12.4
- tailwind-merge:
- specifier: ^1.14.0
- version: 1.14.0
- tailwindcss-animate:
- specifier: ^1.0.6
- version: 1.0.6([email protected])
- unified:
- specifier: ^10.1.2
- version: 10.1.2
- unist-util-visit:
- specifier: ^5.0.0
- version: 5.0.0
- uploadthing:
- specifier: ^5.2.1
- version: 5.2.1([email protected])
- uuid-by-string:
- specifier: ^4.0.0
- version: 4.0.0
- zod:
- specifier: ^3.21.4
- version: 3.21.4
- zustand:
- specifier: ^4.3.9
- version: 4.3.9([email protected])
-
-devDependencies:
- '@faker-js/faker':
- specifier: ^8.0.2
- version: 8.0.2
- '@tailwindcss/container-queries':
- specifier: ^0.1.1
- version: 0.1.1([email protected])
- '@tailwindcss/typography':
- specifier: ^0.5.9
- version: 0.5.9([email protected])
- '@types/eslint':
- specifier: ^8.44.0
- version: 8.44.0
- '@types/node':
- specifier: ^20.4.2
- version: 20.4.2
- '@types/prettier':
- specifier: ^2.7.3
- version: 2.7.3
- '@types/react':
- specifier: ^18.2.15
- version: 18.2.15
- '@types/react-dom':
- specifier: ^18.2.7
- version: 18.2.7
- '@types/react-syntax-highlighter':
- specifier: ^15.5.7
- version: 15.5.7
- '@typescript-eslint/eslint-plugin':
- specifier: ^6.0.0
- version: 6.0.0(@typescript-eslint/[email protected])([email protected])([email protected])
- '@typescript-eslint/parser':
- specifier: ^6.0.0
- autoprefixer:
- specifier: ^10.4.14
- version: 10.4.14([email protected])
- eslint:
- specifier: ^8.45.0
- version: 8.45.0
- eslint-config-next:
- specifier: ^13.4.10
- eslint-plugin-import:
- specifier: ^2.27.5
- version: 2.27.5(@typescript-eslint/[email protected])([email protected])
- husky:
- specifier: ^8.0.3
- version: 8.0.3
- lint-staged:
- specifier: ^13.2.3
- version: 13.2.3
- postcss:
- specifier: ^8.4.26
- version: 8.4.26
- prettier:
- specifier: ^2.8.8
- version: 2.8.8
- prettier-plugin-tailwindcss:
- specifier: ^0.4.1
- version: 0.4.1([email protected])
- prisma:
- specifier: ^5.0.0
- version: 5.0.0
- raw-loader:
- specifier: ^4.0.2
- version: 4.0.2([email protected])
- tailwindcss:
- specifier: ^3.3.3
- version: 3.3.3
- tsx:
- specifier: ^3.12.7
- version: 3.12.7
- typescript:
- specifier: ^5.1.6
- version: 5.1.6
- yaml:
- specifier: ^2.3.1
- version: 2.3.1
+importers:
+
+ .:
+ devDependencies:
+ husky:
+ specifier: ^8.0.3
+ version: 8.0.3
+ prettier:
+ specifier: ^2.8.8
+ version: 2.8.8
+ prettier-plugin-tailwindcss:
+ specifier: ^0.4.1
+ version: 0.4.1([email protected])
+ turbo:
+ specifier: ^1.10.12
+ version: 1.10.12
+ typescript:
+ specifier: ^5.1.6
+ version: 5.1.6
+
+ apps/web:
+ dependencies:
+ '@hookform/error-message':
+ specifier: ^2.0.1
+ '@hookform/resolvers':
+ specifier: ^3.1.1
+ version: 3.1.1([email protected])
+ '@monaco-editor/loader':
+ specifier: ^1.3.3
+ version: 1.3.3([email protected])
+ '@monaco-editor/react':
+ specifier: ^4.5.1
+ version: 4.5.1(patch_hash=xep4qb27qzc6gvlhv2fxe3r2ka)([email protected])([email protected])([email protected])
+ '@radix-ui/react-avatar':
+ specifier: ^1.0.3
+ '@radix-ui/react-checkbox':
+ specifier: ^1.0.4
+ '@radix-ui/react-dialog':
+ specifier: ^1.0.4
+ '@radix-ui/react-dropdown-menu':
+ specifier: ^2.0.5
+ '@radix-ui/react-label':
+ specifier: ^2.0.2
+ '@radix-ui/react-navigation-menu':
+ specifier: ^1.1.3
+ '@radix-ui/react-popover':
+ specifier: ^1.0.6
+ '@radix-ui/react-scroll-area':
+ specifier: ^1.0.4
+ '@radix-ui/react-select':
+ specifier: ^1.2.2
+ '@radix-ui/react-separator':
+ specifier: ^1.0.3
+ '@radix-ui/react-slot':
+ specifier: ^1.0.2
+ version: 1.0.2(@types/[email protected])([email protected])
+ '@radix-ui/react-tabs':
+ specifier: ^1.0.4
+ '@radix-ui/react-toast':
+ specifier: ^1.1.4
+ '@radix-ui/react-tooltip':
+ specifier: ^1.0.6
+ '@repo/auth':
+ specifier: workspace:*
+ version: link:../../packages/auth
+ '@repo/db':
+ specifier: workspace:*
+ version: link:../../packages/db
+ '@repo/lint':
+ specifier: workspace:*
+ version: link:../../tooling/config-eslint
+ '@t3-oss/env-nextjs':
+ specifier: ^0.6.0
+ '@tanstack/react-query':
+ specifier: ^4.29.25
+ '@tanstack/react-table':
+ specifier: ^8.9.3
+ '@types/lodash':
+ specifier: ^4.14.195
+ version: 4.14.195
+ '@uiw/react-md-editor':
+ specifier: ^3.23.3
+ '@uploadthing/react':
+ specifier: ^5.2.0
+ class-variance-authority:
+ specifier: ^0.6.1
+ version: 0.6.1
+ clsx:
+ specifier: ^2.0.0
+ version: 2.0.0
+ cmdk:
+ specifier: ^0.2.0
+ date-fns:
+ specifier: ^2.30.0
+ version: 2.30.0
+ framer-motion:
+ specifier: ^10.12.22
+ lodash:
+ specifier: ^4.17.21
+ version: 4.17.21
+ lucide-react:
+ specifier: ^0.260.0
+ version: 0.260.0([email protected])
+ lz-string:
+ specifier: ^1.5.0
+ version: 1.5.0
+ monaco-editor:
+ specifier: ^0.40.0
+ version: 0.40.0
+ monaco-vim:
+ specifier: ^0.4.0
+ version: 0.4.0(patch_hash=j3oqxjoadtct3pc6tokddngzsm)([email protected])
+ next:
+ specifier: ^13.4.10
+ next-themes:
+ specifier: ^0.2.1
+ react:
+ specifier: 18.2.0
+ version: 18.2.0
+ react-day-picker:
+ specifier: ^8.8.0
+ react-dom:
+ specifier: 18.2.0
+ version: 18.2.0([email protected])
+ react-dropzone:
+ specifier: ^14.2.3
+ version: 14.2.3([email protected])
+ react-hook-form:
+ specifier: ^7.45.1
+ version: 7.45.1([email protected])
+ react-intersection-observer:
+ specifier: ^9.5.2
+ version: 9.5.2([email protected])
+ react-markdown:
+ specifier: ^8.0.7
+ version: 8.0.7(@types/[email protected])([email protected])
+ react-syntax-highlighter:
+ specifier: ^15.5.0
+ version: 15.5.0([email protected])
+ react-wrap-balancer:
+ specifier: ^1.0.0
+ version: 1.0.0([email protected])
+ remark-gfm:
+ specifier: ^3.0.1
+ version: 3.0.1
+ superjson:
+ specifier: 1.12.4
+ version: 1.12.4
+ tailwind-merge:
+ specifier: ^1.14.0
+ version: 1.14.0
+ tailwindcss-animate:
+ specifier: ^1.0.6
+ version: 1.0.6([email protected])
+ unified:
+ specifier: ^10.1.2
+ version: 10.1.2
+ unist-util-visit:
+ specifier: ^5.0.0
+ version: 5.0.0
+ uploadthing:
+ specifier: ^5.2.1
+ version: 5.2.1([email protected])
+ zod:
+ specifier: ^3.21.4
+ version: 3.21.4
+ zustand:
+ specifier: ^4.3.9
+ version: 4.3.9([email protected])
+ devDependencies:
+ '@repo/tsconfig':
+ specifier: workspace:*
+ version: link:../../tooling/config-typescript
+ '@tailwindcss/container-queries':
+ specifier: ^0.1.1
+ version: 0.1.1([email protected])
+ '@tailwindcss/typography':
+ specifier: ^0.5.9
+ version: 0.5.9([email protected])
+ '@types/node':
+ specifier: ^20.4.2
+ version: 20.4.2
+ '@types/react':
+ specifier: ^18.2.15
+ version: 18.2.15
+ '@types/react-dom':
+ specifier: ^18.2.7
+ version: 18.2.7
+ '@types/react-syntax-highlighter':
+ specifier: ^15.5.7
+ version: 15.5.7
+ autoprefixer:
+ specifier: ^10.4.14
+ version: 10.4.14([email protected])
+ eslint:
+ specifier: ^8.45.0
+ version: 8.45.0
+ eslint-config-next:
+ specifier: ^13.4.10
+ eslint-plugin-import:
+ specifier: ^2.27.5
+ version: 2.27.5(@typescript-eslint/[email protected])([email protected])([email protected])
+ postcss:
+ specifier: ^8.4.26
+ version: 8.4.26
+ prettier:
+ specifier: ^2.8.8
+ version: 2.8.8
+ prettier-plugin-tailwindcss:
+ specifier: ^0.4.1
+ version: 0.4.1([email protected])
+ raw-loader:
+ specifier: ^4.0.2
+ version: 4.0.2([email protected])
+ tailwindcss:
+ specifier: ^3.3.3
+ version: 3.3.3
+ typescript:
+ specifier: ^5.1.6
+ version: 5.1.6
+
+ packages/auth:
+ dependencies:
+ '@next-auth/prisma-adapter':
+ specifier: ^1.0.7
+ version: 1.0.7(@prisma/[email protected])([email protected])
+ '@repo/db':
+ specifier: workspace:*
+ version: link:../db
+ next-auth:
+ specifier: ^4.22.1
+ version: 4.22.1(patch_hash=mr6pbhgbmy4dt4xo4hxm5k4ym4)([email protected])([email protected])([email protected])
+ devDependencies:
+ '@repo/lint':
+ specifier: workspace:*
+ version: link:../../tooling/config-eslint
+ '@repo/tsconfig':
+ specifier: workspace:*
+ version: link:../../tooling/config-typescript
+ '@types/node':
+ specifier: ^16.18.11
+ version: 16.18.11
+ eslint:
+ specifier: ^8.42.0
+ version: 8.45.0
+ prisma:
+ specifier: ^5.0.0
+ version: 5.0.0
+ tsup:
+ specifier: 5.12.0
+ version: 5.12.0([email protected])
+ typescript:
+ specifier: ^5.1.3
+ version: 5.1.6
+
+ packages/db:
+ dependencies:
+ '@prisma/client':
+ specifier: ^5.0.0
+ version: 5.0.0([email protected])
+ devDependencies:
+ '@faker-js/faker':
+ specifier: ^8.0.2
+ version: 8.0.2
+ '@repo/lint':
+ specifier: workspace:*
+ version: link:../../tooling/config-eslint
+ '@repo/tsconfig':
+ specifier: workspace:*
+ version: link:../../tooling/config-typescript
+ '@types/node':
+ specifier: ^16.18.11
+ version: 16.18.11
+ dotenv-cli:
+ specifier: ^7.2.1
+ version: 7.2.1
+ eslint:
+ specifier: ^8.42.0
+ version: 8.45.0
+ prisma:
+ specifier: ^5.0.0
+ version: 5.0.0
+ simple-git:
+ specifier: ^3.19.1
+ version: 3.19.1
+ tsup:
+ specifier: 5.12.0
+ version: 5.12.0([email protected])
+ tsx:
+ specifier: ^3.12.7
+ version: 3.12.7
+ typescript:
+ specifier: ^5.1.3
+ version: 5.1.6
+ uuid-by-string:
+ specifier: ^4.0.0
+ version: 4.0.0
+ yaml:
+ specifier: ^2.3.1
+ version: 2.3.1
+
+ tooling/config-eslint:
+ dependencies:
+ '@next/eslint-plugin-next':
+ specifier: canary
+ version: 13.4.13-canary.6
+ '@repo/tsconfig':
+ specifier: workspace:*
+ version: link:../config-typescript
+ '@typescript-eslint/eslint-plugin':
+ specifier: ^5.59.1
+ version: 5.59.1(@typescript-eslint/[email protected])([email protected])([email protected])
+ '@typescript-eslint/parser':
+ specifier: ^5.59.1
+ '@vercel/style-guide':
+ specifier: ^4.0.2
+ eslint:
+ specifier: ^8.40.0
+ version: 8.45.0
+ eslint-config-turbo:
+ specifier: ^1.10.12
+ version: 1.10.12([email protected])
+ typescript:
+ specifier: ^5.1.3
+ version: 5.1.6
+
+ tooling/config-tailwind:
+ devDependencies:
+ '@tailwindcss/typography':
+ specifier: ^0.5.9
+ version: 0.5.9([email protected])
+ tailwindcss:
+ specifier: ^3.2.4
+ version: 3.3.3
+
+ tooling/config-typescript: {}
+
+ tooling/scripts:
+ devDependencies:
+ '@repo/lint':
+ specifier: workspace:*
+ version: link:../config-eslint
+ '@repo/tsconfig':
+ specifier: workspace:*
+ version: link:../config-typescript
+ '@types/node':
+ specifier: ^18.0.0
+ version: 18.0.0
+ '@types/node-fetch':
+ specifier: ^2.6.4
+ version: 2.6.4
+ dotenv:
+ specifier: ^16.3.1
+ version: 16.3.1
+ eslint:
+ specifier: ^8.42.0
+ version: 8.45.0
+ node-fetch:
+ specifier: ^3.3.2
+ version: 3.3.2
+ octokit:
+ specifier: ^3.0.0
+ version: 3.0.0
+ tsx:
+ specifier: ^3.12.7
+ version: 3.12.7
+ typescript:
+ specifier: ^5.1.6
+ version: 5.1.6
packages:
/@aashutoshrathi/[email protected]:
resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==}
engines: {node: '>=0.10.0'}
- dev: true
resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
engines: {node: '>=10'}
+ /@ampproject/[email protected]:
+ resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==}
+ engines: {node: '>=6.0.0'}
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.3
+ '@jridgewell/trace-mapping': 0.3.18
+ dev: false
+
+ resolution: {integrity: sha512-/KKIMG4UEL35WmI9OlvMhurwtytjvXoFcGNrOvyG9zIzA8YmPjVtIZUf7b05+TPO7G7/GEmLHDaoCgACHl9hhA==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/highlight': 7.22.10
+ chalk: 2.4.2
+ dev: false
+
+ resolution: {integrity: sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ==}
+ engines: {node: '>=6.9.0'}
+ dev: false
+
+ resolution: {integrity: sha512-fTmqbbUBAwCcre6zPzNngvsI0aNrPZe77AeqvDxWM9Nm+04RrJ3CAmGHA9f7lJQY6ZMhRztNemy4uslDxTX4Qw==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@ampproject/remapping': 2.2.1
+ '@babel/code-frame': 7.22.10
+ '@babel/generator': 7.22.10
+ '@babel/helper-compilation-targets': 7.22.10
+ '@babel/helper-module-transforms': 7.22.9(@babel/[email protected])
+ '@babel/helpers': 7.22.10
+ '@babel/parser': 7.22.10
+ '@babel/template': 7.22.5
+ '@babel/traverse': 7.22.10
+ '@babel/types': 7.22.10
+ convert-source-map: 1.9.0
+ debug: 4.3.4
+ gensync: 1.0.0-beta.2
+ json5: 2.2.3
+ semver: 6.3.1
+ transitivePeerDependencies:
+ - supports-color
+ dev: false
+
+ resolution: {integrity: sha512-0J8DNPRXQRLeR9rPaUMM3fA+RbixjnVLe/MRMYCkp3hzgsSuxCHQ8NN8xQG1wIHKJ4a1DTROTvFJdW+B5/eOsg==}
+ engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0}
+ peerDependencies:
+ '@babel/core': ^7.11.0
+ eslint: ^7.5.0 || ^8.0.0
+ dependencies:
+ '@babel/core': 7.22.10
+ '@nicolo-ribaudo/eslint-scope-5-internals': 5.1.1-v1
+ eslint: 8.45.0
+ eslint-visitor-keys: 2.1.0
+ semver: 6.3.1
+ dev: false
+
+ resolution: {integrity: sha512-79KIf7YiWjjdZ81JnLujDRApWtl7BxTqWD88+FFdQEIOG8LJ0etDOM7CXuIgGJa55sGOwZVwuEsaLEm0PJ5/+A==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/types': 7.22.10
+ '@jridgewell/gen-mapping': 0.3.3
+ '@jridgewell/trace-mapping': 0.3.18
+ jsesc: 2.5.2
+ dev: false
+
+ resolution: {integrity: sha512-JMSwHD4J7SLod0idLq5PKgI+6g/hLD/iuWBq08ZX49xE14VpVEojJ5rHWptpirV2j020MvypRLAXAO50igCJ5Q==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/compat-data': 7.22.9
+ '@babel/helper-validator-option': 7.22.5
+ browserslist: 4.21.9
+ lru-cache: 5.1.1
+ semver: 6.3.1
+ dev: false
+
+ resolution: {integrity: sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==}
+ engines: {node: '>=6.9.0'}
+ dev: false
+
+ resolution: {integrity: sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/template': 7.22.5
+ '@babel/types': 7.22.10
+ dev: false
+
+ resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/types': 7.22.10
+ dev: false
+
+ resolution: {integrity: sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/types': 7.22.10
+ dev: false
+
+ resolution: {integrity: sha512-t+WA2Xn5K+rTeGtC8jCsdAH52bjggG5TKRuRrAGNM/mjIbO4GxvlLMFOEz9wXY5I2XQ60PMFsAG2WIcG82dQMQ==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0
+ dependencies:
+ '@babel/core': 7.22.10
+ '@babel/helper-environment-visitor': 7.22.5
+ '@babel/helper-module-imports': 7.22.5
+ '@babel/helper-simple-access': 7.22.5
+ '@babel/helper-split-export-declaration': 7.22.6
+ '@babel/helper-validator-identifier': 7.22.5
+ dev: false
+
+ resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/types': 7.22.10
+ dev: false
+
+ resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/types': 7.22.10
+ dev: false
+
+ resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==}
+ engines: {node: '>=6.9.0'}
+ dev: false
+
+ resolution: {integrity: sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==}
+ engines: {node: '>=6.9.0'}
+ dev: false
+
+ resolution: {integrity: sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==}
+ engines: {node: '>=6.9.0'}
+ dev: false
+
+ resolution: {integrity: sha512-a41J4NW8HyZa1I1vAndrraTlPZ/eZoga2ZgS7fEr0tZJGVU4xqdE80CEm0CcNjha5EZ8fTBYLKHF0kqDUuAwQw==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/template': 7.22.5
+ '@babel/traverse': 7.22.10
+ '@babel/types': 7.22.10
+ transitivePeerDependencies:
+ - supports-color
+ dev: false
+
+ resolution: {integrity: sha512-78aUtVcT7MUscr0K5mIEnkwxPE0MaxkR5RxRwuHaQ+JuU5AmTPhY+do2mdzVTnIJJpyBglql2pehuBIWHug+WQ==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/helper-validator-identifier': 7.22.5
+ chalk: 2.4.2
+ js-tokens: 4.0.0
+ dev: false
+
+ resolution: {integrity: sha512-lNbdGsQb9ekfsnjFGhEiF4hfFqGgfOP3H3d27re3n+CGhNuTSUEQdfWk556sTLNTloczcdM5TYF2LhzmDQKyvQ==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+ dependencies:
+ '@babel/types': 7.22.10
+ dev: false
+
resolution: {integrity: sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==}
engines: {node: '>=6.9.0'}
dependencies:
regenerator-runtime: 0.13.11
+ resolution: {integrity: sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/code-frame': 7.22.10
+ '@babel/parser': 7.22.10
+ '@babel/types': 7.22.10
+ dev: false
+
+ resolution: {integrity: sha512-Q/urqV4pRByiNNpb/f5OSv28ZlGJiFiiTh+GAHktbIrkPhPbl90+uW6SmpoLyZqutrg9AEaEf3Q/ZBRHBXgxig==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/code-frame': 7.22.10
+ '@babel/generator': 7.22.10
+ '@babel/helper-environment-visitor': 7.22.5
+ '@babel/helper-function-name': 7.22.5
+ '@babel/helper-hoist-variables': 7.22.5
+ '@babel/helper-split-export-declaration': 7.22.6
+ '@babel/parser': 7.22.10
+ '@babel/types': 7.22.10
+ debug: 4.3.4
+ globals: 11.12.0
+ transitivePeerDependencies:
+ - supports-color
+ dev: false
+
+ resolution: {integrity: sha512-obaoigiLrlDZ7TUQln/8m4mSqIW2QFeOrCQc9r+xsaHGNoplVNYlRVpsfE8Vj35GEm2ZH4ZhrNYogs/3fj85kg==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/helper-string-parser': 7.22.5
+ '@babel/helper-validator-identifier': 7.22.5
+ to-fast-properties: 2.0.0
+ dev: false
+
/@emotion/[email protected]:
resolution: {integrity: sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==}
requiresBuild: true
@@ -425,6 +766,15 @@ packages:
dev: true
optional: true
+ /@esbuild/[email protected]:
+ resolution: {integrity: sha512-bZBrLAIX1kpWelV0XemxBZllyRmM6vgFQQG2GdNb+r3Fkp0FOh1NJSvekXDs7jq70k4euu1cryLMfU+mTXlEpw==}
+ engines: {node: '>=12'}
+ cpu: [loong64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
/@esbuild/[email protected]:
resolution: {integrity: sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==}
engines: {node: '>=12'}
@@ -541,12 +891,10 @@ packages:
dependencies:
eslint: 8.45.0
eslint-visitor-keys: 3.4.1
- dev: true
/@eslint-community/[email protected]:
resolution: {integrity: sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==}
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
- dev: true
resolution: {integrity: sha512-Lj7DECXqIVCqnqjjHMPna4vn6GJcMgul/wuS0je9OZ9gsL0zzDpKPVtcG1HaDVc+9y+qgXneTeUMbCqXJNpH1A==}
@@ -563,12 +911,10 @@ packages:
strip-json-comments: 3.1.1
transitivePeerDependencies:
- supports-color
- dev: true
resolution: {integrity: sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dev: true
/@faker-js/[email protected]:
resolution: {integrity: sha512-Uo3pGspElQW91PCvKSIAXoEgAUlRnH29sX2/p89kg7sP1m2PzCufHINd0FhTXQf6DYGiUlVncdSPa2F9wxed2A==}
@@ -625,16 +971,13 @@ packages:
minimatch: 3.1.2
transitivePeerDependencies:
- supports-color
- dev: true
/@humanwhocodes/[email protected]:
resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
engines: {node: '>=12.22'}
- dev: true
/@humanwhocodes/[email protected]:
resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}
- dev: true
/@jridgewell/[email protected]:
resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==}
@@ -677,10 +1020,23 @@ packages:
debug: 4.3.4
transitivePeerDependencies:
- supports-color
- dev: false
+ dev: true
/@kwsites/[email protected]:
resolution: {integrity: sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw==}
+ dev: true
+
+ /@microsoft/[email protected]:
+ resolution: {integrity: sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==}
+ dependencies:
+ '@microsoft/tsdoc': 0.14.2
+ ajv: 6.12.6
+ jju: 1.4.0
+ resolve: 1.19.0
+ dev: false
+
+ /@microsoft/[email protected]:
+ resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==}
dev: false
@@ -726,6 +1082,12 @@ packages:
glob: 7.1.7
dev: true
+ resolution: {integrity: sha512-gd23If4KwKWlkVahQlaRLRuoB/2UwP9z0Dv7NucAQEbQTJfGUVhwDsB/xuJ4bZfCtgUnRQSJu24StQS8ph7QEQ==}
+ dependencies:
+ glob: 7.1.7
+ dev: false
+
resolution: {integrity: sha512-4bsdfKmmg7mgFGph0UorD1xWfZ5jZEw4kKRHYEeTK9bT1QnMbPVPlVXQRIiFPrhoDQnZUoa6duuPUJIEGLV1Jg==}
engines: {node: '>= 10'}
@@ -807,6 +1169,12 @@ packages:
dev: false
optional: true
+ /@nicolo-ribaudo/[email protected]:
+ resolution: {integrity: sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==}
+ dependencies:
+ eslint-scope: 5.1.1
+ dev: false
+
/@nodelib/[email protected]:
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
engines: {node: '>= 8'}
@@ -836,7 +1204,7 @@ packages:
'@octokit/plugin-paginate-rest': 8.0.0(@octokit/[email protected])
'@octokit/types': 11.1.0
'@octokit/webhooks': 12.0.3
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-OKct7Rukf3g9DjpzcpdacQsdmd6oPrJ7fZND22JkjzhDvfhttUOnmh+qPS4kHhaNNyTxqSThnfrUWvkqNLd1nw==}
@@ -851,7 +1219,7 @@ packages:
lru-cache: 10.0.0
universal-github-app-jwt: 1.1.1
universal-user-agent: 6.0.0
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-8JvJEXGoEqrbzLwt3SwIUvkDd+1wrM8up0KawvDIElB8rbxPbvWppGO0SLKAWSJ0q8ILcVq+mWck6pDcZ3a9KA==}
@@ -864,7 +1232,7 @@ packages:
'@types/btoa-lite': 1.0.0
btoa-lite: 1.0.0
universal-user-agent: 6.0.0
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-Zgf/LKhwWk54rJaTGYVYtbKgUty+ouil6VQeRd+pCw7Gd0ECoSWaZuHK6uDGC/HtnWHjpSWFhzxPauDoHcNRtg==}
@@ -874,7 +1242,7 @@ packages:
'@octokit/request': 8.1.0
'@octokit/types': 11.1.0
universal-user-agent: 6.0.0
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-VOm5aIkVGHaOhIvsF/4YmSjoYDzzrKbbYkdSEO0KqHK7I8SlO3ZndSikQ1fBlNPUEH0ve2BOTxLrVvI1qBf9/Q==}
@@ -886,12 +1254,12 @@ packages:
'@octokit/types': 11.1.0
btoa-lite: 1.0.0
universal-user-agent: 6.0.0
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==}
engines: {node: '>= 18'}
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-AjOI6FNB2dweJ85p6rf7D4EhE4y6VBcwYfX/7KJkR5Q9fD9ET6NABAjajUTSNFfCxmNIaQgISggZ3pkgwtTqsA==}
@@ -899,7 +1267,7 @@ packages:
dependencies:
'@octokit/request-error': 5.0.0
'@octokit/types': 11.1.0
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-YbAtMWIrbZ9FCXbLwT9wWB8TyLjq9mxpKdgB3dUNxQcIVTf9hJ70gRPwAcqGZdY6WdJPZ0I7jLaaNDCiloGN2A==}
@@ -912,7 +1280,7 @@ packages:
'@octokit/types': 11.1.0
before-after-hook: 2.2.3
universal-user-agent: 6.0.0
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-szrQhiqJ88gghWY2Htt8MqUDO6++E/EIXqJ2ZEp5ma3uGS46o7LZAzSLt49myB7rT+Hfw5Y6gO3LmOxGzHijAQ==}
@@ -921,7 +1289,7 @@ packages:
'@octokit/types': 11.1.0
is-plain-object: 5.0.0
universal-user-agent: 6.0.0
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-T5S3oZ1JOE58gom6MIcrgwZXzTaxRnxBso58xhozxHpOqSTgDS6YNeEUvZ/kRvXgPrRz/KHnZhtb7jUMRi9E6w==}
@@ -930,7 +1298,7 @@ packages:
'@octokit/request': 8.1.0
'@octokit/types': 11.1.0
universal-user-agent: 6.0.0
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-bNMkS+vJ6oz2hCyraT9ZfTpAQ8dZNqJJQVNaKjPLx4ue5RZiFdU1YWXguOPR8AaSHS+lKe+lR3abn2siGd+zow==}
@@ -944,12 +1312,12 @@ packages:
'@octokit/oauth-methods': 4.0.0
'@types/aws-lambda': 8.10.119
universal-user-agent: 6.0.0
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-CdoJukjXXxqLNK4y/VOiVzQVjibqoj/xHgInekviUJV73y/BSIcwvJ/4aNHPBPKcPWFnd4/lO9uqRV65jXhcLA==}
engines: {node: '>= 18'}
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-dqy7BZLfLbi3/8X8xPKUKZclMEK9vN3fK5WF3ortRvtplQTszFvdAGbTo71gGLO+4ZxspNiLjnqdd64Chklf7w==}
@@ -960,11 +1328,11 @@ packages:
'@octokit/request-error': 5.0.0
'@octokit/types': 11.1.0
btoa-lite: 1.0.0
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw==}
- dev: false
+ dev: true
resolution: {integrity: sha512-2xZ+baZWUg+qudVXnnvXz7qfrTmDeYPCzangBVq/1gXxii/OiS//4shJp9dnCCvj1x+JAm9ji1Egwm1BA47lPQ==}
@@ -974,7 +1342,7 @@ packages:
dependencies:
'@octokit/core': 5.0.0
'@octokit/types': 11.1.0
- dev: false
+ dev: true
resolution: {integrity: sha512-KquMF/VB1IkKNiVnzJKspY5mFgGyLd7HzdJfVEGTJFzqu9BRFNWt+nwTCMuUiWc72gLQhRWYubTwOkQj+w/1PA==}
@@ -984,7 +1352,7 @@ packages:
dependencies:
'@octokit/core': 5.0.0
'@octokit/types': 11.1.0
- dev: false
+ dev: true
resolution: {integrity: sha512-a1/A4A+PB1QoAHQfLJxGHhLfSAT03bR1jJz3GgQJZvty2ozawFWs93MiBQXO7SL2YbO7CIq0Goj4qLOBj8JeMQ==}
@@ -996,7 +1364,7 @@ packages:
'@octokit/request-error': 5.0.0
'@octokit/types': 11.1.0
bottleneck: 2.19.5
- dev: false
+ dev: true
resolution: {integrity: sha512-KL2k/d0uANc8XqP5S64YcNFCudR3F5AaKO39XWdUtlJIjT9Ni79ekWJ6Kj5xvAw87udkOMEPcVf9xEge2+ahew==}
@@ -1007,7 +1375,7 @@ packages:
'@octokit/core': 5.0.0
'@octokit/types': 11.1.0
bottleneck: 2.19.5
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-1ue0DH0Lif5iEqT52+Rf/hf0RmGO9NWFjrzmrkArpG9trFfDM/efx00BJHdLGuro4BR/gECxCU2Twf5OKrRFsQ==}
@@ -1016,7 +1384,7 @@ packages:
'@octokit/types': 11.1.0
deprecation: 2.3.1
once: 1.4.0
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-0gg/NwewU0iXctYBale0VVcCPqOtoW5lsog8cNBJgzV/CyTHa2gicUBOlNnzOk6pJkuwXI34qkq+uRm40PmD4A==}
@@ -1027,22 +1395,22 @@ packages:
'@octokit/types': 11.1.0
is-plain-object: 5.0.0
universal-user-agent: 6.0.0
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-Fz0+7GyLm/bHt8fwEqgvRBWwIV1S6wRRyq+V6exRKLVWaKGsuy6H9QFYeBVDV7rK6fO3XwHgQOPxv+cLj2zpXQ==}
dependencies:
'@octokit/openapi-types': 18.0.0
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-M8mwmTXp+VeolOS/kfRvsDdW+IO0qJ8kYodM/sAysk093q6ApgmBXwK1ZlUvAwXVrp/YVHp6aArj4auAxUAOFw==}
engines: {node: '>= 18'}
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-y92CpG4kFFtBBjni8LHoV12IegJ+KFxLgKRengrVjKmGE5XMeCuGvlfRe75lTRrgXaG6XIWJlFpIDTlkoJsU8w==}
- dev: false
+ dev: true
/@octokit/[email protected]:
resolution: {integrity: sha512-8iG+/yza7hwz1RrQ7i7uGpK2/tuItZxZq1aTmeg2TNp2xTUB8F8lZF/FcZvyyAxT8tpDMF74TjFGCDACkf1kAQ==}
@@ -1052,7 +1420,7 @@ packages:
'@octokit/webhooks-methods': 4.0.0
'@octokit/webhooks-types': 7.1.0
aggregate-error: 3.1.0
- dev: false
+ dev: true
resolution: {integrity: sha512-dhPeilub1NuIG0X5Kvhh9lH4iW3ZsHlnzwgwbOlgwQ2wG1IqFzsgHqmKPk3WzsdWAeaxKJxgM0+W433RmN45GA==}
@@ -1068,7 +1436,6 @@ packages:
open: 9.1.0
picocolors: 1.0.0
tslib: 2.6.0
- dev: true
resolution: {integrity: sha512-XlO5ELNAQ7rV4cXIDJUNBEgdLwX3pjtt9Q/RHqDpGf43szpNJx2hJnggfFs7TKNx0cOFsl6KJCSfqr5duEU/bQ==}
@@ -2146,7 +2513,6 @@ packages:
/@rushstack/[email protected]:
resolution: {integrity: sha512-V+MvGwaHH03hYhY+k6Ef/xKd6RYlc4q8WBx+2ANmipHJcKuktNcI/NgEsJgdSUF6Lw32njT6OnrRsKYCdgHjYw==}
- dev: true
resolution: {integrity: sha512-sJ902EfIzn1Fa+qYmjdQqh8tPsoxyBz+8yBKC2HKUxyezKJFwPGOn7pv4WY6QuQW//ySQi5lJjA/ZT9sNWWNTg==}
@@ -2236,11 +2602,11 @@ packages:
resolution: {integrity: sha512-Vqm22aZrCvCd6I5g1SvpW151jfqwTzEZ7XJ3yZ6xaZG31nUEOEyzzVImjRcsN8Wi/QyPxId/x8GTtgIbsy8kEw==}
- dev: false
+ dev: true
resolution: {integrity: sha512-wJsiX1tosQ+J5+bY5LrSahHxr2wT+uME5UDwdN1kg4frt40euqA+wzECkmq4t5QbveHiJepfdThgQrPw6KiSlg==}
- dev: false
+ dev: true
resolution: {integrity: sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==}
@@ -2274,17 +2640,15 @@ packages:
resolution: {integrity: sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==}
- dev: true
resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==}
- dev: true
resolution: {integrity: sha512-drE6uz7QBKq1fYqqoFKTDRdFCPHd5TCub75BM+D+cMx7NU9hUz7SESLfC2fSCXVFMO5Yj8sOWHuGqPgjc+fz0Q==}
dependencies:
'@types/node': 20.4.2
- dev: false
+ dev: true
resolution: {integrity: sha512-Hwx9EUgdwf2GLarOjQp5ZH8ZmblzcbTBC2wtQWNKARBSxM9ezRIAUpeDTgoQRAFB0+8CNWXVA9+MaSOzOF3nPg==}
@@ -2300,17 +2664,33 @@ packages:
resolution: {integrity: sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==}
dev: false
+ resolution: {integrity: sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==}
+ dependencies:
+ '@types/node': 18.0.0
+ form-data: 3.0.1
+ dev: true
+
+ resolution: {integrity: sha512-3oJbGBUWuS6ahSnEq1eN2XrCyf4YsWI8OyCvo7c64zQJNplk3mO84t53o8lfTk+2ji59g5ycfc6qQ3fdHliHuA==}
+ dev: true
+
+ resolution: {integrity: sha512-cHlGmko4gWLVI27cGJntjs/Sj8th9aYwplmZFwmmgYQQvL5NUsgVJG7OddLvNfLqYS31KFN0s3qlaD9qCaxACA==}
+ dev: true
+
resolution: {integrity: sha512-Dd0BYtWgnWJKwO1jkmTrzofjK2QXXcai0dmtzvIBhcA+RsG5h8R3xlyta0kGOZRNfL9GuRtb1knmPEhQrePCEw==}
+ dev: true
+
+ resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==}
+ dev: false
resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==}
dev: false
- resolution: {integrity: sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==}
- dev: true
-
resolution: {integrity: sha512-ZTaqn/qSqUuAq1YwvOFQfVW1AR/oQJlLSZVustdjwI+GZ8kr0MSHBj0tsXPW1EqHubx50gtBEjbPGsdZwQwCjQ==}
dev: false
@@ -2341,7 +2721,7 @@ packages:
resolution: {integrity: sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==}
- dev: true
+ dev: false
resolution: {integrity: sha512-cputDpIbFgLUaGQn6Vqg3/YsJwxUwHLO13v3i5ouxT4lat0khip9AEWxtERujXV9wxIB1EyF97BSJFt6vpdI8g==}
@@ -2351,36 +2731,33 @@ packages:
resolution: {integrity: sha512-MFETx3tbTjE7Uk6vvnWINA/1iJ7LuMdO4fcq8UfF0pRbj01aGLduVvQcRyswuACJdpnHgg8E3rQLhaRdNEJS0w==}
dev: false
- /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):
- resolution: {integrity: sha512-xuv6ghKGoiq856Bww/yVYnXGsKa588kY3M0XK7uUW/3fJNNULKRfZfSBkMTSpqGG/8ZCXCadfh8G/z/B4aqS/A==}
- engines: {node: ^16.0.0 || >=18.0.0}
+ /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):
+ resolution: {integrity: sha512-AVi0uazY5quFB9hlp2Xv+ogpfpk77xzsgsIEWyVS7uK/c7MZ5tw7ZPbapa0SbfkqE0fsAMkz5UwtgMLVk2BQAg==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
- '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha
- eslint: ^7.0.0 || ^8.0.0
+ '@typescript-eslint/parser': ^5.0.0
+ eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
typescript: '*'
peerDependenciesMeta:
typescript:
optional: true
dependencies:
'@eslint-community/regexpp': 4.5.1
- '@typescript-eslint/parser': 6.0.0([email protected])([email protected])
- '@typescript-eslint/scope-manager': 6.0.0
- '@typescript-eslint/type-utils': 6.0.0([email protected])([email protected])
- '@typescript-eslint/utils': 6.0.0([email protected])([email protected])
- '@typescript-eslint/visitor-keys': 6.0.0
+ '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
+ '@typescript-eslint/scope-manager': 5.59.1
+ '@typescript-eslint/type-utils': 5.59.1([email protected])([email protected])
+ '@typescript-eslint/utils': 5.59.1([email protected])([email protected])
debug: 4.3.4
eslint: 8.45.0
grapheme-splitter: 1.0.4
- graphemer: 1.4.0
ignore: 5.2.4
- natural-compare: 1.4.0
natural-compare-lite: 1.4.0
semver: 7.5.4
- ts-api-utils: 1.0.1([email protected])
+ tsutils: 3.21.0([email protected])
typescript: 5.1.6
transitivePeerDependencies:
- supports-color
- dev: true
+ dev: false
resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==}
@@ -2400,77 +2777,53 @@ packages:
typescript: 5.1.6
transitivePeerDependencies:
- supports-color
- dev: true
- resolution: {integrity: sha512-TNaufYSPrr1U8n+3xN+Yp9g31vQDJqhXzzPSHfQDLcaO4tU+mCfODPxCwf4H530zo7aUBE3QIdxCXamEnG04Tg==}
- engines: {node: ^16.0.0 || >=18.0.0}
+ /@typescript-eslint/[email protected]:
+ resolution: {integrity: sha512-mau0waO5frJctPuAzcxiNWqJR5Z8V0190FTSqRw1Q4Euop6+zTwHAf8YIXNwDOT29tyUDrQ65jSg9aTU/H0omA==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ dependencies:
+ '@typescript-eslint/types': 5.59.1
+ '@typescript-eslint/visitor-keys': 5.59.1
+ dev: false
+
+ /@typescript-eslint/[email protected]:
+ resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ dependencies:
+ '@typescript-eslint/types': 5.62.0
+ '@typescript-eslint/visitor-keys': 5.62.0
+
+ resolution: {integrity: sha512-ZMWQ+Oh82jWqWzvM3xU+9y5U7MEMVv6GLioM3R5NJk6uvP47kZ7YvlgSHJ7ERD6bOY7Q4uxWm25c76HKEwIjZw==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
- eslint: ^7.0.0 || ^8.0.0
+ eslint: '*'
typescript: '*'
peerDependenciesMeta:
typescript:
optional: true
dependencies:
- '@typescript-eslint/scope-manager': 6.0.0
- '@typescript-eslint/types': 6.0.0
- '@typescript-eslint/typescript-estree': 6.0.0([email protected])
- '@typescript-eslint/visitor-keys': 6.0.0
+ '@typescript-eslint/typescript-estree': 5.59.1([email protected])
+ '@typescript-eslint/utils': 5.59.1([email protected])([email protected])
debug: 4.3.4
eslint: 8.45.0
+ tsutils: 3.21.0([email protected])
typescript: 5.1.6
transitivePeerDependencies:
- supports-color
- dev: true
+ dev: false
- /@typescript-eslint/[email protected]:
- resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==}
+ /@typescript-eslint/[email protected]:
+ resolution: {integrity: sha512-dg0ICB+RZwHlysIy/Dh1SP+gnXNzwd/KS0JprD3Lmgmdq+dJAJnUPe1gNG34p0U19HvRlGX733d/KqscrGC1Pg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dependencies:
- '@typescript-eslint/types': 5.62.0
- '@typescript-eslint/visitor-keys': 5.62.0
- dev: true
-
- /@typescript-eslint/[email protected]:
- resolution: {integrity: sha512-o4q0KHlgCZTqjuaZ25nw5W57NeykZT9LiMEG4do/ovwvOcPnDO1BI5BQdCsUkjxFyrCL0cSzLjvIMfR9uo7cWg==}
- engines: {node: ^16.0.0 || >=18.0.0}
- dependencies:
- '@typescript-eslint/types': 6.0.0
- '@typescript-eslint/visitor-keys': 6.0.0
- dev: true
-
- resolution: {integrity: sha512-ah6LJvLgkoZ/pyJ9GAdFkzeuMZ8goV6BH7eC9FPmojrnX9yNCIsfjB+zYcnex28YO3RFvBkV6rMV6WpIqkPvoQ==}
- engines: {node: ^16.0.0 || >=18.0.0}
- peerDependencies:
- eslint: ^7.0.0 || ^8.0.0
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@typescript-eslint/typescript-estree': 6.0.0([email protected])
- '@typescript-eslint/utils': 6.0.0([email protected])([email protected])
- debug: 4.3.4
- eslint: 8.45.0
- ts-api-utils: 1.0.1([email protected])
- typescript: 5.1.6
- transitivePeerDependencies:
- - supports-color
- dev: true
+ dev: false
/@typescript-eslint/[email protected]:
resolution: {integrity: sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dev: true
-
- /@typescript-eslint/[email protected]:
- resolution: {integrity: sha512-Zk9KDggyZM6tj0AJWYYKgF0yQyrcnievdhG0g5FqyU3Y2DRxJn4yWY21sJC0QKBckbsdKKjYDV2yVrrEvuTgxg==}
- engines: {node: ^16.0.0 || >=18.0.0}
- dev: true
- /@typescript-eslint/[email protected]([email protected]):
- resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==}
+ /@typescript-eslint/[email protected]([email protected]):
+ resolution: {integrity: sha512-lYLBBOCsFltFy7XVqzX0Ju+Lh3WPIAWxYpmH/Q7ZoqzbscLiCW00LeYCdsUnnfnj29/s1WovXKh2gwCoinHNGA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
typescript: '*'
@@ -2478,8 +2831,8 @@ packages:
typescript:
optional: true
dependencies:
- '@typescript-eslint/types': 5.62.0
- '@typescript-eslint/visitor-keys': 5.62.0
+ '@typescript-eslint/types': 5.59.1
+ '@typescript-eslint/visitor-keys': 5.59.1
debug: 4.3.4
globby: 11.1.0
is-glob: 4.0.3
@@ -2488,64 +2841,62 @@ packages:
typescript: 5.1.6
transitivePeerDependencies:
- supports-color
- dev: true
+ dev: false
- /@typescript-eslint/[email protected]([email protected]):
- resolution: {integrity: sha512-2zq4O7P6YCQADfmJ5OTDQTP3ktajnXIRrYAtHM9ofto/CJZV3QfJ89GEaM2BNGeSr1KgmBuLhEkz5FBkS2RQhQ==}
- engines: {node: ^16.0.0 || >=18.0.0}
+ /@typescript-eslint/[email protected]([email protected]):
+ resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
typescript: '*'
peerDependenciesMeta:
typescript:
optional: true
dependencies:
- '@typescript-eslint/types': 6.0.0
- '@typescript-eslint/visitor-keys': 6.0.0
+ '@typescript-eslint/types': 5.62.0
+ '@typescript-eslint/visitor-keys': 5.62.0
debug: 4.3.4
globby: 11.1.0
is-glob: 4.0.3
semver: 7.5.4
- ts-api-utils: 1.0.1([email protected])
+ tsutils: 3.21.0([email protected])
typescript: 5.1.6
transitivePeerDependencies:
- supports-color
- dev: true
- resolution: {integrity: sha512-SOr6l4NB6HE4H/ktz0JVVWNXqCJTOo/mHnvIte1ZhBQ0Cvd04x5uKZa3zT6tiodL06zf5xxdK8COiDvPnQ27JQ==}
- engines: {node: ^16.0.0 || >=18.0.0}
+ resolution: {integrity: sha512-MkTe7FE+K1/GxZkP5gRj3rCztg45bEhsd8HYjczBuYm+qFHP5vtZmjx3B0yUCDotceQ4sHgTyz60Ycl225njmA==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
- eslint: ^7.0.0 || ^8.0.0
+ eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
dependencies:
'@eslint-community/eslint-utils': 4.4.0([email protected])
'@types/json-schema': 7.0.12
'@types/semver': 7.5.0
- '@typescript-eslint/scope-manager': 6.0.0
- '@typescript-eslint/types': 6.0.0
- '@typescript-eslint/typescript-estree': 6.0.0([email protected])
+ '@typescript-eslint/scope-manager': 5.59.1
+ '@typescript-eslint/types': 5.59.1
+ '@typescript-eslint/typescript-estree': 5.59.1([email protected])
eslint: 8.45.0
eslint-scope: 5.1.1
semver: 7.5.4
transitivePeerDependencies:
- supports-color
- typescript
- dev: true
+ dev: false
- /@typescript-eslint/[email protected]:
- resolution: {integrity: sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==}
+ /@typescript-eslint/[email protected]:
+ resolution: {integrity: sha512-6waEYwBTCWryx0VJmP7JaM4FpipLsFl9CvYf2foAE8Qh/Y0s+bxWysciwOs0LTBED4JCaNxTZ5rGadB14M6dwA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dependencies:
- '@typescript-eslint/types': 5.62.0
+ '@typescript-eslint/types': 5.59.1
eslint-visitor-keys: 3.4.1
- dev: true
+ dev: false
- /@typescript-eslint/[email protected]:
- resolution: {integrity: sha512-cvJ63l8c0yXdeT5POHpL0Q1cZoRcmRKFCtSjNGJxPkcP571EfZMcNbzWAc7oK3D1dRzm/V5EwtkANTZxqvuuUA==}
- engines: {node: ^16.0.0 || >=18.0.0}
+ /@typescript-eslint/[email protected]:
+ resolution: {integrity: sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dependencies:
- '@typescript-eslint/types': 6.0.0
+ '@typescript-eslint/types': 5.62.0
eslint-visitor-keys: 3.4.1
- dev: true
resolution: {integrity: sha512-1bbGZ3T+SGmA07BoVPK4UCUDcowDN/moctviJGQexfOc9qL8TMLDQPr7mTPvDKhgJkgnlKkAQNFU8PiarIi9sQ==}
@@ -2625,6 +2976,54 @@ packages:
zod: 3.21.4
dev: false
+ resolution: {integrity: sha512-FroL+oOePzhw7n/I+f7zr4WNroGHT/+2TlW6WH9+CVSjMNsEyu7Qstj2mI5gWIBjT1Y2ZImKPppCzI2cIYmNZw==}
+ engines: {node: '>=16'}
+ peerDependencies:
+ '@next/eslint-plugin-next': ^12.3.0
+ eslint: ^8.24.0
+ prettier: ^2.7.0
+ typescript: ^4.8.0
+ peerDependenciesMeta:
+ '@next/eslint-plugin-next':
+ optional: true
+ eslint:
+ optional: true
+ prettier:
+ optional: true
+ typescript:
+ optional: true
+ dependencies:
+ '@babel/core': 7.22.10
+ '@babel/eslint-parser': 7.22.10(@babel/[email protected])([email protected])
+ '@next/eslint-plugin-next': 13.4.13-canary.6
+ '@rushstack/eslint-patch': 1.3.2
+ '@typescript-eslint/eslint-plugin': 5.59.1(@typescript-eslint/[email protected])([email protected])([email protected])
+ '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
+ eslint: 8.45.0
+ eslint-config-prettier: 8.10.0([email protected])
+ eslint-import-resolver-alias: 1.1.2([email protected])
+ eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/[email protected])([email protected])([email protected])
+ eslint-plugin-eslint-comments: 3.2.0([email protected])
+ eslint-plugin-import: 2.27.5(@typescript-eslint/[email protected])([email protected])([email protected])
+ eslint-plugin-jest: 27.2.3(@typescript-eslint/[email protected])([email protected])([email protected])
+ eslint-plugin-jsx-a11y: 6.7.1([email protected])
+ eslint-plugin-playwright: 0.11.2([email protected])([email protected])
+ eslint-plugin-react: 7.32.2([email protected])
+ eslint-plugin-react-hooks: 4.6.0([email protected])
+ eslint-plugin-testing-library: 5.11.1([email protected])([email protected])
+ eslint-plugin-tsdoc: 0.2.17
+ eslint-plugin-unicorn: 43.0.2([email protected])
+ prettier: 2.8.8
+ prettier-plugin-packagejson: 2.4.3([email protected])
+ typescript: 5.1.6
+ transitivePeerDependencies:
+ - eslint-import-resolver-node
+ - eslint-import-resolver-webpack
+ - jest
+ - supports-color
+ dev: false
+
/@webassemblyjs/[email protected]:
resolution: {integrity: sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==}
dependencies:
@@ -2753,13 +3152,11 @@ packages:
acorn: ^6.0.0 || ^7.0.0 || ^8.0.0
dependencies:
acorn: 8.10.0
- dev: true
resolution: {integrity: sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==}
engines: {node: '>=0.4.0'}
hasBin: true
- dev: true
resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==}
@@ -2767,6 +3164,7 @@ packages:
dependencies:
clean-stack: 2.2.0
indent-string: 4.0.0
+ dev: true
resolution: {integrity: sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==}
@@ -2783,36 +3181,23 @@ packages:
fast-json-stable-stringify: 2.1.0
json-schema-traverse: 0.4.1
uri-js: 4.4.1
- dev: true
-
- resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==}
- engines: {node: '>=8'}
- dependencies:
- type-fest: 0.21.3
- dev: true
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
engines: {node: '>=8'}
- dev: true
- resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==}
- engines: {node: '>=12'}
- dev: true
+ resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==}
+ engines: {node: '>=4'}
+ dependencies:
+ color-convert: 1.9.3
+ dev: false
resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
engines: {node: '>=8'}
dependencies:
color-convert: 2.0.1
- dev: true
-
- resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==}
- engines: {node: '>=12'}
- dev: true
resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}
@@ -2829,7 +3214,6 @@ packages:
resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
- dev: true
resolution: {integrity: sha512-xcLxITLe2HYa1cnYnwCjkOO1PqUHQpozB8x9AR0OgWN2woOBi5kSDVxKfd0b7sb1hw5qFeJhXm9H1nu3xSfLeQ==}
@@ -2842,14 +3226,12 @@ packages:
resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==}
dependencies:
dequal: 2.0.3
- dev: true
resolution: {integrity: sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==}
dependencies:
call-bind: 1.0.2
is-array-buffer: 3.0.2
- dev: true
resolution: {integrity: sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==}
@@ -2860,12 +3242,10 @@ packages:
es-abstract: 1.22.1
get-intrinsic: 1.2.1
is-string: 1.0.7
- dev: true
resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==}
engines: {node: '>=8'}
- dev: true
resolution: {integrity: sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==}
@@ -2875,7 +3255,6 @@ packages:
define-properties: 1.2.0
es-abstract: 1.22.1
es-shim-unscopables: 1.0.0
- dev: true
resolution: {integrity: sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==}
@@ -2885,7 +3264,6 @@ packages:
define-properties: 1.2.0
es-abstract: 1.22.1
es-shim-unscopables: 1.0.0
- dev: true
resolution: {integrity: sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==}
@@ -2895,7 +3273,6 @@ packages:
es-abstract: 1.22.1
es-shim-unscopables: 1.0.0
get-intrinsic: 1.2.1
- dev: true
resolution: {integrity: sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==}
@@ -2907,15 +3284,12 @@ packages:
get-intrinsic: 1.2.1
is-array-buffer: 3.0.2
is-shared-array-buffer: 1.0.2
- dev: true
resolution: {integrity: sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==}
- dev: true
- resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==}
- engines: {node: '>=8'}
+ resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
dev: true
@@ -2942,18 +3316,15 @@ packages:
resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==}
engines: {node: '>= 0.4'}
- dev: true
resolution: {integrity: sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==}
engines: {node: '>=4'}
- dev: true
resolution: {integrity: sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==}
dependencies:
dequal: 2.0.3
- dev: true
resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==}
@@ -2968,12 +3339,11 @@ packages:
resolution: {integrity: sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==}
- dev: false
+ dev: true
resolution: {integrity: sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==}
engines: {node: '>=0.6'}
- dev: true
resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==}
@@ -2989,14 +3359,13 @@ packages:
resolution: {integrity: sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==}
- dev: false
+ dev: true
resolution: {integrity: sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==}
engines: {node: '>= 5.10.0'}
dependencies:
big-integer: 1.6.51
- dev: true
resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
@@ -3019,25 +3388,38 @@ packages:
electron-to-chromium: 1.4.461
node-releases: 2.0.13
update-browserslist-db: 1.0.11([email protected])
- dev: true
resolution: {integrity: sha512-gvW7InbIyF8AicrqWoptdW08pUxuhq8BEgowNajy9RhiE86fmGAGl+bLKo6oB8QP0CkqHLowfN0oJdKC/J6LbA==}
- dev: false
+ dev: true
resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==}
- dev: false
+ dev: true
resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}
dev: true
+ resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==}
+ engines: {node: '>=6'}
+ dev: false
+
resolution: {integrity: sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==}
engines: {node: '>=12'}
dependencies:
run-applescript: 5.0.0
+
+ resolution: {integrity: sha512-Of6l6JBAxiyQ5axFxUM6dYeP/W7X2Sozeo/4EYB9sJhL+dqL7TKjg+shwxp6jlu/6ZSERfsYtIpSJ1/x3XkAEA==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ peerDependencies:
+ esbuild: '>=0.13'
+ dependencies:
+ esbuild: 0.14.54
+ load-tsconfig: 0.2.5
dev: true
@@ -3047,17 +3429,20 @@ packages:
streamsearch: 1.1.0
dev: false
+ resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}
+ engines: {node: '>=8'}
+ dev: true
+
resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==}
dependencies:
function-bind: 1.1.1
get-intrinsic: 1.2.1
- dev: true
resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
engines: {node: '>=6'}
- dev: true
resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}
@@ -3070,18 +3455,21 @@ packages:
resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}
dev: false
+ resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}
+ engines: {node: '>=4'}
+ dependencies:
+ ansi-styles: 3.2.1
+ escape-string-regexp: 1.0.5
+ supports-color: 5.5.0
+ dev: false
+
resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
engines: {node: '>=10'}
dependencies:
ansi-styles: 4.3.0
supports-color: 7.2.0
- dev: true
-
- resolution: {integrity: sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==}
- engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
- dev: true
resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==}
@@ -3130,37 +3518,27 @@ packages:
engines: {node: '>=6.0'}
dev: true
+ resolution: {integrity: sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==}
+ engines: {node: '>=8'}
+ dev: false
+
resolution: {integrity: sha512-eurOEGc7YVx3majOrOb099PNKgO3KnKSApOprXI4BTq6bcfbqbQXPN2u+rPPmIJ2di23bMwhk0SxCCthBmszEQ==}
dependencies:
clsx: 1.2.1
dev: false
+ resolution: {integrity: sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw==}
+ engines: {node: '>=4'}
+ dependencies:
+ escape-string-regexp: 1.0.5
+ dev: false
+
resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==}
engines: {node: '>=6'}
-
- resolution: {integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==}
- engines: {node: '>=8'}
- dependencies:
- restore-cursor: 3.1.0
- dev: true
-
- resolution: {integrity: sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==}
- engines: {node: '>=8'}
- dependencies:
- slice-ansi: 3.0.0
- string-width: 4.2.3
- dev: true
-
- resolution: {integrity: sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
- dependencies:
- slice-ansi: 5.0.0
- string-width: 5.1.2
dev: true
@@ -3191,19 +3569,30 @@ packages:
- '@types/react'
dev: false
+ resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==}
+ dependencies:
+ color-name: 1.1.3
+ dev: false
+
resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
engines: {node: '>=7.0.0'}
dependencies:
color-name: 1.1.4
- dev: true
+
+ resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==}
+ dev: false
resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
- dev: true
- resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==}
+ resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
+ engines: {node: '>= 0.8'}
+ dependencies:
+ delayed-stream: 1.0.0
dev: true
@@ -3218,11 +3607,6 @@ packages:
resolution: {integrity: sha512-VtDvQpIJBvBatnONUsPzXYFVKQQAhuf3XTNOAsdBxCNO/QCtUUd8LSgjn0GVarBkCad6aJCZfXgrjYbl/KRr7w==}
dev: false
- resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==}
- engines: {node: '>=14'}
- dev: true
-
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
dev: true
@@ -3234,6 +3618,10 @@ packages:
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
+ resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==}
+ dev: false
+
resolution: {integrity: sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==}
engines: {node: '>= 0.6'}
@@ -3253,7 +3641,6 @@ packages:
path-key: 3.1.1
shebang-command: 2.0.0
which: 2.0.2
- dev: true
resolution: {integrity: sha512-HYPSb7y/Z7BNDCOrakL4raGO2zltZkbeXyAd6Tg9obzix6QhzxCotdBl6VT0Dv4vZfJGVz3WL/xaEI9Ly3ul0g==}
@@ -3269,6 +3656,10 @@ packages:
resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==}
+
+ resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==}
+ engines: {node: '>= 12'}
dev: true
@@ -3287,7 +3678,6 @@ packages:
optional: true
dependencies:
ms: 2.1.3
- dev: true
resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}
@@ -3308,7 +3698,6 @@ packages:
resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
- dev: true
resolution: {integrity: sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==}
@@ -3316,7 +3705,6 @@ packages:
dependencies:
bplist-parser: 0.2.0
untildify: 4.0.0
- dev: true
resolution: {integrity: sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==}
@@ -3326,12 +3714,10 @@ packages:
default-browser-id: 3.0.0
execa: 7.1.1
titleize: 3.0.0
- dev: true
resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==}
engines: {node: '>=12'}
- dev: true
resolution: {integrity: sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==}
@@ -3339,16 +3725,30 @@ packages:
dependencies:
has-property-descriptors: 1.0.0
object-keys: 1.1.1
+
+ resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}
+ engines: {node: '>=0.4.0'}
dev: true
resolution: {integrity: sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==}
- dev: false
+ dev: true
resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}
engines: {node: '>=6'}
+ resolution: {integrity: sha512-Mc7QhQ8s+cLrnUfU/Ji94vG/r8M26m8f++vyres4ZoojaRDpZ1eSIh/EpzLNwlWuvzSZ3UbDFspjFvTDXe6e/g==}
+ engines: {node: '>=12.20'}
+ dev: false
+
+ resolution: {integrity: sha512-1aXUEPdfGdzVPFpzGJJNgq9o81bGg1s09uxTWsqBlo9PI332uyJRQq13+LK/UN4JfxJbFdCXonUFQ9R/p7yCtw==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ dev: false
+
resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==}
dev: false
@@ -3366,7 +3766,6 @@ packages:
engines: {node: '>=8'}
dependencies:
path-type: 4.0.0
- dev: true
resolution: {integrity: sha512-9S6m9Sukh1cZNknO1CWAr2QAWsbKLafQiyM5gZ7VgXHeuaoUwffKN4q6NC4A/Mf9iiPlOXQEKW/Mv/mh9/3YFA==}
@@ -3381,41 +3780,49 @@ packages:
engines: {node: '>=0.10.0'}
dependencies:
esutils: 2.0.3
- dev: true
resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==}
engines: {node: '>=6.0.0'}
dependencies:
esutils: 2.0.3
+
+ resolution: {integrity: sha512-ODHbGTskqRtXAzZapDPvgNuDVQApu4oKX8lZW7Y0+9hKA6le1ZJlyRS687oU9FXjOVEDU/VFV6zI125HzhM1UQ==}
+ hasBin: true
+ dependencies:
+ cross-spawn: 7.0.3
+ dotenv: 16.3.1
+ dotenv-expand: 10.0.0
+ minimist: 1.2.8
dev: true
- resolution: {integrity: sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==}
+ resolution: {integrity: sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==}
+ engines: {node: '>=12'}
+ dev: true
+
+ resolution: {integrity: sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==}
engines: {node: '>=12'}
dev: false
- resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
+ resolution: {integrity: sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==}
+ engines: {node: '>=12'}
dev: true
resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==}
dependencies:
safe-buffer: 5.2.1
- dev: false
+ dev: true
resolution: {integrity: sha512-1JkvV2sgEGTDXjdsaQCeSwYYuhLRphRpc+g6EHTFELJXEiznLt3/0pZ9JuAOQ5p2rI3YxKTbivtvajirIfhrEQ==}
- dev: true
-
- resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
- dev: true
resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}
- dev: true
resolution: {integrity: sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==}
@@ -3428,7 +3835,12 @@ packages:
dependencies:
graceful-fs: 4.2.11
tapable: 2.2.1
- dev: true
+
+ resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==}
+ dependencies:
+ is-arrayish: 0.2.1
+ dev: false
resolution: {integrity: sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==}
@@ -3473,7 +3885,6 @@ packages:
typed-array-length: 1.0.4
unbox-primitive: 1.0.2
which-typed-array: 1.1.10
- dev: true
resolution: {integrity: sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==}
@@ -3486,13 +3897,11 @@ packages:
get-intrinsic: 1.2.1
has: 1.0.3
has-tostringtag: 1.0.0
- dev: true
resolution: {integrity: sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==}
dependencies:
has: 1.0.3
- dev: true
resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==}
@@ -3501,6 +3910,214 @@ packages:
is-callable: 1.2.7
is-date-object: 1.0.5
is-symbol: 1.0.4
+
+ resolution: {integrity: sha512-Tz2++Aqqz0rJ7kYBfz+iqyE3QMycD4vk7LBRyWaAVFgFtQ/O8EJOnVmTOiDWYZ/uYzB4kvP+bqejYdVKzE5lAQ==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-F9E+/QDi9sSkLaClO8SOV6etqPd+5DgJje1F9lOWoNncDdOBL2YF59IhsWATSt0TLZbYCf3pNlTHvVV5VfHdvg==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-jtdKWV3nBviOd5v4hOpkVmpxsBy90CGzebpbO9beiqUYVMBtSc0AL9zGftFuBon7PNDcdvNCEuQqw2x0wP9yug==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-OPafJHD2oUPyvJMrsCvDGkRrVCar5aVyHfWGQzY1dWnzErjrDuSETxwA2HSsyg2jORLY8yBfzc1MIpUkXlctmw==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-OKwd4gmwHqOTp4mOGZKe/XUlbDJ4Q9TjX0hMPIDBUWWu/kwhBAudJdBoxnjNf9ocIB6GN6CPowYpR/hRCbSYAg==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [freebsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-sFwueGr7OvIFiQT6WeG0jRLjkjdqWWSrfbVwZp8iMP+8UHEHRBvlaxL6IuKNDwAozNUmbb8nIMXa7oAOARGs1Q==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [freebsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-1ZuY+JDI//WmklKlBgJnglpUL1owm2OX+8E1syCD6UAxcMM/XoWd76OHSjl/0MR0LisSAXDqgjT3uJqT67O3qw==}
+ engines: {node: '>=12'}
+ cpu: [ia32]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-EgjAgH5HwTbtNsTqQOXWApBaPVdDn7XcK+/PtJwZLT1UmpLoznPd8c5CxqsH2dQK3j05YsB3L17T8vE7cp4cCg==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-WL71L+0Rwv+Gv/HTmxTEmpv0UgmxYa5ftZILVi2QmZBgX3q7+tDeOQNqGtdXSdsL8TQi1vIaVFHUPDe0O0kdig==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-qqz/SjemQhVMTnvcLGoLOdFpCYbz4v4fUo+TfsWG+1aOu70/80RV6bgNpR2JCrppV2moUQkww+6bWxXRL9YMGw==}
+ engines: {node: '>=12'}
+ cpu: [arm]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-qTHGQB8D1etd0u1+sB6p0ikLKRVuCWhYQhAHRPkO+OF3I/iSlTKNNS0Lh2Oc0g0UFGguaFZZiPJdJey3AGpAlw==}
+ engines: {node: '>=12'}
+ cpu: [mips64el]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-j3OMlzHiqwZBDPRCDFKcx595XVfOfOnv68Ax3U4UKZ3MTYQB5Yz3X1mn5GnodEVYzhtZgxEBidLWeIs8FDSfrQ==}
+ engines: {node: '>=12'}
+ cpu: [ppc64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-y7Vt7Wl9dkOGZjxQZnDAqqn+XOqFD7IMWiewY5SPlNlzMX39ocPQlOaoxvT4FllA5viyV26/QzHtvTjVNOxHZg==}
+ engines: {node: '>=12'}
+ cpu: [riscv64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-zaHpW9dziAsi7lRcyV4r8dhfG1qBidQWUXweUjnw+lliChJqQr+6XD71K41oEIC3Mx1KStovEmlzm+MkGZHnHA==}
+ engines: {node: '>=12'}
+ cpu: [s390x]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-PR01lmIMnfJTgeU9VJTDY9ZerDWVFIUzAtJuDHwwceppW7cQWjBBqP48NdeRtoP04/AtO9a7w3viI+PIDr6d+w==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [netbsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-Qyk7ikT2o7Wu76UsvvDS5q0amJvmRzDyVlL0qf5VLsLchjCa1+IAvd8kTBgUxD7VBUUVgItLkk609ZHUc1oCaw==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [openbsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-28GZ24KmMSeKi5ueWzMcco6EBHStL3B6ubM7M51RmPwXQGLe0teBGJocmWhgwccA1GeFXqxzILIxXpHbl9Q/Kw==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [sunos]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-T+rdZW19ql9MjS7pixmZYVObd9G7kcaZo+sETqNH4RCkuuYSuv9AGHUVnPoP9hhuE1WM1ZimHz1CIBHBboLU7w==}
+ engines: {node: '>=12'}
+ cpu: [ia32]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-AoHTRBUuYwXtZhjXZbA1pGfTo8cJo3vZIcWGLiUcTNgHpJJMC1rVA44ZereBHMJtotyN71S8Qw0npiCIkW96cQ==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-M0kuUvXhot1zOISQGXwWn6YtS+Y/1RT9WrVIOywZnJHo3jCDyewAc79aKNQWFCQm+xNHVTq9h8dZKvygoXQQRg==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-Cy9llcy8DvET5uznocPyqL3BFRrFXSVqbgpMJ9Wz8oVjZlh/zUSNbPRbov0VX7VxN2JH1Oa0uNxZ7eLRb62pJA==}
+ engines: {node: '>=12'}
+ hasBin: true
+ requiresBuild: true
+ optionalDependencies:
+ '@esbuild/linux-loong64': 0.14.54
+ esbuild-android-64: 0.14.54
+ esbuild-android-arm64: 0.14.54
+ esbuild-darwin-64: 0.14.54
+ esbuild-darwin-arm64: 0.14.54
+ esbuild-freebsd-64: 0.14.54
+ esbuild-freebsd-arm64: 0.14.54
+ esbuild-linux-32: 0.14.54
+ esbuild-linux-64: 0.14.54
+ esbuild-linux-arm: 0.14.54
+ esbuild-linux-arm64: 0.14.54
+ esbuild-linux-mips64le: 0.14.54
+ esbuild-linux-ppc64le: 0.14.54
+ esbuild-linux-riscv64: 0.14.54
+ esbuild-linux-s390x: 0.14.54
+ esbuild-netbsd-64: 0.14.54
+ esbuild-openbsd-64: 0.14.54
+ esbuild-sunos-64: 0.14.54
+ esbuild-windows-32: 0.14.54
+ esbuild-windows-64: 0.14.54
+ esbuild-windows-arm64: 0.14.54
dev: true
@@ -3536,12 +4153,15 @@ packages:
resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}
engines: {node: '>=6'}
- dev: true
+
+ resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==}
+ engines: {node: '>=0.8.0'}
+ dev: false
resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
engines: {node: '>=10'}
- dev: true
resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==}
@@ -3573,6 +4193,33 @@ packages:
- supports-color
dev: true
+ resolution: {integrity: sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==}
+ hasBin: true
+ peerDependencies:
+ eslint: '>=7.0.0'
+ dependencies:
+ eslint: 8.45.0
+ dev: false
+
+ resolution: {integrity: sha512-z3jfh+D7UGYlzMWGh+Kqz++hf8LOE96q3o5R8X4HTjmxaBWlLAWG+0Ounr38h+JLR2TJno0hU9zfzoPNkR9BdA==}
+ peerDependencies:
+ eslint: '>6.6.0'
+ dependencies:
+ eslint: 8.45.0
+ eslint-plugin-turbo: 1.10.12([email protected])
+ dev: false
+
+ resolution: {integrity: sha512-WdviM1Eu834zsfjHtcGHtGfcu+F30Od3V7I9Fi57uhBEwPkjDcii7/yW8jAT+gOhn4P/vOxxNAXbFAKsrrc15w==}
+ engines: {node: '>= 4'}
+ peerDependencies:
+ eslint-plugin-import: '>=1.4.0'
+ dependencies:
+ eslint-plugin-import: 2.27.5(@typescript-eslint/[email protected])([email protected])([email protected])
+ dev: false
+
resolution: {integrity: sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==}
dependencies:
@@ -3581,7 +4228,6 @@ packages:
resolve: 1.22.2
transitivePeerDependencies:
- supports-color
- dev: true
resolution: {integrity: sha512-TdJqPHs2lW5J9Zpe17DZNQuDnox4xo2o+0tE7Pggain9Rbc19ik8kFtXdxZ250FVx2kF4vlt2RSf4qlUpG7bhw==}
@@ -3605,7 +4251,30 @@ packages:
- eslint-import-resolver-node
- eslint-import-resolver-webpack
- supports-color
- dev: true
+
+ resolution: {integrity: sha512-TdJqPHs2lW5J9Zpe17DZNQuDnox4xo2o+0tE7Pggain9Rbc19ik8kFtXdxZ250FVx2kF4vlt2RSf4qlUpG7bhw==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ peerDependencies:
+ eslint: '*'
+ eslint-plugin-import: '*'
+ dependencies:
+ debug: 4.3.4
+ enhanced-resolve: 5.15.0
+ eslint: 8.45.0
+ eslint-module-utils: 2.8.0(@typescript-eslint/[email protected])([email protected])([email protected])
+ eslint-plugin-import: 2.27.5(@typescript-eslint/[email protected])([email protected])([email protected])
+ get-tsconfig: 4.6.2
+ globby: 13.2.2
+ is-core-module: 2.12.1
+ is-glob: 4.0.3
+ synckit: 0.8.5
+ transitivePeerDependencies:
+ - '@typescript-eslint/parser'
+ - eslint-import-resolver-node
+ - eslint-import-resolver-webpack
+ - supports-color
+ dev: false
resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==}
@@ -3635,9 +4304,8 @@ packages:
eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])
transitivePeerDependencies:
- supports-color
- dev: true
resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==}
engines: {node: '>=4'}
peerDependencies:
@@ -3658,13 +4326,24 @@ packages:
eslint-import-resolver-webpack:
optional: true
dependencies:
- '@typescript-eslint/parser': 6.0.0([email protected])([email protected])
+ '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
debug: 3.2.7
eslint: 8.45.0
- eslint-import-resolver-node: 0.3.7
+ eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/[email protected])([email protected])([email protected])
transitivePeerDependencies:
- supports-color
- dev: true
+ dev: false
+
+ resolution: {integrity: sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==}
+ engines: {node: '>=6.5.0'}
+ peerDependencies:
+ eslint: '>=4.19.1'
+ dependencies:
+ escape-string-regexp: 1.0.5
+ eslint: 8.45.0
+ ignore: 5.2.4
+ dev: false
resolution: {integrity: sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==}
@@ -3697,40 +4376,27 @@ packages:
- eslint-import-resolver-typescript
- eslint-import-resolver-webpack
- supports-color
- dev: true
- resolution: {integrity: sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==}
- engines: {node: '>=4'}
+ resolution: {integrity: sha512-sRLlSCpICzWuje66Gl9zvdF6mwD5X86I4u55hJyFBsxYOsBCmT5+kSUjf+fkFWVMMgpzNEupjW8WzUqi83hJAQ==}
+ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
peerDependencies:
- '@typescript-eslint/parser': '*'
- eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8
+ '@typescript-eslint/eslint-plugin': ^5.0.0 || ^6.0.0
+ eslint: ^7.0.0 || ^8.0.0
+ jest: '*'
peerDependenciesMeta:
- '@typescript-eslint/parser':
+ '@typescript-eslint/eslint-plugin':
+ optional: true
+ jest:
optional: true
dependencies:
- '@typescript-eslint/parser': 6.0.0([email protected])([email protected])
- array-includes: 3.1.6
- array.prototype.flat: 1.3.1
- array.prototype.flatmap: 1.3.1
- debug: 3.2.7
- doctrine: 2.1.0
+ '@typescript-eslint/eslint-plugin': 5.59.1(@typescript-eslint/[email protected])([email protected])([email protected])
+ '@typescript-eslint/utils': 5.59.1([email protected])([email protected])
eslint: 8.45.0
- eslint-import-resolver-node: 0.3.7
- eslint-module-utils: 2.8.0(@typescript-eslint/[email protected])([email protected])([email protected])
- has: 1.0.3
- is-core-module: 2.12.1
- is-glob: 4.0.3
- minimatch: 3.1.2
- object.values: 1.1.6
- resolve: 1.22.2
- semver: 6.3.1
- tsconfig-paths: 3.14.2
transitivePeerDependencies:
- - eslint-import-resolver-typescript
- - eslint-import-resolver-webpack
- supports-color
- dev: true
+ - typescript
+ dev: false
resolution: {integrity: sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==}
@@ -3755,7 +4421,28 @@ packages:
object.entries: 1.1.6
object.fromentries: 2.0.6
semver: 6.3.1
- dev: true
+
+ resolution: {integrity: sha512-uRLRLk7uTzc8NE6t4wBU8dijQwHvC66R/h7xwdM779jsJjMUtSmeaB8ayRkkpfwi+UU5BEfwvDANwmE+ccMVDw==}
+ peerDependencies:
+ eslint: '>=7'
+ eslint-plugin-jest: '>=24'
+ peerDependenciesMeta:
+ eslint-plugin-jest:
+ optional: true
+ dependencies:
+ eslint: 8.45.0
+ eslint-plugin-jest: 27.2.3(@typescript-eslint/[email protected])([email protected])([email protected])
+ dev: false
+
+ resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0
+ dependencies:
+ eslint: 8.45.0
+ dev: false
resolution: {integrity: sha512-AZYbMo/NW9chdL7vk6HQzQhT+PvTAEVqWk9ziruUoW2kAOcN5qNyelv70e0F1VNQAbvutOC9oc+xfWycI9FxDw==}
@@ -3788,7 +4475,58 @@ packages:
resolve: 2.0.0-next.4
semver: 6.3.1
string.prototype.matchall: 4.0.8
- dev: true
+
+ resolution: {integrity: sha512-5eX9e1Kc2PqVRed3taaLnAAqPZGEX75C+M/rXzUAI3wIg/ZxzUm1OVAwfe/O+vE+6YXOLetSe9g5GKD2ecXipw==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0, npm: '>=6'}
+ peerDependencies:
+ eslint: ^7.5.0 || ^8.0.0
+ dependencies:
+ '@typescript-eslint/utils': 5.59.1([email protected])([email protected])
+ eslint: 8.45.0
+ transitivePeerDependencies:
+ - supports-color
+ - typescript
+ dev: false
+
+ resolution: {integrity: sha512-xRmVi7Zx44lOBuYqG8vzTXuL6IdGOeF9nHX17bjJ8+VE6fsxpdGem0/SBTmAwgYMKYB1WBkqRJVQ+n8GK041pA==}
+ dependencies:
+ '@microsoft/tsdoc': 0.14.2
+ '@microsoft/tsdoc-config': 0.16.2
+ dev: false
+
+ resolution: {integrity: sha512-uNbdj+ohZaYo4tFJ6dStRXu2FZigwulR1b3URPXe0Q8YaE7thuekKNP+54CHtZPH9Zey9dmDx5btAQl9mfzGOw==}
+ peerDependencies:
+ eslint: '>6.6.0'
+ dependencies:
+ dotenv: 16.0.3
+ eslint: 8.45.0
+ dev: false
+
+ resolution: {integrity: sha512-DtqZ5mf/GMlfWoz1abIjq5jZfaFuHzGBZYIeuJfEoKKGWRHr2JiJR+ea+BF7Wx2N1PPRoT/2fwgiK1NnmNE3Hg==}
+ engines: {node: '>=14.18'}
+ peerDependencies:
+ eslint: '>=8.18.0'
+ dependencies:
+ '@babel/helper-validator-identifier': 7.22.5
+ ci-info: 3.8.0
+ clean-regexp: 1.0.0
+ eslint: 8.45.0
+ eslint-utils: 3.0.0([email protected])
+ esquery: 1.5.0
+ indent-string: 4.0.0
+ is-builtin-module: 3.2.1
+ lodash: 4.17.21
+ pluralize: 8.0.0
+ read-pkg-up: 7.0.1
+ regexp-tree: 0.1.27
+ safe-regex: 2.1.1
+ semver: 7.5.4
+ strip-indent: 3.0.0
+ dev: false
resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==}
@@ -3796,7 +4534,6 @@ packages:
dependencies:
esrecurse: 4.3.0
estraverse: 4.3.0
- dev: true
resolution: {integrity: sha512-CvefSOsDdaYYvxChovdrPo/ZGt8d5lrJWleAc1diXRKhHGiTYEI26cvo8Kle/wGnsizoCJjK73FMg1/IkIwiNA==}
@@ -3804,12 +4541,25 @@ packages:
dependencies:
esrecurse: 4.3.0
estraverse: 5.3.0
- dev: true
+
+ resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==}
+ engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0}
+ peerDependencies:
+ eslint: '>=5'
+ dependencies:
+ eslint: 8.45.0
+ eslint-visitor-keys: 2.1.0
+ dev: false
+
+ resolution: {integrity: sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==}
+ engines: {node: '>=10'}
+ dev: false
resolution: {integrity: sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dev: true
resolution: {integrity: sha512-pd8KSxiQpdYRfYa9Wufvdoct3ZPQQuVuU5O6scNgMuOMYuxvH0IGaYK0wUFjo4UYYQQCUndlXiMbnxopwvvTiw==}
@@ -3855,7 +4605,6 @@ packages:
text-table: 0.2.0
transitivePeerDependencies:
- supports-color
- dev: true
resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==}
@@ -3864,36 +4613,30 @@ packages:
acorn: 8.10.0
acorn-jsx: 5.3.2([email protected])
eslint-visitor-keys: 3.4.1
- dev: true
resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==}
engines: {node: '>=0.10'}
dependencies:
estraverse: 5.3.0
- dev: true
resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
engines: {node: '>=4.0'}
dependencies:
estraverse: 5.3.0
- dev: true
resolution: {integrity: sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==}
engines: {node: '>=4.0'}
- dev: true
resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}
engines: {node: '>=4.0'}
- dev: true
resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
engines: {node: '>=0.10.0'}
- dev: true
resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==}
@@ -3913,7 +4656,6 @@ packages:
onetime: 5.1.2
signal-exit: 3.0.7
strip-final-newline: 2.0.0
- dev: true
resolution: {integrity: sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q==}
@@ -3928,7 +4670,6 @@ packages:
onetime: 6.0.0
signal-exit: 3.0.7
strip-final-newline: 3.0.0
- dev: true
resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}
@@ -3936,7 +4677,6 @@ packages:
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
- dev: true
resolution: {integrity: sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==}
@@ -3950,11 +4690,9 @@ packages:
resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
- dev: true
resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
- dev: true
resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==}
@@ -3967,12 +4705,19 @@ packages:
format: 0.2.2
dev: false
+ resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}
+ engines: {node: ^12.20 || >= 14.13}
+ dependencies:
+ node-domexception: 1.0.0
+ web-streams-polyfill: 3.2.1
+ dev: true
+
resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==}
engines: {node: ^10.12.0 || >=12.0.0}
dependencies:
flat-cache: 3.0.4
- dev: true
resolution: {integrity: sha512-QlZ5yJC0VxHxQQsQhXvBaC7VRJ2uaxTf+Tfpu4Z/OcVQJVpZO+DGU0rkoVW5ce2SccxugvpBJoMvUs59iILYdw==}
@@ -3987,13 +4732,20 @@ packages:
dependencies:
to-regex-range: 5.0.1
+ resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==}
+ engines: {node: '>=8'}
+ dependencies:
+ locate-path: 5.0.0
+ path-exists: 4.0.0
+ dev: false
+
resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}
engines: {node: '>=10'}
dependencies:
locate-path: 6.0.0
path-exists: 4.0.0
- dev: true
resolution: {integrity: sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==}
@@ -4001,16 +4753,22 @@ packages:
dependencies:
flatted: 3.2.7
rimraf: 3.0.2
- dev: true
resolution: {integrity: sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==}
- dev: true
resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==}
dependencies:
is-callable: 1.2.7
+
+ resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==}
+ engines: {node: '>= 6'}
+ dependencies:
+ asynckit: 0.4.0
+ combined-stream: 1.0.8
+ mime-types: 2.1.35
dev: true
@@ -4018,6 +4776,13 @@ packages:
engines: {node: '>=0.4.x'}
dev: false
+ resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}
+ engines: {node: '>=12.20.0'}
+ dependencies:
+ fetch-blob: 3.2.0
+ dev: true
+
resolution: {integrity: sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==}
dev: true
@@ -4061,11 +4826,14 @@ packages:
define-properties: 1.2.0
es-abstract: 1.22.1
functions-have-names: 1.2.3
- dev: true
resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
- dev: true
+
+ resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}
+ engines: {node: '>=6.9.0'}
+ dev: false
resolution: {integrity: sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==}
@@ -4074,7 +4842,6 @@ packages:
has: 1.0.3
has-proto: 1.0.1
has-symbols: 1.0.3
- dev: true
resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==}
@@ -4084,7 +4851,6 @@ packages:
resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}
engines: {node: '>=10'}
- dev: true
resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==}
@@ -4092,13 +4858,15 @@ packages:
dependencies:
call-bind: 1.0.2
get-intrinsic: 1.2.1
- dev: true
resolution: {integrity: sha512-E5XrT4CbbXcXWy+1jChlZmrmCwd5KGx502kDCXJJ7y898TtWW9FwoG5HfOLVRKmlmDGkWN2HM9Ho+/Y8F0sJDg==}
dependencies:
resolve-pkg-maps: 1.0.0
- dev: true
+
+ resolution: {integrity: sha512-LF8VeHeR7v+wAbXqfgRlTSX/1BJR9Q1vEMR8JAz1cEg6GX07+zyj3sAdDvYjj/xnlIfVuGgj4qBei1K3hKH+PA==}
+ dev: false
resolution: {integrity: sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==}
@@ -4138,7 +4906,6 @@ packages:
minimatch: 3.1.2
once: 1.4.0
path-is-absolute: 1.0.1
- dev: true
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
@@ -4149,21 +4916,23 @@ packages:
minimatch: 3.1.2
once: 1.4.0
path-is-absolute: 1.0.1
- dev: true
+
+ resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}
+ engines: {node: '>=4'}
+ dev: false
resolution: {integrity: sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==}
engines: {node: '>=8'}
dependencies:
type-fest: 0.20.2
- dev: true
resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==}
engines: {node: '>= 0.4'}
dependencies:
define-properties: 1.2.0
- dev: true
resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==}
@@ -4175,7 +4944,6 @@ packages:
ignore: 5.2.4
merge2: 1.4.1
slash: 3.0.0
- dev: true
resolution: {integrity: sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==}
@@ -4186,56 +4954,52 @@ packages:
ignore: 5.2.4
merge2: 1.4.1
slash: 4.0.0
- dev: true
resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}
dependencies:
get-intrinsic: 1.2.1
- dev: true
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==}
- dev: true
+ dev: false
resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==}
- dev: true
resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==}
- dev: true
+
+ resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==}
+ engines: {node: '>=4'}
+ dev: false
resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
engines: {node: '>=8'}
- dev: true
resolution: {integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==}
dependencies:
get-intrinsic: 1.2.1
- dev: true
resolution: {integrity: sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==}
engines: {node: '>= 0.4'}
- dev: true
resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==}
engines: {node: '>= 0.4'}
- dev: true
resolution: {integrity: sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==}
engines: {node: '>= 0.4'}
dependencies:
has-symbols: 1.0.3
- dev: true
resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==}
@@ -4379,6 +5143,10 @@ packages:
resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==}
dev: false
+ resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==}
+ dev: false
+
resolution: {integrity: sha512-0quDb7s97CfemeJAnW9wC0hw78MtW7NU3hqtCD75g2vFlDLt36llsYD7uB7SUzojLMP24N5IatXf7ylGXiGG9A==}
dev: false
@@ -4386,12 +5154,10 @@ packages:
resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}
engines: {node: '>=10.17.0'}
- dev: true
resolution: {integrity: sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==}
engines: {node: '>=14.18.0'}
- dev: true
resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==}
@@ -4402,7 +5168,6 @@ packages:
resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==}
engines: {node: '>= 4'}
- dev: true
resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==}
@@ -4410,12 +5175,10 @@ packages:
dependencies:
parent-module: 1.0.1
resolve-from: 4.0.0
- dev: true
resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
engines: {node: '>=0.8.19'}
- dev: true
resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==}
@@ -4441,7 +5204,6 @@ packages:
get-intrinsic: 1.2.1
has: 1.0.3
side-channel: 1.0.4
- dev: true
resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==}
@@ -4477,13 +5239,15 @@ packages:
call-bind: 1.0.2
get-intrinsic: 1.2.1
is-typed-array: 1.1.10
- dev: true
+
+ resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}
+ dev: false
resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==}
dependencies:
has-bigints: 1.0.2
- dev: true
resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
@@ -4497,17 +5261,22 @@ packages:
dependencies:
call-bind: 1.0.2
has-tostringtag: 1.0.0
- dev: true
resolution: {integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==}
engines: {node: '>=4'}
dev: false
+ resolution: {integrity: sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==}
+ engines: {node: '>=6'}
+ dependencies:
+ builtin-modules: 3.3.0
+ dev: false
+
resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==}
engines: {node: '>= 0.4'}
- dev: true
resolution: {integrity: sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==}
@@ -4519,7 +5288,6 @@ packages:
engines: {node: '>= 0.4'}
dependencies:
has-tostringtag: 1.0.0
- dev: true
resolution: {integrity: sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==}
@@ -4533,28 +5301,16 @@ packages:
resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==}
engines: {node: '>=8'}
hasBin: true
- dev: true
resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
hasBin: true
- dev: true
resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
engines: {node: '>=0.10.0'}
- resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
- engines: {node: '>=8'}
- dev: true
-
- resolution: {integrity: sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==}
- engines: {node: '>=12'}
- dev: true
-
resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
engines: {node: '>=0.10.0'}
@@ -4575,19 +5331,16 @@ packages:
hasBin: true
dependencies:
is-docker: 3.0.0
- dev: true
resolution: {integrity: sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==}
engines: {node: '>= 0.4'}
- dev: true
resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==}
engines: {node: '>= 0.4'}
dependencies:
has-tostringtag: 1.0.0
- dev: true
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
@@ -4596,7 +5349,6 @@ packages:
resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==}
engines: {node: '>=8'}
- dev: true
resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==}
@@ -4606,7 +5358,7 @@ packages:
resolution: {integrity: sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==}
engines: {node: '>=0.10.0'}
- dev: false
+ dev: true
resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==}
@@ -4614,37 +5366,31 @@ packages:
dependencies:
call-bind: 1.0.2
has-tostringtag: 1.0.0
- dev: true
resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==}
dependencies:
call-bind: 1.0.2
- dev: true
resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}
engines: {node: '>=8'}
- dev: true
resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
- dev: true
resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==}
engines: {node: '>= 0.4'}
dependencies:
has-tostringtag: 1.0.0
- dev: true
resolution: {integrity: sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==}
engines: {node: '>= 0.4'}
dependencies:
has-symbols: 1.0.3
- dev: true
resolution: {integrity: sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==}
@@ -4655,13 +5401,11 @@ packages:
for-each: 0.3.3
gopd: 1.0.1
has-tostringtag: 1.0.0
- dev: true
resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==}
dependencies:
call-bind: 1.0.2
- dev: true
resolution: {integrity: sha512-uKua1wfy3Yt+YqsD6mTUEa2zSi3G1oPlqTflgaPJ7z63vUGN5pxFpnQfeSLMFnJDEsdvOtkp1rUWkYjB4YfhgA==}
@@ -4673,15 +5417,12 @@ packages:
engines: {node: '>=8'}
dependencies:
is-docker: 2.2.1
- dev: true
resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==}
- dev: true
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
- dev: true
resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==}
@@ -4696,17 +5437,26 @@ packages:
resolution: {integrity: sha512-oVhqoRDaBXf7sjkll95LHVS6Myyyb1zaunVwk4Z0+WPSW4gjS0pl01zYKHScTuyEhQsFxV5L4DR5r+YqSyqyyg==}
hasBin: true
+ resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==}
+ dev: false
+
resolution: {integrity: sha512-j8GhLiKmUAh+dsFXlX1aJCbt5KMibuKb+d7j1JaOJG6s2UjX1PQlW+OKB/sD4a/5ZYF4RcmYmLSndOoU3Lt/3g==}
dev: false
+ resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==}
+ engines: {node: '>=10'}
+ dev: true
+
resolution: {integrity: sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ==}
- dev: false
+ dev: true
resolution: {integrity: sha512-01gwBFreYydzmU9BmZxpVk6svJJHrVxEN3IOiGl6VO93bVKYETJ0sIth6DASI6mIFdt7NmfX9UiByRzsYHGU9w==}
- dev: false
+ dev: true
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
@@ -4716,32 +5466,32 @@ packages:
hasBin: true
dependencies:
argparse: 2.0.1
- dev: true
+
+ resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==}
+ engines: {node: '>=4'}
+ hasBin: true
+ dev: false
resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}
- dev: true
resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}
- dev: true
resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}
- dev: true
resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==}
hasBin: true
dependencies:
minimist: 1.2.8
- dev: true
resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
engines: {node: '>=6'}
hasBin: true
- dev: true
resolution: {integrity: sha512-K8wx7eJ5TPvEjuiVSkv167EVboBDv9PZdDoF7BgeQnBLVvZWW9clr2PsQHVJDTKaEIH5JBIwHujGcHp7GgI2eg==}
@@ -4751,7 +5501,7 @@ packages:
lodash: 4.17.21
ms: 2.1.3
semver: 7.5.4
- dev: false
+ dev: true
resolution: {integrity: sha512-fX2TVdCViod6HwKEtSWGHs57oFhVfCMwieb9PuRDgjDPh5XeqJiHFFFJCHxU5cnTc3Bu/GRL+kPiFmw8XWOfKw==}
@@ -4761,7 +5511,6 @@ packages:
array.prototype.flat: 1.3.1
object.assign: 4.1.4
object.values: 1.1.6
- dev: true
resolution: {integrity: sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==}
@@ -4769,14 +5518,14 @@ packages:
buffer-equal-constant-time: 1.0.1
ecdsa-sig-formatter: 1.0.11
safe-buffer: 5.2.1
- dev: false
+ dev: true
resolution: {integrity: sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==}
dependencies:
jwa: 1.4.1
safe-buffer: 5.2.1
- dev: false
+ dev: true
resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}
@@ -4785,13 +5534,11 @@ packages:
resolution: {integrity: sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==}
- dev: true
resolution: {integrity: sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==}
dependencies:
language-subtag-registry: 0.3.22
- dev: true
resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
@@ -4799,7 +5546,6 @@ packages:
dependencies:
prelude-ls: 1.2.1
type-check: 0.4.0
- dev: true
resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==}
@@ -4808,46 +5554,9 @@ packages:
resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
- resolution: {integrity: sha512-zVVEXLuQIhr1Y7R7YAWx4TZLdvuzk7DnmrsTNL0fax6Z3jrpFcas+vKbzxhhvp6TA55m1SQuWkpzI1qbfDZbAg==}
- engines: {node: ^14.13.1 || >=16.0.0}
- hasBin: true
- dependencies:
- chalk: 5.2.0
- cli-truncate: 3.1.0
- commander: 10.0.1
- debug: 4.3.4
- execa: 7.1.1
- lilconfig: 2.1.0
- listr2: 5.0.8
- micromatch: 4.0.5
- normalize-path: 3.0.0
- object-inspect: 1.12.3
- pidtree: 0.6.0
- string-argv: 0.3.2
- yaml: 2.3.1
- transitivePeerDependencies:
- - enquirer
- - supports-color
- dev: true
-
- resolution: {integrity: sha512-mC73LitKHj9w6v30nLNGPetZIlfpUniNSsxxrbaPcWOjDb92SHPzJPi/t+v1YC/lxKz/AJ9egOjww0qUuFxBpA==}
- engines: {node: ^14.13.1 || >=16.0.0}
- peerDependencies:
- enquirer: '>= 2.3.0 < 3'
- peerDependenciesMeta:
- enquirer:
- optional: true
- dependencies:
- cli-truncate: 2.1.0
- colorette: 2.0.20
- log-update: 4.0.0
- p-map: 4.0.0
- rfdc: 1.3.0
- rxjs: 7.8.1
- through: 2.3.8
- wrap-ansi: 7.0.0
+ resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
dev: true
@@ -4864,12 +5573,18 @@ packages:
json5: 2.2.3
dev: true
+ resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==}
+ engines: {node: '>=8'}
+ dependencies:
+ p-locate: 4.1.0
+ dev: false
+
resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}
engines: {node: '>=10'}
dependencies:
p-locate: 5.0.0
- dev: true
resolution: {integrity: sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q==}
@@ -4881,21 +5596,9 @@ packages:
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
- dev: true
resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}
- dev: false
-
- resolution: {integrity: sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==}
- engines: {node: '>=10'}
- dependencies:
- ansi-escapes: 4.3.2
- cli-cursor: 3.1.0
- slice-ansi: 4.0.0
- wrap-ansi: 6.2.0
- dev: true
resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==}
@@ -4917,6 +5620,12 @@ packages:
resolution: {integrity: sha512-svTf/fzsKHffP42sujkO/Rjs37BCIsQVRCeNYIm9WN8rgT7ffoUnRtZCqU+6BqcSBdv8gwJeTz8knJpgACeQMw==}
engines: {node: 14 || >=16.14}
+ dev: true
+
+ resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
+ dependencies:
+ yallist: 3.1.1
dev: false
@@ -4925,14 +5634,13 @@ packages:
dependencies:
yallist: 4.0.0
- /[email protected](patch_hash=h6w6ds4pfexdcc2jeo33qccehm)([email protected]):
resolution: {integrity: sha512-xN6wuhUlcXeS4GsxZpd2DZp+m1jEZPckuCr90nQAXKRNl63GZ4KshIcGmqJEUqEygmv8Rf99MhcwF3DqBqQ9Dg==}
peerDependencies:
react: ^16.5.1 || ^17.0.0 || ^18.0.0
dependencies:
react: 18.2.0
dev: false
- patched: true
resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==}
@@ -5076,7 +5784,6 @@ packages:
resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}
- dev: true
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
@@ -5351,12 +6058,15 @@ packages:
resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}
engines: {node: '>=6'}
- dev: true
resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==}
engines: {node: '>=12'}
- dev: true
+
+ resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==}
+ engines: {node: '>=4'}
+ dev: false
resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
@@ -5365,7 +6075,6 @@ packages:
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
- dev: true
resolution: {integrity: sha512-1wymccLEuFSMBvCk/jT1YDW/GuxMLYwnFwF9CDyYCxoTw2Pt379J3FUhwy9c43j51JdcxVPjwk0jm0EVDsBS2g==}
@@ -5405,11 +6114,10 @@ packages:
resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==}
- dev: true
+ dev: false
resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
- dev: true
resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}
@@ -5496,9 +6204,31 @@ packages:
- babel-plugin-macros
dev: false
+ resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==}
+ engines: {node: '>=10.5.0'}
+ dev: true
+
+ resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ dependencies:
+ data-uri-to-buffer: 4.0.1
+ fetch-blob: 3.2.0
+ formdata-polyfill: 4.0.10
+ dev: true
+
resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==}
- dev: true
+
+ resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==}
+ dependencies:
+ hosted-git-info: 2.8.9
+ resolve: 1.22.2
+ semver: 5.7.2
+ validate-npm-package-license: 3.0.4
+ dev: false
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
@@ -5518,14 +6248,12 @@ packages:
engines: {node: '>=8'}
dependencies:
path-key: 3.1.1
- dev: true
resolution: {integrity: sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
dependencies:
path-key: 4.0.0
- dev: true
resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}
@@ -5552,12 +6280,10 @@ packages:
resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==}
- dev: true
resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}
engines: {node: '>= 0.4'}
- dev: true
resolution: {integrity: sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==}
@@ -5567,7 +6293,6 @@ packages:
define-properties: 1.2.0
has-symbols: 1.0.3
object-keys: 1.1.1
- dev: true
resolution: {integrity: sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==}
@@ -5576,7 +6301,6 @@ packages:
call-bind: 1.0.2
define-properties: 1.2.0
es-abstract: 1.22.1
- dev: true
resolution: {integrity: sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==}
@@ -5585,14 +6309,12 @@ packages:
call-bind: 1.0.2
define-properties: 1.2.0
es-abstract: 1.22.1
- dev: true
resolution: {integrity: sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==}
dependencies:
define-properties: 1.2.0
es-abstract: 1.22.1
- dev: true
resolution: {integrity: sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==}
@@ -5601,7 +6323,6 @@ packages:
call-bind: 1.0.2
define-properties: 1.2.0
es-abstract: 1.22.1
- dev: true
resolution: {integrity: sha512-kcFJmUreomSGA//1KfH7Ci+Xh8XO8yH/GbtTm6R0gB+JyIgjw5qL4DupMSzeTsvByxIBhoXE2PM5ZRXeJa1dDw==}
@@ -5616,7 +6337,7 @@ packages:
'@octokit/plugin-throttling': 7.0.0(@octokit/[email protected])
'@octokit/request-error': 5.0.0
'@octokit/types': 11.1.0
- dev: false
+ dev: true
resolution: {integrity: sha512-IF4PcGgzAr6XXSff26Sk/+P4KZFJVuHAJZj3wgO3vX2bMdNVp/QXTP3P7CEm9V1IdG8lDLY3HhiqpsE/nOwpPw==}
@@ -5633,14 +6354,12 @@ packages:
engines: {node: '>=6'}
dependencies:
mimic-fn: 2.1.0
- dev: true
resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==}
engines: {node: '>=12'}
dependencies:
mimic-fn: 4.0.0
- dev: true
resolution: {integrity: sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==}
@@ -5650,7 +6369,6 @@ packages:
define-lazy-prop: 3.0.0
is-inside-container: 1.0.0
is-wsl: 2.2.0
- dev: true
resolution: {integrity: sha512-sVQOvjsT/sbSfYsQI/9liWQGVZH/Pp3rrtlGEwgk/bbHfrUDZ24DN57lAagIwFtuEu+FM9Ev7r85s8S/yPjimQ==}
@@ -5671,35 +6389,43 @@ packages:
levn: 0.4.1
prelude-ls: 1.2.1
type-check: 0.4.0
- dev: true
+
+ resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==}
+ engines: {node: '>=6'}
+ dependencies:
+ p-try: 2.2.0
+ dev: false
resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}
engines: {node: '>=10'}
dependencies:
yocto-queue: 0.1.0
- dev: true
+
+ resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==}
+ engines: {node: '>=8'}
+ dependencies:
+ p-limit: 2.3.0
+ dev: false
resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}
engines: {node: '>=10'}
dependencies:
p-limit: 3.1.0
- dev: true
- resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==}
- engines: {node: '>=10'}
- dependencies:
- aggregate-error: 3.1.0
- dev: true
+ resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==}
+ engines: {node: '>=6'}
+ dev: false
resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
engines: {node: '>=6'}
dependencies:
callsites: 3.1.0
- dev: true
resolution: {integrity: sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==}
@@ -5725,6 +6451,16 @@ packages:
is-hexadecimal: 2.0.1
dev: false
+ resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}
+ engines: {node: '>=8'}
+ dependencies:
+ '@babel/code-frame': 7.22.10
+ error-ex: 1.3.2
+ json-parse-even-better-errors: 2.3.1
+ lines-and-columns: 1.2.4
+ dev: false
+
resolution: {integrity: sha512-twN+njEipszzlMJd4ONUYgSfZPDxgHhT9Ahed5uTigpQn90FggW4SA/AIPq/6a149fTbE9qBEcSwE3FAEp6wQQ==}
dev: false
@@ -5736,7 +6472,6 @@ packages:
resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
engines: {node: '>=8'}
- dev: true
resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==}
@@ -5745,12 +6480,10 @@ packages:
resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
engines: {node: '>=8'}
- dev: true
resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==}
engines: {node: '>=12'}
- dev: true
resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}
@@ -5758,7 +6491,6 @@ packages:
resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}
engines: {node: '>=8'}
- dev: true
resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==}
@@ -5767,12 +6499,6 @@ packages:
resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
engines: {node: '>=8.6'}
- resolution: {integrity: sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==}
- engines: {node: '>=0.10'}
- hasBin: true
- dev: true
-
resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}
engines: {node: '>=0.10.0'}
@@ -5781,6 +6507,11 @@ packages:
resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==}
engines: {node: '>= 6'}
+ resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==}
+ engines: {node: '>=4'}
+ dev: false
+
resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==}
engines: {node: '>=14.0.0'}
@@ -5801,6 +6532,22 @@ packages:
camelcase-css: 2.0.1
postcss: 8.4.26
+ resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==}
+ engines: {node: '>= 10'}
+ peerDependencies:
+ postcss: '>=8.0.9'
+ ts-node: '>=9.0.0'
+ peerDependenciesMeta:
+ postcss:
+ optional: true
+ ts-node:
+ optional: true
+ dependencies:
+ lilconfig: 2.1.0
+ yaml: 1.10.2
+ dev: true
+
resolution: {integrity: sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==}
engines: {node: '>= 14'}
@@ -5874,11 +6621,23 @@ packages:
resolution: {integrity: sha512-XTSj3dJ4roKIC93pald6rWuB2qQJO9gO2iLLyTe87MrjQN+HklueLsmskbywEWqCHlclgz3/M4YLL2iBr9UmMA==}
dev: false
- resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
- engines: {node: '>= 0.8.0'}
- dev: true
-
+ resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
+ engines: {node: '>= 0.8.0'}
+
+ resolution: {integrity: sha512-kPeeviJiwy0BgOSk7No8NmzzXfW4R9FYWni6ziA5zc1kGVVrKnBzMZdu2TUhI+I7h8/5Htt3vARYOk7KKJTTNQ==}
+ peerDependencies:
+ prettier: '>= 1.16.0'
+ peerDependenciesMeta:
+ prettier:
+ optional: true
+ dependencies:
+ prettier: 2.8.8
+ sort-package-json: 2.4.1
+ synckit: 0.8.5
+ dev: false
+
resolution: {integrity: sha512-hwn2EiJmv8M+AW4YDkbjJ6HlZCTzLyz1QlySn9sMuKV/Px0fjwldlB7tol8GzdgqtkdPtzT3iJ4UzdnYXP25Ag==}
engines: {node: '>=12.17.0'}
@@ -5938,7 +6697,6 @@ packages:
resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==}
engines: {node: '>=10.13.0'}
hasBin: true
- dev: true
resolution: {integrity: sha512-WuxUnVtlWL1OfZFQFuqvnvs6MiAGk9UNsBostyBOB0Is9wb5uRESevA6rnl/rkksXaGX3GzZhPup5d6Vp1nFew==}
@@ -5982,7 +6740,6 @@ packages:
resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==}
engines: {node: '>=6'}
- dev: true
resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
@@ -6191,6 +6948,25 @@ packages:
dependencies:
pify: 2.3.0
+ resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==}
+ engines: {node: '>=8'}
+ dependencies:
+ find-up: 4.1.0
+ read-pkg: 5.2.0
+ type-fest: 0.8.1
+ dev: false
+
+ resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==}
+ engines: {node: '>=8'}
+ dependencies:
+ '@types/normalize-package-data': 2.4.1
+ normalize-package-data: 2.5.0
+ parse-json: 5.2.0
+ type-fest: 0.6.0
+ dev: false
+
resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
engines: {node: '>=8.10.0'}
@@ -6217,6 +6993,11 @@ packages:
resolution: {integrity: sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==}
+ resolution: {integrity: sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==}
+ hasBin: true
+ dev: false
+
resolution: {integrity: sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==}
engines: {node: '>= 0.4'}
@@ -6224,7 +7005,6 @@ packages:
call-bind: 1.0.2
define-properties: 1.2.0
functions-have-names: 1.2.3
- dev: true
resolution: {integrity: sha512-iAeaL5JyF4XxkcvWzpi/0SAF7iV7qOTaHS56tJuEsXziQc3+PEmMn65kV8OFgbO9mRVY7J1fRC/aLvot1PsNkg==}
@@ -6354,11 +7134,21 @@ packages:
resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==}
+ engines: {node: '>=8'}
dev: true
resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
- dev: true
+
+ resolution: {integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==}
+ dependencies:
+ is-core-module: 2.12.1
+ path-parse: 1.0.7
+ dev: false
resolution: {integrity: sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==}
@@ -6375,29 +7165,23 @@ packages:
is-core-module: 2.12.1
path-parse: 1.0.7
supports-preserve-symlinks-flag: 1.0.0
- dev: true
-
- resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==}
- engines: {node: '>=8'}
- dependencies:
- onetime: 5.1.2
- signal-exit: 3.0.7
- dev: true
resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
- resolution: {integrity: sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==}
- dev: true
-
resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}
hasBin: true
dependencies:
glob: 7.2.3
+
+ resolution: {integrity: sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==}
+ engines: {node: '>=10.0.0'}
+ hasBin: true
+ optionalDependencies:
+ fsevents: 2.3.2
dev: true
@@ -6405,19 +7189,12 @@ packages:
engines: {node: '>=12'}
dependencies:
execa: 5.1.1
- dev: true
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
dependencies:
queue-microtask: 1.2.3
- resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==}
- dependencies:
- tslib: 2.6.0
- dev: true
-
resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==}
engines: {node: '>=6'}
@@ -6433,10 +7210,10 @@ packages:
get-intrinsic: 1.2.1
has-symbols: 1.0.3
isarray: 2.0.5
- dev: true
resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
+ dev: true
resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==}
@@ -6444,7 +7221,12 @@ packages:
call-bind: 1.0.2
get-intrinsic: 1.2.1
is-regex: 1.1.4
- dev: true
+
+ resolution: {integrity: sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==}
+ dependencies:
+ regexp-tree: 0.1.27
+ dev: false
resolution: {integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==}
@@ -6461,10 +7243,14 @@ packages:
ajv-keywords: 3.5.2([email protected])
dev: true
+ resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==}
+ hasBin: true
+ dev: false
+
resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}
hasBin: true
- dev: true
resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==}
@@ -6484,12 +7270,10 @@ packages:
engines: {node: '>=8'}
dependencies:
shebang-regex: 3.0.0
- dev: true
resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
engines: {node: '>=8'}
- dev: true
resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==}
@@ -6497,11 +7281,9 @@ packages:
call-bind: 1.0.2
get-intrinsic: 1.2.1
object-inspect: 1.12.3
- dev: true
resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
- dev: true
resolution: {integrity: sha512-Ck+rcjVaE1HotraRAS8u/+xgTvToTuoMkT9/l9lvuP5jftwnYUp6DwuJzsKErHgfyRk8IB8pqGHWEbM3tLgV1w==}
@@ -6511,43 +7293,31 @@ packages:
debug: 4.3.4
transitivePeerDependencies:
- supports-color
- dev: false
+ dev: true
resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
engines: {node: '>=8'}
- dev: true
resolution: {integrity: sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==}
engines: {node: '>=12'}
- dev: true
-
- resolution: {integrity: sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==}
- engines: {node: '>=8'}
- dependencies:
- ansi-styles: 4.3.0
- astral-regex: 2.0.0
- is-fullwidth-code-point: 3.0.0
- dev: true
- resolution: {integrity: sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==}
- engines: {node: '>=10'}
- dependencies:
- ansi-styles: 4.3.0
- astral-regex: 2.0.0
- is-fullwidth-code-point: 3.0.0
- dev: true
+ resolution: {integrity: sha512-855pvK+VkU7PaKYPc+Jjnmt4EzejQHyhhF33q31qG8x7maDzkeFhAAThdCYay11CISO+qAMwjOBP+fPZe0IPyg==}
+ dev: false
- resolution: {integrity: sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==}
- engines: {node: '>=12'}
+ resolution: {integrity: sha512-Nd3rgLBJcZ4iw7tpuOhwBupG6SvUDU0Fy1cZGAMorA2JmDUb+29Dg5phJK9gapa2Ak9d15w/RuMl/viwX+nKwQ==}
+ hasBin: true
dependencies:
- ansi-styles: 6.2.1
- is-fullwidth-code-point: 4.0.0
- dev: true
+ detect-indent: 7.0.1
+ detect-newline: 4.0.0
+ git-hooks-list: 3.1.0
+ globby: 13.2.2
+ is-plain-obj: 4.1.0
+ sort-object-keys: 1.1.3
+ dev: false
resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
@@ -6565,6 +7335,11 @@ packages:
engines: {node: '>=0.10.0'}
dev: true
+ resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==}
+ engines: {node: '>= 8'}
+ dev: true
+
resolution: {integrity: sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==}
dev: false
@@ -6573,6 +7348,28 @@ packages:
resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==}
dev: false
+ resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==}
+ dependencies:
+ spdx-expression-parse: 3.0.1
+ spdx-license-ids: 3.0.13
+ dev: false
+
+ resolution: {integrity: sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==}
+ dev: false
+
+ resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==}
+ dependencies:
+ spdx-exceptions: 2.3.0
+ spdx-license-ids: 3.0.13
+ dev: false
+
+ resolution: {integrity: sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==}
+ dev: false
+
resolution: {integrity: sha512-HTEHMNieakEnoe33shBYcZ7NX83ACUjCu8c40iOGEZsngj9zRnkqS9j1pqQPXwobB0ZcVTk27REb7COQ0UR59w==}
dev: false
@@ -6582,29 +7379,6 @@ packages:
engines: {node: '>=10.0.0'}
dev: false
- resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==}
- engines: {node: '>=0.6.19'}
- dev: true
-
- resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
- engines: {node: '>=8'}
- dependencies:
- emoji-regex: 8.0.0
- is-fullwidth-code-point: 3.0.0
- strip-ansi: 6.0.1
- dev: true
-
- resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==}
- engines: {node: '>=12'}
- dependencies:
- eastasianwidth: 0.2.0
- emoji-regex: 9.2.2
- strip-ansi: 7.1.0
- dev: true
-
resolution: {integrity: sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==}
dependencies:
@@ -6616,7 +7390,6 @@ packages:
internal-slot: 1.0.5
regexp.prototype.flags: 1.5.0
side-channel: 1.0.4
- dev: true
resolution: {integrity: sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==}
@@ -6625,7 +7398,6 @@ packages:
call-bind: 1.0.2
define-properties: 1.2.0
es-abstract: 1.22.1
- dev: true
resolution: {integrity: sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==}
@@ -6633,7 +7405,6 @@ packages:
call-bind: 1.0.2
define-properties: 1.2.0
es-abstract: 1.22.1
- dev: true
resolution: {integrity: sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==}
@@ -6641,7 +7412,6 @@ packages:
call-bind: 1.0.2
define-properties: 1.2.0
es-abstract: 1.22.1
- dev: true
resolution: {integrity: sha512-BP9nNHMhhfcMbiuQKCqMjhDP5yBCAxsPu4pHFFzJ6Alo9dZgY4VLDPutXqIjpRiMoKdp7Av85Gr73Q5uH9k7+g==}
@@ -6655,34 +7425,29 @@ packages:
engines: {node: '>=8'}
dependencies:
ansi-regex: 5.0.1
- dev: true
-
- resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==}
- engines: {node: '>=12'}
- dependencies:
- ansi-regex: 6.0.1
- dev: true
resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}
engines: {node: '>=4'}
- dev: true
resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}
engines: {node: '>=6'}
- dev: true
resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==}
engines: {node: '>=12'}
- dev: true
+
+ resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==}
+ engines: {node: '>=8'}
+ dependencies:
+ min-indent: 1.0.1
+ dev: false
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
engines: {node: '>=8'}
- dev: true
resolution: {integrity: sha512-HFpbb5gr2ypci7Qw+IOhnP2zOU7e77b+rzM+wTzXzfi1PrtBCX0E7Pk4wL4iTLnhzZ+JgEGAhX81ebTg/aYjQw==}
@@ -6727,12 +7492,18 @@ packages:
copy-anything: 3.0.5
dev: false
+ resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}
+ engines: {node: '>=4'}
+ dependencies:
+ has-flag: 3.0.0
+ dev: false
+
resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
engines: {node: '>=8'}
dependencies:
has-flag: 4.0.0
- dev: true
resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==}
@@ -6751,7 +7522,6 @@ packages:
dependencies:
'@pkgr/utils': 2.4.2
tslib: 2.6.0
- dev: true
resolution: {integrity: sha512-3mFKyCo/MBcgyOTlrY8T7odzZFx+w+qKSMAmdFzRvqBfLlSigU6TZnlFHK0lkMwj9Bj8OYU+9yW9lmGuS0QEnQ==}
@@ -6798,7 +7568,6 @@ packages:
resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==}
engines: {node: '>=6'}
- dev: true
resolution: {integrity: sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==}
@@ -6837,7 +7606,6 @@ packages:
resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==}
- dev: true
resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==}
@@ -6850,14 +7618,14 @@ packages:
dependencies:
any-promise: 1.3.0
- resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}
- dev: true
-
resolution: {integrity: sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==}
engines: {node: '>=12'}
- dev: true
+
+ resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==}
+ engines: {node: '>=4'}
+ dev: false
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
@@ -6865,6 +7633,11 @@ packages:
dependencies:
is-number: 7.0.0
+ resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==}
+ hasBin: true
+ dev: true
+
resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==}
dev: false
@@ -6873,15 +7646,6 @@ packages:
resolution: {integrity: sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==}
dev: false
- resolution: {integrity: sha512-lC/RGlPmwdrIBFTX59wwNzqh7aR2otPNPR/5brHZm/XKFYKsfqxihXUe9pU3JI+3vGkl+vyCoNNnPhJn3aLK1A==}
- engines: {node: '>=16.13.0'}
- peerDependencies:
- typescript: '>=4.2.0'
- dependencies:
- typescript: 5.1.6
- dev: true
-
resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
@@ -6892,15 +7656,43 @@ packages:
json5: 1.0.2
minimist: 1.2.8
strip-bom: 3.0.0
- dev: true
resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}
- dev: true
resolution: {integrity: sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==}
+ resolution: {integrity: sha512-FGZZNikQYGlEPtKEnz04hEniEO9ctP0rfWOdDeJCpFY4sqQe+TE90YNsv/1g0FshXoGYAOTFDYAVHg6Ovh003Q==}
+ hasBin: true
+ peerDependencies:
+ typescript: ^4.1.0
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ bundle-require: 3.1.2([email protected])
+ cac: 6.7.14
+ chokidar: 3.5.3
+ debug: 4.3.4
+ esbuild: 0.14.54
+ execa: 5.1.1
+ globby: 11.1.0
+ joycon: 3.1.1
+ postcss-load-config: 3.1.4
+ resolve-from: 5.0.0
+ rollup: 2.79.1
+ source-map: 0.7.4
+ sucrase: 3.33.0
+ tree-kill: 1.2.2
+ typescript: 5.1.6
+ transitivePeerDependencies:
+ - postcss
+ - supports-color
+ - ts-node
+ dev: true
+
resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}
engines: {node: '>= 6'}
@@ -6909,7 +7701,6 @@ packages:
dependencies:
tslib: 1.14.1
typescript: 5.1.6
- dev: true
resolution: {integrity: sha512-C2Ip+jPmqKd1GWVQDvz/Eyc6QJbGfE7NrR3fx5BpEHMZsEHoIxHL1j+lKdGobr8ovEyqeNkPLSKp6SCSOt7gmw==}
@@ -6922,22 +7713,86 @@ packages:
fsevents: 2.3.2
dev: true
+ resolution: {integrity: sha512-vmDfGVPl5/aFenAbOj3eOx3ePNcWVUyZwYr7taRl0ZBbmv2TzjRiFotO4vrKCiTVnbqjQqAFQWY2ugbqCI1kOQ==}
+ cpu: [x64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-3JliEESLNX2s7g54SOBqqkqJ7UhcOGkS0ywMr5SNuvF6kWVTbuUq7uBU/sVbGq8RwvK1ONlhPvJne5MUqBCTCQ==}
+ cpu: [arm64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-siYhgeX0DidIfHSgCR95b8xPee9enKSOjCzx7EjTLmPqPaCiVebRYvbOIYdQWRqiaKh9yfhUtFmtMOMScUf1gg==}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-K/ZhvD9l4SslclaMkTiIrnfcACgos79YcAo4kwc8bnMQaKuUeRpM15sxLpZp3xDjDg8EY93vsKyjaOhdFG2UbA==}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-7FSgSwvktWDNOqV65l9AbZwcoueAILeE4L7JvjauNASAjjbuzXGCEq5uN8AQU3U5BOFj4TdXrVmO2dX+lLu8Zg==}
+ cpu: [x64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-gCNXF52dwom1HLY9ry/cneBPOKTBHhzpqhMylcyvJP0vp9zeMQQkt6yjYv+6QdnmELC92CtKNp2FsNZo+z0pyw==}
+ cpu: [arm64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-WM3+jTfQWnB9W208pmP4oeehZcC6JQNlydb/ZHMRrhmQa+htGhWLCzd6Q9rLe0MwZLPpSPFV2/bN5egCLyoKjQ==}
+ hasBin: true
+ requiresBuild: true
+ optionalDependencies:
+ turbo-darwin-64: 1.10.12
+ turbo-darwin-arm64: 1.10.12
+ turbo-linux-64: 1.10.12
+ turbo-linux-arm64: 1.10.12
+ turbo-windows-64: 1.10.12
+ turbo-windows-arm64: 1.10.12
+ dev: true
+
resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
engines: {node: '>= 0.8.0'}
dependencies:
prelude-ls: 1.2.1
- dev: true
resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==}
engines: {node: '>=10'}
- dev: true
- resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==}
- engines: {node: '>=10'}
- dev: true
+ resolution: {integrity: sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==}
+ engines: {node: '>=8'}
+ dev: false
+
+ resolution: {integrity: sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==}
+ engines: {node: '>=8'}
+ dev: false
resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==}
@@ -6946,7 +7801,6 @@ packages:
call-bind: 1.0.2
get-intrinsic: 1.2.1
is-typed-array: 1.1.10
- dev: true
resolution: {integrity: sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==}
@@ -6956,7 +7810,6 @@ packages:
for-each: 0.3.3
has-proto: 1.0.1
is-typed-array: 1.1.10
- dev: true
resolution: {integrity: sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==}
@@ -6967,7 +7820,6 @@ packages:
for-each: 0.3.3
has-proto: 1.0.1
is-typed-array: 1.1.10
- dev: true
resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==}
@@ -6975,7 +7827,6 @@ packages:
call-bind: 1.0.2
for-each: 0.3.3
is-typed-array: 1.1.10
- dev: true
resolution: {integrity: sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==}
@@ -6989,7 +7840,6 @@ packages:
has-bigints: 1.0.2
has-symbols: 1.0.3
which-boxed-primitive: 1.0.2
- dev: true
resolution: {integrity: sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==}
@@ -7074,16 +7924,15 @@ packages:
dependencies:
'@types/jsonwebtoken': 9.0.2
jsonwebtoken: 9.0.1
- dev: false
+ dev: true
resolution: {integrity: sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==}
- dev: false
+ dev: true
resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==}
engines: {node: '>=8'}
- dev: true
resolution: {integrity: sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==}
@@ -7094,7 +7943,6 @@ packages:
browserslist: 4.21.9
escalade: 3.1.1
picocolors: 1.0.0
- dev: true
resolution: {integrity: sha512-vav6UwvEOzBSoPYHGsM6PksyAmyUoPPylkcveTgAUWVS5kKWaaxcOlgStShveTUo3JnoKD2E9Z2+z1BWXALv8A==}
@@ -7109,7 +7957,6 @@ packages:
resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
dependencies:
punycode: 2.3.0
- dev: true
resolution: {integrity: sha512-3FT9PRuRdbB9HfXhEq35u4oZkvpJ5kuYbpqhCfmiZyReuRgpnhDlbr2ZEnnuS0RrJAPn6l23xjFg9kpDM+Ms7w==}
@@ -7158,7 +8005,7 @@ packages:
dependencies:
js-md5: 0.7.3
js-sha1: 0.6.0
- dev: false
+ dev: true
resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}
@@ -7176,6 +8023,13 @@ packages:
sade: 1.8.1
dev: false
+ resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==}
+ dependencies:
+ spdx-correct: 3.2.0
+ spdx-expression-parse: 3.0.1
+ dev: false
+
resolution: {integrity: sha512-YF23YMyASIIJXpktBa4vIGLJ5Gs88UB/XePgqPmTa7cDA+JeO3yclbpheQYCHjVHBn/yePzrXuygIL+xbvRYHw==}
dependencies:
@@ -7210,6 +8064,11 @@ packages:
resolution: {integrity: sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==}
dev: false
+ resolution: {integrity: sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==}
+ engines: {node: '>= 8'}
+ dev: true
+
resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==}
engines: {node: '>=10.13.0'}
@@ -7263,7 +8122,6 @@ packages:
is-number-object: 1.0.7
is-string: 1.0.7
is-symbol: 1.0.4
- dev: true
resolution: {integrity: sha512-uxoA5vLUfRPdjCuJ1h5LlYdmTLbYfums398v3WLkM+i/Wltl2/XyZpQWKbN++ck5L64SR/grOHqtXCUKmlZPNA==}
@@ -7275,7 +8133,6 @@ packages:
gopd: 1.0.1
has-tostringtag: 1.0.0
is-typed-array: 1.1.10
- dev: true
resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
@@ -7283,25 +8140,6 @@ packages:
hasBin: true
dependencies:
isexe: 2.0.0
- dev: true
-
- resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==}
- engines: {node: '>=8'}
- dependencies:
- ansi-styles: 4.3.0
- string-width: 4.2.3
- strip-ansi: 6.0.1
- dev: true
-
- resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
- engines: {node: '>=10'}
- dependencies:
- ansi-styles: 4.3.0
- string-width: 4.2.3
- strip-ansi: 6.0.1
- dev: true
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
@@ -7311,9 +8149,18 @@ packages:
engines: {node: '>=0.4'}
dev: false
+ resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}
+ dev: false
+
resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
+ resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==}
+ engines: {node: '>= 6'}
+ dev: true
+
resolution: {integrity: sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==}
engines: {node: '>= 14'}
@@ -7321,7 +8168,6 @@ packages:
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
engines: {node: '>=10'}
- dev: true
resolution: {integrity: sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==}
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
new file mode 100644
index 00000000..21ce2775
--- /dev/null
+++ b/pnpm-workspace.yaml
@@ -0,0 +1,4 @@
+packages:
+ - 'apps/*'
+ - 'packages/**'
+ - 'tooling/**'
\ No newline at end of file
diff --git a/prettier.config.cjs b/prettier.config.js
similarity index 100%
rename from prettier.config.cjs
rename to prettier.config.js
diff --git a/src/app/api/auth/[...nextauth]/route.ts b/src/app/api/auth/[...nextauth]/route.ts
deleted file mode 100644
index 72fec3b8..00000000
--- a/src/app/api/auth/[...nextauth]/route.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import NextAuth from 'next-auth';
-import { authOptions } from '~/server/auth';
-
-/* eslint-disable-next-line */
-const handler = NextAuth(authOptions);
-
-export { handler as GET, handler as POST };
diff --git a/src/components/challenge/left-panel-skeleton.tsx b/src/components/challenge/left-panel-skeleton.tsx
deleted file mode 100644
index 7a34af16..00000000
--- a/src/components/challenge/left-panel-skeleton.tsx
+++ /dev/null
@@ -1,96 +0,0 @@
-import { Tabs, TabsContent, TabsList, TabsTrigger } from '../ui/tabs';
-
-export function DescriptionPanelSkeleton() {
- return (
- <>
- <Tabs defaultValue="description" className="w-full">
- <TabsList className="sticky top-0 grid h-auto w-full grid-cols-3 rounded-none border-b border-zinc-300 bg-background dark:border-zinc-700 dark:bg-muted">
- <TabsTrigger
- value="description"
- className="rounded-md rounded-tl-xl duration-300 data-[state=active]:bg-neutral-200 dark:data-[state=active]:bg-neutral-700"
- >
- Description
- </TabsTrigger>
- <TabsTrigger
- value="solutions"
- className="rounded-md duration-300 data-[state=active]:bg-neutral-200 dark:data-[state=active]:bg-neutral-700"
- >
- Solutions
- </TabsTrigger>
- <TabsTrigger
- value="submissions"
- className="rounded-md rounded-tr-lg duration-300 data-[state=active]:bg-neutral-200 dark:data-[state=active]:bg-neutral-700"
- >
- Submissions
- </TabsTrigger>
- </TabsList>
- <TabsContent value="description" className="mt-0 dark:bg-muted">
- <div className="h-full p-5">
- <div className="mb-2 h-8 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700"> </div>
- <div className="mb-6 flex items-center gap-6 py-4">
- <div className="h-6 w-10 rounded-full bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-6 w-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-6 w-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-6 w-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- </div>
- <div className="flex flex-col space-y-10">
- <div className="prose-invert flex flex-col space-y-2 prose-h3:text-xl">
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- </div>
- <div className="prose-invert flex flex-col space-y-2 prose-h3:text-xl">
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- </div>
- <div className="prose-invert flex flex-col space-y-2 prose-h3:text-xl">
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- </div>
- </div>
- </div>
- </TabsContent>
- <TabsContent className="flex h-full flex-col space-y-2 p-5" value="solutions">
- <div className="flex flex-col space-y-10">
- <div className="prose-invert flex flex-col space-y-2 prose-h3:text-xl">
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- </div>
- <div className="prose-invert flex flex-col space-y-2 prose-h3:text-xl">
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- </div>
- <div className="prose-invert flex flex-col space-y-2 prose-h3:text-xl">
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- </div>
- </div>
- </TabsContent>
- <TabsContent className="flex h-full flex-col space-y-2 p-5" value="submissions">
- <div className="flex flex-col space-y-10">
- <div className="prose-invert flex flex-col space-y-2 prose-h3:text-xl">
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- </div>
- <div className="prose-invert flex flex-col space-y-2 prose-h3:text-xl">
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- </div>
- <div className="prose-invert flex flex-col space-y-2 prose-h3:text-xl">
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- <div className="h-4 w-1/2 rounded-lg bg-zinc-300 dark:bg-zinc-700"></div>
- </div>
- </div>
- </TabsContent>
- </Tabs>
- </>
- );
-}
diff --git a/src/components/landing/hero.tsx b/src/components/landing/hero.tsx
deleted file mode 100644
index d881d2c9..00000000
--- a/src/components/landing/hero.tsx
+++ /dev/null
@@ -1,160 +0,0 @@
-'use client';
-
-import { motion } from 'framer-motion';
-import { Github, Mail } from 'lucide-react';
-import Link from 'next/link';
-import { Balancer } from 'react-wrap-balancer';
-import { HeroChallengeCard } from '~/components/landing/hero-challenge-card';
-import { Button } from '~/components/ui/button';
-
-const TypeHeroLogo = () => {
- return (
- <svg
- fill="none"
- viewBox="0 0 164 164"
- className="h-28 w-28 rounded-3xl sm:h-44 sm:w-44 sm:rounded-[2rem]"
- xmlns="http://www.w3.org/2000/svg"
- >
- <path
- d="M0 29.8182C0 13.3501 13.3501 0 29.8182 0H134.182C150.65 0 164 13.3501 164 29.8182V134.182C164 150.65 150.65 164 134.182 164H29.8182C13.3501 164 0 150.65 0 134.182V29.8182Z"
- fill="#3178C6"
- />
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M71.4351 80.307H91.9394V67.0909H34.7879V80.307H55.1919V139.152H71.4351V80.307Z"
- fill="white"
- />
- <path
- d="M91.9394 139.152V67.0909H106.946V96.9549H129.078V67.0909H144.121V139.152H129.078V109.182H106.946V139.152H91.9394Z"
- fill="white"
- />
- </svg>
- );
-};
-
-const Hero = () => (
- <section className="-mt-[56px] min-h-[calc(100vh)] overflow-hidden lg:min-h-0 lg:pt-[56px]">
- <div className="container grid min-h-screen items-center justify-center lg:min-h-0 lg:grid-cols-2">
- <div className="flex w-full flex-col items-center justify-center gap-10 lg:items-start">
- <div className="relative flex w-full items-center justify-center gap-4 lg:justify-start">
- <div className="absolute left-1/2 top-1/2 -z-10 hidden h-56 w-56 -translate-x-[15%] -translate-y-[50%] rounded-full bg-slate-400/10 blur-3xl dark:block"></div>
- <div className="absolute right-1/2 top-1/2 -z-10 hidden h-56 w-56 -translate-y-[40%] rounded-full bg-[#3178c6]/20 blur-3xl dark:block"></div>
- <TypeHeroLogo />
- <h1 className="bg-gradient-to-r from-[#3178c6] to-black bg-clip-text text-6xl font-extrabold text-transparent dark:to-white sm:text-8xl sm:leading-[5.5rem]">
- type
- <br />
- hero
- </h1>
- </div>
-
- <p className="max-w-[55ch] bg-transparent px-8 text-center font-medium leading-8 text-black/50 dark:text-white/50 lg:px-0 lg:text-left">
- <Balancer>
- Connect, collaborate, and grow with a community of TypeScript developers. Elevate your
- skills through interactive coding challenges, discussions, and knowledge sharing
- </Balancer>
- </p>
- <div className="flex gap-3">
- {/* <Button
- className="relative flex items-center gap-2 overflow-hidden rounded-xl px-4 py-2 font-bold"
- asChild
- >
- <Link href="/explore">Explore challenges</Link>
- </Button> */}
- <Button
- className="hero-join-button group relative mx-auto w-fit overflow-hidden rounded-xl p-[2px] font-bold transition-all duration-300 hover:bg-transparent hover:shadow-[0_0_2rem_-0.5rem_#3178c6] dark:hidden md:mr-0 lg:mr-auto"
- asChild
- >
- <Link href="/waitlist">
- <span className="inline-flex h-full w-fit items-center gap-1 rounded-[10px] bg-white px-4 py-2 text-[#3178c6] transition-all duration-300">
- <Mail className="mr-1 h-4 w-4 stroke-[3]" />
- Join the Waitlist
- </span>
- </Link>
- </Button>
- <Button
- className="hero-join-button-dark group relative mx-auto hidden w-fit overflow-hidden rounded-xl p-[1px] font-bold transition-all duration-300 dark:block dark:hover:shadow-[0_0_2rem_-0.5rem_#fff8] md:mr-0 lg:mr-auto"
- asChild
- >
- <Link href="/waitlist">
- <span className="inline-flex h-full w-fit items-center gap-1 rounded-xl px-4 py-2 transition-all duration-300 dark:bg-neutral-900 dark:text-white group-hover:dark:bg-black">
- <Mail className="mr-1 h-4 w-4 stroke-[3]" />
- Join the Waitlist
- </span>
- </Link>
- </Button>
- <Button
- className="flex items-center gap-2 rounded-xl border-2 px-4 py-2 dark:text-white"
- asChild
- variant="outline"
- >
- <a className="inline-flex gap-1" href="https://github.com/">
- <Github className="h-4 w-4" />
- GitHub
- </a>
- </Button>
- </div>
- </div>
-
- <div className="relative hidden h-[800px] overflow-visible rounded-full lg:block">
- <div className="absolute -inset-40 top-1/2 -z-30 -translate-y-1/2 translate-x-[-30px] overflow-hidden rounded-full">
- <div className="relative h-full w-full">
- <motion.div
- initial={{ opacity: 0 }}
- animate={{ opacity: 1 }}
- transition={{ duration: 0.6, delay: 0.6 }}
- className="moving-grid-background absolute h-[200%] w-full"
- />
- <div className="absolute h-full w-full rounded-full shadow-[inset_0_0_5rem_3rem] shadow-background" />
- </div>
- </div>
- <motion.div
- initial={{
- y: 150,
- x: 180,
- opacity: 0,
- }}
- animate={{
- y: 140,
- opacity: 1,
- transition: {
- duration: 0.4,
- },
- }}
- className="group"
- >
- <HeroChallengeCard
- difficulty="EASY"
- className="absolute"
- title="Implement a union type of number and string"
- prompt="Implement a union type of number and string"
- />
- </motion.div>
- <motion.div
- initial={{
- opacity: 0,
- y: 270,
- x: 80,
- }}
- animate={{
- y: 260,
- opacity: 1,
- transition: {
- duration: 0.4,
- delay: 0.1,
- },
- }}
- className="group"
- >
- <HeroChallengeCard
- difficulty="HARD"
- className="absolute"
- title="String to Number"
- prompt="Convert a string literal to a number"
- />
- </motion.div>
- </div>
- </div>
- </section>
-);
-export default Hero;
diff --git a/src/components/report/types/user.report.tsx b/src/components/report/types/user.report.tsx
deleted file mode 100644
index 45df644a..00000000
--- a/src/components/report/types/user.report.tsx
+++ /dev/null
@@ -1,121 +0,0 @@
-'use server';
-
-import { type ReportWithInfo } from '~/app/admin/report/[id]/report.action';
-import { Comment } from '~/components/challenge/comments/comment';
-import { Expandable } from '~/components/ui/expandable';
-import { Markdown } from '~/components/ui/markdown';
-import Text from '~/components/ui/typography/typography';
-import { getReportedUserInformation } from '../report.action';
-
-interface UserReportProps {
- report: NonNullable<ReportWithInfo>;
-}
-
-export default async function UserReportUi({ report }: UserReportProps) {
- if (!report.userId) return null;
- const userInfo = await getReportedUserInformation(report.userId);
- const commentRootId = report?.comment?.rootChallengeId ?? report?.comment?.rootSolutionId ?? -1;
-
- return (
- <div>
- <Text intent="h3">
- Most Recent Comments <small>(10)</small>
- </Text>
-
- <div className="mt-4 flex flex-col gap-4">
- {userInfo.comment &&
- userInfo.comment.map((comment) => (
- <div
- key={`comment-${comment.id}`}
- className="rounded border border-zinc-700 bg-zinc-800 p-2"
- >
- <Comment readonly comment={comment} rootId={commentRootId} type={comment.rootType} />
- </div>
- ))}
-
- {userInfo.comment && userInfo.comment.length === 0 && (
- <div className="mb-6 flex justify-center">No comments on record</div>
- )}
- </div>
-
- <Text intent="h3" className="mt-4">
- Most Recent challenges <small>(5)</small>{' '}
- </Text>
-
- <div className="mt-4 flex flex-col gap-4">
- {userInfo.challenge && userInfo.challenge.length === 0 && (
- <div className="text-center">No recent challenges.</div>
- )}
- {userInfo.challenge &&
- userInfo.challenge.map((ch, i) => (
- <Expandable
- open={i === 0}
- key={`challenge-${ch.id}`}
- className="rounded-xl border border-slate-600 p-3"
- header={
- <header className="flex w-full flex-col items-baseline justify-between gap-4 md:flex-row">
- <Text intent="h2">{ch.name}</Text>
- <div className="flex flex-wrap gap-2 text-xs md:flex-nowrap">
- <div className="rounded-full bg-slate-300 px-3 py-1 text-gray-800">
- <span className="font-semibold">Created at: </span>
- {ch.createdAt.toLocaleString(undefined, {
- dateStyle: 'medium',
- timeStyle: 'short',
- })}
- </div>
- <div className="rounded-full bg-slate-300 px-3 py-1 text-gray-800">
- <span className="font-semibold">Updated at: </span>
- {ch.updatedAt.toLocaleString(undefined, {
- dateStyle: 'medium',
- timeStyle: 'short',
- })}
- </div>
- </div>
- </header>
- }
- >
- <div className="mt-4 rounded-lg bg-zinc-800 p-4" key={`challenge-${ch.id}`}>
- <section className="mb-4 border-b border-slate-500 pb-4">
- <div className="font-semibold">Short description</div>
- <Markdown>{ch.shortDescription}</Markdown>
- </section>
- <Markdown>{ch.description}</Markdown>
- </div>
- </Expandable>
- ))}
- </div>
-
- <Text intent="h3" className="my-4">
- Most recent solutions <small>(5)</small>
- </Text>
-
- {userInfo.sharedSolution && (
- <div className="flex flex-col gap-4">
- {userInfo.sharedSolution.map((f) => (
- <div
- key={`solution-${f.id}`}
- className="text:primary-foreground rounded-xl border bg-zinc-800 p-4"
- >
- <header className="flex justify-between">
- <Text intent="h2" weight="bold">
- {f.title}
- </Text>
- <div>
- {f.createdAt.toLocaleString(undefined, {
- dateStyle: 'medium',
- timeStyle: 'medium',
- })}
- </div>
- </header>
- <section>
- <Markdown>{f.description}</Markdown>
- </section>
- </div>
- ))}
- </div>
- )}
-
- {userInfo?.sharedSolution?.length === 0 && <div className="mb-6">No solutions on record</div>}
- </div>
- );
-}
diff --git a/src/components/wizard/NextBack.tsx b/src/components/wizard/NextBack.tsx
deleted file mode 100644
index c099a0a7..00000000
--- a/src/components/wizard/NextBack.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import { STEPS, type Step } from '.';
-import { Button } from '../ui/button';
-
-interface Props<T extends Step> {
- current: number;
- onChange: (index: number) => void;
- onNext: () => void;
- onSubmit: () => Promise<void>;
-}
-
-export function NextBack<T extends Step>({ current, onChange, onNext, onSubmit }: Props<T>) {
- return (
- <div className={`flex justify-center gap-3 ${current === STEPS.Summary && ''}`}>
- <>
- {current > STEPS.ChallengeCard && (
- <Button
- className="rounded-full bg-neutral-200 duration-300 active:scale-95 dark:bg-neutral-800 dark:hover:bg-neutral-700"
- variant="ghost"
- onClick={() => onChange(current - 1)}
- >
- Back
- </Button>
- )}
- {current === STEPS.Summary ? (
- <Button
- className="w-[79px] rounded-full bg-emerald-500 transition-all duration-300 ease-out hover:bg-emerald-400 hover:px-16 active:scale-95"
- onClick={onSubmit}
- >
- Submit
- </Button>
- ) : (
- <Button
- onClick={onNext}
- className="w-[79px] rounded-full transition-all duration-300 ease-out hover:pl-8 active:scale-95"
- >
- Next
- </Button>
- )}
- </>
- </div>
- );
-}
diff --git a/src/env.mjs b/src/env.mjs
deleted file mode 100644
index 0a9faf23..00000000
--- a/src/env.mjs
+++ /dev/null
@@ -1,57 +0,0 @@
-import { createEnv } from '@t3-oss/env-nextjs';
-import { z } from 'zod';
-
-export const env = createEnv({
- /**
- * Specify your server-side environment variables schema here. This way you can ensure the app
- * isn't built with invalid env vars.
- */
- server: {
- DATABASE_URL: z.string().url(),
- NODE_ENV: z.enum(['development', 'test', 'production']),
- GITHUB_ID: z.string(),
- GITHUB_SECRET: z.string(),
- NEXTAUTH_SECRET:
- process.env.NODE_ENV === 'production' ? z.string().min(1) : z.string().min(1).optional(),
- NEXTAUTH_URL: z.preprocess(
- // This makes Vercel deployments not fail if you don't set NEXTAUTH_URL
- // Since NextAuth.js automatically uses the VERCEL_URL if present.
- (str) => process.env.VERCEL_URL ?? str,
- // VERCEL_URL doesn't include `https` so it cant be validated as a URL
- process.env.VERCEL ? z.string().min(1) : z.string().url(),
- ),
-
- // upload thing
- UPLOADTHING_SECRET: z.string(),
- UPLOADTHING_APP_ID: z.string()
- },
-
- /**
- * Specify your client-side environment variables schema here. This way you can ensure the app
- * isn't built with invalid env vars. To expose them to the client, prefix them with
- * `NEXT_PUBLIC_`.
- */
- client: {
- // NEXT_PUBLIC_CLIENTVAR: z.string().min(1),
- },
-
- /**
- * You can't destruct `process.env` as a regular object in the Next.js edge runtimes (e.g.
- * middlewares) or client-side so we need to destruct manually.
- */
- runtimeEnv: {
- DATABASE_URL: process.env.DATABASE_URL,
- NODE_ENV: process.env.NODE_ENV,
- GITHUB_SECRET: process.env.GITHUB_SECRET,
- GITHUB_ID: process.env.GITHUB_ID,
- NEXTAUTH_URL: process.env.NEXTAUTH_URL,
- NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
- UPLOADTHING_SECRET: process.env.UPLOADTHING_SECRET,
- UPLOADTHING_APP_ID: process.env.UPLOADTHING_APP_ID,
- },
- /**
- * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation.
- * This is especially useful for Docker builds.
- */
- skipValidation: !!process.env.SKIP_ENV_VALIDATION,
-});
diff --git a/tooling/config-eslint/next.js b/tooling/config-eslint/next.js
new file mode 100644
index 00000000..dfbf13ba
--- /dev/null
+++ b/tooling/config-eslint/next.js
@@ -0,0 +1,42 @@
+const { rules } = require('./utils/rules');
+
+module.exports = {
+ extends: [
+ 'turbo',
+ ...[
+ '@vercel/style-guide/eslint/browser',
+ '@vercel/style-guide/eslint/node',
+ '@vercel/style-guide/eslint/react',
+ '@vercel/style-guide/eslint/next',
+ '@vercel/style-guide/eslint/typescript',
+ ].map((config) => require.resolve(config)),
+ ],
+ ignorePatterns: ['**/.next/**', '**/.eslintrc.cjs', '**/node_modules/**', 'public/**'],
+ overrides: [
+ {
+ files: ['**/route.tsx'],
+ rules: {
+ '@next/next/no-img-element': 'off',
+ 'jsx-a11y/alt-text': 'off',
+ },
+ },
+ {
+ files: [
+ 'pages/**',
+ 'src/pages/**',
+ 'next.config.js',
+ 'app/**/{head,layout,page,error,not-found}.tsx',
+ 'src/app/**/{head,layout,loading,page,error,not-found}.tsx',
+ 'src/app/**/*.page.tsx',
+ ],
+ rules: {
+ 'import/no-default-export': 'off',
+ },
+ },
+ ],
+ parserOptions: {
+ tsconfigRootDir: `${__dirname}/tsconfig.json`,
+ },
+ root: true,
+ rules,
+};
diff --git a/tooling/config-eslint/node.js b/tooling/config-eslint/node.js
new file mode 100644
index 00000000..bf5145ac
--- /dev/null
+++ b/tooling/config-eslint/node.js
@@ -0,0 +1,46 @@
+const { rules } = require('./utils/rules');
+
+module.exports = {
+ extends: [
+ 'turbo',
+ ...['@vercel/style-guide/eslint/node', '@vercel/style-guide/eslint/typescript'].map((config) =>
+ require.resolve(config),
+ ),
+ ],
+ ignorePatterns: ['node_modules/', 'dist/'],
+ overrides: [
+ {
+ files: ['**/*.test.*'],
+ extends: [require.resolve('@vercel/style-guide/eslint/jest')],
+ rules: {
+ '@typescript-eslint/no-explicit-any': 'off',
+ '@typescript-eslint/no-unsafe-assignment': 'off',
+ 'jest/valid-expect': 'off',
+ },
+ },
+ {
+ files: ['jest.config.*', 'vite.config.*', 'tsup.config.*', 'drizzle.config.ts'],
+ rules: {
+ 'import/no-default-export': 'off',
+ },
+ },
+ {
+ files: ['**/turbo/generators/config.*'],
+ rules: {
+ 'import/no-default-export': 'off',
+ },
+ },
+ ],
+ parserOptions: {
+ project: `${__dirname}/tsconfig.json`,
+ },
+ root: true,
+ rules,
+ // settings: {
+ // 'import/resolver': {
+ // typescript: {
+ // project,
+ // },
+ // },
+ // },
+};
diff --git a/tooling/config-eslint/node_modules/@repo/tsconfig b/tooling/config-eslint/node_modules/@repo/tsconfig
new file mode 120000
index 00000000..62a634da
--- /dev/null
+++ b/tooling/config-eslint/node_modules/@repo/tsconfig
@@ -0,0 +1 @@
+../../../config-typescript
\ No newline at end of file
diff --git a/tooling/config-eslint/package.json b/tooling/config-eslint/package.json
new file mode 100644
index 00000000..978a593c
--- /dev/null
+++ b/tooling/config-eslint/package.json
@@ -0,0 +1,22 @@
+{
+ "name": "@repo/lint",
+ "version": "0.0.0",
+ "type": "commonjs",
+ "files": [
+ "node.js",
+ "next.js"
+ ],
+ "scripts": {
+ "format": "prettier \"**/*.{ts,tsx,md,mdx,json}\" --check"
+ },
+ "dependencies": {
+ "@next/eslint-plugin-next": "canary",
+ "@repo/tsconfig": "workspace:*",
+ "@typescript-eslint/eslint-plugin": "^5.59.1",
+ "@typescript-eslint/parser": "^5.59.1",
+ "@vercel/style-guide": "^4.0.2",
+ "eslint": "^8.40.0",
+ "eslint-config-turbo": "^1.10.12",
+ "typescript": "^5.1.3"
+ }
+}
diff --git a/tooling/config-eslint/tsconfig.json b/tooling/config-eslint/tsconfig.json
new file mode 100644
index 00000000..0e5d9fca
--- /dev/null
+++ b/tooling/config-eslint/tsconfig.json
@@ -0,0 +1,11 @@
+{
+ "extends": "@repo/tsconfig/base.json",
+ "compilerOptions": {
+ "allowJs": true,
+ "module": "ESNext",
+ "target": "ESNext",
+ "checkJs": true,
+ "resolveJsonModule": true
+ },
+ "exclude": ["node_modules"]
+}
diff --git a/tooling/config-eslint/utils/rules.js b/tooling/config-eslint/utils/rules.js
new file mode 100644
index 00000000..5788bf50
--- /dev/null
+++ b/tooling/config-eslint/utils/rules.js
@@ -0,0 +1,72 @@
+module.exports = {
+ rules: {
+ '@typescript-eslint/explicit-function-return-type': 'off',
+ '@typescript-eslint/sort-type-constituents': 'warn',
+ 'no-floating-decimal': 'warn',
+ 'react/no-unescaped-entities': 'off',
+ 'unicorn/filename-case': 'off',
+ // Rules below here can be re-enabled when the team wants to address them.
+ // When this repo was first monorepo'ed and given tighter checks,
+ // there were too many issues to address all at once.
+ // They are organized into groups based on what type of warning they are.
+ // ---
+ // Potential Bugs
+ '@typescript-eslint/ban-ts-comment': 'off',
+ '@typescript-eslint/no-empty-function': 'off',
+ '@typescript-eslint/no-misused-promises': 'off',
+ '@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
+ '@typescript-eslint/unbound-method': 'off',
+ '@typescript-eslint/no-non-null-assertion': 'off',
+ '@typescript-eslint/no-shadow': 'off',
+ '@typescript-eslint/no-unsafe-argument': 'off',
+ '@typescript-eslint/no-unsafe-assignment': 'off',
+ '@typescript-eslint/no-unsafe-call': 'off',
+ '@typescript-eslint/no-unsafe-enum-comparison': 'off',
+ '@typescript-eslint/no-unsafe-member-access': 'off',
+ camelcase: 'off',
+ '@typescript-eslint/no-unsafe-return': 'off',
+ '@typescript-eslint/no-floating-promises': 'off',
+ '@typescript-eslint/prefer-ts-expect-error': 'off',
+ 'no-await-in-loop': 'off',
+ 'no-param-reassign': 'off',
+ 'no-constant-binary-expression': 'off',
+ 'import/no-cycle': 'off',
+ 'tsdoc/syntax': 'off',
+ 'react/no-array-index-key': 'off',
+ 'react/no-unstable-nested-components': 'off',
+ eqeqeq: 'off',
+ 'no-control-regex': 'off',
+ 'no-return-await': 'off',
+ '@typescript-eslint/require-await': 'off',
+
+ // Best practice/readability
+ // Some of these might be opinions.
+ // You can ignore if you'd like.
+ 'eslint-comments/no-unlimited-disable': 'off',
+ 'prefer-named-capture-group': 'off',
+ 'prefer-regex-literals': 'off',
+ '@typescript-eslint/naming-convention': 'off',
+ 'import/no-default-export': 'off',
+ '@typescript-eslint/no-unused-vars': 'off',
+ '@typescript-eslint/no-unnecessary-condition': 'off',
+ '@typescript-eslint/prefer-optional-chain': 'off',
+ 'react/jsx-no-useless-fragment': 'off',
+ 'no-nested-ternary': 'off',
+ 'react/jsx-sort-props': 'off',
+ 'react/hook-use-state': 'off',
+ '@typescript-eslint/restrict-template-expressions': 'off',
+ 'func-names': 'off',
+ 'no-console': 'off',
+
+ // a11y
+ 'jsx-a11y/html-has-lang': 'off',
+ 'jsx-a11y/no-redundant-roles': 'off',
+ 'jsx-a11y/anchor-is-valid': 'off',
+ 'jsx-a11y/anchor-has-content': 'off',
+ 'jsx-a11y/no-autofocus': 'off',
+ 'jsx-a11y/no-static-element-interactions': 'off',
+ 'jsx-a11y/click-events-have-key-events': 'off',
+ 'jsx-a11y/heading-has-content': 'off',
+ 'react/button-has-type': 'off',
+ },
+};
diff --git a/tooling/config-tailwind/README.md b/tooling/config-tailwind/README.md
new file mode 100644
index 00000000..242c6f81
--- /dev/null
+++ b/tooling/config-tailwind/README.md
@@ -0,0 +1 @@
+# `config-tailwind`
diff --git a/tooling/config-tailwind/index.js b/tooling/config-tailwind/index.js
new file mode 100644
index 00000000..9338f177
--- /dev/null
+++ b/tooling/config-tailwind/index.js
@@ -0,0 +1,35 @@
+/** @type {import('tailwindcss').Config} */
+module.exports = {
+ darkMode: 'class',
+ plugins: [require('@tailwindcss/typography')],
+ theme: {
+ extend: {
+ fontFamily: {
+ sans: ['var(--font-inter)'],
+ },
+ keyframes: {
+ 'fade-in': {
+ from: {
+ opacity: 0,
+ },
+ to: {
+ opacity: 1,
+ },
+ },
+ 'accordion-down': {
+ from: { height: 0 },
+ to: { height: 'var(--radix-accordion-content-height)' },
+ },
+ 'accordion-up': {
+ from: { height: 'var(--radix-accordion-content-height)' },
+ to: { height: 0 },
+ },
+ },
+ animation: {
+ 'accordion-down': 'accordion-down 0.2s ease-out',
+ 'accordion-up': 'accordion-up 0.2s ease-out',
+ 'fade-in': 'fade-in 1s ease-in-out',
+ },
+ },
+ },
+};
diff --git a/tooling/config-tailwind/package.json b/tooling/config-tailwind/package.json
new file mode 100644
index 00000000..d6f49cf7
--- /dev/null
+++ b/tooling/config-tailwind/package.json
@@ -0,0 +1,13 @@
+{
+ "name": "@repo/tailwind",
+ "version": "0.0.0",
+ "private": true,
+ "main": "index.js",
+ "scripts": {
+ "format": "prettier \"**/*.js\" --check"
+ },
+ "devDependencies": {
+ "@tailwindcss/typography": "^0.5.9",
+ "tailwindcss": "^3.2.4"
+ }
+}
diff --git a/tooling/config-typescript/README.md b/tooling/config-typescript/README.md
new file mode 100644
index 00000000..0da79cf2
--- /dev/null
+++ b/tooling/config-typescript/README.md
@@ -0,0 +1,3 @@
+# `tsconfig`
+
+These are base shared `tsconfig.json`s from which all other `tsconfig.json`'s inherit from.
diff --git a/tooling/config-typescript/base.json b/tooling/config-typescript/base.json
new file mode 100644
index 00000000..7c996545
--- /dev/null
+++ b/tooling/config-typescript/base.json
@@ -0,0 +1,26 @@
+{
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "display": "Default",
+ "compilerOptions": {
+ "composite": false,
+ "declaration": true,
+ "declarationMap": true,
+ "esModuleInterop": true,
+ "verbatimModuleSyntax": true,
+ "forceConsistentCasingInFileNames": true,
+ "incremental": true,
+ "inlineSources": false,
+ "isolatedModules": true,
+ "module": "ESNext",
+ "target": "ES2017",
+ "moduleResolution": "node",
+ "noUnusedLocals": false,
+ "noUnusedParameters": false,
+ "noUncheckedIndexedAccess": true,
+ "preserveWatchOutput": true,
+ "noImplicitAny": true,
+ "skipLibCheck": true,
+ "strict": true
+ },
+ "exclude": ["node_modules"]
+}
diff --git a/tooling/config-typescript/nextjs.json b/tooling/config-typescript/nextjs.json
new file mode 100644
index 00000000..69e50321
--- /dev/null
+++ b/tooling/config-typescript/nextjs.json
@@ -0,0 +1,22 @@
+{
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "display": "Next.js",
+ "extends": "./base.json",
+ "compilerOptions": {
+ "target": "ES2017",
+ "lib": ["dom", "dom.iterable", "ES2021"],
+ "allowJs": true,
+ "checkJs": true,
+ "skipLibCheck": true,
+ "strict": true,
+ "forceConsistentCasingInFileNames": true,
+ "noEmit": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "jsx": "preserve"
+ },
+ "include": ["src", "next-env.d.ts"],
+ "exclude": ["node_modules"]
+}
diff --git a/tooling/config-typescript/package.json b/tooling/config-typescript/package.json
new file mode 100644
index 00000000..9ae505a3
--- /dev/null
+++ b/tooling/config-typescript/package.json
@@ -0,0 +1,11 @@
+{
+ "name": "@repo/tsconfig",
+ "version": "0.0.0",
+ "private": true,
+ "main": "index.js",
+ "files": [
+ "base.json",
+ "nextjs.json",
+ "react-library.json"
+ ]
+}
diff --git a/tooling/config-typescript/react-library.json b/tooling/config-typescript/react-library.json
new file mode 100644
index 00000000..428a188f
--- /dev/null
+++ b/tooling/config-typescript/react-library.json
@@ -0,0 +1,12 @@
+{
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "display": "React Library",
+ "extends": "./base.json",
+ "compilerOptions": {
+ "incremental": true,
+ "lib": ["ES2015", "DOM", "DOM.Iterable"],
+ "module": "ESNext",
+ "target": "ES6",
+ "jsx": "react-jsx"
+ }
+}
diff --git a/tooling/github-actions/install/action.yml b/tooling/github-actions/install/action.yml
new file mode 100644
index 00000000..bb9814bd
--- /dev/null
+++ b/tooling/github-actions/install/action.yml
@@ -0,0 +1,37 @@
+name: 'Install'
+description: 'Sets up Node.js and runs install'
+
+runs:
+ using: composite
+ steps:
+ - uses: actions/setup-node@v3
+ with:
+ node-version: 18
+
+ - name: Install pnpm
+ shell: bash
+ run: npm i -g pnpm turbo
+
+ - uses: actions/cache@v3
+ name: pnpm-cache
+ id: pnpm-cache
+ with:
+ path: |
+ **/node_modules
+ ${{ steps.pnpm-cache-dir-path.outputs.dir }}
+ key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
+ restore-keys: |
+ ${{ runner.os }}-pnpm
+
+ - name: Cache TypeScript TSBuild Info Files
+ uses: actions/cache@v3
+ with:
+ path: '*/*/node_modules/.cache/tsbuildinfo.json'
+ # Commit hash is for working around this: https://github.com/actions/cache/issues/106
+ key: ${{ runner.os }}-cache-typescript-tsbuildinfo-${{ github.sha }}
+ restore-keys: ${{ runner.os }}-cache-typescript-tsbuildinfo-
+
+ - name: pnpm
+ shell: bash
+ if: steps.pnpm-cache.outputs.cache-hit != 'true'
+ run: pnpm install --frozen-lockfile --prefer-offline
diff --git a/tooling/scripts/.eslintrc.cjs b/tooling/scripts/.eslintrc.cjs
new file mode 100644
index 00000000..61224357
--- /dev/null
+++ b/tooling/scripts/.eslintrc.cjs
@@ -0,0 +1,19 @@
+/** @type {import("eslint").Linter.Config} */
+module.exports = {
+ root: true,
+ extends: [require.resolve('@repo/lint/node')],
+ parserOptions: {
+ project: `${__dirname}/tsconfig.json`,
+ },
+ rules: {
+ // This is here because eslint-turbo currently does not detect
+ // Workspace Configurations correctly.
+ // This should end up getting fixed in the future.
+ 'turbo/no-undeclared-env-vars': [
+ 'error',
+ {
+ allowList: ['GITHUB_TOKEN'],
+ },
+ ],
+ },
+};
diff --git a/scripts/contributors.ts b/tooling/scripts/contributors.ts
similarity index 94%
rename from scripts/contributors.ts
rename to tooling/scripts/contributors.ts
index 8a18aa05..0f9ffc64 100644
--- a/scripts/contributors.ts
+++ b/tooling/scripts/contributors.ts
@@ -1,8 +1,8 @@
import 'dotenv/config';
import fs from 'node:fs/promises';
import path from 'node:path';
-import { Octokit } from 'octokit';
import { fileURLToPath } from 'node:url';
+import { Octokit } from 'octokit';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
@@ -31,7 +31,7 @@ async function start() {
``,
].join('\n');
- const dir = path.join(__dirname, '../public');
+ const dir = path.join(__dirname, '../../../apps/web/public');
await fs.writeFile(`${dir}/contributors.ts`, text);
}
diff --git a/scripts/dl-monaco.ts b/tooling/scripts/dl-monaco.ts
similarity index 93%
rename from scripts/dl-monaco.ts
rename to tooling/scripts/dl-monaco.ts
index ebbebcb8..eb9fb7dd 100644
--- a/scripts/dl-monaco.ts
+++ b/tooling/scripts/dl-monaco.ts
@@ -1,6 +1,7 @@
import url from 'node:url';
import fs from 'node:fs/promises';
import path from 'node:path';
+import fetch from 'node-fetch';
/** @link https://typescript.azureedge.net/indexes/releases.json */
const TYPESCRIPT_VERSION = '5.1.6';
@@ -24,6 +25,7 @@ async function fetchFile({
return fetchFile({ url, options, retries: persistentRetryValue });
}
+ // @ts-expect-error Dunno why but it runs so who cares.
return fileResponse;
}
@@ -39,7 +41,7 @@ async function downloadAndSaveFile([remoteUrl, diskPath, appendToStart = '']: re
})
).text();
- const pathToSave = url.fileURLToPath(path.join(import.meta.url, '../../', diskPath));
+ const pathToSave = url.fileURLToPath(path.join(import.meta.url, '../../../apps/web', diskPath));
const dir = path.join(pathToSave, '../');
await fs.mkdir(dir, { recursive: true });
await fs.writeFile(pathToSave, `${appendToStart}\n${textToWrite}`, {});
@@ -72,7 +74,7 @@ const files = [
],
[
'./vs/base/browser/ui/codicons/codicon/codicon.ttf',
- './public/vs/base/browser/ui/codicons/codicon/codicon.ttf'
+ './public/vs/base/browser/ui/codicons/codicon/codicon.ttf',
],
] as const;
@@ -89,7 +91,7 @@ async function isTSversionCorrect(path: string) {
}
}
-// check if the force flag is present
+// check if the force flag is present
const force = process.argv.includes('--force');
// get the path to the root monaco-editor.d.ts file
diff --git a/tooling/scripts/package.json b/tooling/scripts/package.json
new file mode 100644
index 00000000..897bc05e
--- /dev/null
+++ b/tooling/scripts/package.json
@@ -0,0 +1,24 @@
+{
+ "name": "scripts",
+ "private": true,
+ "type": "module",
+ "scripts": {
+ "dl-git": "tsx contributors.ts",
+ "dl-monaco": "tsx dl-monaco.ts",
+ "dl-monaco:force": "tsx dl-monaco.ts --force",
+ "lint": "eslint .",
+ "typecheck": "tsc --noEmit"
+ },
+ "devDependencies": {
+ "@repo/lint": "workspace:*",
+ "@repo/tsconfig": "workspace:*",
+ "@types/node": "^18.0.0",
+ "@types/node-fetch": "^2.6.4",
+ "dotenv": "^16.3.1",
+ "eslint": "^8.42.0",
+ "node-fetch": "^3.3.2",
+ "octokit": "^3.0.0",
+ "tsx": "^3.12.7",
+ "typescript": "^5.1.6"
+ }
+}
diff --git a/tooling/scripts/tsconfig.json b/tooling/scripts/tsconfig.json
new file mode 100644
index 00000000..1c64c3c9
--- /dev/null
+++ b/tooling/scripts/tsconfig.json
@@ -0,0 +1,26 @@
+{
+ "display": "Default",
+ "compilerOptions": {
+ "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",
+ "composite": false,
+ "declaration": true,
+ "declarationMap": true,
+ "esModuleInterop": true,
+ "verbatimModuleSyntax": true,
+ "forceConsistentCasingInFileNames": true,
+ "incremental": true,
+ "inlineSources": false,
+ "isolatedModules": true,
+ "module": "ESNext",
+ "target": "ES2017",
+ "moduleResolution": "node",
+ "noUnusedLocals": false,
+ "noUnusedParameters": false,
+ "noUncheckedIndexedAccess": true,
+ "preserveWatchOutput": true,
+ "noImplicitAny": true,
+ "skipLibCheck": true,
+ "strict": true
+ },
+ "exclude": ["node_modules"]
+}
diff --git a/tooling/scripts/turbo.json b/tooling/scripts/turbo.json
new file mode 100644
index 00000000..e40b36c6
--- /dev/null
+++ b/tooling/scripts/turbo.json
@@ -0,0 +1,12 @@
+{
+ "extends": ["//"],
+ "globalEnv": ["GITHUB_TOKEN"],
+ "pipeline": {
+ "dl-monaco": {
+ "cache": false
+ },
+ "dl-git": {
+ "cache": false
+ }
+ }
+}
diff --git a/tsconfig.json b/tsconfig.json
deleted file mode 100644
index 3319f37c..00000000
--- a/tsconfig.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "compilerOptions": {
- "target": "es2017",
- "lib": ["dom", "dom.iterable", "esnext"],
- "allowJs": true,
- "checkJs": false,
- "skipLibCheck": true,
- "strict": true,
- "verbatimModuleSyntax": true,
- "forceConsistentCasingInFileNames": true,
- "noEmit": true,
- "esModuleInterop": true,
- "module": "esnext",
- "moduleResolution": "node",
- "resolveJsonModule": true,
- "isolatedModules": true,
- "jsx": "preserve",
- "incremental": true,
- "noUncheckedIndexedAccess": true,
- "baseUrl": ".",
- "paths": {
- "~/*": ["./src/*"]
- },
- "plugins": [
- {
- "name": "next"
- }
- ]
- },
- "include": [
- ".eslintrc.cjs",
- "next-env.d.ts",
- "global.d.ts",
- "*.ts",
- "./scripts/*.ts",
- "./src/**/*.ts",
- "./src/**/*.tsx",
- ".next/types/**/*.ts",
- "./prisma/*.ts"
- ],
- "exclude": ["node_modules", ".next"]
-}
diff --git a/turbo.json b/turbo.json
new file mode 100644
index 00000000..bde5dfdd
--- /dev/null
+++ b/turbo.json
@@ -0,0 +1,44 @@
+{
+ "pipeline": {
+ "build": {
+ "dependsOn": ["^build"],
+ "outputs": ["dist/**", ".next/**", "!.next/cache/**"],
+ "env": [
+ "VERCEL_URL",
+ "NODE_ENV",
+ "DATABASE_URL",
+ "GITHUB_ID",
+ "GITHUB_SECRET",
+ "UPLOADTHING_SECRET",
+ "UPLOADTHING_APP_ID",
+ "NEXTAUTH_SECRET",
+ "NEXTAUTH_URL",
+ "PORT"
+ ]
+ },
+ "topo": {
+ "dependsOn": ["@repo/db#db:generate", "^topo"]
+ },
+ "//#format-root": {
+ "dependsOn": ["^topo"],
+ "outputMode": "new-only"
+ },
+ "format": {
+ "outputMode": "new-only"
+ },
+ "lint": {
+ "outputs": ["node_modules/.cache/.eslintcache"],
+ "dependsOn": ["^topo"]
+ },
+ "typecheck": {
+ "dependsOn": ["^topo"],
+ "outputs": ["node_modules/.cache/tsbuildinfo.json"],
+ "outputMode": "errors-only"
+ },
+ "dev": {
+ "dependsOn": ["@repo/db#db:generate"],
+ "persistent": true,
+ "cache": false
+ }
+ }
+}