翻译管理项目
Go to file
奇趣保罗 cd4dd441a4 Feat: 上下移动条目功能(非拖拽 2025-11-26 18:01:17 +08:00
public Init: 初始化项目脚手架 2025-11-01 18:27:43 +08:00
src Feat: 上下移动条目功能(非拖拽 2025-11-26 18:01:17 +08:00
.env.default Feat: 新增 AI 翻译功能,导出 JSON 复制到剪贴板 2025-11-04 17:50:57 +08:00
.gitignore Feat: 新增 AI 翻译功能,导出 JSON 复制到剪贴板 2025-11-04 17:50:57 +08:00
README.md Init: 初始化项目脚手架 2025-11-01 18:27:43 +08:00
components.json Feat: 引入 Tailwind CSS 和 Shadcn UI 组件库 2025-11-01 18:37:48 +08:00
eslint.config.js Feat: 新增首页和编辑器页面,支持导出导出 2025-11-03 16:47:16 +08:00
index.html Feat: 强制更新结构图,控制台打印结构图不包含的条目 2025-11-04 21:42:58 +08:00
package.json Feat: 新增 AI 翻译选项,可指定需要翻译的语种,以及使用已有翻译版本作为原文 2025-11-06 11:45:23 +08:00
pnpm-lock.yaml Feat: 新增 AI 翻译选项,可指定需要翻译的语种,以及使用已有翻译版本作为原文 2025-11-06 11:45:23 +08:00
tsconfig.app.json Feat: 引入 Tailwind CSS 和 Shadcn UI 组件库 2025-11-01 18:37:48 +08:00
tsconfig.json Feat: 引入 Tailwind CSS 和 Shadcn UI 组件库 2025-11-01 18:37:48 +08:00
tsconfig.node.json Init: 初始化项目脚手架 2025-11-01 18:27:43 +08:00
vite.config.ts Feat: 引入 Tailwind CSS 和 Shadcn UI 组件库 2025-11-01 18:37:48 +08:00

README.md

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])