diff --git a/app/_components/window-actions.tsx b/app/_components/window-actions.tsx index 5fe64d45..2b7a7b30 100644 --- a/app/_components/window-actions.tsx +++ b/app/_components/window-actions.tsx @@ -26,7 +26,7 @@ SOFTWARE. */ import { clsx } from "@nextui-org/shared-utils"; -import React from "react"; +import type React from "react"; import { tv } from "tailwind-variants"; export type WindowActionsProps = { diff --git a/app/not-found.tsx b/app/not-found.tsx index 5e87eb77..1178e7c5 100644 --- a/app/not-found.tsx +++ b/app/not-found.tsx @@ -1,4 +1,4 @@ -import { Metadata } from "next"; +import type { Metadata } from "next"; export const metadata: Metadata = { title: "404: Not Found", diff --git a/app/packages/[group]/[name]/_components/pack.tsx b/app/packages/[group]/[name]/_components/pack.tsx index f4d19576..9a7aed75 100644 --- a/app/packages/[group]/[name]/_components/pack.tsx +++ b/app/packages/[group]/[name]/_components/pack.tsx @@ -1,7 +1,7 @@ import { Chip, Code, Divider, Link } from "@nextui-org/react"; import ReactMarkdown from "react-markdown"; import { format } from "timeago.js"; -import { GetPackageByNameAndVersionQuery } from "~/graphql"; +import type { GetPackageByNameAndVersionQuery } from "~/graphql"; export function Pack({ pack, diff --git a/app/page.tsx b/app/page.tsx index d187075d..2ee54c06 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -2,7 +2,7 @@ import { faArrowRight, faDownload } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Code } from "@nextui-org/react"; import { Button, Link } from "@nextui-org/react"; -import { Metadata } from "next"; +import type { Metadata } from "next"; import { WindowActions } from "./_components/window-actions"; diff --git a/codegen.ts b/codegen.ts index 77313e86..0eb28010 100644 --- a/codegen.ts +++ b/codegen.ts @@ -1,4 +1,4 @@ -import { CodegenConfig } from "@graphql-codegen/cli"; +import type { CodegenConfig } from "@graphql-codegen/cli"; const config: CodegenConfig = { schema: "https://poac.hasura.app/v1/graphql", diff --git a/middleware.ts b/middleware.ts index a73379f8..9d0b99a7 100644 --- a/middleware.ts +++ b/middleware.ts @@ -1,4 +1,4 @@ -import { NextRequest, NextResponse } from "next/server"; +import { type NextRequest, NextResponse } from "next/server"; const IS_DEV = process.env.NODE_ENV === "development"; diff --git a/package.json b/package.json index 34df7346..9556642f 100644 --- a/package.json +++ b/package.json @@ -1,52 +1,52 @@ { - "name": "poac.dev", - "version": "0.0.0", - "private": true, - "scripts": { - "dev": "next dev", - "prebuild": "yarn generate", - "build": "next build", - "postbuild": "next-sitemap", - "start": "next start", - "lint": "biome check .", - "fmt": "biome format . --write", - "generate": "graphql-codegen --config codegen.ts" - }, - "dependencies": { - "@fortawesome/fontawesome-svg-core": "^6.5.1", - "@fortawesome/free-brands-svg-icons": "^6.5.1", - "@fortawesome/free-solid-svg-icons": "^6.5.1", - "@fortawesome/react-fontawesome": "^0.2.0", - "@nextui-org/react": "^2.2.10", - "@vercel/analytics": "^1.2.2", - "@vercel/speed-insights": "^1.0.10", - "framer-motion": "^11.0.24", - "graphql": "^16.8.1", - "next": "14.1.4", - "next-themes": "^0.3.0", - "react": "18.2.0", - "react-dom": "18.2.0", - "react-markdown": "^9.0.1", - "semver": "^7.6.0", - "timeago.js": "^4.0.2" - }, - "devDependencies": { - "@biomejs/biome": "1.5.3", - "@graphql-codegen/cli": "^5.0.2", - "@graphql-codegen/introspection": "^4.0.3", - "@graphql-codegen/typescript-graphql-request": "^6.2.0", - "@graphql-codegen/typescript-operations": "^4.2.0", - "@tailwindcss/typography": "^0.5.12", - "@types/node": "20.12.2", - "@types/react": "18.2.73", - "@types/react-dom": "18.2.19", - "autoprefixer": "^10.4.19", - "graphql-request": "^6.1.0", - "graphql-tag": "^2.0.0", - "next-sitemap": "^4.2.3", - "postcss": "^8.4.38", - "tailwind-variants": "^0.2.1", - "tailwindcss": "^3.4.3", - "typescript": "^5.4.3" - } + "name": "poac.dev", + "version": "0.0.0", + "private": true, + "scripts": { + "dev": "next dev", + "prebuild": "yarn generate", + "build": "next build", + "postbuild": "next-sitemap", + "start": "next start", + "lint": "biome check .", + "fmt": "biome format . --write", + "generate": "graphql-codegen --config codegen.ts" + }, + "dependencies": { + "@fortawesome/fontawesome-svg-core": "^6.5.1", + "@fortawesome/free-brands-svg-icons": "^6.5.1", + "@fortawesome/free-solid-svg-icons": "^6.5.1", + "@fortawesome/react-fontawesome": "^0.2.0", + "@nextui-org/react": "^2.2.10", + "@vercel/analytics": "^1.2.2", + "@vercel/speed-insights": "^1.0.10", + "framer-motion": "^11.0.24", + "graphql": "^16.8.1", + "next": "14.1.4", + "next-themes": "^0.3.0", + "react": "18.2.0", + "react-dom": "18.2.0", + "react-markdown": "^9.0.1", + "semver": "^7.6.0", + "timeago.js": "^4.0.2" + }, + "devDependencies": { + "@biomejs/biome": "1.6.3", + "@graphql-codegen/cli": "^5.0.2", + "@graphql-codegen/introspection": "^4.0.3", + "@graphql-codegen/typescript-graphql-request": "^6.2.0", + "@graphql-codegen/typescript-operations": "^4.2.0", + "@tailwindcss/typography": "^0.5.12", + "@types/node": "20.12.2", + "@types/react": "18.2.73", + "@types/react-dom": "18.2.19", + "autoprefixer": "^10.4.19", + "graphql-request": "^6.1.0", + "graphql-tag": "^2.0.0", + "next-sitemap": "^4.2.3", + "postcss": "^8.4.38", + "tailwind-variants": "^0.2.1", + "tailwindcss": "^3.4.3", + "typescript": "^5.4.3" + } } diff --git a/tsconfig.json b/tsconfig.json index f9cad316..d61b83e8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,42 +1,29 @@ { - "compilerOptions": { - "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "node", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "baseUrl": ".", - "paths": { - "~/*": [ - "./*" - ] + "compilerOptions": { + "target": "es5", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "baseUrl": ".", + "paths": { + "~/*": ["./*"] + }, + "plugins": [ + { + "name": "next" + } + ] }, - "plugins": [ - { - "name": "next" - } - ] - }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts" - ], - "exclude": [ - "node_modules" - ] + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] } diff --git a/yarn.lock b/yarn.lock index e8a6496f..3dc5ceca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -515,59 +515,59 @@ "@babel/helper-validator-identifier" "^7.22.20" to-fast-properties "^2.0.0" -"@biomejs/biome@1.5.3": - version "1.5.3" - resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.5.3.tgz#0762b9f681c247a228522e6c506060e734809d48" - integrity sha512-yvZCa/g3akwTaAQ7PCwPWDCkZs3Qa5ONg/fgOUT9e6wAWsPftCjLQFPXBeGxPK30yZSSpgEmRCfpGTmVbUjGgg== +"@biomejs/biome@1.6.3": + version "1.6.3" + resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.6.3.tgz#dd991f53b1aec87da096f837fa50720c9aa0ad5a" + integrity sha512-Xnp/TIpIcTnRA4LwerJuoGYQJEqwXtn5AL0U0OPXll/QGbAKmcUAfizU880xTwZRD4f53iceqODLDaD3wxYlIw== optionalDependencies: - "@biomejs/cli-darwin-arm64" "1.5.3" - "@biomejs/cli-darwin-x64" "1.5.3" - "@biomejs/cli-linux-arm64" "1.5.3" - "@biomejs/cli-linux-arm64-musl" "1.5.3" - "@biomejs/cli-linux-x64" "1.5.3" - "@biomejs/cli-linux-x64-musl" "1.5.3" - "@biomejs/cli-win32-arm64" "1.5.3" - "@biomejs/cli-win32-x64" "1.5.3" - -"@biomejs/cli-darwin-arm64@1.5.3": - version "1.5.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.5.3.tgz#8df0a562ca59b7a77151e26f67f45074644fab1c" - integrity sha512-ImU7mh1HghEDyqNmxEZBoMPr8SxekkZuYcs+gynKlNW+TALQs7swkERiBLkG9NR0K1B3/2uVzlvYowXrmlW8hw== - -"@biomejs/cli-darwin-x64@1.5.3": - version "1.5.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.5.3.tgz#ab5376f15d9e23b60ae2b0b51f7feee38a62bba2" - integrity sha512-vCdASqYnlpq/swErH7FD6nrFz0czFtK4k/iLgj0/+VmZVjineFPgevOb+Sr9vz0tk0GfdQO60bSpI74zU8M9Dw== - -"@biomejs/cli-linux-arm64-musl@1.5.3": - version "1.5.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.5.3.tgz#a2ba748a6cf94e2288244294a8e36a7db153982f" - integrity sha512-DYuMizUYUBYfS0IHGjDrOP1RGipqWfMGEvNEJ398zdtmCKLXaUvTimiox5dvx4X15mBK5M2m8wgWUgOP1giUpQ== - -"@biomejs/cli-linux-arm64@1.5.3": - version "1.5.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.5.3.tgz#c805d48a4740cadd4fbdc22bf74d86b6e10ed84e" - integrity sha512-cupBQv0sNF1OKqBfx7EDWMSsKwRrBUZfjXawT4s6hKV6ALq7p0QzWlxr/sDmbKMLOaLQtw2Qgu/77N9rm+f9Rg== - -"@biomejs/cli-linux-x64-musl@1.5.3": - version "1.5.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.5.3.tgz#b524a85e46724543eb0f3eda143dd62e58d6e148" - integrity sha512-UUHiAnlDqr2Y/LpvshBFhUYMWkl2/Jn+bi3U6jKuav0qWbbBKU/ByHgR4+NBxpKBYoCtWxhnmatfH1bpPIuZMw== - -"@biomejs/cli-linux-x64@1.5.3": - version "1.5.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.5.3.tgz#3934339eac9ec14307cb73541158cbf1695bfb79" - integrity sha512-YQrSArQvcv4FYsk7Q91Yv4uuu5F8hJyORVcv3zsjCLGkjIjx2RhjYLpTL733SNL7v33GmOlZY0eFR1ko38tuUw== - -"@biomejs/cli-win32-arm64@1.5.3": - version "1.5.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.5.3.tgz#db337fc521bd046015499d8bbc02835dbd93f01c" - integrity sha512-HxatYH7vf/kX9nrD+pDYuV2GI9GV8EFo6cfKkahAecTuZLPxryHx1WEfJthp5eNsE0+09STGkKIKjirP0ufaZA== - -"@biomejs/cli-win32-x64@1.5.3": - version "1.5.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.5.3.tgz#1a424f26b709bc17fc592de18e8f48a6d2a44c86" - integrity sha512-fMvbSouZEASU7mZH8SIJSANDm5OqsjgtVXlbUqxwed6BP7uuHRSs396Aqwh2+VoW8fwTpp6ybIUoC9FrzB0kyA== + "@biomejs/cli-darwin-arm64" "1.6.3" + "@biomejs/cli-darwin-x64" "1.6.3" + "@biomejs/cli-linux-arm64" "1.6.3" + "@biomejs/cli-linux-arm64-musl" "1.6.3" + "@biomejs/cli-linux-x64" "1.6.3" + "@biomejs/cli-linux-x64-musl" "1.6.3" + "@biomejs/cli-win32-arm64" "1.6.3" + "@biomejs/cli-win32-x64" "1.6.3" + +"@biomejs/cli-darwin-arm64@1.6.3": + version "1.6.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.6.3.tgz#1422c81c3017660c8a461361952bac434f1df6ee" + integrity sha512-0E8PGu3/8HSkBJdtjno+niJE1ANS/12D7sPK65vw5lTBYmmaYwJdfclDp6XO0IAX7uVd3/YtXlsEua0SVrNt3Q== + +"@biomejs/cli-darwin-x64@1.6.3": + version "1.6.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.6.3.tgz#c2c9f8ae4b95b8dd8d8a5d220c3c49fa2476f6c5" + integrity sha512-UWu0We/aIRtWXgJKe6ygWt2xR0yXs64BwWqtZbfxBojRn3jgW8UdFAkV5yiUOX3TQlsV6BZH1EQaUAVsccUeeA== + +"@biomejs/cli-linux-arm64-musl@1.6.3": + version "1.6.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.6.3.tgz#52e2eba24476d5f2c58d2e5d5d331ae8e5c23b9d" + integrity sha512-AntGCSfLN1nPcQj4VOk3X2JgnDw07DaPC8BuBmRcsRmn+7GPSWLllVN5awIKlRPZEbGJtSnLkTiDc5Bxw8OiuA== + +"@biomejs/cli-linux-arm64@1.6.3": + version "1.6.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.6.3.tgz#58bc8b8e48d5e69ef7dc07e925fb1f9f2fa45f99" + integrity sha512-wFVkQw38kOssfnkbpSh6ums5TaElw3RAt5i/VZwHmgR2nQgE0fHXLO7HwIE9VBkOEdbiIFq+2PxvFIHuJF3z3Q== + +"@biomejs/cli-linux-x64-musl@1.6.3": + version "1.6.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.6.3.tgz#013e93e8e0fb355bc8ab6ba0fa899f7f76963a56" + integrity sha512-GelAvGsUwbxfFpKLG+7+dvDmbrfkGqn08sL8CMQrGnhjE1krAqHWiXQsjfmi0UMFdMsk7hbc4oSAP+1+mrXcHQ== + +"@biomejs/cli-linux-x64@1.6.3": + version "1.6.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.6.3.tgz#697f5005412a5cce9976eec5478f4788c95d2ad7" + integrity sha512-vyn8TQaTZg617hjqFitwGmb1St5XXvq6I3vmxU/QFalM74BryMSvYCrYWb2Yw/TkykdEwZTMGYp+SWHRb04fTg== + +"@biomejs/cli-win32-arm64@1.6.3": + version "1.6.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.6.3.tgz#d90c5010f3559c76d65ec4835c57dc9ec272f59e" + integrity sha512-Gx8N2Tixke6pAI1BniteCVZgUUmaFEDYosdWxoaCus15BZI/7RcBxhsRM0ZL/lC66StSQ8vHl8JBrrld1k570Q== + +"@biomejs/cli-win32-x64@1.6.3": + version "1.6.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.6.3.tgz#88bf315e96c9a56f904cb33d6db1499fb2cd9964" + integrity sha512-meungPJw64SqoR7LXY1wG7GC4+4wgpyThdFUMGXa6PCe0BLFOIOcZ9VMj9PstuczMPdgmt/BUMPsj25dK1VO8A== "@corex/deepmerge@^4.0.43": version "4.0.43"