Compare commits

...

2 commits

Author SHA1 Message Date
SevicheCC
7c25397afd
chore: update next.js and husky 2024-10-16 21:00:00 +08:00
SevicheCC
d5dcc9e26e
chore: update package versions 2024-10-16 21:00:00 +08:00
5 changed files with 3428 additions and 2616 deletions

View file

@ -1,5 +1,2 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm lint pnpm lint
npx lint-staged npx lint-staged

View file

@ -4,13 +4,10 @@ import { cn } from "@/lib/utils";
import { ThemeProvider } from "@/components/ui/theme-provider"; import { ThemeProvider } from "@/components/ui/theme-provider";
export const metadata = { export const metadata = {
metadataBase: new URL('https://m-oauth.seviche.cc'),
title: "M-OAuth", title: "M-OAuth",
description: description:
"Access token generator for Akkoma, Pleroma, Mastodon, Misskey APIs.", "Access token generator for Akkoma, Pleroma, Mastodon, Misskey APIs.",
themeColor: [
{ media: "(prefers-color-scheme: light)", color: "white" },
{ media: "(prefers-color-scheme: dark)", color: "black" },
],
icons: { icons: {
icon: '/favicon.ico', icon: '/favicon.ico',
shortcut: '/favicon-16x16/png', shortcut: '/favicon-16x16/png',
@ -33,6 +30,12 @@ export const metadata = {
}, },
}; };
export const viewport = {
themeColor: [
{ media: "(prefers-color-scheme: light)", color: "white" },
{ media: "(prefers-color-scheme: dark)", color: "black" },
],
};
export default function RootLayout({ export default function RootLayout({
children, children,
}: { }: {

View file

@ -1,9 +1,6 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
reactStrictMode: true, reactStrictMode: true,
experimental: {
appDir: true,
},
images: { images: {
domains: ["cdn.jsdelivr.net", "github.com", "cdn.simpleicons.org"], domains: ["cdn.jsdelivr.net", "github.com", "cdn.simpleicons.org"],
}, },

View file

@ -9,44 +9,44 @@
"start": "next start", "start": "next start",
"lint": "next lint", "lint": "next lint",
"lint:fix": "eslint . -fix", "lint:fix": "eslint . -fix",
"prepare": "husky install" "prepare": "husky"
}, },
"dependencies": { "dependencies": {
"@hookform/resolvers": "^3.1.0", "@hookform/resolvers": "^3.9.0",
"@radix-ui/react-avatar": "^1.0.3", "@radix-ui/react-avatar": "^1.1.1",
"@radix-ui/react-checkbox": "^1.0.4", "@radix-ui/react-checkbox": "^1.1.2",
"@radix-ui/react-collapsible": "^1.0.3", "@radix-ui/react-collapsible": "^1.1.1",
"@radix-ui/react-label": "^2.0.2", "@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-select": "^1.2.2", "@radix-ui/react-select": "^2.1.2",
"@radix-ui/react-slot": "^1.0.2", "@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-toast": "^1.1.4", "@radix-ui/react-toast": "^1.2.2",
"class-variance-authority": "^0.6.0", "class-variance-authority": "^0.6.1",
"clsx": "^1.2.1", "clsx": "^2.1.1",
"lucide-react": "^0.240.0", "lucide-react": "^0.344.0",
"next": "13.4.4", "next": "14.2.15",
"next-themes": "^0.2.1", "next-themes": "^0.2.1",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"react-hook-form": "^7.44.3", "react-hook-form": "^7.53.0",
"tailwind-merge": "^1.13.0", "tailwind-merge": "^1.14.0",
"tailwindcss-animate": "^1.0.5", "tailwindcss-animate": "^1.0.7",
"zod": "^3.21.4" "zod": "^3.23.8"
}, },
"devDependencies": { "devDependencies": {
"eslint": "8.41.0", "@types/node": "20.11.24",
"eslint-config-prettier": "^8.8.0", "@types/react": "18.2.62",
"husky": "^8.0.3", "@types/react-dom": "18.2.19",
"lint-staged": "^13.2.2", "autoprefixer": "^10.4.20",
"prettier": "^2.8.8", "eslint": "8.57.0",
"prettier-plugin-tailwindcss": "^0.3.0", "eslint-config-next": "14.1.2",
"tailwindcss": "^3.3.2", "eslint-config-prettier": "^9.1.0",
"@types/node": "20.2.5", "husky": "^9.1.6",
"@types/react": "18.2.7", "lint-staged": "^13.3.0",
"@types/react-dom": "18.2.4", "postcss": "^8.4.47",
"eslint-config-next": "13.4.4", "prettier": "^3.3.3",
"autoprefixer": "^10.4.14", "prettier-plugin-tailwindcss": "^0.6.8",
"postcss": "^8.4.24", "tailwindcss": "^3.4.14",
"typescript": "5.0.4" "typescript": "5.3.3"
}, },
"lint-staged": { "lint-staged": {
"*.js": "eslint --cache --fix", "*.js": "eslint --cache --fix",

File diff suppressed because it is too large Load diff