# 乘风在线工具库 **Repository Path**: yuanchengfeng/chengfeng-online-tool-library ## Basic Information - **Project Name**: 乘风在线工具库 - **Description**: 乘风在线工具库,收集常用的前端工具 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-29 - **Last Updated**: 2025-08-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 乘风在线工具库 一站式工具集合,提供文本处理、图像编辑等多种实用工具,帮助您提升工作效率。所有工具完全免费,无需注册,即开即用! ## 开发环境 - Node.js 16+ - React 19+ - Ant Design 5.x - Vite 6.x ## 开发指南 ### 安装依赖 ```bash npm install ``` ### 启动开发服务器 ```bash npm run dev ``` ### 构建生产版本 ```bash npm run build ``` ## 中文支持说明 为了确保中文显示正常,请注意以下几点: 1. 所有文件必须使用 UTF-8 编码保存 2. 在 Windows 环境下,确保 Git 配置了正确的中文支持: ```bash git config --global core.quotepath false git config --global gui.encoding utf-8 git config --global i18n.commit.encoding utf-8 git config --global i18n.logoutputencoding utf-8 ``` 3. 使用 VS Code 编辑器时,确保设置了正确的编码: - 在设置中添加 `"files.encoding": "utf8"` - 在设置中添加 `"files.autoGuessEncoding": true` 如遇到乱码问题,请尝试将文件重新保存为 UTF-8 编码。 ## 路由结构 - `/` - 首页 - `/text-tools` - 文本工具 - `/image-tools` - 图像工具 # 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: - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh ## Expanding the ESLint configuration If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules: ```js export default tseslint.config({ extends: [ // 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, ], languageOptions: { // other options... parserOptions: { project: ["./tsconfig.node.json", "./tsconfig.app.json"], tsconfigRootDir: import.meta.dirname, }, }, }); ``` You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules: ```js // eslint.config.js import reactX from "eslint-plugin-react-x"; import reactDom from "eslint-plugin-react-dom"; export default tseslint.config({ plugins: { // Add the react-x and react-dom plugins "react-x": reactX, "react-dom": reactDom, }, rules: { // other rules... // Enable its recommended typescript rules ...reactX.configs["recommended-typescript"].rules, ...reactDom.configs.recommended.rules, }, }); ```