chore: 初始化项目基础结构和资源文件

- 添加项目图标文件(app-icon.png、各平台图标)
- 配置开发环境文件(.env、.nvmrc、.npmrc)
- 添加静态资源文件(背景图片、字体、音频)
- 初始化Tauri后端结构(build.rs、main.rs、模块文件)
- 配置前端项目结构(TypeScript、Vue组件、样式)
- 添加Node.js API服务基础结构
- 配置构建和开发工具(vite、prettier、gitignore)
This commit is contained in:
2026-03-13 10:03:05 +08:00
commit 78af453fe1
357 changed files with 70605 additions and 0 deletions

42
tsconfig.app.json Normal file
View File

@ -0,0 +1,42 @@
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": [
"./src/**/*.ts",
"./src/**/*.js",
"./src/**/*.vue",
"./vite/**/*.ts",
"./index.html",
"./bridge/**/*.ts",
"./public/html/**/*.html",
"./public/html/**/*.js",
"./public/html/**/*.css",
"prettier.config.*",
"./eslint.config.*",
"./stylelint.config.*",
"./vite.config.*",
"./vite.simplified.config.*",
"eslint.config.*"
],
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"baseUrl": "./", // 用于解析非相对模块名称的基目录
"composite": true,
"target": "ESNext", // 目标语言的版本
"module": "ESNext", // 生成代码的模板标准
"moduleResolution": "bundler", // 选择模块解析策略
"esModuleInterop": true,
"allowImportingTsExtensions": true,
"isolatedModules": true, // 将每个文件做为单独的模块 (vite所需)
"allowSyntheticDefaultImports": true, // 允许从没有设置默认导出的模块中默认导入 (解决 不支持使用引入 使用export=导出的模块问题)
"jsx": "preserve", // 指定 jsx 代码的生成
"types": ["vue", "vite/client", "unplugin-icons/types/vue"],
"useDefineForClassFields": true,
"moduleDetection": "force",
// 路径映射
"paths": {
"@/*": ["./src/*"]
}
}
}