mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 20:55:14 +00:00
chore: 批量清理冗余样式、优化权限系统与重构业务逻辑
1. 重构权限检查逻辑,移除旧版 auth/roles 自定义指令,统一使用 checkPerm 工具函数 2. 简化角色数据权限配置,移除自定义数据范围功能,简化为3种权限模式 3. 批量删除多处冗余的scoped样式,迁移全局布局与组件样式 4. 优化表单、表格、弹窗等基础组件样式与交互 5. 新增全屏国际化文案与工具类样式 6. 修复通知列表空值兼容、接口调用权限校验等细节问题 7. 更新依赖与自动导入配置,移除未使用的 vue3-cron-plus 包
This commit is contained in:
@@ -13,9 +13,9 @@ import tseslint from "typescript-eslint";
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
// 读取 src/types/eslint-globals.json 文件的内容,并将其解析为 JSON 对象
|
||||
// 读取 unplugin-auto-import 生成的 ESLint 全局配置(运行时由 vite 生成)
|
||||
const autoImportConfig = JSON.parse(
|
||||
fs.readFileSync(path.resolve(__dirname, "eslint-globals.json"), "utf-8")
|
||||
fs.readFileSync(path.resolve(__dirname, ".eslintrc-auto-import.json"), "utf-8")
|
||||
);
|
||||
|
||||
export default [
|
||||
@@ -28,7 +28,7 @@ export default [
|
||||
".vscode/**",
|
||||
"src/assets/**",
|
||||
"src/utils/console.ts",
|
||||
"eslint-globals.json",
|
||||
".eslintrc-auto-import.json",
|
||||
],
|
||||
},
|
||||
// 全局语言环境
|
||||
|
||||
Reference in New Issue
Block a user