refactor(auth): 使用isApiSuccess统一校验API响应 refactor(store): 更新用户信息获取逻辑以适配新响应格式 chore: 添加eslint和prettier配置及脚本 style: 调整vite代理配置端口号 新增文件上传相关API接口及类型定义 扩展用户信息接口添加邮箱相关字段 统一API响应校验逻辑 更新package.json添加代码格式化工具
68 lines
1.8 KiB
JSON
68 lines
1.8 KiB
JSON
{
|
|
"name": "aioj_frontend",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite --mode dev",
|
|
"dev:prod": "vite --mode prod",
|
|
"build": "vue-tsc -b && vite build --mode dev",
|
|
"build:prod": "vue-tsc -b && vite build --mode prod",
|
|
"preview": "vite preview",
|
|
"lint": "eslint . --ext .ts,.vue",
|
|
"lint:fix": "eslint . --ext .ts,.vue --fix",
|
|
"format": "prettier . --write",
|
|
"format:check": "prettier . --check",
|
|
"type-check": "vue-tsc --noEmit",
|
|
"build:types": "vue-tsc --declaration --emitDeclarationOnly"
|
|
},
|
|
"eslintConfig": {
|
|
"root": true,
|
|
"env": {
|
|
"browser": true,
|
|
"node": true,
|
|
"es2022": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:vue/vue3-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"prettier"
|
|
],
|
|
"parser": "vue-eslint-parser",
|
|
"parserOptions": {
|
|
"parser": "@typescript-eslint/parser",
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@arco-design/web-vue": "^2.57.0",
|
|
"axios": "^1.13.2",
|
|
"pinia": "^3.0.4",
|
|
"pinia-plugin-persistedstate": "^4.7.1",
|
|
"vue": "^3.5.24",
|
|
"vue-router": "4"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.10.0",
|
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
"@typescript-eslint/parser": "^7.18.0",
|
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
"@vue/tsconfig": "^0.8.1",
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-plugin-vue": "^9.23.0",
|
|
"openapi-typescript-codegen": "^0.29.0",
|
|
"prettier": "^3.2.5",
|
|
"sass-embedded": "^1.93.3",
|
|
"typescript": "~5.9.3",
|
|
"vite": "npm:rolldown-vite@7.2.2",
|
|
"vue-eslint-parser": "^9.4.3",
|
|
"vue-tsc": "^3.1.3"
|
|
},
|
|
"overrides": {
|
|
"vite": "npm:rolldown-vite@7.2.2"
|
|
}
|
|
}
|