diff --git a/.eslintrc.json b/.eslintrc.json index 6b10a5b..98ef693 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,6 +1,3 @@ { - "extends": [ - "next/core-web-vitals", - "next/typescript" - ] + "extends": ["next/core-web-vitals", "next/typescript"] } diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..2312dc5 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +npx lint-staged diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c1c5363 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,23 @@ +{ + "editor.formatOnSave": true, + "editor.defaultFormatter": "biomejs.biome", + "editor.codeActionsOnSave": { + "source.fixAll.biome": "explicit", + "source.organizeImports.biome": "explicit" + }, + "[javascript]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "[typescript]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "[javascriptreact]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "[json]": { + "editor.defaultFormatter": "biomejs.biome" + } +} diff --git a/app/about/cn/page.tsx b/app/about/cn/page.tsx index 3ff30a0..4d0534e 100644 --- a/app/about/cn/page.tsx +++ b/app/about/cn/page.tsx @@ -1,13 +1,14 @@ -import type { Metadata } from "next"; -import Link from "next/link"; -import { FaGithub } from "react-icons/fa"; -import Image from "next/image"; +import type { Metadata } from "next" +import Image from "next/image" +import Link from "next/link" +import { FaGithub } from "react-icons/fa" export const metadata: Metadata = { title: "关于 - Next AI Draw.io", - description: "AI驱动的图表创建工具 - 对话、绘制、可视化。使用自然语言创建AWS、GCP和Azure架构图。", + description: + "AI驱动的图表创建工具 - 对话、绘制、可视化。使用自然语言创建AWS、GCP和Azure架构图。", keywords: ["AI图表", "draw.io", "AWS架构", "GCP图表", "Azure图表", "LLM"], -}; +} export default function AboutCN() { return ( @@ -16,14 +17,23 @@ export default function AboutCN() {
- + Next AI Draw.io