diff --git a/.env b/.env deleted file mode 100644 index 8410303..0000000 --- a/.env +++ /dev/null @@ -1,4 +0,0 @@ -# .env -FLASK_APP=run.py -FLASK_CONFIG=development -DATABASE_URL=mysql+pymysql://root:LOpl23!!qq@rm-uf6r6oxm005vmy9flho.mysql.rds.aliyuncs.com/rct \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2af9b84..a547bf3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,96 +1,24 @@ -# === OS Generated Files === -.DS_Store -.DS_Store? -._* -.Spotlight-V100 -.Trashes -ehthumbs.db -Thumbs.db - -# === IDE and Editors === -.vscode/ -.idea/ -*.swp -*.swo -*~ -.project -.settings/ -.classpath -.factorypath - -# === Python and Flask === -__pycache__/ -*.py[cod] -*$py.class -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST -.venv/ -venv/ -ENV/ -env/ -.env/ -.conda/ -pip-log.txt -pip-delete-this-directory.txt -.toast -.cache -nosetests.xml -coverage.xml -*.cover -.hypothesis/ -.pytest_cache/ -cover/ -instance/ -.webassets-cache -.flaskenv - -# === Database === -*.db -*.sqlite3 - -# === Environment Files === -.env -.env.local -.env.dev -.env.test -.env.prod - -# === Logs === +# Logs +logs *.log -logs/ - -# === Project Specific Storage (User Data) === -uploads/ -raw_data_storage/ -processed_data_output/ -temp_extract_*/ - -# === Node.js (If applicable) === -node_modules/ -package-lock.json -yarn.lock npm-debug.log* yarn-debug.log* yarn-error.log* -.npm -.yarn-integrity +pnpm-debug.log* +lerna-debug.log* -# === Fonts and Assets (Optional Source) === -sans/ -__MACOSX/ +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.trae/documents/api_与页面迁移计划.md b/.trae/documents/api_与页面迁移计划.md new file mode 100644 index 0000000..7829659 --- /dev/null +++ b/.trae/documents/api_与页面迁移计划.md @@ -0,0 +1,234 @@ +# 下一阶段计划:完成全部 API 迁移与对应页面构建 + +## 0. 范围与目标 +本阶段目标是让系统具备“纯前后端分离”可用性:前端 Vue 覆盖现有功能页面;后端 Flask 提供等价能力的 `/api` 接口(JSON + 文件下载),并以 JWT 作为鉴权基础。 + +覆盖范围以现有 Flask SSR 功能为准(main/auth/admin 三个蓝图),对应代码主要在: +- [main/routes.py](file:///c:/Users/Administrator/Desktop/rct/backend/app/main/routes.py) +- [auth/routes.py](file:///c:/Users/Administrator/Desktop/rct/backend/app/auth/routes.py) +- [admin/routes.py](file:///c:/Users/Administrator/Desktop/rct/backend/app/admin/routes.py) + +现有 API 端点(已完成但不完整)在: +- [app/api](file:///c:/Users/Administrator/Desktop/rct/backend/app/api) + +## 1. 后端:API 迁移设计 + +### 1.1 API 基础规范(统一约定) +1) 路由前缀与版本 +- 继续使用 `/api` 作为前缀;如需版本化,采用 `/api/v1`(本阶段可先不引入版本,预留目录结构即可)。 + +2) 返回格式 +- 成功:直接返回业务 JSON(列表/对象/分页结构) +- 失败:`{"msg": "...", "code": "...", "details": {...}}`(至少保证 `msg`) + +3) 分页/排序/过滤 +- 通用查询参数:`page`、`per_page`、`q`、`sort`、`order` +- 统一分页返回: + - `{"items": [...], "page": 1, "per_page": 20, "total": 123}` + +4) 权限与鉴权 +- 鉴权:JWT(现状已支持,见 [api/auth.py](file:///c:/Users/Administrator/Desktop/rct/backend/app/api/auth.py)) +- 权限:复用现有 RBAC 能力(`User.has_permission()` / `User.get_all_permissions()`),见 [models.py](file:///c:/Users/Administrator/Desktop/rct/backend/app/models.py) +- 需要补齐 API 侧的装饰器/校验逻辑(参考 SSR 的 [decorators.py](file:///c:/Users/Administrator/Desktop/rct/backend/app/decorators.py)),提供: + - `admin_required_jwt` + - `permission_required_jwt(permission_name)` + - `data_access_required_jwt(model, id_param=...)`(用于 DataEntry/Attachment/RawDataFolder 等资源) + +5) 文件下载 +- 附件下载、CSV 导出、处理产物 ZIP 下载、推理结果 CSV 下载统一走 `send_from_directory` / `send_file`,前端以 `blob` 方式下载。 + +### 1.2 需要补齐的 API 清单(按模块) + +#### A. Auth(认证) +- `POST /api/auth/login`(已存在) +- `GET /api/auth/me`(已存在) +- 可选增强(视需求决定是否实现): + - `POST /api/auth/logout`(前端仅清 token 也可) + - `POST /api/auth/refresh`(Access/Refresh 机制) + +#### B. Main(仪表盘/通知) +- `GET /api/dashboard`(已存在,但建议分页/字段裁剪) +- `GET /api/notifications`(已存在,建议增加分页) +- 建议补齐: + - `GET /api/data-entries/:id`(数据详情;供 Dashboard 点击查看) + +#### C. Search(搜索与建议) +将 SSR 的 `/search` 与 `/search/suggestions` 迁移为 API: +- `GET /api/search?q=...&scope=data|notification|folder`(或 `POST`,返回结构含 3 类结果) + - 逻辑参考 [main/routes.py search](file:///c:/Users/Administrator/Desktop/rct/backend/app/main/routes.py#L14-L91) +- `GET /api/search/suggestions?q=...`(返回最多 10 条) + - 逻辑参考 [main/routes.py search_suggestions](file:///c:/Users/Administrator/Desktop/rct/backend/app/main/routes.py#L93-L195) + +#### D. Admin - Users(用户管理) +现有仅 `GET/POST /api/admin/users`(见 [api/admin.py](file:///c:/Users/Administrator/Desktop/rct/backend/app/api/admin.py)),需补齐: +- `GET /api/admin/users/:id` +- `PATCH /api/admin/users/:id`(编辑用户:username/email/role/roles/password) +- `POST /api/admin/users/:id/toggle-status`(启用/禁用) +- `DELETE /api/admin/users/:id` + +#### E. Admin - RBAC(角色/权限/审计日志) +对齐 SSR 功能(见 [admin/routes.py RBAC](file:///c:/Users/Administrator/Desktop/rct/backend/app/admin/routes.py)): +- Roles + - `GET /api/admin/roles` + - `POST /api/admin/roles` + - `GET /api/admin/roles/:id` + - `PATCH /api/admin/roles/:id`(含 parent_id/permissions) + - `DELETE /api/admin/roles/:id`(需要校验 children) +- Permissions + - `GET /api/admin/permissions` + - `POST /api/admin/permissions` + - `DELETE /api/admin/permissions/:id` +- Permission Logs + - `GET /api/admin/permission-logs?page=&per_page=` + +#### F. Admin - DataEntry(数据条目/可见性/附件/导出) +这是前端管理端最核心的一块(SSR 对应 [manage_data](file:///c:/Users/Administrator/Desktop/rct/backend/app/admin/routes.py#L125-L189) 等): +- `GET /api/admin/data-entries?page=&per_page=&q=&researcher_id=...` +- `POST /api/admin/data-entries` + - 支持 multipart:`csv_file`、`attachments[]`、基础字段(title/content/is_permanent/start_date/expiration_date/researcher_id/visible_user_ids[]) +- `GET /api/admin/data-entries/:id` +- `PATCH /api/admin/data-entries/:id` +- `DELETE /api/admin/data-entries/:id` +- `POST /api/admin/data-entries/batch-delete`(ids[]) +- 附件/CSV/导出 + - `GET /api/attachments/:id/download` + - `GET /api/admin/data-entries/:id/csv`(下载原 CSV,或返回解析后的 table 数据) + - `GET /api/admin/data-entries/export?format=csv`(返回文件) + +#### G. Admin - Uploads(批量上传/预览/历史) +现有 API 仅单文件上传(`POST /api/admin/upload`),需对齐 SSR: +- `POST /api/admin/uploads/archives`(多文件上传 zip/rar/7z 并写 UploadLog) +- `POST /api/admin/uploads/preview-archive`(预览 zip 内容) +- `GET /api/admin/uploads/history?page=&per_page=`(上传历史列表) + +#### H. Admin - Integration(整合任务:文件夹/作业/summary/产物下载) +对齐 SSR integration-manager(见 [integration_manager](file:///c:/Users/Administrator/Desktop/rct/backend/app/admin/routes.py#L227-L311)): +- `GET /api/admin/integration/folders?page=&per_page=&status=&researcher_id=` +- `PATCH /api/admin/integration/folders/:id`(分配 researcher) +- `POST /api/admin/integration/jobs`(触发整合:folder_id) +- `GET /api/admin/integration/jobs?page=&per_page=`(作业列表/状态/日志) +- `GET /api/admin/integration/folders/:id/summary`(segments/summary JSON;参考 [view_summary](file:///c:/Users/Administrator/Desktop/rct/backend/app/admin/routes.py#L362-L390)) +- `GET /api/admin/integration/folders/:id/download-processed`(ZIP 下载;参考 [download_processed_folder](file:///c:/Users/Administrator/Desktop/rct/backend/app/admin/routes.py#L392-L422)) +- `POST /api/admin/integration/folders/batch-assign-researcher` + +#### I. Admin - Inference(推理任务/历史/结果) +对齐 SSR inference-manager(见 [inference_manager](file:///c:/Users/Administrator/Desktop/rct/backend/app/admin/routes.py#L470-L483)): +- `GET /api/admin/inference/folders`(可推理文件夹:status=completed) +- `POST /api/admin/inference/jobs`(触发推理:folder_id) +- `GET /api/admin/inference/results?page=&per_page=`(推理历史) +- `GET /api/admin/inference/results/:id/download`(下载结果 CSV;若存储在本地) + +### 1.3 后端实现策略(避免重复造轮子) +1) 代码组织 +- 在 [app/api](file:///c:/Users/Administrator/Desktop/rct/backend/app/api) 下按领域拆分模块:`auth.py/search.py/admin_users.py/admin_rbac.py/admin_data.py/admin_uploads.py/admin_integration.py/admin_inference.py/main.py`。 + +2) 复用既有业务逻辑 +- 将 SSR 路由中“数据库查询/权限过滤/文件生成”的代码抽到可复用函数(例如 `services/` 或 `app/*/service.py`),API 与 SSR 同时调用,减少分叉。 + +3) 权限校验统一化 +- API 层使用 JWT identity 获取 User,再调用与 SSR 一致的 `is_admin()/has_permission()/data_access` 逻辑。 + +4) 数据模型与文件系统的一致性 +- integration/inference 涉及本地文件(processed_data_output、attachments、uploads),API 端点需要明确返回“文件名/下载 URL/状态字段”,并且为前端轮询提供稳定的 job/status 查询能力。 + +## 2. 前端:页面构建计划(Vue) + +### 2.1 关键修正(先决条件) +- 将 [App.vue](file:///c:/Users/Administrator/Desktop/rct/frontend/src/App.vue) 改为仅承载路由容器(``),否则所有页面路由无法生效。 + +### 2.2 路由与菜单规划 +现有路由很少(见 [router/index.js](file:///c:/Users/Administrator/Desktop/rct/frontend/src/router/index.js)),本阶段扩展为三类: + +1) 公共 +- `/login` + +2) 登录后主应用(Layout:沿用 [MainLayout.vue](file:///c:/Users/Administrator/Desktop/rct/frontend/src/layout/MainLayout.vue)) +- `/dashboard`(数据列表) +- `/notifications`(公告列表) +- `/search`(全局搜索/建议) +- `/profile`(展示 `/api/auth/me` 返回的权限/信息) +- `/data/:id`(数据详情:content/附件/CSV) + +3) 管理端(仅管理员或具备权限的用户可见) +- `/admin/users` +- `/admin/roles` +- `/admin/permissions` +- `/admin/permission-logs` +- `/admin/data-entries` +- `/admin/notifications` +- `/admin/uploads` +- `/admin/integration` +- `/admin/inference` + +守卫策略: +- 在路由 meta 中支持 `requiresAuth`、`requiresAdmin`、`requiredPerms`。 +- 登录后优先调用 `/api/auth/me` 拉取 `permissions`,以 permissions 细粒度控制菜单可见性与路由访问。 + +### 2.3 页面清单与对应 API +1) 登录页 +- 调用:`POST /api/auth/login`,保存 token/user(现状已做) + +2) 仪表盘 +- 调用:`GET /api/dashboard`(建议分页化后对应更新) +- 交互:点击进入 `/data/:id` + +3) 通知列表页 +- 调用:`GET /api/notifications` + +4) 搜索页 +- 调用:`GET /api/search/suggestions`(输入联想) +- 调用:`GET /api/search`(结果) + +5) 用户管理页(升级现有 [Users.vue](file:///c:/Users/Administrator/Desktop/rct/frontend/src/views/admin/Users.vue)) +- 调用:users CRUD + toggle-status + +6) 角色/权限/审计 +- 调用:roles CRUD、permissions CRUD、permission-logs 列表 + +7) 数据条目管理页 +- 调用:data-entries 列表/创建/编辑/删除/批量删除/导出 +- 上传:multipart(CSV + 附件) +- 下载:附件/CSV/导出文件(blob) + +8) 上传与历史 +- 调用:批量上传、预览压缩包、历史分页 + +9) 数据整合 +- 调用:folders 列表(分页/过滤)、分配 researcher、创建 job、job 列表轮询、summary 展示、processed 下载 + +10) AI 推理 +- 调用:可推理 folders、触发推理、历史查询、结果下载 + +### 2.4 前端工程化约定 +- API baseURL 由环境变量提供(例如 `VITE_API_BASE_URL`),替代硬编码(当前 [api/index.js](file:///c:/Users/Administrator/Desktop/rct/frontend/src/api/index.js) 写死 `http://localhost:5000/api`)。 +- 统一请求封装: + - 列表请求支持分页参数与标准返回结构 + - 统一错误提示(401 已处理,403/500 需要 UI 提示) +- 通用组件: + - 表格 + 分页、表单弹窗、文件上传组件、下载按钮组件 + +## 3. 迁移顺序(执行时的推进路径) +为保证“可运行、可验证、逐步替换 SSR”,执行顺序建议如下: +1) 后端:补齐权限装饰器(JWT 版)+ 统一分页响应 + Search API +2) 前端:修正 App.vue 路由承载 + 完成 Notifications/Search/Profile +3) 后端:Users/RBAC API 完整化 +4) 前端:Users/RBAC 页面完成(含权限控制) +5) 后端:DataEntry/Attachment/Export API 完整化 +6) 前端:数据条目管理 + 详情/附件/CSV +7) 后端:Uploads/Integration/Inference API 完整化 +8) 前端:Uploads/Integration/Inference 页面与轮询状态 + +## 4. 验证与回归(完成定义) +后端: +- 为新增 API 增加最小单元测试(沿用现有测试风格:[tests](file:///c:/Users/Administrator/Desktop/rct/backend/tests)),至少覆盖: + - 登录成功/失败/禁用账号 + - 403(无权限)与数据隔离(DataEntry/Attachment) + - integration/inference 触发与状态查询端点返回结构 + +前端: +- 手工验收路径(至少): + - 登录 -> 仪表盘加载 -> 数据详情查看 + - 通知列表加载 + - 搜索建议与结果 + - 管理员进入 Users/RBAC/DataEntry/Integration/Inference 页面并完成最小操作(列表可见 + 触发动作 + 状态刷新) + diff --git a/.trae/documents/cleanup_resources_plan.md b/.trae/documents/cleanup_resources_plan.md new file mode 100644 index 0000000..57f51ea --- /dev/null +++ b/.trae/documents/cleanup_resources_plan.md @@ -0,0 +1,31 @@ +# 清理无用资源文件计划 + +## 目标 +清理项目中未使用的资源文件,减少项目体积,保持代码整洁。 + +## 分析结果 +经过对项目的扫描和引用检查,发现以下文件未被使用: + +### Frontend +1. **`frontend/src/assets/vue.svg`** + - 该文件是 Vue 项目模板自带的 logo 文件。 + - 经检查,代码中无任何引用(`grep` 搜索无结果)。 + - `frontend/src/App.vue` 和 `frontend/src/main.js` 中均未引入。 + +2. **`frontend/src/components/HelloWorld.vue`** + - 该文件是 Vue 项目模板自带的示例组件。 + - 经检查,`frontend/src/App.vue` 中未引用该组件(通常模板代码会引用,但已被移除)。 + - 代码中无其他引用。 + +### Backend +- 对 `backend/app/static` 目录下的 CSS、JS 和字体文件进行了检查。 +- `style.css` 和 `main.js` 在 `base.html` 模板中被引用,且包含实际业务逻辑和样式。 +- `HarmonyOS_Sans_SC` 字体文件在 `style.css` 中均被 `@font-face` 引用。 +- 未发现明显的无用资源文件。 + +## 执行计划 +1. 删除 `frontend/src/assets/vue.svg` [已完成] +2. 删除 `frontend/src/components/HelloWorld.vue` [已完成] + +## 验证 +- 删除后,重新构建或运行前端项目,确保没有因缺失文件导致的报错(虽然已确认为未使用,但需防范动态引用)。 diff --git a/.trae/documents/refactor_plan.md b/.trae/documents/refactor_plan.md new file mode 100644 index 0000000..487a33d --- /dev/null +++ b/.trae/documents/refactor_plan.md @@ -0,0 +1,109 @@ +# 项目重构计划:前后端分离 (Flask + Vue) + +## 1. 目标 +将现有的 Flask 单体应用重构为前后端分离架构。 +- **后端**: Flask (提供 RESTful API) +- **前端**: Vue 3 + Vite (单页应用 SPA) + +## 2. 架构设计 + +### 2.1 目录结构 +我们将项目目录重组为以下结构: +``` +rct/ +├── backend/ # 现有的 Flask 代码移动到这里 +│ ├── app/ +│ │ ├── api/ # 新增:RESTful API 蓝图 +│ │ ├── models.py # 保留:数据库模型 +│ │ └── ... +│ ├── run.py +│ └── requirements.txt +├── frontend/ # 新增:Vue 3 项目 +│ ├── src/ +│ ├── package.json +│ └── vite.config.js +└── README.md +``` + +### 2.2 技术栈 +- **后端**: + - 框架: Flask + - 接口: Flask-RESTful 或原生 Blueprint + - 认证: Flask-JWT-Extended (替代 Flask-Login 进行 Token 认证) + - 跨域: Flask-CORS + - 数据库: SQLAlchemy (沿用现有) +- **前端**: + - 框架: Vue 3 (Composition API) + - 构建工具: Vite + - 路由: Vue Router + - 状态管理: Pinia + - UI 组件库: Element Plus (适合后台管理系统) + - HTTP 客户端: Axios + +## 3. 实施步骤 + +### 第一阶段:后端重构 (Backend Refactoring) +1. **环境准备**: + - 安装 `flask-jwt-extended` 和 `flask-cors`。 + - 移动现有代码到 `backend/` 目录。 +2. **API 蓝图创建**: + - 创建 `app/api` 模块。 + - 配置 CORS 支持。 +3. **认证机制迁移**: + - 实现 `/api/auth/login` 接口,返回 JWT Access Token。 + - 实现 `/api/auth/me` 接口,获取当前用户信息。 + - 替换 `login_required` 为 `jwt_required`。 +4. **业务接口迁移**: + - **Dashboard**: 将 `main.dashboard` 逻辑转换为 API,返回 JSON 数据。 + - **Admin**: 将用户管理、角色管理、数据上传等功能转换为 API。 + - **Integration/Inference**: 暴露触发后台任务和查询状态的 API。 + +### 第二阶段:前端开发 (Frontend Development) +1. **项目初始化**: + - 使用 `npm create vite@latest` 创建 `frontend` 项目。 + - 安装依赖: `vue-router`, `pinia`, `axios`, `element-plus`, `sass`。 +2. **基础架构搭建**: + - 配置 Axios 拦截器 (自动携带 Token,处理 401 过期)。 + - 配置 Vue Router (定义路由表,添加导航守卫)。 + - 配置 Pinia User Store (管理登录状态)。 +3. **页面开发**: + - **登录页**: 实现登录逻辑。 + - **主布局 (Layout)**: 侧边栏导航、顶部用户信息。 + - **仪表盘 (Dashboard)**: 展示数据概览。 + - **管理页面**: + - 用户/角色管理 (表格 + 弹窗表单)。 + - 数据上传与管理。 + - 整合与推理任务管理 (实时刷新状态)。 +4. **组件复用**: + - 封装通用的表格组件、搜索组件。 + +### 第三阶段:联调与部署 (Integration & Deployment) +1. **联调**: + - 前端连接本地后端进行测试。 + - 修复接口字段不匹配问题。 +2. **部署方案**: + - **开发环境**: 前端 Vite Server (3000) -> 代理 -> 后端 Flask (5000)。 + - **生产环境**: 前端构建为静态文件 (`dist/`),由 Flask 托管或 Nginx 独立托管。 + +## 4. 待办事项清单 (Todo List) + +### Backend +- [ ] 移动现有代码到 `backend/` 文件夹 +- [ ] 安装 `flask-jwt-extended`, `flask-cors` +- [ ] 创建 `app/api` 蓝图并注册 +- [ ] 实现 JWT 登录接口 (`POST /api/login`) +- [ ] 迁移 Dashboard 数据接口 (`GET /api/dashboard`) +- [ ] 迁移 Admin 用户管理接口 (CRUD) +- [ ] 迁移 Admin 角色/权限管理接口 +- [ ] 迁移 数据管理/上传接口 +- [ ] 迁移 整合与推理任务接口 + +### Frontend +- [ ] 初始化 Vue 3 + Vite 项目 +- [ ] 安装 Element Plus, Axios, Pinia, Vue Router +- [ ] 搭建项目骨架 (Layout, Router, Store) +- [ ] 开发登录页面 +- [ ] 开发仪表盘页面 +- [ ] 开发用户/权限管理页面 +- [ ] 开发数据/任务管理页面 +- [ ] 联调测试 diff --git a/app/static/fonts/HarmonyOS_Sans_SC/.DS_Store b/app/static/fonts/HarmonyOS_Sans_SC/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/app/static/fonts/HarmonyOS_Sans_SC/.DS_Store and /dev/null differ diff --git a/backend/.gitignore b/backend/.gitignore new file mode 100644 index 0000000..2af9b84 --- /dev/null +++ b/backend/.gitignore @@ -0,0 +1,96 @@ +# === OS Generated Files === +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db + +# === IDE and Editors === +.vscode/ +.idea/ +*.swp +*.swo +*~ +.project +.settings/ +.classpath +.factorypath + +# === Python and Flask === +__pycache__/ +*.py[cod] +*$py.class +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST +.venv/ +venv/ +ENV/ +env/ +.env/ +.conda/ +pip-log.txt +pip-delete-this-directory.txt +.toast +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ +cover/ +instance/ +.webassets-cache +.flaskenv + +# === Database === +*.db +*.sqlite3 + +# === Environment Files === +.env +.env.local +.env.dev +.env.test +.env.prod + +# === Logs === +*.log +logs/ + +# === Project Specific Storage (User Data) === +uploads/ +raw_data_storage/ +processed_data_output/ +temp_extract_*/ + +# === Node.js (If applicable) === +node_modules/ +package-lock.json +yarn.lock +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.npm +.yarn-integrity + +# === Fonts and Assets (Optional Source) === +sans/ +__MACOSX/ diff --git a/RBAC.md b/backend/RBAC.md similarity index 100% rename from RBAC.md rename to backend/RBAC.md diff --git a/backend/__init__.py b/backend/__init__.py new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/backend/__init__.py @@ -0,0 +1 @@ + diff --git a/app/__init__.py b/backend/app/__init__.py similarity index 76% rename from app/__init__.py rename to backend/app/__init__.py index dd05b42..53d481f 100644 --- a/app/__init__.py +++ b/backend/app/__init__.py @@ -5,7 +5,12 @@ from flask_login import LoginManager from flask_migrate import Migrate from flask_wtf.csrf import CSRFProtect from flask_compress import Compress -from config import config +from flask_jwt_extended import JWTManager +from flask_cors import CORS +try: + from ..config import config +except ImportError: + from config import config db = SQLAlchemy() login_manager = LoginManager() @@ -13,6 +18,7 @@ login_manager.login_view = 'auth.login' # 未登录用户访问保护页面时 migrate = Migrate() csrf = CSRFProtect() compress = Compress() +jwt = JWTManager() def create_app(config_name): app = Flask(__name__) @@ -23,6 +29,8 @@ def create_app(config_name): migrate.init_app(app, db) csrf.init_app(app) compress.init_app(app) + jwt.init_app(app) + CORS(app, resources={r"/api/*": {"origins": "*"}}) # 注册蓝图 from .main import main as main_blueprint @@ -34,6 +42,12 @@ def create_app(config_name): from .admin import admin as admin_blueprint app.register_blueprint(admin_blueprint, url_prefix='/admin') + from .api import api as api_blueprint + app.register_blueprint(api_blueprint, url_prefix='/api') + + # Disable CSRF for API routes + csrf.exempt(api_blueprint) + # 字体文件强缓存策略 @app.after_request def add_header(response): diff --git a/app/admin/__init__.py b/backend/app/admin/__init__.py similarity index 100% rename from app/admin/__init__.py rename to backend/app/admin/__init__.py diff --git a/app/admin/forms.py b/backend/app/admin/forms.py similarity index 100% rename from app/admin/forms.py rename to backend/app/admin/forms.py diff --git a/app/admin/routes.py b/backend/app/admin/routes.py similarity index 100% rename from app/admin/routes.py rename to backend/app/admin/routes.py diff --git a/backend/app/api/__init__.py b/backend/app/api/__init__.py new file mode 100644 index 0000000..e7ebe81 --- /dev/null +++ b/backend/app/api/__init__.py @@ -0,0 +1,16 @@ +from flask import Blueprint + +api = Blueprint('api', __name__) + +from . import ( + admin, + admin_notifications, + admin_rbac, + auth, + data_entries, + inference, + integration, + routes, + search, + uploads, +) diff --git a/backend/app/api/admin.py b/backend/app/api/admin.py new file mode 100644 index 0000000..72c9275 --- /dev/null +++ b/backend/app/api/admin.py @@ -0,0 +1,183 @@ +from flask import jsonify, request +from flask_jwt_extended import jwt_required + +from .. import db +from ..models import Role, User +from ..rbac_utils import log_permission_change +from . import api +from .security import admin_required_jwt, get_current_user, get_pagination_args, permission_required_jwt + + +@api.route("/admin/users", methods=["GET"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_users") +def list_users(): + page, per_page = get_pagination_args(default_per_page=20) + q = request.args.get("q", "").strip() + + query = User.query + if q: + like = f"%{q}%" + query = query.filter((User.username.ilike(like)) | (User.email.ilike(like))) + + query = query.order_by(User.id.desc()) + pagination = query.paginate(page=page, per_page=per_page, error_out=False) + + return ( + jsonify( + { + "items": [ + { + "id": u.id, + "username": u.username, + "email": u.email, + "role": u.role, + "is_active": u.is_active_account, + "roles": [{"id": r.id, "name": r.name} for r in u.roles], + } + for u in pagination.items + ], + "page": pagination.page, + "per_page": pagination.per_page, + "total": pagination.total, + } + ), + 200, + ) + + +@api.route("/admin/users", methods=["POST"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_users") +def create_user(): + data = request.get_json() or {} + username = (data.get("username") or "").strip() + email = (data.get("email") or "").strip() + password = data.get("password") + role_name = (data.get("role") or "user").strip() + role_ids = data.get("role_ids") or [] + + if not username or not email or not password: + return jsonify({"msg": "Missing username/email/password"}), 400 + + if User.query.filter((User.username == username) | (User.email == email)).first(): + return jsonify({"msg": "Username or email already exists"}), 400 + + user = User(username=username, email=email, role=role_name) + user.set_password(password) + + if role_ids: + roles = Role.query.filter(Role.id.in_(role_ids)).all() + user.roles = roles + + db.session.add(user) + db.session.commit() + operator = get_current_user() + log_permission_change((operator.id if operator else user.id), f"Created user {user.username}", "User", user.id) + + return jsonify({"id": user.id}), 201 + + +@api.route("/admin/users/", methods=["GET"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_users") +def get_user(user_id): + user = User.query.get(user_id) + if not user: + return jsonify({"msg": "Not found"}), 404 + return ( + jsonify( + { + "id": user.id, + "username": user.username, + "email": user.email, + "role": user.role, + "is_active": user.is_active_account, + "roles": [{"id": r.id, "name": r.name} for r in user.roles], + } + ), + 200, + ) + + +@api.route("/admin/users/", methods=["PATCH"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_users") +def update_user(user_id): + user = User.query.get(user_id) + if not user: + return jsonify({"msg": "Not found"}), 404 + + data = request.get_json() or {} + + if "username" in data: + new_username = (data.get("username") or "").strip() + if not new_username: + return jsonify({"msg": "Invalid username"}), 400 + exists = User.query.filter(User.username == new_username, User.id != user.id).first() + if exists: + return jsonify({"msg": "Username already exists"}), 400 + user.username = new_username + + if "email" in data: + new_email = (data.get("email") or "").strip() + if not new_email: + return jsonify({"msg": "Invalid email"}), 400 + exists = User.query.filter(User.email == new_email, User.id != user.id).first() + if exists: + return jsonify({"msg": "Email already exists"}), 400 + user.email = new_email + + if "role" in data: + user.role = (data.get("role") or "").strip() or user.role + + if "password" in data and data.get("password"): + user.set_password(data.get("password")) + + if "role_ids" in data: + role_ids = data.get("role_ids") or [] + roles = Role.query.filter(Role.id.in_(role_ids)).all() if role_ids else [] + user.roles = roles + + db.session.commit() + operator = get_current_user() + log_permission_change((operator.id if operator else user.id), f"Updated user {user.username}", "User", user.id) + return jsonify({"msg": "ok"}), 200 + + +@api.route("/admin/users//toggle-status", methods=["POST"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_users") +def toggle_user_status(user_id): + user = User.query.get(user_id) + if not user: + return jsonify({"msg": "Not found"}), 404 + + user.is_active_account = not user.is_active_account + db.session.commit() + operator = get_current_user() + log_permission_change((operator.id if operator else user.id), f"Toggled user {user.username}", "User", user.id) + + return jsonify({"id": user.id, "is_active": user.is_active_account}), 200 + + +@api.route("/admin/users/", methods=["DELETE"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_users") +def delete_user(user_id): + user = User.query.get(user_id) + if not user: + return jsonify({"msg": "Not found"}), 404 + + db.session.delete(user) + db.session.commit() + operator = get_current_user() + log_permission_change((operator.id if operator else user.id), f"Deleted user {user.username}", "User", user.id) + + return jsonify({"msg": "deleted"}), 200 diff --git a/backend/app/api/admin_notifications.py b/backend/app/api/admin_notifications.py new file mode 100644 index 0000000..1e8a29a --- /dev/null +++ b/backend/app/api/admin_notifications.py @@ -0,0 +1,119 @@ +from flask import jsonify, request +from flask_jwt_extended import jwt_required + +from .. import db +from ..models import Notification +from . import api +from .security import admin_required_jwt, permission_required_jwt, get_current_user, get_pagination_args, paginate_query + + +@api.route("/admin/notifications", methods=["GET"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_data") +def list_notifications(): + page, per_page = get_pagination_args(default_per_page=20) + q = request.args.get("q", "").strip() + + query = Notification.query + if q: + like = f"%{q}%" + query = query.filter((Notification.title.ilike(like)) | (Notification.content.ilike(like))) + + query = query.order_by(Notification.timestamp.desc()) + paged = paginate_query(query, page, per_page) + + return ( + jsonify( + { + "items": [ + { + "id": n.id, + "title": n.title, + "content": n.content, + "timestamp": n.timestamp.isoformat(), + "is_published": n.is_published, + "author": n.author.username if n.author else None, + } + for n in paged["items"] + ], + "page": paged["page"], + "per_page": paged["per_page"], + "total": paged["total"], + } + ), + 200, + ) + + +@api.route("/admin/notifications", methods=["POST"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_data") +def create_notification(): + user = get_current_user() + data = request.get_json() or {} + title = (data.get("title") or "").strip() + content = (data.get("content") or "").strip() + is_published = bool(data.get("is_published", False)) + + if not title or not content: + return jsonify({"msg": "Missing title or content"}), 400 + + notif = Notification(title=title, content=content, author=user) + notif.is_published = is_published + + db.session.add(notif) + db.session.commit() + + return jsonify({"id": notif.id}), 201 + + +@api.route("/admin/notifications/", methods=["PATCH"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_data") +def update_notification(notification_id): + notif = Notification.query.get(notification_id) + if not notif: + return jsonify({"msg": "Not found"}), 404 + + data = request.get_json() or {} + if "title" in data: + notif.title = (data.get("title") or "").strip() + if "content" in data: + notif.content = (data.get("content") or "").strip() + if "is_published" in data: + notif.is_published = bool(data.get("is_published")) + + db.session.commit() + return jsonify({"msg": "ok"}), 200 + + +@api.route("/admin/notifications//toggle-publish", methods=["POST"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_data") +def toggle_publish(notification_id): + notif = Notification.query.get(notification_id) + if not notif: + return jsonify({"msg": "Not found"}), 404 + + notif.is_published = not notif.is_published + db.session.commit() + return jsonify({"id": notif.id, "is_published": notif.is_published}), 200 + + +@api.route("/admin/notifications/", methods=["DELETE"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_data") +def delete_notification(notification_id): + notif = Notification.query.get(notification_id) + if not notif: + return jsonify({"msg": "Not found"}), 404 + + db.session.delete(notif) + db.session.commit() + return jsonify({"msg": "deleted"}), 200 + diff --git a/backend/app/api/admin_rbac.py b/backend/app/api/admin_rbac.py new file mode 100644 index 0000000..1d6faa2 --- /dev/null +++ b/backend/app/api/admin_rbac.py @@ -0,0 +1,217 @@ +from flask import jsonify, request +from flask_jwt_extended import jwt_required + +from .. import db +from ..models import Permission, PermissionLog, Role +from ..rbac_utils import check_circular_inheritance, log_permission_change +from . import api +from .security import admin_required_jwt, get_current_user, get_pagination_args, permission_required_jwt + + +@api.route("/admin/roles", methods=["GET"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_roles") +def list_roles(): + roles = Role.query.order_by(Role.name).all() + return ( + jsonify( + [ + { + "id": r.id, + "name": r.name, + "description": r.description, + "parent_id": r.parent_id, + "permissions": [{"id": p.id, "name": p.name} for p in r.permissions], + } + for r in roles + ] + ), + 200, + ) + + +@api.route("/admin/roles", methods=["POST"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_roles") +def create_role(): + data = request.get_json() or {} + name = (data.get("name") or "").strip() + description = (data.get("description") or "").strip() or None + parent_id = data.get("parent_id") + permission_ids = data.get("permission_ids") or [] + + if not name: + return jsonify({"msg": "Missing name"}), 400 + + if Role.query.filter_by(name=name).first(): + return jsonify({"msg": "Role name already exists"}), 400 + + if parent_id == 0: + parent_id = None + + new_role = Role(name=name, description=description, parent_id=parent_id) + if permission_ids: + perms = Permission.query.filter(Permission.id.in_(permission_ids)).all() + new_role.permissions = perms + + db.session.add(new_role) + db.session.commit() + + operator = get_current_user() + log_permission_change(operator.id, f"Created role {new_role.name}", "Role", new_role.id) + + return jsonify({"id": new_role.id}), 201 + + +@api.route("/admin/roles/", methods=["PATCH"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_roles") +def update_role(role_id): + role = Role.query.get(role_id) + if not role: + return jsonify({"msg": "Not found"}), 404 + + data = request.get_json() or {} + + if "name" in data: + name = (data.get("name") or "").strip() + if not name: + return jsonify({"msg": "Invalid name"}), 400 + exists = Role.query.filter(Role.name == name, Role.id != role.id).first() + if exists: + return jsonify({"msg": "Role name already exists"}), 400 + role.name = name + + if "description" in data: + role.description = (data.get("description") or "").strip() or None + + if "parent_id" in data: + parent_id = data.get("parent_id") + if parent_id == 0: + parent_id = None + if parent_id and check_circular_inheritance(role.id, parent_id): + return jsonify({"msg": "Circular inheritance detected"}), 400 + role.parent_id = parent_id + + if "permission_ids" in data: + permission_ids = data.get("permission_ids") or [] + perms = Permission.query.filter(Permission.id.in_(permission_ids)).all() if permission_ids else [] + role.permissions = perms + + db.session.commit() + + operator = get_current_user() + log_permission_change(operator.id, f"Updated role {role.name}", "Role", role.id) + + return jsonify({"msg": "ok"}), 200 + + +@api.route("/admin/roles/", methods=["DELETE"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_roles") +def delete_role(role_id): + role = Role.query.get(role_id) + if not role: + return jsonify({"msg": "Not found"}), 404 + + if role.children: + return jsonify({"msg": "Role has child roles"}), 400 + + role_name = role.name + db.session.delete(role) + db.session.commit() + + operator = get_current_user() + log_permission_change(operator.id, f"Deleted role {role_name}", "Role", role_id) + + return jsonify({"msg": "deleted"}), 200 + + +@api.route("/admin/permissions", methods=["GET"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_roles") +def list_permissions(): + perms = Permission.query.order_by(Permission.name).all() + return jsonify([{"id": p.id, "name": p.name, "description": p.description} for p in perms]), 200 + + +@api.route("/admin/permissions", methods=["POST"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_roles") +def create_permission(): + data = request.get_json() or {} + name = (data.get("name") or "").strip() + description = (data.get("description") or "").strip() or None + + if not name: + return jsonify({"msg": "Missing name"}), 400 + if Permission.query.filter_by(name=name).first(): + return jsonify({"msg": "Permission already exists"}), 400 + + perm = Permission(name=name, description=description) + db.session.add(perm) + db.session.commit() + + operator = get_current_user() + log_permission_change(operator.id, f"Created permission {perm.name}", "Permission", perm.id) + + return jsonify({"id": perm.id}), 201 + + +@api.route("/admin/permissions/", methods=["DELETE"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_roles") +def delete_permission(permission_id): + perm = Permission.query.get(permission_id) + if not perm: + return jsonify({"msg": "Not found"}), 404 + + perm_name = perm.name + db.session.delete(perm) + db.session.commit() + + operator = get_current_user() + log_permission_change(operator.id, f"Deleted permission {perm_name}", "Permission", permission_id) + + return jsonify({"msg": "deleted"}), 200 + + +@api.route("/admin/permission-logs", methods=["GET"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("view_audit_logs") +def permission_logs(): + page, per_page = get_pagination_args(default_per_page=20) + query = PermissionLog.query.order_by(PermissionLog.timestamp.desc()) + pagination = query.paginate(page=page, per_page=per_page, error_out=False) + + return ( + jsonify( + { + "items": [ + { + "id": l.id, + "timestamp": l.timestamp.isoformat(), + "user_id": l.user_id, + "operator": l.operator.username if l.operator else None, + "action": l.action, + "target_type": l.target_type, + "target_id": l.target_id, + "details": l.details, + } + for l in pagination.items + ], + "page": pagination.page, + "per_page": pagination.per_page, + "total": pagination.total, + } + ), + 200, + ) diff --git a/backend/app/api/auth.py b/backend/app/api/auth.py new file mode 100644 index 0000000..f439645 --- /dev/null +++ b/backend/app/api/auth.py @@ -0,0 +1,57 @@ +from flask import jsonify, request +from flask_jwt_extended import create_access_token, jwt_required, get_jwt_identity +from ..models import User +from . import api + +@api.route('/auth/login', methods=['POST']) +def login(): + if not request.is_json: + return jsonify({"msg": "Missing JSON in request"}), 400 + + data = request.get_json() + username = data.get('username') + password = data.get('password') + + if not username or not password: + return jsonify({"msg": "Missing username or password"}), 400 + + user = User.query.filter_by(username=username).first() + + if user and user.check_password(password): + if not user.is_active: + return jsonify({"msg": "Account is disabled"}), 403 + + # Create token with user ID as identity + access_token = create_access_token(identity=str(user.id)) + + return jsonify({ + "access_token": access_token, + "user": { + "id": user.id, + "username": user.username, + "role": user.role, + "is_admin": user.is_admin(), + "is_researcher": user.is_researcher() + } + }), 200 + + return jsonify({"msg": "Bad username or password"}), 401 + +@api.route('/auth/me', methods=['GET']) +@jwt_required() +def me(): + current_user_id = get_jwt_identity() + user = User.query.get(int(current_user_id)) + + if not user: + return jsonify({"msg": "User not found"}), 404 + + return jsonify({ + "id": user.id, + "username": user.username, + "email": user.email, + "role": user.role, + "is_admin": user.is_admin(), + "is_researcher": user.is_researcher(), + "permissions": list(user.get_all_permissions()) + }), 200 diff --git a/backend/app/api/data_entries.py b/backend/app/api/data_entries.py new file mode 100644 index 0000000..56e353a --- /dev/null +++ b/backend/app/api/data_entries.py @@ -0,0 +1,324 @@ +import os +from datetime import datetime + +import pandas as pd +from flask import Response, current_app, jsonify, request, send_from_directory +from flask_jwt_extended import jwt_required +from sqlalchemy import or_ +from werkzeug.utils import secure_filename + +from .. import db +from ..models import Attachment, DataEntry, User +from . import api +from .security import ( + admin_required_jwt, + data_access_required_jwt, + get_current_user, + get_pagination_args, + permission_required_jwt, +) + + +@api.route("/data-entries/", methods=["GET"]) +@jwt_required() +@data_access_required_jwt(DataEntry, id_param="entry_id") +def get_data_entry(entry_id): + entry = DataEntry.query.get(entry_id) + if not entry: + return jsonify({"msg": "Not found"}), 404 + + return ( + jsonify( + { + "id": entry.id, + "title": entry.title, + "content": entry.content, + "timestamp": entry.timestamp.isoformat(), + "is_permanent": entry.is_permanent, + "start_date": entry.start_date.isoformat() if entry.start_date else None, + "expiration_date": entry.expiration_date.isoformat() if entry.expiration_date else None, + "researcher_id": entry.researcher_id, + "researcher": entry.researcher.username if entry.researcher else None, + "associated_filename": entry.associated_filename, + "visible_user_ids": [u.id for u in entry.visible_to_users], + "attachments": [ + {"id": a.id, "original_name": a.original_name, "filename": a.filename, "upload_time": a.upload_time.isoformat()} + for a in entry.attachments + ], + } + ), + 200, + ) + + +@api.route("/attachments//download", methods=["GET"]) +@jwt_required() +@data_access_required_jwt(Attachment, id_param="attachment_id") +def download_attachment(attachment_id): + attachment = Attachment.query.get(attachment_id) + if not attachment: + return jsonify({"msg": "Not found"}), 404 + + directory = current_app.config["ATTACHMENTS_FOLDER"] + return send_from_directory(directory, attachment.filename, as_attachment=True, download_name=attachment.original_name) + + +@api.route("/admin/data-entries", methods=["GET"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_data") +def list_data_entries(): + page, per_page = get_pagination_args(default_per_page=20) + q = request.args.get("q", "").strip() + researcher_id = request.args.get("researcher_id", type=int) + + query = DataEntry.query + if q: + like = f"%{q}%" + query = query.filter(or_(DataEntry.title.ilike(like), DataEntry.content.ilike(like))) + if researcher_id: + query = query.filter(DataEntry.researcher_id == researcher_id) + + query = query.order_by(DataEntry.timestamp.desc()) + pagination = query.paginate(page=page, per_page=per_page, error_out=False) + + return ( + jsonify( + { + "items": [ + { + "id": e.id, + "title": e.title, + "timestamp": e.timestamp.isoformat(), + "researcher_id": e.researcher_id, + "researcher": e.researcher.username if e.researcher else None, + "is_permanent": e.is_permanent, + "start_date": e.start_date.isoformat() if e.start_date else None, + "expiration_date": e.expiration_date.isoformat() if e.expiration_date else None, + "visible_user_count": e.visible_to_users.count() if hasattr(e.visible_to_users, "count") else len(e.visible_to_users), + "attachment_count": e.attachments.count() if hasattr(e.attachments, "count") else len(e.attachments), + "associated_filename": e.associated_filename, + } + for e in pagination.items + ], + "page": pagination.page, + "per_page": pagination.per_page, + "total": pagination.total, + } + ), + 200, + ) + + +@api.route("/admin/data-entries", methods=["POST"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_data") +def create_data_entry(): + form = request.form + title = (form.get("title") or "").strip() + content = (form.get("content") or "").strip() + + if not title or not content: + return jsonify({"msg": "Missing title or content"}), 400 + + is_permanent = (form.get("is_permanent", "true").lower() in ("true", "1", "yes", "on")) + start_date = form.get("start_date") + expiration_date = form.get("expiration_date") + researcher_id = form.get("researcher_id", type=int) + + start_dt = datetime.fromisoformat(start_date) if start_date else None + exp_dt = datetime.fromisoformat(expiration_date) if expiration_date else None + + csv_file = request.files.get("csv_file") + associated_filename = None + if csv_file and csv_file.filename: + associated_filename = secure_filename(csv_file.filename) + csv_path = os.path.join(current_app.config["UPLOAD_FOLDER"], associated_filename) + csv_file.save(csv_path) + + entry = DataEntry( + title=title, + content=content, + associated_filename=associated_filename, + is_permanent=is_permanent, + start_date=start_dt, + expiration_date=exp_dt, + researcher_id=researcher_id if researcher_id else None, + ) + + visible_user_ids = form.getlist("visible_user_ids") + if visible_user_ids: + ids = [int(x) for x in visible_user_ids if str(x).isdigit()] + if ids: + users = User.query.filter(User.id.in_(ids)).all() + for u in users: + entry.visible_to_users.append(u) + + attachment_files = request.files.getlist("attachments") + if attachment_files: + for f in attachment_files: + if not f or not f.filename: + continue + original_name = secure_filename(f.filename) + timestamp = datetime.utcnow().strftime("%Y%m%d_%H%M%S_%f") + filename = f"{timestamp}_{original_name}" + filepath = os.path.join(current_app.config["ATTACHMENTS_FOLDER"], filename) + f.save(filepath) + + attachment = Attachment(filename=filename, original_name=original_name, data_entry=entry) + db.session.add(attachment) + + db.session.add(entry) + db.session.commit() + + return jsonify({"id": entry.id}), 201 + + +@api.route("/admin/data-entries/", methods=["PATCH"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_data") +def update_data_entry(entry_id): + entry = DataEntry.query.get(entry_id) + if not entry: + return jsonify({"msg": "Not found"}), 404 + + data = request.get_json() or {} + if "title" in data: + entry.title = (data.get("title") or "").strip() + if "content" in data: + entry.content = (data.get("content") or "").strip() + if "is_permanent" in data: + entry.is_permanent = bool(data.get("is_permanent")) + if "start_date" in data: + entry.start_date = datetime.fromisoformat(data.get("start_date")) if data.get("start_date") else None + if "expiration_date" in data: + entry.expiration_date = datetime.fromisoformat(data.get("expiration_date")) if data.get("expiration_date") else None + if "researcher_id" in data: + entry.researcher_id = data.get("researcher_id") or None + + if "visible_user_ids" in data: + ids = data.get("visible_user_ids") or [] + users = User.query.filter(User.id.in_(ids)).all() if ids else [] + entry.visible_to_users = users + + db.session.commit() + return jsonify({"msg": "ok"}), 200 + + +@api.route("/admin/data-entries/", methods=["DELETE"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_data") +def delete_data_entry(entry_id): + entry = DataEntry.query.get(entry_id) + if not entry: + return jsonify({"msg": "Not found"}), 404 + + for attachment in entry.attachments: + try: + filepath = os.path.join(current_app.config["ATTACHMENTS_FOLDER"], attachment.filename) + if os.path.exists(filepath): + os.remove(filepath) + except Exception: + pass + + if entry.associated_filename: + try: + csv_path = os.path.join(current_app.config["UPLOAD_FOLDER"], entry.associated_filename) + if os.path.exists(csv_path): + os.remove(csv_path) + except Exception: + pass + + db.session.delete(entry) + db.session.commit() + return jsonify({"msg": "deleted"}), 200 + + +@api.route("/admin/data-entries/batch-delete", methods=["POST"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_data") +def batch_delete_data_entries(): + data = request.get_json() or {} + ids = data.get("ids") or [] + if not ids: + return jsonify({"msg": "No ids"}), 400 + + deleted = 0 + for entry_id in ids: + entry = DataEntry.query.get(entry_id) + if not entry: + continue + + for attachment in entry.attachments: + try: + filepath = os.path.join(current_app.config["ATTACHMENTS_FOLDER"], attachment.filename) + if os.path.exists(filepath): + os.remove(filepath) + except Exception: + pass + + if entry.associated_filename: + try: + csv_path = os.path.join(current_app.config["UPLOAD_FOLDER"], entry.associated_filename) + if os.path.exists(csv_path): + os.remove(csv_path) + except Exception: + pass + + db.session.delete(entry) + deleted += 1 + + db.session.commit() + return jsonify({"deleted": deleted}), 200 + + +@api.route("/admin/data-entries//csv", methods=["GET"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_data") +def download_data_entry_csv(entry_id): + entry = DataEntry.query.get(entry_id) + if not entry: + return jsonify({"msg": "Not found"}), 404 + if not entry.associated_filename: + return jsonify({"msg": "No csv"}), 404 + + directory = current_app.config["UPLOAD_FOLDER"] + return send_from_directory(directory, entry.associated_filename, as_attachment=True, download_name=entry.associated_filename) + + +@api.route("/admin/data-entries/export", methods=["GET"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("manage_data") +def export_data_entries(): + data_entries = DataEntry.query.all() + data = [] + for entry in data_entries: + data.append( + { + "ID": entry.id, + "Title": entry.title, + "Content": entry.content, + "Researcher": entry.researcher.username if entry.researcher else "N/A", + "Created At": entry.timestamp.strftime("%Y-%m-%d %H:%M:%S"), + "Is Permanent": "Yes" if entry.is_permanent else "No", + "Start Date": entry.start_date.strftime("%Y-%m-%d %H:%M:%S") if entry.start_date else "N/A", + "Expiration Date": entry.expiration_date.strftime("%Y-%m-%d %H:%M:%S") if entry.expiration_date else "N/A", + "Visible To Users": ", ".join([u.username for u in entry.visible_to_users]), + } + ) + + df = pd.DataFrame(data) + output = df.to_csv(index=False, encoding="utf-8-sig") + + filename = f"data_export_{datetime.utcnow().strftime('%Y%m%d_%H%M%S')}.csv" + return Response( + output, + mimetype="text/csv", + headers={"Content-disposition": f"attachment; filename={filename}"}, + ) diff --git a/backend/app/api/inference.py b/backend/app/api/inference.py new file mode 100644 index 0000000..d104c21 --- /dev/null +++ b/backend/app/api/inference.py @@ -0,0 +1,150 @@ +import os +import threading +from datetime import datetime + +from flask import current_app, jsonify, request, send_from_directory +from flask_jwt_extended import jwt_required + +from .. import db +from ..inference_engine import run_inference_on_folder +from ..models import InferenceResult, RawDataFolder +from . import api +from .security import admin_required_jwt, get_current_user, get_pagination_args, permission_required_jwt + + +def run_inference_in_background(app, folder_id): + with app.app_context(): + folder = RawDataFolder.query.get(folder_id) + if not folder: + return + + try: + input_path = os.path.join(app.config["PROCESSED_DATA_OUTPUT_FOLDER"], folder.folder_name) + results_dir = os.path.join(app.config["PROCESSED_DATA_OUTPUT_FOLDER"], "_inference_results") + os.makedirs(results_dir, exist_ok=True) + + timestamp_str = datetime.utcnow().strftime("%Y%m%d_%H%M%S") + output_csv_filename = f"inference_{folder.folder_name}_{timestamp_str}.csv" + output_csv_path = os.path.join(results_dir, output_csv_filename) + + result_dict = run_inference_on_folder(app, folder.id, output_csv_path) + + new_result = InferenceResult( + folder_id=folder.id, + total_windows=result_dict["Total_Windows"][0], + valid_windows=result_dict["Valid_Windows"][0], + sqa_pass_rate=result_dict["SQA_Pass_Rate"][0], + positive_count=result_dict["Positive_Count"][0], + positive_density=result_dict["Positive_Density"][0], + diagnosis=result_dict["Diagnosis"][0], + result_csv_filename=output_csv_filename, + ) + db.session.add(new_result) + + folder.inference_status = "inferred" + db.session.commit() + except Exception: + folder.inference_status = "none" + db.session.commit() + + +@api.route("/admin/inference/folders", methods=["GET"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("run_inference") +def list_inference_folders(): + folders = RawDataFolder.query.filter(RawDataFolder.status == "completed").order_by(RawDataFolder.folder_name).all() + return ( + jsonify( + [ + { + "id": f.id, + "folder_name": f.folder_name, + "status": f.status, + "inference_status": f.inference_status, + "researcher_id": f.researcher_id, + } + for f in folders + ] + ), + 200, + ) + + +@api.route("/admin/inference/jobs", methods=["POST"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("run_inference") +def create_inference_job(): + data = request.get_json() or {} + folder_id = data.get("folder_id") + if not folder_id: + return jsonify({"msg": "Missing folder_id"}), 400 + + folder = RawDataFolder.query.get(int(folder_id)) + if not folder: + return jsonify({"msg": "Not found"}), 404 + + if folder.inference_status == "inferencing": + return jsonify({"msg": "Folder is inferencing"}), 400 + + folder.inference_status = "inferencing" + db.session.commit() + + app_instance = current_app._get_current_object() + thread = threading.Thread(target=run_inference_in_background, args=(app_instance, folder.id)) + thread.start() + + return jsonify({"msg": "started", "folder_id": folder.id}), 201 + + +@api.route("/admin/inference/results", methods=["GET"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("run_inference") +def list_inference_results(): + page, per_page = get_pagination_args(default_per_page=20) + query = InferenceResult.query.order_by(InferenceResult.timestamp.desc()) + pagination = query.paginate(page=page, per_page=per_page, error_out=False) + + return ( + jsonify( + { + "items": [ + { + "id": r.id, + "folder_id": r.folder_id, + "folder_name": r.folder.folder_name if r.folder else None, + "timestamp": r.timestamp.isoformat(), + "total_windows": r.total_windows, + "valid_windows": r.valid_windows, + "sqa_pass_rate": r.sqa_pass_rate, + "positive_count": r.positive_count, + "positive_density": r.positive_density, + "diagnosis": r.diagnosis, + "result_csv_filename": r.result_csv_filename, + } + for r in pagination.items + ], + "page": pagination.page, + "per_page": pagination.per_page, + "total": pagination.total, + } + ), + 200, + ) + + +@api.route("/admin/inference/results//download", methods=["GET"]) +@jwt_required() +@admin_required_jwt +@permission_required_jwt("run_inference") +def download_inference_result(result_id): + result = InferenceResult.query.get(result_id) + if not result: + return jsonify({"msg": "Not found"}), 404 + if not result.result_csv_filename: + return jsonify({"msg": "No result file"}), 404 + + results_dir = os.path.join(current_app.config["PROCESSED_DATA_OUTPUT_FOLDER"], "_inference_results") + return send_from_directory(results_dir, result.result_csv_filename, as_attachment=True, download_name=result.result_csv_filename) diff --git a/backend/app/api/integration.py b/backend/app/api/integration.py new file mode 100644 index 0000000..bfbc924 --- /dev/null +++ b/backend/app/api/integration.py @@ -0,0 +1,308 @@ +import os +import shutil +import threading +from datetime import datetime + +from flask import after_this_request, current_app, jsonify, request, send_from_directory +from flask_jwt_extended import jwt_required +from sqlalchemy import or_ + +from .. import db +from ..integrator_pipeline import run_integration_pipeline +from ..models import ProcessingJob, ProcessedSegment, RawDataFolder, UploadLog, User +from . import api +from .security import admin_required_jwt, data_access_required_jwt, get_current_user, get_pagination_args + + +def run_integration_in_background(app, job_id): + with app.app_context(): + run_integration_pipeline(app, job_id) + + +@api.route("/admin/integration/sync", methods=["POST"]) +@jwt_required() +@admin_required_jwt +def sync_integration_folders(): + storage_root = current_app.config["RAW_DATA_STORAGE_FOLDER"] + + db_folders = RawDataFolder.query.all() + db_folder_map = {f.folder_name: f for f in db_folders} + db_set = set(db_folder_map.keys()) + + try: + disk_set = {d for d in os.listdir(storage_root) if os.path.isdir(os.path.join(storage_root, d))} + except FileNotFoundError: + disk_set = set() + + folders_to_add = disk_set - db_set + folders_to_delete = db_set - disk_set + + changed = 0 + if folders_to_add: + for folder_name in folders_to_add: + uploader_log = ( + UploadLog.query.filter( + or_( + UploadLog.filename == f"{folder_name}.zip", + UploadLog.filename == f"{folder_name}.rar", + UploadLog.filename == f"{folder_name}.7z", + ) + ) + .order_by(UploadLog.upload_time.desc()) + .first() + ) + researcher_id = uploader_log.researcher_id if uploader_log else None + db.session.add(RawDataFolder(folder_name=folder_name, researcher_id=researcher_id)) + changed += 1 + + if folders_to_delete: + for folder_name in folders_to_delete: + db.session.delete(db_folder_map[folder_name]) + changed += 1 + + if changed: + db.session.commit() + + return jsonify({"changed": changed}), 200 + + +@api.route("/admin/integration/folders", methods=["GET"]) +@jwt_required() +def list_integration_folders(): + user = get_current_user() + if not user: + return jsonify({"msg": "Unauthorized"}), 401 + + page, per_page = get_pagination_args(default_per_page=20) + status = request.args.get("status") + researcher_id = request.args.get("researcher_id", type=int) + + query = RawDataFolder.query + if user.is_admin(): + if researcher_id: + query = query.filter(RawDataFolder.researcher_id == researcher_id) + elif user.is_researcher(): + query = query.filter(RawDataFolder.researcher_id == user.id) + else: + return jsonify({"msg": "Forbidden"}), 403 + + if status: + query = query.filter(RawDataFolder.status == status) + + query = query.order_by(RawDataFolder.folder_name) + pagination = query.paginate(page=page, per_page=per_page, error_out=False) + + return ( + jsonify( + { + "items": [ + { + "id": f.id, + "folder_name": f.folder_name, + "status": f.status, + "last_processed": f.last_processed.isoformat() if f.last_processed else None, + "researcher_id": f.researcher_id, + "inference_status": f.inference_status, + } + for f in pagination.items + ], + "page": pagination.page, + "per_page": pagination.per_page, + "total": pagination.total, + } + ), + 200, + ) + + +@api.route("/admin/integration/folders/", methods=["PATCH"]) +@jwt_required() +@admin_required_jwt +def assign_folder_researcher(folder_id): + folder = RawDataFolder.query.get(folder_id) + if not folder: + return jsonify({"msg": "Not found"}), 404 + + data = request.get_json() or {} + researcher_id = data.get("researcher_id") + if researcher_id in (0, "0", None, ""): + folder.researcher_id = None + else: + researcher_id = int(researcher_id) + user = User.query.get(researcher_id) + if not user or not (user.is_researcher() or user.is_admin()): + return jsonify({"msg": "Invalid researcher_id"}), 400 + folder.researcher_id = researcher_id + + db.session.commit() + return jsonify({"id": folder.id, "researcher_id": folder.researcher_id}), 200 + + +@api.route("/admin/integration/folders/batch-assign-researcher", methods=["POST"]) +@jwt_required() +@admin_required_jwt +def batch_assign_folder_researcher(): + data = request.get_json() or {} + folder_ids = data.get("folder_ids") or [] + researcher_id = data.get("researcher_id") + + if not folder_ids: + return jsonify({"msg": "No folder_ids"}), 400 + + if researcher_id in (0, "0", None, ""): + researcher_id = None + else: + researcher_id = int(researcher_id) + researcher = User.query.get(researcher_id) + if not researcher or not (researcher.is_researcher() or researcher.is_admin()): + return jsonify({"msg": "Invalid researcher_id"}), 400 + + updated = 0 + for folder_id in folder_ids: + folder = RawDataFolder.query.get(folder_id) + if folder: + folder.researcher_id = researcher_id + updated += 1 + + db.session.commit() + return jsonify({"updated": updated}), 200 + + +@api.route("/admin/integration/jobs", methods=["POST"]) +@jwt_required() +def create_integration_job(): + user = get_current_user() + if not user: + return jsonify({"msg": "Unauthorized"}), 401 + + data = request.get_json() or {} + folder_id = data.get("folder_id") + if not folder_id: + return jsonify({"msg": "Missing folder_id"}), 400 + + folder = RawDataFolder.query.get(int(folder_id)) + if not folder: + return jsonify({"msg": "Not found"}), 404 + + if not user.is_admin(): + if not user.is_researcher() or folder.researcher_id != user.id: + return jsonify({"msg": "Forbidden"}), 403 + + if folder.status == "processing": + return jsonify({"msg": "Folder is processing"}), 400 + + job = ProcessingJob(folder_id=folder.id, status="queued") + db.session.add(job) + db.session.commit() + + app_instance = current_app._get_current_object() + thread = threading.Thread(target=run_integration_in_background, args=(app_instance, job.id)) + thread.start() + + return jsonify({"id": job.id, "status": job.status}), 201 + + +@api.route("/admin/integration/jobs", methods=["GET"]) +@jwt_required() +def list_integration_jobs(): + user = get_current_user() + if not user: + return jsonify({"msg": "Unauthorized"}), 401 + + page, per_page = get_pagination_args(default_per_page=20) + + query = ProcessingJob.query.join(RawDataFolder) + if user.is_admin(): + pass + elif user.is_researcher(): + query = query.filter(RawDataFolder.researcher_id == user.id) + else: + return jsonify({"msg": "Forbidden"}), 403 + + query = query.order_by(ProcessingJob.start_time.desc()) + pagination = query.paginate(page=page, per_page=per_page, error_out=False) + + return ( + jsonify( + { + "items": [ + { + "id": j.id, + "folder_id": j.folder_id, + "folder_name": j.folder.folder_name if j.folder else None, + "start_time": j.start_time.isoformat() if j.start_time else None, + "end_time": j.end_time.isoformat() if j.end_time else None, + "status": j.status, + "log": j.log, + } + for j in pagination.items + ], + "page": pagination.page, + "per_page": pagination.per_page, + "total": pagination.total, + } + ), + 200, + ) + + +@api.route("/admin/integration/folders//summary", methods=["GET"]) +@jwt_required() +@data_access_required_jwt(RawDataFolder, id_param="folder_id") +def folder_summary(folder_id): + folder = RawDataFolder.query.get(folder_id) + if not folder: + return jsonify({"msg": "Not found"}), 404 + + segments = folder.processed_segments.order_by(ProcessedSegment.start_time).all() + return ( + jsonify( + { + "folder_id": folder.id, + "folder_name": folder.folder_name, + "segments": [ + { + "id": s.id, + "uid": s.uid, + "light_type": s.light_type, + "start_time": s.start_time.isoformat() if s.start_time else None, + "end_time": s.end_time.isoformat() if s.end_time else None, + "filename": s.filename, + "fs": s.fs, + "inverted": s.inverted, + "timestamp": s.timestamp.isoformat() if s.timestamp else None, + } + for s in segments + ], + } + ), + 200, + ) + + +@api.route("/admin/integration/folders//download-processed", methods=["GET"]) +@jwt_required() +@data_access_required_jwt(RawDataFolder, id_param="folder_id") +def download_processed_folder(folder_id): + folder = RawDataFolder.query.get(folder_id) + if not folder: + return jsonify({"msg": "Not found"}), 404 + + output_folder_path = os.path.join(current_app.config["PROCESSED_DATA_OUTPUT_FOLDER"], folder.folder_name) + if not os.path.isdir(output_folder_path): + return jsonify({"msg": "Processed folder not found"}), 404 + + temp_dir = os.path.join(current_app.config["PROCESSED_DATA_OUTPUT_FOLDER"], "temp_zips") + os.makedirs(temp_dir, exist_ok=True) + archive_path_base = os.path.join(temp_dir, f"processed_{folder.folder_name}") + archive_path_full = shutil.make_archive(archive_path_base, "zip", output_folder_path) + + @after_this_request + def cleanup(response): + try: + os.remove(archive_path_full) + except OSError: + pass + return response + + return send_from_directory(temp_dir, os.path.basename(archive_path_full), as_attachment=True) diff --git a/backend/app/api/routes.py b/backend/app/api/routes.py new file mode 100644 index 0000000..c675f22 --- /dev/null +++ b/backend/app/api/routes.py @@ -0,0 +1,81 @@ +from flask import jsonify +from flask_jwt_extended import jwt_required, get_jwt_identity +from datetime import datetime +from sqlalchemy import or_, and_ +from ..models import User, DataEntry, Notification +from . import api + +@api.route('/dashboard', methods=['GET']) +@jwt_required() +def dashboard(): + current_user_id = get_jwt_identity() + current_user = User.query.get(int(current_user_id)) + + if not current_user: + return jsonify({"msg": "User not found"}), 404 + + visible_data = [] + + if current_user.is_admin(): + visible_data = DataEntry.query.order_by(DataEntry.timestamp.desc()).all() + else: + now = datetime.utcnow() + # 构建基础查询 + query = DataEntry.query.filter( + or_( + DataEntry.researcher_id == current_user.id, + DataEntry.visible_to_users.any(id=current_user.id) + ) + ) + + # 应用时间过滤 + query = query.filter( + or_( + DataEntry.is_permanent == True, + and_( + or_(DataEntry.start_date == None, DataEntry.start_date <= now), + or_(DataEntry.expiration_date == None, DataEntry.expiration_date >= now) + ) + ) + ) + + visible_data = query.order_by(DataEntry.timestamp.desc()).all() + + data_list = [{ + "id": d.id, + "title": d.title, + "content": d.content, + "timestamp": d.timestamp.isoformat(), + "is_permanent": d.is_permanent, + "start_date": d.start_date.isoformat() if d.start_date else None, + "expiration_date": d.expiration_date.isoformat() if d.expiration_date else None, + "researcher": d.researcher.username if d.researcher else None, + "associated_filename": d.associated_filename + } for d in visible_data] + + return jsonify({"data_entries": data_list}), 200 + +@api.route('/notifications', methods=['GET']) +def notifications(): + # Public notifications, maybe no auth required? Or minimal auth. + # For now let's make it public or consistent with dashboard. + # The original app allowed public index to see notifications. + from flask import request + limit = request.args.get('limit', type=int) + + query = Notification.query.filter_by(is_published=True).order_by(Notification.timestamp.desc()) + + if limit: + published_notifications = query.limit(limit).all() + else: + published_notifications = query.all() + + notif_list = [{ + "id": n.id, + "title": n.title, + "content": n.content, + "timestamp": n.timestamp.isoformat(), + "author": n.author.username if n.author else None + } for n in published_notifications] + + return jsonify({"notifications": notif_list}), 200 diff --git a/backend/app/api/search.py b/backend/app/api/search.py new file mode 100644 index 0000000..c2ae762 --- /dev/null +++ b/backend/app/api/search.py @@ -0,0 +1,212 @@ +from datetime import datetime + +from flask import jsonify, request +from sqlalchemy import and_, or_ +from flask_jwt_extended import jwt_required + +from ..models import DataEntry, Notification, RawDataFolder +from . import api +from .security import get_current_user + + +@api.route("/search", methods=["GET"]) +@jwt_required() +def search(): + user = get_current_user() + if not user: + return jsonify({"msg": "Unauthorized"}), 401 + + query = request.args.get("q", "").strip() + scope = request.args.get("scope") + + if not query: + return jsonify({"data_entries": [], "notifications": [], "raw_folders": []}), 200 + + search_term = f"%{query}%" + now = datetime.utcnow() + + data_entry_results = [] + notification_results = [] + raw_folder_results = [] + + if user.is_admin(): + if scope in (None, "", "data"): + data_entry_results = ( + DataEntry.query.filter( + or_(DataEntry.title.ilike(search_term), DataEntry.content.ilike(search_term)) + ) + .order_by(DataEntry.timestamp.desc()) + .all() + ) + if scope in (None, "", "notification"): + notification_results = ( + Notification.query.filter( + or_(Notification.title.ilike(search_term), Notification.content.ilike(search_term)) + ) + .order_by(Notification.timestamp.desc()) + .all() + ) + if scope in (None, "", "folder"): + raw_folder_results = ( + RawDataFolder.query.filter(RawDataFolder.folder_name.ilike(search_term)) + .order_by(RawDataFolder.folder_name) + .all() + ) + else: + if scope in (None, "", "data"): + data_query = ( + DataEntry.query.filter( + or_( + DataEntry.researcher_id == user.id, + DataEntry.visible_to_users.any(id=user.id), + ) + ) + .filter( + and_( + or_( + DataEntry.is_permanent == True, + and_( + or_(DataEntry.start_date == None, DataEntry.start_date <= now), + or_(DataEntry.expiration_date == None, DataEntry.expiration_date >= now), + ), + ), + or_(DataEntry.title.ilike(search_term), DataEntry.content.ilike(search_term)), + ) + ) + ) + data_entry_results = data_query.order_by(DataEntry.timestamp.desc()).all() + + if scope in (None, "", "notification"): + notification_results = ( + Notification.query.filter( + and_( + Notification.is_published == True, + or_(Notification.title.ilike(search_term), Notification.content.ilike(search_term)), + ) + ) + .order_by(Notification.timestamp.desc()) + .all() + ) + + if scope in (None, "", "folder") and user.is_researcher(): + raw_folder_results = ( + RawDataFolder.query.filter( + and_(RawDataFolder.researcher_id == user.id, RawDataFolder.folder_name.ilike(search_term)) + ) + .order_by(RawDataFolder.folder_name) + .all() + ) + + return ( + jsonify( + { + "query": query, + "data_entries": [ + { + "id": e.id, + "title": e.title, + "timestamp": e.timestamp.isoformat(), + } + for e in data_entry_results + ], + "notifications": [ + { + "id": n.id, + "title": n.title, + "timestamp": n.timestamp.isoformat(), + "is_published": n.is_published, + } + for n in notification_results + ], + "raw_folders": [ + { + "id": f.id, + "folder_name": f.folder_name, + "status": f.status, + "researcher_id": f.researcher_id, + } + for f in raw_folder_results + ], + } + ), + 200, + ) + + +@api.route("/search/suggestions", methods=["GET"]) +@jwt_required() +def search_suggestions(): + user = get_current_user() + if not user: + return jsonify([]), 200 + + query = request.args.get("q", "").strip().lower() + if len(query) < 1: + return jsonify([]), 200 + + suggestions = [] + + features = [ + {"name": "仪表盘", "url": "/dashboard", "keywords": ["dashboard", "home", "主页", "仪表盘"]}, + {"name": "系统通知", "url": "/notifications", "keywords": ["notification", "notice", "通知", "公告"]}, + {"name": "搜索", "url": "/search", "keywords": ["search", "find", "检索", "搜索"]}, + {"name": "我的资料", "url": "/profile", "keywords": ["profile", "me", "我的", "资料", "权限"]}, + ] + if user.is_admin(): + features.extend( + [ + {"name": "用户管理", "url": "/admin/users", "keywords": ["user", "account", "用户", "账号"]}, + {"name": "数据管理", "url": "/admin/data-entries", "keywords": ["data", "entry", "数据"]}, + {"name": "通知管理", "url": "/admin/notifications", "keywords": ["notice", "通知", "公告"]}, + {"name": "上传与历史", "url": "/admin/uploads", "keywords": ["upload", "上传", "history", "历史"]}, + {"name": "数据整合", "url": "/admin/integration", "keywords": ["integration", "整合", "处理"]}, + {"name": "AI推理", "url": "/admin/inference", "keywords": ["ai", "inference", "推理", "诊断"]}, + {"name": "角色管理", "url": "/admin/roles", "keywords": ["role", "角色", "rbac"]}, + {"name": "权限管理", "url": "/admin/permissions", "keywords": ["permission", "权限"]}, + {"name": "权限日志", "url": "/admin/permission-logs", "keywords": ["audit", "log", "日志", "审计"]}, + ] + ) + + for feature in features: + for kw in feature["keywords"]: + if kw in query or query in kw.lower(): + suggestions.append( + {"type": "功能", "title": feature["name"], "url": feature["url"], "icon": "compass"} + ) + break + + search_term = f"%{query}%" + + if user.is_admin(): + entries = DataEntry.query.filter(DataEntry.title.ilike(search_term)).limit(5).all() + for e in entries: + suggestions.append({"type": "数据", "title": e.title, "url": f"/data/{e.id}", "icon": "database"}) + + notifs = Notification.query.filter(Notification.title.ilike(search_term)).limit(3).all() + for n in notifs: + suggestions.append({"type": "通知", "title": n.title, "url": "/notifications", "icon": "bullhorn"}) + + folders = RawDataFolder.query.filter(RawDataFolder.folder_name.ilike(search_term)).limit(3).all() + for f in folders: + suggestions.append({"type": "原始文件", "title": f.folder_name, "url": "/admin/integration", "icon": "folder"}) + else: + entries = ( + DataEntry.query.filter(DataEntry.visible_to_users.any(id=user.id)) + .filter(DataEntry.title.ilike(search_term)) + .limit(5) + .all() + ) + for e in entries: + suggestions.append({"type": "数据", "title": e.title, "url": f"/data/{e.id}", "icon": "database"}) + + notifs = ( + Notification.query.filter(Notification.is_published == True) + .filter(Notification.title.ilike(search_term)) + .limit(3) + .all() + ) + for n in notifs: + suggestions.append({"type": "通知", "title": n.title, "url": "/notifications", "icon": "bullhorn"}) + + return jsonify(suggestions[:10]), 200 + diff --git a/backend/app/api/security.py b/backend/app/api/security.py new file mode 100644 index 0000000..2f7b2fe --- /dev/null +++ b/backend/app/api/security.py @@ -0,0 +1,128 @@ +from functools import wraps + +from flask import jsonify, request +from flask_jwt_extended import get_jwt_identity, verify_jwt_in_request + +from ..models import User + + +def get_current_user(): + verify_jwt_in_request() + user_id = get_jwt_identity() + if user_id is None: + return None + try: + user_id_int = int(user_id) + except (TypeError, ValueError): + return None + return User.query.get(user_id_int) + + +def admin_required_jwt(fn): + @wraps(fn) + def wrapper(*args, **kwargs): + user = get_current_user() + if not user or not user.is_admin(): + return jsonify({"msg": "Admins only"}), 403 + return fn(*args, **kwargs) + + return wrapper + + +def permission_required_jwt(permission_name): + def decorator(fn): + @wraps(fn) + def wrapper(*args, **kwargs): + user = get_current_user() + if not user or not user.has_permission(permission_name): + return jsonify({"msg": "Permission denied", "permission": permission_name}), 403 + return fn(*args, **kwargs) + + return wrapper + + return decorator + + +def data_access_required_jwt(model_class, id_param="id"): + def decorator(fn): + @wraps(fn) + def wrapper(*args, **kwargs): + user = get_current_user() + if not user: + return jsonify({"msg": "Unauthorized"}), 401 + + resource_id = kwargs.get(id_param) + if not resource_id: + return jsonify({"msg": "Not found"}), 404 + + resource = model_class.query.get(resource_id) + if not resource: + return jsonify({"msg": "Not found"}), 404 + + if user.is_admin(): + return fn(*args, **kwargs) + + is_authorized = False + + if hasattr(resource, "researcher_id") and resource.researcher_id == user.id: + is_authorized = True + + if not is_authorized and hasattr(resource, "visible_to_users"): + try: + if resource.visible_to_users.filter_by(id=user.id).first() is not None: + is_authorized = True + except Exception: + if user in resource.visible_to_users: + is_authorized = True + + if not is_authorized and model_class.__name__ == "Attachment": + if resource.data_entry.researcher_id == user.id: + is_authorized = True + else: + try: + if resource.data_entry.visible_to_users.filter_by(id=user.id).first() is not None: + is_authorized = True + except Exception: + if user in resource.data_entry.visible_to_users: + is_authorized = True + + if not is_authorized: + return jsonify({"msg": "Forbidden"}), 403 + + check_resource = resource + if model_class.__name__ == "Attachment": + check_resource = resource.data_entry + + if hasattr(check_resource, "is_visible_now") and not check_resource.is_visible_now(): + return jsonify({"msg": "Forbidden"}), 403 + + return fn(*args, **kwargs) + + return wrapper + + return decorator + + +def get_pagination_args(default_per_page=20, max_per_page=100): + try: + page = int(request.args.get("page", 1)) + except ValueError: + page = 1 + try: + per_page = int(request.args.get("per_page", default_per_page)) + except ValueError: + per_page = default_per_page + page = max(page, 1) + per_page = min(max(per_page, 1), max_per_page) + return page, per_page + + +def paginate_query(query, page, per_page): + pagination = query.paginate(page=page, per_page=per_page, error_out=False) + return { + "items": pagination.items, + "page": pagination.page, + "per_page": pagination.per_page, + "total": pagination.total, + } + diff --git a/backend/app/api/uploads.py b/backend/app/api/uploads.py new file mode 100644 index 0000000..99e2bcc --- /dev/null +++ b/backend/app/api/uploads.py @@ -0,0 +1,151 @@ +import os +import zipfile + +from flask import current_app, jsonify, request +from flask_jwt_extended import jwt_required +from werkzeug.utils import secure_filename + +from .. import db +from ..models import UploadLog, User +from . import api +from .security import admin_required_jwt, get_current_user, get_pagination_args + + +@api.route("/admin/uploads/archives", methods=["POST"]) +@jwt_required() +def upload_archives(): + user = get_current_user() + if not user: + return jsonify({"msg": "Unauthorized"}), 401 + + if not (user.is_admin() or user.is_researcher()): + return jsonify({"msg": "Forbidden"}), 403 + + files = request.files.getlist("raw_files") or request.files.getlist("files") + if not files: + return jsonify({"msg": "No files"}), 400 + + if user.is_admin(): + researcher_id = request.form.get("researcher_id", type=int) or user.id + else: + researcher_id = user.id + + results = [] + storage_root = current_app.config["RAW_DATA_STORAGE_FOLDER"] + + for f in files: + if not f or not f.filename: + continue + + original_filename = secure_filename(f.filename) + ext = os.path.splitext(original_filename)[1].lower() + if ext not in [".zip", ".rar", ".7z"]: + results.append({"filename": original_filename, "status": "failed", "error": "不支持的格式"}) + continue + + try: + storage_path = os.path.join(storage_root, original_filename) + f.save(storage_path) + file_size = os.path.getsize(storage_path) + + log = UploadLog( + filename=original_filename, + file_size=file_size, + researcher_id=researcher_id, + uploader_id=user.id, + status="success", + ) + db.session.add(log) + results.append({"filename": original_filename, "status": "success", "size": file_size}) + except Exception as e: + log = UploadLog( + filename=original_filename, + file_size=0, + researcher_id=researcher_id, + uploader_id=user.id, + status="failed", + error_msg=str(e), + ) + db.session.add(log) + results.append({"filename": original_filename, "status": "failed", "error": str(e)}) + + db.session.commit() + return jsonify({"researcher_id": researcher_id, "results": results}), 200 + + +@api.route("/admin/uploads/preview-archive", methods=["POST"]) +@jwt_required() +def preview_archive(): + user = get_current_user() + if not user: + return jsonify({"msg": "Unauthorized"}), 401 + if not user.is_admin(): + return jsonify({"msg": "Forbidden"}), 403 + + if "file" not in request.files: + return jsonify({"msg": "未选择文件"}), 400 + + f = request.files["file"] + if not f or not f.filename: + return jsonify({"msg": "未选择文件"}), 400 + if not f.filename.endswith(".zip"): + return jsonify({"msg": "目前仅支持预览 .zip 格式"}), 400 + + try: + with zipfile.ZipFile(f) as z: + file_list = [info.filename for info in z.infolist()] + return jsonify({"files": file_list}), 200 + except Exception as e: + return jsonify({"msg": f"无法读取压缩包: {str(e)}"}), 500 + + +@api.route("/admin/uploads/history", methods=["GET"]) +@jwt_required() +def upload_history(): + user = get_current_user() + if not user: + return jsonify({"msg": "Unauthorized"}), 401 + + page, per_page = get_pagination_args(default_per_page=20) + + if user.is_admin(): + query = UploadLog.query + elif user.is_researcher(): + query = UploadLog.query.filter_by(researcher_id=user.id) + else: + return jsonify({"msg": "Forbidden"}), 403 + + pagination = query.order_by(UploadLog.upload_time.desc()).paginate(page=page, per_page=per_page, error_out=False) + logs = pagination.items + + user_map = {} + uploader_ids = {l.uploader_id for l in logs} + if uploader_ids: + for u in User.query.filter(User.id.in_(list(uploader_ids))).all(): + user_map[u.id] = u.username + + return ( + jsonify( + { + "items": [ + { + "id": l.id, + "filename": l.filename, + "file_size": l.file_size, + "upload_time": l.upload_time.isoformat(), + "status": l.status, + "error_msg": l.error_msg, + "researcher_id": l.researcher_id, + "uploader_id": l.uploader_id, + "uploader": user_map.get(l.uploader_id), + } + for l in logs + ], + "page": pagination.page, + "per_page": pagination.per_page, + "total": pagination.total, + } + ), + 200, + ) + diff --git a/app/auth/__init__.py b/backend/app/auth/__init__.py similarity index 100% rename from app/auth/__init__.py rename to backend/app/auth/__init__.py diff --git a/app/auth/forms.py b/backend/app/auth/forms.py similarity index 100% rename from app/auth/forms.py rename to backend/app/auth/forms.py diff --git a/app/auth/routes.py b/backend/app/auth/routes.py similarity index 100% rename from app/auth/routes.py rename to backend/app/auth/routes.py diff --git a/app/decorators.py b/backend/app/decorators.py similarity index 100% rename from app/decorators.py rename to backend/app/decorators.py diff --git a/app/inference_engine.py b/backend/app/inference_engine.py similarity index 100% rename from app/inference_engine.py rename to backend/app/inference_engine.py diff --git a/app/integrator_pipeline.py b/backend/app/integrator_pipeline.py similarity index 100% rename from app/integrator_pipeline.py rename to backend/app/integrator_pipeline.py diff --git a/app/main/__init__.py b/backend/app/main/__init__.py similarity index 100% rename from app/main/__init__.py rename to backend/app/main/__init__.py diff --git a/app/main/forms.py b/backend/app/main/forms.py similarity index 100% rename from app/main/forms.py rename to backend/app/main/forms.py diff --git a/app/main/routes.py b/backend/app/main/routes.py similarity index 100% rename from app/main/routes.py rename to backend/app/main/routes.py diff --git a/app/model.py b/backend/app/model.py similarity index 100% rename from app/model.py rename to backend/app/model.py diff --git a/app/model_finetune.py b/backend/app/model_finetune.py similarity index 100% rename from app/model_finetune.py rename to backend/app/model_finetune.py diff --git a/app/models.py b/backend/app/models.py similarity index 100% rename from app/models.py rename to backend/app/models.py diff --git a/app/rbac_utils.py b/backend/app/rbac_utils.py similarity index 100% rename from app/rbac_utils.py rename to backend/app/rbac_utils.py diff --git a/app/static/css/style.css b/backend/app/static/css/style.css similarity index 100% rename from app/static/css/style.css rename to backend/app/static/css/style.css diff --git a/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Black.ttf b/backend/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Black.ttf similarity index 100% rename from app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Black.ttf rename to backend/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Black.ttf diff --git a/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Bold.ttf b/backend/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Bold.ttf similarity index 100% rename from app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Bold.ttf rename to backend/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Bold.ttf diff --git a/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Light.ttf b/backend/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Light.ttf similarity index 100% rename from app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Light.ttf rename to backend/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Light.ttf diff --git a/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Medium.ttf b/backend/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Medium.ttf similarity index 100% rename from app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Medium.ttf rename to backend/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Medium.ttf diff --git a/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Regular.ttf b/backend/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Regular.ttf similarity index 100% rename from app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Regular.ttf rename to backend/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Regular.ttf diff --git a/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Thin.ttf b/backend/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Thin.ttf similarity index 100% rename from app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Thin.ttf rename to backend/app/static/fonts/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Thin.ttf diff --git a/app/static/fonts/HarmonyOS_Sans_SC/LICENSE.txt b/backend/app/static/fonts/HarmonyOS_Sans_SC/LICENSE.txt similarity index 100% rename from app/static/fonts/HarmonyOS_Sans_SC/LICENSE.txt rename to backend/app/static/fonts/HarmonyOS_Sans_SC/LICENSE.txt diff --git a/app/static/js/main.js b/backend/app/static/js/main.js similarity index 100% rename from app/static/js/main.js rename to backend/app/static/js/main.js diff --git a/app/templates/403.html b/backend/app/templates/403.html similarity index 100% rename from app/templates/403.html rename to backend/app/templates/403.html diff --git a/app/templates/admin/batch_upload.html b/backend/app/templates/admin/batch_upload.html similarity index 100% rename from app/templates/admin/batch_upload.html rename to backend/app/templates/admin/batch_upload.html diff --git a/app/templates/admin/dashboard.html b/backend/app/templates/admin/dashboard.html similarity index 100% rename from app/templates/admin/dashboard.html rename to backend/app/templates/admin/dashboard.html diff --git a/app/templates/admin/inference_manager.html b/backend/app/templates/admin/inference_manager.html similarity index 100% rename from app/templates/admin/inference_manager.html rename to backend/app/templates/admin/inference_manager.html diff --git a/app/templates/admin/integration_manager.html b/backend/app/templates/admin/integration_manager.html similarity index 100% rename from app/templates/admin/integration_manager.html rename to backend/app/templates/admin/integration_manager.html diff --git a/app/templates/admin/manage_data.html b/backend/app/templates/admin/manage_data.html similarity index 100% rename from app/templates/admin/manage_data.html rename to backend/app/templates/admin/manage_data.html diff --git a/app/templates/admin/manage_notifications.html b/backend/app/templates/admin/manage_notifications.html similarity index 100% rename from app/templates/admin/manage_notifications.html rename to backend/app/templates/admin/manage_notifications.html diff --git a/app/templates/admin/manage_permissions.html b/backend/app/templates/admin/manage_permissions.html similarity index 100% rename from app/templates/admin/manage_permissions.html rename to backend/app/templates/admin/manage_permissions.html diff --git a/app/templates/admin/manage_roles.html b/backend/app/templates/admin/manage_roles.html similarity index 100% rename from app/templates/admin/manage_roles.html rename to backend/app/templates/admin/manage_roles.html diff --git a/app/templates/admin/manage_users.html b/backend/app/templates/admin/manage_users.html similarity index 100% rename from app/templates/admin/manage_users.html rename to backend/app/templates/admin/manage_users.html diff --git a/app/templates/admin/permission_logs.html b/backend/app/templates/admin/permission_logs.html similarity index 100% rename from app/templates/admin/permission_logs.html rename to backend/app/templates/admin/permission_logs.html diff --git a/app/templates/admin/role_form.html b/backend/app/templates/admin/role_form.html similarity index 100% rename from app/templates/admin/role_form.html rename to backend/app/templates/admin/role_form.html diff --git a/app/templates/admin/upload_confirmation.html b/backend/app/templates/admin/upload_confirmation.html similarity index 100% rename from app/templates/admin/upload_confirmation.html rename to backend/app/templates/admin/upload_confirmation.html diff --git a/app/templates/admin/upload_history.html b/backend/app/templates/admin/upload_history.html similarity index 100% rename from app/templates/admin/upload_history.html rename to backend/app/templates/admin/upload_history.html diff --git a/app/templates/admin/user_form.html b/backend/app/templates/admin/user_form.html similarity index 100% rename from app/templates/admin/user_form.html rename to backend/app/templates/admin/user_form.html diff --git a/app/templates/admin/view_csv.html b/backend/app/templates/admin/view_csv.html similarity index 100% rename from app/templates/admin/view_csv.html rename to backend/app/templates/admin/view_csv.html diff --git a/app/templates/admin/view_summary.html b/backend/app/templates/admin/view_summary.html similarity index 100% rename from app/templates/admin/view_summary.html rename to backend/app/templates/admin/view_summary.html diff --git a/app/templates/auth/login.html b/backend/app/templates/auth/login.html similarity index 100% rename from app/templates/auth/login.html rename to backend/app/templates/auth/login.html diff --git a/app/templates/auth/register_unavailable.html b/backend/app/templates/auth/register_unavailable.html similarity index 100% rename from app/templates/auth/register_unavailable.html rename to backend/app/templates/auth/register_unavailable.html diff --git a/app/templates/base.html b/backend/app/templates/base.html similarity index 100% rename from app/templates/base.html rename to backend/app/templates/base.html diff --git a/app/templates/dashboard.html b/backend/app/templates/dashboard.html similarity index 100% rename from app/templates/dashboard.html rename to backend/app/templates/dashboard.html diff --git a/app/templates/dashboard_base.html b/backend/app/templates/dashboard_base.html similarity index 100% rename from app/templates/dashboard_base.html rename to backend/app/templates/dashboard_base.html diff --git a/app/templates/index.html b/backend/app/templates/index.html similarity index 100% rename from app/templates/index.html rename to backend/app/templates/index.html diff --git a/app/templates/notifications.html b/backend/app/templates/notifications.html similarity index 100% rename from app/templates/notifications.html rename to backend/app/templates/notifications.html diff --git a/app/templates/search_results.html b/backend/app/templates/search_results.html similarity index 100% rename from app/templates/search_results.html rename to backend/app/templates/search_results.html diff --git a/config.py b/backend/config.py similarity index 92% rename from config.py rename to backend/config.py index 20e03d0..f6df6ca 100644 --- a/config.py +++ b/backend/config.py @@ -7,9 +7,7 @@ load_dotenv(os.path.join(basedir, '.env')) class Config: SECRET_KEY = os.environ.get('SECRET_KEY') or 'a-very-secret-key' - SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') - if not SQLALCHEMY_DATABASE_URI: - raise ValueError("DATABASE_URL 环境变量未设置") + SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or f"sqlite:///{os.path.join(basedir, 'app.db')}" SQLALCHEMY_TRACK_MODIFICATIONS = False UPLOAD_FOLDER = os.path.join(basedir, 'uploads') @@ -56,4 +54,4 @@ config = { 'testing': TestingConfig, 'production': ProductionConfig, 'default': DevelopmentConfig -} \ No newline at end of file +} diff --git a/migrations/README b/backend/migrations/README similarity index 100% rename from migrations/README rename to backend/migrations/README diff --git a/migrations/alembic.ini b/backend/migrations/alembic.ini similarity index 100% rename from migrations/alembic.ini rename to backend/migrations/alembic.ini diff --git a/migrations/env.py b/backend/migrations/env.py similarity index 100% rename from migrations/env.py rename to backend/migrations/env.py diff --git a/migrations/script.py.mako b/backend/migrations/script.py.mako similarity index 100% rename from migrations/script.py.mako rename to backend/migrations/script.py.mako diff --git a/migrations/versions/019bb60ffe7e_change_processed_segments_to_hybrid_.py b/backend/migrations/versions/019bb60ffe7e_change_processed_segments_to_hybrid_.py similarity index 100% rename from migrations/versions/019bb60ffe7e_change_processed_segments_to_hybrid_.py rename to backend/migrations/versions/019bb60ffe7e_change_processed_segments_to_hybrid_.py diff --git a/migrations/versions/7e8843b35d85_add_attachment_model.py b/backend/migrations/versions/7e8843b35d85_add_attachment_model.py similarity index 100% rename from migrations/versions/7e8843b35d85_add_attachment_model.py rename to backend/migrations/versions/7e8843b35d85_add_attachment_model.py diff --git a/migrations/versions/7fc17cf59320_initial_schema.py b/backend/migrations/versions/7fc17cf59320_initial_schema.py similarity index 100% rename from migrations/versions/7fc17cf59320_initial_schema.py rename to backend/migrations/versions/7fc17cf59320_initial_schema.py diff --git a/migrations/versions/ea5026dca59b_add_is_active_to_user.py b/backend/migrations/versions/ea5026dca59b_add_is_active_to_user.py similarity index 100% rename from migrations/versions/ea5026dca59b_add_is_active_to_user.py rename to backend/migrations/versions/ea5026dca59b_add_is_active_to_user.py diff --git a/rbac_fix.sql b/backend/rbac_fix.sql similarity index 100% rename from rbac_fix.sql rename to backend/rbac_fix.sql diff --git a/rbac_rollback.sql b/backend/rbac_rollback.sql similarity index 100% rename from rbac_rollback.sql rename to backend/rbac_rollback.sql diff --git a/tests/__init__.py b/backend/readme.md similarity index 100% rename from tests/__init__.py rename to backend/readme.md diff --git a/requirements.txt b/backend/requirements.txt similarity index 99% rename from requirements.txt rename to backend/requirements.txt index 8fb124e..b39f5a7 100644 --- a/requirements.txt +++ b/backend/requirements.txt @@ -173,3 +173,6 @@ win32-setctime==1.1.0 WTForms==3.2.1 xxhash==3.4.1 zstandard==0.23.0 + +Flask-JWT-Extended +Flask-Cors diff --git a/run.py b/backend/run.py similarity index 100% rename from run.py rename to backend/run.py diff --git a/seed_rbac.py b/backend/seed_rbac.py similarity index 100% rename from seed_rbac.py rename to backend/seed_rbac.py diff --git a/backend/tests/__init__.py b/backend/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_data_isolation.py b/backend/tests/test_data_isolation.py similarity index 97% rename from tests/test_data_isolation.py rename to backend/tests/test_data_isolation.py index d1a3a61..1930588 100644 --- a/tests/test_data_isolation.py +++ b/backend/tests/test_data_isolation.py @@ -1,7 +1,7 @@ import unittest from datetime import datetime, timedelta -from app import create_app, db -from app.models import User, DataEntry, Role +from backend.app import create_app, db +from backend.app.models import User, DataEntry, Role class DataIsolationTestCase(unittest.TestCase): def setUp(self): diff --git a/tests/test_rbac.py b/backend/tests/test_rbac.py similarity index 95% rename from tests/test_rbac.py rename to backend/tests/test_rbac.py index d64df0b..dc435f4 100644 --- a/tests/test_rbac.py +++ b/backend/tests/test_rbac.py @@ -1,7 +1,7 @@ import unittest -from app import create_app, db -from app.models import User, Role, Permission -from app.rbac_utils import check_circular_inheritance +from backend.app import create_app, db +from backend.app.models import User, Role, Permission +from backend.app.rbac_utils import check_circular_inheritance class RBACModelTestCase(unittest.TestCase): def setUp(self): diff --git a/update_db_rbac.py b/backend/update_db_rbac.py similarity index 100% rename from update_db_rbac.py rename to backend/update_db_rbac.py diff --git a/frontend/.vscode/extensions.json b/frontend/.vscode/extensions.json new file mode 100644 index 0000000..a7cea0b --- /dev/null +++ b/frontend/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["Vue.volar"] +} diff --git a/frontend/README.md b/frontend/README.md new file mode 100644 index 0000000..1511959 --- /dev/null +++ b/frontend/README.md @@ -0,0 +1,5 @@ +# Vue 3 + Vite + +This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 ` + + diff --git a/frontend/package-lock.json b/frontend/package-lock.json new file mode 100644 index 0000000..9be9f13 --- /dev/null +++ b/frontend/package-lock.json @@ -0,0 +1,2917 @@ +{ + "name": "frontend", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "frontend", + "version": "0.0.0", + "dependencies": { + "@element-plus/icons-vue": "^2.3.2", + "axios": "^1.13.5", + "echarts": "^6.0.0", + "element-plus": "^2.13.2", + "pinia": "^3.0.4", + "sass": "^1.97.3", + "vue": "^3.5.25", + "vue-i18n": "^11.2.8", + "vue-router": "^5.0.3" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^6.0.2", + "vite": "^7.3.1" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz", + "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@ctrl/tinycolor": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz", + "integrity": "sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/@element-plus/icons-vue": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/@element-plus/icons-vue/-/icons-vue-2.3.2.tgz", + "integrity": "sha512-OzIuTaIfC8QXEPmJvB4Y4kw34rSXdCJzxcD1kFStBvr8bK6X1zQAYDo0CNMjojnfTqRQCJ0I7prlErcoRiET2A==", + "license": "MIT", + "peerDependencies": { + "vue": "^3.2.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz", + "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz", + "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz", + "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz", + "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz", + "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz", + "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz", + "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz", + "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz", + "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz", + "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz", + "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz", + "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz", + "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz", + "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz", + "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz", + "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz", + "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz", + "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz", + "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz", + "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz", + "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz", + "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz", + "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz", + "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz", + "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz", + "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@floating-ui/core": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.4.tgz", + "integrity": "sha512-C3HlIdsBxszvm5McXlB8PeOEWfBhcGBTZGkGlWc2U0KFY5IwG5OQEuQ8rq52DZmcHDlPLd+YFBK+cZcytwIFWg==", + "license": "MIT", + "dependencies": { + "@floating-ui/utils": "^0.2.10" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.5.tgz", + "integrity": "sha512-N0bD2kIPInNHUHehXhMke1rBGs1dwqvC9O9KYMyyjK7iXt7GAhnro7UlcuYcGdS/yYOlq0MAVgrow8IbWJwyqg==", + "license": "MIT", + "dependencies": { + "@floating-ui/core": "^1.7.4", + "@floating-ui/utils": "^0.2.10" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.10.tgz", + "integrity": "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==", + "license": "MIT" + }, + "node_modules/@intlify/core-base": { + "version": "11.2.8", + "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-11.2.8.tgz", + "integrity": "sha512-nBq6Y1tVkjIUsLsdOjDSJj4AsjvD0UG3zsg9Fyc+OivwlA/oMHSKooUy9tpKj0HqZ+NWFifweHavdljlBLTwdA==", + "license": "MIT", + "dependencies": { + "@intlify/message-compiler": "11.2.8", + "@intlify/shared": "11.2.8" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/message-compiler": { + "version": "11.2.8", + "resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-11.2.8.tgz", + "integrity": "sha512-A5n33doOjmHsBtCN421386cG1tWp5rpOjOYPNsnpjIJbQ4POF0QY2ezhZR9kr0boKwaHjbOifvyQvHj2UTrDFQ==", + "license": "MIT", + "dependencies": { + "@intlify/shared": "11.2.8", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/shared": { + "version": "11.2.8", + "resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-11.2.8.tgz", + "integrity": "sha512-l6e4NZyUgv8VyXXH4DbuucFOBmxLF56C/mqh2tvApbzl2Hrhi1aTDcuv5TKdxzfHYmpO3UB0Cz04fgDT9vszfw==", + "license": "MIT", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@parcel/watcher": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.6.tgz", + "integrity": "sha512-tmmZ3lQxAe/k/+rNnXQRawJ4NjxO2hqiOLTHvWchtGZULp4RyFeh6aU4XdOYBFe2KE1oShQTv4AblOs2iOrNnQ==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "dependencies": { + "detect-libc": "^2.0.3", + "is-glob": "^4.0.3", + "node-addon-api": "^7.0.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.5.6", + "@parcel/watcher-darwin-arm64": "2.5.6", + "@parcel/watcher-darwin-x64": "2.5.6", + "@parcel/watcher-freebsd-x64": "2.5.6", + "@parcel/watcher-linux-arm-glibc": "2.5.6", + "@parcel/watcher-linux-arm-musl": "2.5.6", + "@parcel/watcher-linux-arm64-glibc": "2.5.6", + "@parcel/watcher-linux-arm64-musl": "2.5.6", + "@parcel/watcher-linux-x64-glibc": "2.5.6", + "@parcel/watcher-linux-x64-musl": "2.5.6", + "@parcel/watcher-win32-arm64": "2.5.6", + "@parcel/watcher-win32-ia32": "2.5.6", + "@parcel/watcher-win32-x64": "2.5.6" + } + }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.6.tgz", + "integrity": "sha512-YQxSS34tPF/6ZG7r/Ih9xy+kP/WwediEUsqmtf0cuCV5TPPKw/PQHRhueUo6JdeFJaqV3pyjm0GdYjZotbRt/A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-arm64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.6.tgz", + "integrity": "sha512-Z2ZdrnwyXvvvdtRHLmM4knydIdU9adO3D4n/0cVipF3rRiwP+3/sfzpAwA/qKFL6i1ModaabkU7IbpeMBgiVEA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.6.tgz", + "integrity": "sha512-HgvOf3W9dhithcwOWX9uDZyn1lW9R+7tPZ4sug+NGrGIo4Rk1hAXLEbcH1TQSqxts0NYXXlOWqVpvS1SFS4fRg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.6.tgz", + "integrity": "sha512-vJVi8yd/qzJxEKHkeemh7w3YAn6RJCtYlE4HPMoVnCpIXEzSrxErBW5SJBgKLbXU3WdIpkjBTeUNtyBVn8TRng==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.6.tgz", + "integrity": "sha512-9JiYfB6h6BgV50CCfasfLf/uvOcJskMSwcdH1PHH9rvS1IrNy8zad6IUVPVUfmXr+u+Km9IxcfMLzgdOudz9EQ==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.6.tgz", + "integrity": "sha512-Ve3gUCG57nuUUSyjBq/MAM0CzArtuIOxsBdQ+ftz6ho8n7s1i9E1Nmk/xmP323r2YL0SONs1EuwqBp2u1k5fxg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.6.tgz", + "integrity": "sha512-f2g/DT3NhGPdBmMWYoxixqYr3v/UXcmLOYy16Bx0TM20Tchduwr4EaCbmxh1321TABqPGDpS8D/ggOTaljijOA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.6.tgz", + "integrity": "sha512-qb6naMDGlbCwdhLj6hgoVKJl2odL34z2sqkC7Z6kzir8b5W65WYDpLB6R06KabvZdgoHI/zxke4b3zR0wAbDTA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.6.tgz", + "integrity": "sha512-kbT5wvNQlx7NaGjzPFu8nVIW1rWqV780O7ZtkjuWaPUgpv2NMFpjYERVi0UYj1msZNyCzGlaCWEtzc+exjMGbQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.6.tgz", + "integrity": "sha512-1JRFeC+h7RdXwldHzTsmdtYR/Ku8SylLgTU/reMuqdVD7CtLwf0VR1FqeprZ0eHQkO0vqsbvFLXUmYm/uNKJBg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.6.tgz", + "integrity": "sha512-3ukyebjc6eGlw9yRt678DxVF7rjXatWiHvTXqphZLvo7aC5NdEgFufVwjFfY51ijYEWpXbqF5jtrK275z52D4Q==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-ia32": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.6.tgz", + "integrity": "sha512-k35yLp1ZMwwee3Ez/pxBi5cf4AoBKYXj00CZ80jUz5h8prpiaQsiRPKQMxoLstNuqe2vR4RNPEAEcjEFzhEz/g==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.6.tgz", + "integrity": "sha512-hbQlYcCq5dlAX9Qx+kFb0FHue6vbjlf0FrNzSKdYK2APUf7tGfGxQCk2ihEREmbR6ZMc0MVAD5RIX/41gpUzTw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@popperjs/core": { + "name": "@sxzz/popperjs-es", + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@sxzz/popperjs-es/-/popperjs-es-2.11.8.tgz", + "integrity": "sha512-wOwESXvvED3S8xBmcPWHs2dUuzrE4XiZeFu7e1hROIJkm02a49N120pmOXxY33sBb6hArItm5W5tcg1cBtV+HQ==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.2.tgz", + "integrity": "sha512-izyXV/v+cHiRfozX62W9htOAvwMo4/bXKDrQ+vom1L1qRuexPock/7VZDAhnpHCLNejd3NJ6hiab+tO0D44Rgw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz", + "integrity": "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz", + "integrity": "sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz", + "integrity": "sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz", + "integrity": "sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz", + "integrity": "sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz", + "integrity": "sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz", + "integrity": "sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz", + "integrity": "sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz", + "integrity": "sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz", + "integrity": "sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz", + "integrity": "sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz", + "integrity": "sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz", + "integrity": "sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz", + "integrity": "sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz", + "integrity": "sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz", + "integrity": "sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz", + "integrity": "sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz", + "integrity": "sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.59.0.tgz", + "integrity": "sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.59.0.tgz", + "integrity": "sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.59.0.tgz", + "integrity": "sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.59.0.tgz", + "integrity": "sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.59.0.tgz", + "integrity": "sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.59.0.tgz", + "integrity": "sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.59.0.tgz", + "integrity": "sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/lodash": { + "version": "4.17.24", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.24.tgz", + "integrity": "sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ==", + "license": "MIT" + }, + "node_modules/@types/lodash-es": { + "version": "4.17.12", + "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.12.tgz", + "integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/lodash": "*" + } + }, + "node_modules/@types/web-bluetooth": { + "version": "0.0.20", + "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.20.tgz", + "integrity": "sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==", + "license": "MIT" + }, + "node_modules/@vitejs/plugin-vue": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.4.tgz", + "integrity": "sha512-uM5iXipgYIn13UUQCZNdWkYk+sysBeA97d5mHsAoAt1u/wpN3+zxOmsVJWosuzX+IMGRzeYUNytztrYznboIkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "1.0.0-rc.2" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0", + "vue": "^3.2.25" + } + }, + "node_modules/@vue-macros/common": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@vue-macros/common/-/common-3.1.2.tgz", + "integrity": "sha512-h9t4ArDdniO9ekYHAD95t9AZcAbb19lEGK+26iAjUODOIJKmObDNBSe4+6ELQAA3vtYiFPPBtHh7+cQCKi3Dng==", + "license": "MIT", + "dependencies": { + "@vue/compiler-sfc": "^3.5.22", + "ast-kit": "^2.1.2", + "local-pkg": "^1.1.2", + "magic-string-ast": "^1.0.2", + "unplugin-utils": "^0.3.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/vue-macros" + }, + "peerDependencies": { + "vue": "^2.7.0 || ^3.2.25" + }, + "peerDependenciesMeta": { + "vue": { + "optional": true + } + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.29.tgz", + "integrity": "sha512-cuzPhD8fwRHk8IGfmYaR4eEe4cAyJEL66Ove/WZL7yWNL134nqLddSLwNRIsFlnnW1kK+p8Ck3viFnC0chXCXw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@vue/shared": "3.5.29", + "entities": "^7.0.1", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.29.tgz", + "integrity": "sha512-n0G5o7R3uBVmVxjTIYcz7ovr8sy7QObFG8OQJ3xGCDNhbG60biP/P5KnyY8NLd81OuT1WJflG7N4KWYHaeeaIg==", + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.29", + "@vue/shared": "3.5.29" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.29.tgz", + "integrity": "sha512-oJZhN5XJs35Gzr50E82jg2cYdZQ78wEwvRO6Y63TvLVTc+6xICzJHP1UIecdSPPYIbkautNBanDiWYa64QSFIA==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@vue/compiler-core": "3.5.29", + "@vue/compiler-dom": "3.5.29", + "@vue/compiler-ssr": "3.5.29", + "@vue/shared": "3.5.29", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.21", + "postcss": "^8.5.6", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.29.tgz", + "integrity": "sha512-Y/ARJZE6fpjzL5GH/phJmsFwx3g6t2KmHKHx5q+MLl2kencADKIrhH5MLF6HHpRMmlRAYBRSvv347Mepf1zVNw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.29", + "@vue/shared": "3.5.29" + } + }, + "node_modules/@vue/devtools-api": { + "version": "7.7.9", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-7.7.9.tgz", + "integrity": "sha512-kIE8wvwlcZ6TJTbNeU2HQNtaxLx3a84aotTITUuL/4bzfPxzajGBOoqjMhwZJ8L9qFYDU/lAYMEEm11dnZOD6g==", + "license": "MIT", + "dependencies": { + "@vue/devtools-kit": "^7.7.9" + } + }, + "node_modules/@vue/devtools-kit": { + "version": "7.7.9", + "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-7.7.9.tgz", + "integrity": "sha512-PyQ6odHSgiDVd4hnTP+aDk2X4gl2HmLDfiyEnn3/oV+ckFDuswRs4IbBT7vacMuGdwY/XemxBoh302ctbsptuA==", + "license": "MIT", + "dependencies": { + "@vue/devtools-shared": "^7.7.9", + "birpc": "^2.3.0", + "hookable": "^5.5.3", + "mitt": "^3.0.1", + "perfect-debounce": "^1.0.0", + "speakingurl": "^14.0.1", + "superjson": "^2.2.2" + } + }, + "node_modules/@vue/devtools-shared": { + "version": "7.7.9", + "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-7.7.9.tgz", + "integrity": "sha512-iWAb0v2WYf0QWmxCGy0seZNDPdO3Sp5+u78ORnyeonS6MT4PC7VPrryX2BpMJrwlDeaZ6BD4vP4XKjK0SZqaeA==", + "license": "MIT", + "dependencies": { + "rfdc": "^1.4.1" + } + }, + "node_modules/@vue/reactivity": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.29.tgz", + "integrity": "sha512-zcrANcrRdcLtmGZETBxWqIkoQei8HaFpZWx/GHKxx79JZsiZ8j1du0VUJtu4eJjgFvU/iKL5lRXFXksVmI+5DA==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.29" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.29.tgz", + "integrity": "sha512-8DpW2QfdwIWOLqtsNcds4s+QgwSaHSJY/SUe04LptianUQ/0xi6KVsu/pYVh+HO3NTVvVJjIPL2t6GdeKbS4Lg==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.29", + "@vue/shared": "3.5.29" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.29.tgz", + "integrity": "sha512-AHvvJEtcY9tw/uk+s/YRLSlxxQnqnAkjqvK25ZiM4CllCZWzElRAoQnCM42m9AHRLNJ6oe2kC5DCgD4AUdlvXg==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.29", + "@vue/runtime-core": "3.5.29", + "@vue/shared": "3.5.29", + "csstype": "^3.2.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.29.tgz", + "integrity": "sha512-G/1k6WK5MusLlbxSE2YTcqAAezS+VuwHhOvLx2KnQU7G2zCH6KIb+5Wyt6UjMq7a3qPzNEjJXs1hvAxDclQH+g==", + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.29", + "@vue/shared": "3.5.29" + }, + "peerDependencies": { + "vue": "3.5.29" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.29.tgz", + "integrity": "sha512-w7SR0A5zyRByL9XUkCfdLs7t9XOHUyJ67qPGQjOou3p6GvBeBW+AVjUUmlxtZ4PIYaRvE+1LmK44O4uajlZwcg==", + "license": "MIT" + }, + "node_modules/@vueuse/core": { + "version": "10.11.1", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-10.11.1.tgz", + "integrity": "sha512-guoy26JQktXPcz+0n3GukWIy/JDNKti9v6VEMu6kV2sYBsWuGiTU8OWdg+ADfUbHg3/3DlqySDe7JmdHrktiww==", + "license": "MIT", + "dependencies": { + "@types/web-bluetooth": "^0.0.20", + "@vueuse/metadata": "10.11.1", + "@vueuse/shared": "10.11.1", + "vue-demi": ">=0.14.8" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/core/node_modules/vue-demi": { + "version": "0.14.10", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz", + "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/@vueuse/metadata": { + "version": "10.11.1", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-10.11.1.tgz", + "integrity": "sha512-IGa5FXd003Ug1qAZmyE8wF3sJ81xGLSqTqtQ6jaVfkeZ4i5kS2mwQF61yhVqojRnenVew5PldLyRgvdl4YYuSw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/shared": { + "version": "10.11.1", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-10.11.1.tgz", + "integrity": "sha512-LHpC8711VFZlDaYUXEBbFBCQ7GS3dVU9mjOhhMhXP6txTV4EhYQg/KGnQuvt/sPAtoUKq7VVUnL6mVtFoL42sA==", + "license": "MIT", + "dependencies": { + "vue-demi": ">=0.14.8" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/shared/node_modules/vue-demi": { + "version": "0.14.10", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz", + "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/acorn": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ast-kit": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ast-kit/-/ast-kit-2.2.0.tgz", + "integrity": "sha512-m1Q/RaVOnTp9JxPX+F+Zn7IcLYMzM8kZofDImfsKZd8MbR+ikdOzTeztStWqfrqIxZnYWryyI9ePm3NGjnZgGw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.5", + "pathe": "^2.0.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/ast-walker-scope": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/ast-walker-scope/-/ast-walker-scope-0.8.3.tgz", + "integrity": "sha512-cbdCP0PGOBq0ASG+sjnKIoYkWMKhhz+F/h9pRexUdX2Hd38+WOlBkRKlqkGOSm0YQpcFMQBJeK4WspUAkwsEdg==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.4", + "ast-kit": "^2.1.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/async-validator": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-4.2.5.tgz", + "integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==", + "license": "MIT" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/axios": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.5.tgz", + "integrity": "sha512-cz4ur7Vb0xS4/KUN0tPWe44eqxrIu31me+fbang3ijiNscE129POzipJJA6zniq2C/Z6sJCjMimjS8Lc/GAs8Q==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.11", + "form-data": "^4.0.5", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/birpc": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/birpc/-/birpc-2.9.0.tgz", + "integrity": "sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/confbox": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.4.tgz", + "integrity": "sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==", + "license": "MIT" + }, + "node_modules/copy-anything": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-4.0.5.tgz", + "integrity": "sha512-7Vv6asjS4gMOuILabD3l739tsaxFQmC+a7pLZm02zyvs8p977bL3zEgq3yDk5rn9B0PbYgIv++jmHcuUab4RhA==", + "license": "MIT", + "dependencies": { + "is-what": "^5.2.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/dayjs": { + "version": "1.11.19", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.19.tgz", + "integrity": "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==", + "license": "MIT" + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/echarts": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/echarts/-/echarts-6.0.0.tgz", + "integrity": "sha512-Tte/grDQRiETQP4xz3iZWSvoHrkCQtwqd6hs+mifXcjrCuo2iKWbajFObuLJVBlDIJlOzgQPd1hsaKt/3+OMkQ==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "2.3.0", + "zrender": "6.0.0" + } + }, + "node_modules/element-plus": { + "version": "2.13.2", + "resolved": "https://registry.npmjs.org/element-plus/-/element-plus-2.13.2.tgz", + "integrity": "sha512-Zjzm1NnFXGhV4LYZ6Ze9skPlYi2B4KAmN18FL63A3PZcjhDfroHwhtM6RE8BonlOPHXUnPQynH0BgaoEfvhrGw==", + "license": "MIT", + "dependencies": { + "@ctrl/tinycolor": "^3.4.1", + "@element-plus/icons-vue": "^2.3.2", + "@floating-ui/dom": "^1.0.1", + "@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.7", + "@types/lodash": "^4.17.20", + "@types/lodash-es": "^4.17.12", + "@vueuse/core": "^10.11.0", + "async-validator": "^4.2.5", + "dayjs": "^1.11.19", + "lodash": "^4.17.23", + "lodash-es": "^4.17.23", + "lodash-unified": "^1.0.3", + "memoize-one": "^6.0.0", + "normalize-wheel-es": "^1.2.0" + }, + "peerDependencies": { + "vue": "^3.3.0" + } + }, + "node_modules/entities": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", + "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/esbuild": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz", + "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.3", + "@esbuild/android-arm": "0.27.3", + "@esbuild/android-arm64": "0.27.3", + "@esbuild/android-x64": "0.27.3", + "@esbuild/darwin-arm64": "0.27.3", + "@esbuild/darwin-x64": "0.27.3", + "@esbuild/freebsd-arm64": "0.27.3", + "@esbuild/freebsd-x64": "0.27.3", + "@esbuild/linux-arm": "0.27.3", + "@esbuild/linux-arm64": "0.27.3", + "@esbuild/linux-ia32": "0.27.3", + "@esbuild/linux-loong64": "0.27.3", + "@esbuild/linux-mips64el": "0.27.3", + "@esbuild/linux-ppc64": "0.27.3", + "@esbuild/linux-riscv64": "0.27.3", + "@esbuild/linux-s390x": "0.27.3", + "@esbuild/linux-x64": "0.27.3", + "@esbuild/netbsd-arm64": "0.27.3", + "@esbuild/netbsd-x64": "0.27.3", + "@esbuild/openbsd-arm64": "0.27.3", + "@esbuild/openbsd-x64": "0.27.3", + "@esbuild/openharmony-arm64": "0.27.3", + "@esbuild/sunos-x64": "0.27.3", + "@esbuild/win32-arm64": "0.27.3", + "@esbuild/win32-ia32": "0.27.3", + "@esbuild/win32-x64": "0.27.3" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "node_modules/exsolve": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.8.tgz", + "integrity": "sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==", + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/follow-redirects": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", + "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hookable": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz", + "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==", + "license": "MIT" + }, + "node_modules/immutable": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.4.tgz", + "integrity": "sha512-p6u1bG3YSnINT5RQmx/yRZBpenIl30kVxkTLDyHLIMk0gict704Q9n+thfDI7lTRm9vXdDYutVzXhzcThxTnXA==", + "license": "MIT" + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "license": "MIT", + "optional": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-what": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/is-what/-/is-what-5.5.0.tgz", + "integrity": "sha512-oG7cgbmg5kLYae2N5IVd3jm2s+vldjxJzK1pcu9LfpGuQ93MQSzo0okvRna+7y5ifrD+20FE8FvjusyGaz14fw==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/local-pkg": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.1.2.tgz", + "integrity": "sha512-arhlxbFRmoQHl33a0Zkle/YWlmNwoyt6QNZEIJcqNbdrsix5Lvc4HyyI3EnwxTYlZYc32EbYrQ8SzEZ7dqgg9A==", + "license": "MIT", + "dependencies": { + "mlly": "^1.7.4", + "pkg-types": "^2.3.0", + "quansync": "^0.2.11" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/lodash": { + "version": "4.17.23", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz", + "integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==", + "license": "MIT", + "peer": true + }, + "node_modules/lodash-es": { + "version": "4.17.23", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.23.tgz", + "integrity": "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==", + "license": "MIT", + "peer": true + }, + "node_modules/lodash-unified": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/lodash-unified/-/lodash-unified-1.0.3.tgz", + "integrity": "sha512-WK9qSozxXOD7ZJQlpSqOT+om2ZfcT4yO+03FuzAHD0wF6S0l0090LRPDx3vhTTLZ8cFKpBn+IOcVXK6qOcIlfQ==", + "license": "MIT", + "peerDependencies": { + "@types/lodash-es": "*", + "lodash": "*", + "lodash-es": "*" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/magic-string-ast": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/magic-string-ast/-/magic-string-ast-1.0.3.tgz", + "integrity": "sha512-CvkkH1i81zl7mmb94DsRiFeG9V2fR2JeuK8yDgS8oiZSFa++wWLEgZ5ufEOyLHbvSbD1gTRKv9NdX69Rnvr9JA==", + "license": "MIT", + "dependencies": { + "magic-string": "^0.30.19" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/memoize-one": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-6.0.0.tgz", + "integrity": "sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==", + "license": "MIT" + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "license": "MIT" + }, + "node_modules/mlly": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.0.tgz", + "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==", + "license": "MIT", + "dependencies": { + "acorn": "^8.15.0", + "pathe": "^2.0.3", + "pkg-types": "^1.3.1", + "ufo": "^1.6.1" + } + }, + "node_modules/mlly/node_modules/confbox": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "license": "MIT" + }, + "node_modules/mlly/node_modules/pkg-types": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz", + "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "license": "MIT", + "dependencies": { + "confbox": "^0.1.8", + "mlly": "^1.7.4", + "pathe": "^2.0.1" + } + }, + "node_modules/muggle-string": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz", + "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "license": "MIT", + "optional": true + }, + "node_modules/normalize-wheel-es": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/normalize-wheel-es/-/normalize-wheel-es-1.2.0.tgz", + "integrity": "sha512-Wj7+EJQ8mSuXr2iWfnujrimU35R2W4FAErEyTmJoJ7ucwTn2hOUSsRehMb5RSYkxXGTM7Y9QpvPmp++w5ftoJw==", + "license": "BSD-3-Clause" + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "license": "MIT" + }, + "node_modules/perfect-debounce": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz", + "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==", + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pinia": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/pinia/-/pinia-3.0.4.tgz", + "integrity": "sha512-l7pqLUFTI/+ESXn6k3nu30ZIzW5E2WZF/LaHJEpoq6ElcLD+wduZoB2kBN19du6K/4FDpPMazY2wJr+IndBtQw==", + "license": "MIT", + "peer": true, + "dependencies": { + "@vue/devtools-api": "^7.7.7" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "typescript": ">=4.5.0", + "vue": "^3.5.11" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/pkg-types": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.0.tgz", + "integrity": "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==", + "license": "MIT", + "dependencies": { + "confbox": "^0.2.2", + "exsolve": "^1.0.7", + "pathe": "^2.0.3" + } + }, + "node_modules/postcss": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", + "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" + }, + "node_modules/quansync": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz", + "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/antfu" + }, + { + "type": "individual", + "url": "https://github.com/sponsors/sxzz" + } + ], + "license": "MIT" + }, + "node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/rfdc": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", + "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", + "license": "MIT" + }, + "node_modules/rollup": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.59.0.tgz", + "integrity": "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.59.0", + "@rollup/rollup-android-arm64": "4.59.0", + "@rollup/rollup-darwin-arm64": "4.59.0", + "@rollup/rollup-darwin-x64": "4.59.0", + "@rollup/rollup-freebsd-arm64": "4.59.0", + "@rollup/rollup-freebsd-x64": "4.59.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.59.0", + "@rollup/rollup-linux-arm-musleabihf": "4.59.0", + "@rollup/rollup-linux-arm64-gnu": "4.59.0", + "@rollup/rollup-linux-arm64-musl": "4.59.0", + "@rollup/rollup-linux-loong64-gnu": "4.59.0", + "@rollup/rollup-linux-loong64-musl": "4.59.0", + "@rollup/rollup-linux-ppc64-gnu": "4.59.0", + "@rollup/rollup-linux-ppc64-musl": "4.59.0", + "@rollup/rollup-linux-riscv64-gnu": "4.59.0", + "@rollup/rollup-linux-riscv64-musl": "4.59.0", + "@rollup/rollup-linux-s390x-gnu": "4.59.0", + "@rollup/rollup-linux-x64-gnu": "4.59.0", + "@rollup/rollup-linux-x64-musl": "4.59.0", + "@rollup/rollup-openbsd-x64": "4.59.0", + "@rollup/rollup-openharmony-arm64": "4.59.0", + "@rollup/rollup-win32-arm64-msvc": "4.59.0", + "@rollup/rollup-win32-ia32-msvc": "4.59.0", + "@rollup/rollup-win32-x64-gnu": "4.59.0", + "@rollup/rollup-win32-x64-msvc": "4.59.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/sass": { + "version": "1.97.3", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.97.3.tgz", + "integrity": "sha512-fDz1zJpd5GycprAbu4Q2PV/RprsRtKC/0z82z0JLgdytmcq0+ujJbJ/09bPGDxCLkKY3Np5cRAOcWiVkLXJURg==", + "license": "MIT", + "peer": true, + "dependencies": { + "chokidar": "^4.0.0", + "immutable": "^5.0.2", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + }, + "optionalDependencies": { + "@parcel/watcher": "^2.4.1" + } + }, + "node_modules/scule": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/scule/-/scule-1.3.0.tgz", + "integrity": "sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==", + "license": "MIT" + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/speakingurl": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/speakingurl/-/speakingurl-14.0.1.tgz", + "integrity": "sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/superjson": { + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/superjson/-/superjson-2.2.6.tgz", + "integrity": "sha512-H+ue8Zo4vJmV2nRjpx86P35lzwDT3nItnIsocgumgr0hHMQ+ZGq5vrERg9kJBo5AWGmxZDhzDo+WVIJqkB0cGA==", + "license": "MIT", + "dependencies": { + "copy-anything": "^4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==", + "license": "0BSD" + }, + "node_modules/ufo": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.3.tgz", + "integrity": "sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==", + "license": "MIT" + }, + "node_modules/unplugin": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-3.0.0.tgz", + "integrity": "sha512-0Mqk3AT2TZCXWKdcoaufeXNukv2mTrEZExeXlHIOZXdqYoHHr4n51pymnwV8x2BOVxwXbK2HLlI7usrqMpycdg==", + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "picomatch": "^4.0.3", + "webpack-virtual-modules": "^0.6.2" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/unplugin-utils": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/unplugin-utils/-/unplugin-utils-0.3.1.tgz", + "integrity": "sha512-5lWVjgi6vuHhJ526bI4nlCOmkCIF3nnfXkCMDeMJrtdvxTs6ZFCM8oNufGTsDbKv/tJ/xj8RpvXjRuPBZJuJog==", + "license": "MIT", + "dependencies": { + "pathe": "^2.0.3", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/vite": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.1.tgz", + "integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "esbuild": "^0.27.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vue": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.29.tgz", + "integrity": "sha512-BZqN4Ze6mDQVNAni0IHeMJ5mwr8VAJ3MQC9FmprRhcBYENw+wOAAjRj8jfmN6FLl0j96OXbR+CjWhmAmM+QGnA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@vue/compiler-dom": "3.5.29", + "@vue/compiler-sfc": "3.5.29", + "@vue/runtime-dom": "3.5.29", + "@vue/server-renderer": "3.5.29", + "@vue/shared": "3.5.29" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/vue-i18n": { + "version": "11.2.8", + "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-11.2.8.tgz", + "integrity": "sha512-vJ123v/PXCZntd6Qj5Jumy7UBmIuE92VrtdX+AXr+1WzdBHojiBxnAxdfctUFL+/JIN+VQH4BhsfTtiGsvVObg==", + "license": "MIT", + "dependencies": { + "@intlify/core-base": "11.2.8", + "@intlify/shared": "11.2.8", + "@vue/devtools-api": "^6.5.0" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, + "node_modules/vue-i18n/node_modules/@vue/devtools-api": { + "version": "6.6.4", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.6.4.tgz", + "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==", + "license": "MIT" + }, + "node_modules/vue-router": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-5.0.3.tgz", + "integrity": "sha512-nG1c7aAFac7NYj8Hluo68WyWfc41xkEjaR0ViLHCa3oDvTQ/nIuLJlXJX1NUPw/DXzx/8+OKMng045HHQKQKWw==", + "license": "MIT", + "dependencies": { + "@babel/generator": "^7.28.6", + "@vue-macros/common": "^3.1.1", + "@vue/devtools-api": "^8.0.6", + "ast-walker-scope": "^0.8.3", + "chokidar": "^5.0.0", + "json5": "^2.2.3", + "local-pkg": "^1.1.2", + "magic-string": "^0.30.21", + "mlly": "^1.8.0", + "muggle-string": "^0.4.1", + "pathe": "^2.0.3", + "picomatch": "^4.0.3", + "scule": "^1.3.0", + "tinyglobby": "^0.2.15", + "unplugin": "^3.0.0", + "unplugin-utils": "^0.3.1", + "yaml": "^2.8.2" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "@pinia/colada": ">=0.21.2", + "@vue/compiler-sfc": "^3.5.17", + "pinia": "^3.0.4", + "vue": "^3.5.0" + }, + "peerDependenciesMeta": { + "@pinia/colada": { + "optional": true + }, + "@vue/compiler-sfc": { + "optional": true + }, + "pinia": { + "optional": true + } + } + }, + "node_modules/vue-router/node_modules/@vue/devtools-api": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-8.0.6.tgz", + "integrity": "sha512-+lGBI+WTvJmnU2FZqHhEB8J1DXcvNlDeEalz77iYgOdY1jTj1ipSBaKj3sRhYcy+kqA8v/BSuvOz1XJucfQmUA==", + "license": "MIT", + "dependencies": { + "@vue/devtools-kit": "^8.0.6" + } + }, + "node_modules/vue-router/node_modules/@vue/devtools-kit": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-8.0.6.tgz", + "integrity": "sha512-9zXZPTJW72OteDXeSa5RVML3zWDCRcO5t77aJqSs228mdopYj5AiTpihozbsfFJ0IodfNs7pSgOGO3qfCuxDtw==", + "license": "MIT", + "dependencies": { + "@vue/devtools-shared": "^8.0.6", + "birpc": "^2.6.1", + "hookable": "^5.5.3", + "mitt": "^3.0.1", + "perfect-debounce": "^2.0.0", + "speakingurl": "^14.0.1", + "superjson": "^2.2.2" + } + }, + "node_modules/vue-router/node_modules/@vue/devtools-shared": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-8.0.6.tgz", + "integrity": "sha512-Pp1JylTqlgMJvxW6MGyfTF8vGvlBSCAvMFaDCYa82Mgw7TT5eE5kkHgDvmOGHWeJE4zIDfCpCxHapsK2LtIAJg==", + "license": "MIT", + "dependencies": { + "rfdc": "^1.4.1" + } + }, + "node_modules/vue-router/node_modules/chokidar": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", + "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", + "license": "MIT", + "dependencies": { + "readdirp": "^5.0.0" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/vue-router/node_modules/perfect-debounce": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.1.0.tgz", + "integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==", + "license": "MIT" + }, + "node_modules/vue-router/node_modules/readdirp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.0.0.tgz", + "integrity": "sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==", + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/webpack-virtual-modules": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", + "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==", + "license": "MIT" + }, + "node_modules/yaml": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", + "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + }, + "node_modules/zrender": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/zrender/-/zrender-6.0.0.tgz", + "integrity": "sha512-41dFXEEXuJpNecuUQq6JlbybmnHaqqpGlbH1yxnA5V9MMP4SbohSVZsJIwz+zdjQXSSlR1Vc34EgH1zxyTDvhg==", + "license": "BSD-3-Clause", + "dependencies": { + "tslib": "2.3.0" + } + } + } +} diff --git a/frontend/package.json b/frontend/package.json new file mode 100644 index 0000000..55125c8 --- /dev/null +++ b/frontend/package.json @@ -0,0 +1,26 @@ +{ + "name": "frontend", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview" + }, + "dependencies": { + "@element-plus/icons-vue": "^2.3.2", + "axios": "^1.13.5", + "echarts": "^6.0.0", + "element-plus": "^2.13.2", + "pinia": "^3.0.4", + "sass": "^1.97.3", + "vue": "^3.5.25", + "vue-i18n": "^11.2.8", + "vue-router": "^5.0.3" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^6.0.2", + "vite": "^7.3.1" + } +} diff --git a/frontend/public/vite.svg b/frontend/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/frontend/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/src/App.vue b/frontend/src/App.vue new file mode 100644 index 0000000..53fb987 --- /dev/null +++ b/frontend/src/App.vue @@ -0,0 +1,18 @@ + + + diff --git a/frontend/src/api/index.js b/frontend/src/api/index.js new file mode 100644 index 0000000..0d2d41c --- /dev/null +++ b/frontend/src/api/index.js @@ -0,0 +1,31 @@ +import axios from 'axios' + +const api = axios.create({ + baseURL: import.meta.env.VITE_API_BASE_URL || 'http://localhost:5000/api', + timeout: 10000 +}) + +api.interceptors.request.use(config => { + const token = localStorage.getItem('token') + if (token) { + config.headers.Authorization = `Bearer ${token}` + } + return config +}, error => { + return Promise.reject(error) +}) + +api.interceptors.response.use( + response => response, + error => { + if (error.response && error.response.status === 401) { + localStorage.removeItem('token') + localStorage.removeItem('user') + localStorage.removeItem('permissions') + window.location.href = '/login' + } + return Promise.reject(error) + } +) + +export default api diff --git a/frontend/src/i18n.js b/frontend/src/i18n.js new file mode 100644 index 0000000..ff739a2 --- /dev/null +++ b/frontend/src/i18n.js @@ -0,0 +1,15 @@ +import { createI18n } from 'vue-i18n' +import en from './locales/en' +import zh from './locales/zh' + +const i18n = createI18n({ + legacy: false, // usage with Composition API + locale: localStorage.getItem('lang') || 'en', // set locale + fallbackLocale: 'en', // set fallback locale + messages: { + en, + zh + } +}) + +export default i18n diff --git a/frontend/src/layout/MainLayout.vue b/frontend/src/layout/MainLayout.vue new file mode 100644 index 0000000..53889aa --- /dev/null +++ b/frontend/src/layout/MainLayout.vue @@ -0,0 +1,223 @@ + + + + + diff --git a/frontend/src/locales/en.js b/frontend/src/locales/en.js new file mode 100644 index 0000000..d140068 --- /dev/null +++ b/frontend/src/locales/en.js @@ -0,0 +1,139 @@ +export default { + common: { + login: 'Login', + logout: 'Logout', + username: 'Username', + password: 'Password', + submit: 'Submit', + cancel: 'Cancel', + confirm: 'Confirm', + actions: 'Actions', + view: 'View', + search: 'Search...', + profile: 'Profile', + dashboard: 'Dashboard', + notifications: 'Notifications', + admin: 'Admin', + welcome: 'Welcome', + loading: 'Loading...', + create: 'Create', + refresh: 'Refresh', + exportCsv: 'Export CSV', + delete: 'Delete', + toggle: 'Toggle', + title: 'Title', + time: 'Time', + researcher: 'Researcher', + attachments: 'Attachments', + visibleUsers: 'Visible Users', + email: 'Email', + role: 'Role', + active: 'Active', + name: 'Name', + description: 'Description', + parent: 'Parent', + save: 'Save', + edit: 'Edit', + csv: 'CSV', + download: 'Download', + status: 'Status', + type: 'Type', + content: 'Content', + startDate: 'Start Date', + expirationDate: 'Expiration Date', + isPermanent: 'Is Permanent', + visibleUserIds: 'Visible User IDs', + researcherId: 'Researcher ID', + csvFile: 'CSV File', + folder: 'Folder', + run: 'Run', + start: 'Start', + end: 'End', + summary: 'Summary', + assign: 'Assign', + uid: 'UID', + light: 'Light', + file: 'File', + filename: 'Filename', + size: 'Size', + error: 'Error', + uploader: 'Uploader', + operator: 'Operator', + action: 'Action', + target: 'Target', + targetId: 'Target ID', + published: 'Published', + sync: 'Sync', + upload: 'Upload', + go: 'Go', + yes: 'Yes', + no: 'No', + back: 'Back', + uploaded: 'Uploaded', + dataDetail: 'Data Detail', + searchResults: 'Search Results', + author: 'Author', + latestNews: 'Latest News', + viewAll: 'View All' + }, + menu: { + dashboard: 'Dashboard', + notifications: 'Notifications', + search: 'Search', + profile: 'Profile', + admin: 'Admin', + users: 'Users', + data: 'Data', + notices: 'Notices', + uploads: 'Uploads', + integration: 'Integration', + inference: 'Inference', + roles: 'Roles', + permissions: 'Permissions', + auditLogs: 'Audit Logs', + }, + dashboard: { + title: 'Dashboard', + totalEntries: 'Total Data Entries', + recentActivity: 'Recent Activity', + dataOverview: 'Data Overview', + entries: 'Entries', + time: 'Time', + }, + login: { + title: 'Login', + success: 'Login successful', + failed: 'Login failed', + subtitle: 'Welcome back, please login to your account.' + }, + admin: { + dataEntries: 'Data Entries', + userManagement: 'User Management', + roles: 'Roles', + permissions: 'Permissions', + createDataEntry: 'Create Data Entry', + createUser: 'Create User', + roleName: 'Role Name', + permissionName: 'Permission Name', + inference: 'Inference', + folders: 'Folders', + results: 'Results', + refreshFolders: 'Refresh Folders', + refreshResults: 'Refresh Results', + refreshJobs: 'Refresh Jobs', + jobs: 'Jobs', + diagnosis: 'Diagnosis', + sqa: 'SQA', + density: 'Density', + integration: 'Integration', + assignResearcher: 'Assign Researcher', + notificationManagement: 'Notification Management', + editNotification: 'Edit Notification', + createNotification: 'Create Notification', + permissionLogs: 'Permission Logs', + uploads: 'Uploads', + uploadArchives: 'Upload Archives', + uploadHistory: 'Upload History', + refreshLogs: 'Refresh Logs' + } +} diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js new file mode 100644 index 0000000..1b87e79 --- /dev/null +++ b/frontend/src/locales/zh.js @@ -0,0 +1,139 @@ +export default { + common: { + login: '登录', + logout: '退出登录', + username: '用户名', + password: '密码', + submit: '提交', + cancel: '取消', + confirm: '确认', + actions: '操作', + view: '查看', + search: '搜索...', + profile: '个人中心', + dashboard: '仪表盘', + notifications: '通知', + admin: '管理', + welcome: '欢迎', + loading: '加载中...', + create: '创建', + refresh: '刷新', + exportCsv: '导出 CSV', + delete: '删除', + toggle: '切换状态', + title: '标题', + time: '时间', + researcher: '研究员', + attachments: '附件', + visibleUsers: '可见用户', + email: '邮箱', + role: '角色', + active: '激活状态', + name: '名称', + description: '描述', + parent: '父级', + save: '保存', + edit: '编辑', + csv: 'CSV', + download: '下载', + status: '状态', + type: '类型', + content: '内容', + startDate: '开始日期', + expirationDate: '过期日期', + isPermanent: '永久有效', + visibleUserIds: '可见用户ID', + researcherId: '研究员ID', + csvFile: 'CSV 文件', + folder: '文件夹', + run: '运行', + start: '开始', + end: '结束', + summary: '摘要', + assign: '分配', + uid: 'UID', + light: '光照', + file: '文件', + filename: '文件名', + size: '大小', + error: '错误', + uploader: '上传者', + operator: '操作者', + action: '动作', + target: '目标', + targetId: '目标ID', + published: '已发布', + sync: '同步', + upload: '上传', + go: '前往', + yes: '是', + no: '否', + back: '返回', + uploaded: '上传时间', + dataDetail: '数据详情', + searchResults: '搜索结果', + author: '作者', + latestNews: '最新消息', + viewAll: '查看全部' + }, + menu: { + dashboard: '仪表盘', + notifications: '通知', + search: '搜索', + profile: '个人中心', + admin: '管理', + users: '用户管理', + data: '数据管理', + notices: '公告管理', + uploads: '上传管理', + integration: '集成管理', + inference: '推理任务', + roles: '角色管理', + permissions: '权限管理', + auditLogs: '审计日志', + }, + dashboard: { + title: '仪表盘', + totalEntries: '数据条目总数', + recentActivity: '最近活动', + dataOverview: '数据概览', + entries: '条目', + time: '时间', + }, + login: { + title: '登录', + success: '登录成功', + failed: '登录失败', + subtitle: '欢迎回来,请登录您的账户。' + }, + admin: { + dataEntries: '数据条目', + userManagement: '用户管理', + roles: '角色列表', + permissions: '权限列表', + createDataEntry: '创建数据条目', + createUser: '创建用户', + roleName: '角色名称', + permissionName: '权限名称', + inference: '推理', + folders: '文件夹列表', + results: '结果列表', + refreshFolders: '刷新文件夹', + refreshResults: '刷新结果', + refreshJobs: '刷新任务', + jobs: '任务列表', + diagnosis: '诊断', + sqa: 'SQA', + density: '密度', + integration: '集成', + assignResearcher: '分配研究员', + notificationManagement: '通知管理', + editNotification: '编辑通知', + createNotification: '创建通知', + permissionLogs: '权限日志', + uploads: '上传', + uploadArchives: '上传归档', + uploadHistory: '上传历史', + refreshLogs: '刷新日志' + } +} diff --git a/frontend/src/main.js b/frontend/src/main.js new file mode 100644 index 0000000..45c71d8 --- /dev/null +++ b/frontend/src/main.js @@ -0,0 +1,22 @@ +import { createApp } from 'vue' +import './style.css' +import App from './App.vue' +import router from './router' +import { createPinia } from 'pinia' +import ElementPlus from 'element-plus' +import 'element-plus/dist/index.css' +import i18n from './i18n' +import * as ElementPlusIconsVue from '@element-plus/icons-vue' + +const app = createApp(App) + +for (const [key, component] of Object.entries(ElementPlusIconsVue)) { + app.component(key, component) +} + +app.use(createPinia()) +app.use(router) +app.use(ElementPlus) +app.use(i18n) + +app.mount('#app') diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js new file mode 100644 index 0000000..9f6b9c6 --- /dev/null +++ b/frontend/src/router/index.js @@ -0,0 +1,150 @@ +import { createRouter, createWebHistory } from 'vue-router' +import { useUserStore } from '../store/user' +import Login from '../views/Login.vue' +import Dashboard from '../views/Dashboard.vue' +import DataDetail from '../views/DataDetail.vue' +import Notifications from '../views/Notifications.vue' +import Profile from '../views/Profile.vue' +import Search from '../views/Search.vue' +import DataEntries from '../views/admin/DataEntries.vue' +import AdminNotifications from '../views/admin/Notifications.vue' +import PermissionLogs from '../views/admin/PermissionLogs.vue' +import Permissions from '../views/admin/Permissions.vue' +import Roles from '../views/admin/Roles.vue' +import Uploads from '../views/admin/Uploads.vue' +import Inference from '../views/admin/Inference.vue' +import Integration from '../views/admin/Integration.vue' +import Users from '../views/admin/Users.vue' +import MainLayout from '../layout/MainLayout.vue' + +const routes = [ + { + path: '/login', + name: 'Login', + component: Login + }, + { + path: '/', + redirect: '/dashboard', + component: MainLayout, + children: [ + { + path: 'dashboard', + name: 'Dashboard', + component: Dashboard, + meta: { requiresAuth: true } + }, + { + path: 'notifications', + name: 'Notifications', + component: Notifications, + meta: { requiresAuth: true } + }, + { + path: 'search', + name: 'Search', + component: Search, + meta: { requiresAuth: true } + }, + { + path: 'profile', + name: 'Profile', + component: Profile, + meta: { requiresAuth: true } + }, + { + path: 'data/:id', + name: 'DataDetail', + component: DataDetail, + meta: { requiresAuth: true } + }, + { + path: 'admin/users', + name: 'Users', + component: Users, + meta: { requiresAuth: true, requiresAdmin: true, requiredPerms: ['manage_users'] } + }, + { + path: 'admin/roles', + name: 'Roles', + component: Roles, + meta: { requiresAuth: true, requiresAdmin: true, requiredPerms: ['manage_roles'] } + }, + { + path: 'admin/permissions', + name: 'Permissions', + component: Permissions, + meta: { requiresAuth: true, requiresAdmin: true, requiredPerms: ['manage_roles'] } + }, + { + path: 'admin/permission-logs', + name: 'PermissionLogs', + component: PermissionLogs, + meta: { requiresAuth: true, requiresAdmin: true, requiredPerms: ['view_audit_logs'] } + }, + { + path: 'admin/data-entries', + name: 'DataEntries', + component: DataEntries, + meta: { requiresAuth: true, requiresAdmin: true, requiredPerms: ['manage_data'] } + }, + { + path: 'admin/notifications', + name: 'AdminNotifications', + component: AdminNotifications, + meta: { requiresAuth: true, requiresAdmin: true, requiredPerms: ['manage_data'] } + }, + { + path: 'admin/uploads', + name: 'Uploads', + component: Uploads, + meta: { requiresAuth: true } + }, + { + path: 'admin/integration', + name: 'Integration', + component: Integration, + meta: { requiresAuth: true } + }, + { + path: 'admin/inference', + name: 'Inference', + component: Inference, + meta: { requiresAuth: true, requiresAdmin: true, requiredPerms: ['run_inference'] } + } + ] + } +] + +const router = createRouter({ + history: createWebHistory(), + routes +}) + +router.beforeEach(async (to, from, next) => { + const userStore = useUserStore() + if (to.path === '/login' && userStore.isAuthenticated) { + return next('/dashboard') + } + if (to.meta.requiresAuth && !userStore.isAuthenticated) { + next('/login') + } else if (userStore.isAuthenticated && userStore.permissions.length === 0) { + try { + await userStore.fetchMe() + } catch (e) { + userStore.logout() + return next('/login') + } + return next(to.fullPath) + } else if (to.meta.requiresAdmin && !userStore.isAdmin) { + next('/dashboard') + } else if (to.meta.requiredPerms && to.meta.requiredPerms.length) { + const ok = to.meta.requiredPerms.every(p => userStore.hasPermission(p)) + if (!ok) return next('/dashboard') + next() + } else { + next() + } +}) + +export default router diff --git a/frontend/src/store/user.js b/frontend/src/store/user.js new file mode 100644 index 0000000..3f22f28 --- /dev/null +++ b/frontend/src/store/user.js @@ -0,0 +1,51 @@ +import { defineStore } from 'pinia' +import api from '../api' + +export const useUserStore = defineStore('user', { + state: () => ({ + token: localStorage.getItem('token') || '', + user: JSON.parse(localStorage.getItem('user')) || null, + permissions: JSON.parse(localStorage.getItem('permissions')) || [] + }), + getters: { + isAuthenticated: (state) => !!state.token, + isAdmin: (state) => state.user?.is_admin, + isResearcher: (state) => state.user?.is_researcher, + hasPermission: (state) => (perm) => state.permissions.includes(perm) + }, + actions: { + setToken(token) { + this.token = token + localStorage.setItem('token', token) + }, + setUser(user) { + this.user = user + localStorage.setItem('user', JSON.stringify(user)) + }, + setPermissions(perms) { + this.permissions = perms || [] + localStorage.setItem('permissions', JSON.stringify(this.permissions)) + }, + async fetchMe() { + if (!this.token) return null + const res = await api.get('/auth/me') + this.setUser({ + id: res.data.id, + username: res.data.username, + role: res.data.role, + is_admin: res.data.is_admin, + is_researcher: res.data.is_researcher + }) + this.setPermissions(res.data.permissions || []) + return res.data + }, + logout() { + this.token = '' + this.user = null + this.permissions = [] + localStorage.removeItem('token') + localStorage.removeItem('user') + localStorage.removeItem('permissions') + } + } +}) diff --git a/frontend/src/style.css b/frontend/src/style.css new file mode 100644 index 0000000..fce29ee --- /dev/null +++ b/frontend/src/style.css @@ -0,0 +1,82 @@ +:root { + font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif; + line-height: 1.5; + font-weight: 400; + + color-scheme: light dark; + + /* Modern Palette */ + --color-bg: #f5f7fa; + --color-text: #2c3e50; + --color-primary: #409eff; + --color-white: #ffffff; + --color-border: #e4e7ed; + + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +body { + margin: 0; + display: block; /* Removed flex center from default vite template */ + min-width: 320px; + min-height: 100vh; + background-color: var(--color-bg); + color: var(--color-text); +} + +#app { + /* Removed max-width and centering */ + width: 100%; + height: 100vh; + padding: 0; + text-align: left; +} + +h1, h2, h3 { + margin: 0; + font-weight: 600; +} + +/* Transitions */ +.fade-transform-enter-active, +.fade-transform-leave-active { + transition: all 0.3s; +} + +.fade-transform-enter-from { + opacity: 0; + transform: translateX(-30px); +} + +.fade-transform-leave-to { + opacity: 0; + transform: translateX(30px); +} + +/* Card Hover Effect */ +.hover-card { + transition: transform 0.3s, box-shadow 0.3s; +} + +.hover-card:hover { + transform: translateY(-5px); + box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); +} + +/* Scrollbar */ +::-webkit-scrollbar { + width: 8px; + height: 8px; +} + +::-webkit-scrollbar-thumb { + background: #c0c4cc; + border-radius: 4px; +} + +::-webkit-scrollbar-track { + background: #f1f1f1; +} diff --git a/frontend/src/views/Dashboard.vue b/frontend/src/views/Dashboard.vue new file mode 100644 index 0000000..0b63efe --- /dev/null +++ b/frontend/src/views/Dashboard.vue @@ -0,0 +1,254 @@ + + + + + diff --git a/frontend/src/views/DataDetail.vue b/frontend/src/views/DataDetail.vue new file mode 100644 index 0000000..d106c67 --- /dev/null +++ b/frontend/src/views/DataDetail.vue @@ -0,0 +1,57 @@ + + + diff --git a/frontend/src/views/Login.vue b/frontend/src/views/Login.vue new file mode 100644 index 0000000..5a09c60 --- /dev/null +++ b/frontend/src/views/Login.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/frontend/src/views/Notifications.vue b/frontend/src/views/Notifications.vue new file mode 100644 index 0000000..b44b86d --- /dev/null +++ b/frontend/src/views/Notifications.vue @@ -0,0 +1,26 @@ + + + diff --git a/frontend/src/views/Profile.vue b/frontend/src/views/Profile.vue new file mode 100644 index 0000000..09d6f49 --- /dev/null +++ b/frontend/src/views/Profile.vue @@ -0,0 +1,33 @@ + + + diff --git a/frontend/src/views/Search.vue b/frontend/src/views/Search.vue new file mode 100644 index 0000000..c016f15 --- /dev/null +++ b/frontend/src/views/Search.vue @@ -0,0 +1,80 @@ + + + diff --git a/frontend/src/views/admin/DataEntries.vue b/frontend/src/views/admin/DataEntries.vue new file mode 100644 index 0000000..430117a --- /dev/null +++ b/frontend/src/views/admin/DataEntries.vue @@ -0,0 +1,193 @@ + + + diff --git a/frontend/src/views/admin/Inference.vue b/frontend/src/views/admin/Inference.vue new file mode 100644 index 0000000..41c5400 --- /dev/null +++ b/frontend/src/views/admin/Inference.vue @@ -0,0 +1,78 @@ + + + diff --git a/frontend/src/views/admin/Integration.vue b/frontend/src/views/admin/Integration.vue new file mode 100644 index 0000000..c17ec5f --- /dev/null +++ b/frontend/src/views/admin/Integration.vue @@ -0,0 +1,134 @@ + + + diff --git a/frontend/src/views/admin/Notifications.vue b/frontend/src/views/admin/Notifications.vue new file mode 100644 index 0000000..c32f16f --- /dev/null +++ b/frontend/src/views/admin/Notifications.vue @@ -0,0 +1,119 @@ + + + diff --git a/frontend/src/views/admin/PermissionLogs.vue b/frontend/src/views/admin/PermissionLogs.vue new file mode 100644 index 0000000..6ffae6c --- /dev/null +++ b/frontend/src/views/admin/PermissionLogs.vue @@ -0,0 +1,51 @@ + + + diff --git a/frontend/src/views/admin/Permissions.vue b/frontend/src/views/admin/Permissions.vue new file mode 100644 index 0000000..a6c2889 --- /dev/null +++ b/frontend/src/views/admin/Permissions.vue @@ -0,0 +1,55 @@ + + + diff --git a/frontend/src/views/admin/Roles.vue b/frontend/src/views/admin/Roles.vue new file mode 100644 index 0000000..5d56931 --- /dev/null +++ b/frontend/src/views/admin/Roles.vue @@ -0,0 +1,56 @@ + + + diff --git a/frontend/src/views/admin/Uploads.vue b/frontend/src/views/admin/Uploads.vue new file mode 100644 index 0000000..7cb9c37 --- /dev/null +++ b/frontend/src/views/admin/Uploads.vue @@ -0,0 +1,94 @@ + + + diff --git a/frontend/src/views/admin/Users.vue b/frontend/src/views/admin/Users.vue new file mode 100644 index 0000000..0f745a7 --- /dev/null +++ b/frontend/src/views/admin/Users.vue @@ -0,0 +1,114 @@ + + + diff --git a/frontend/vite.config.js b/frontend/vite.config.js new file mode 100644 index 0000000..bbcf80c --- /dev/null +++ b/frontend/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [vue()], +}) diff --git a/readme.md b/readme.md index e69de29..23f45ab 100644 --- a/readme.md +++ b/readme.md @@ -0,0 +1,42 @@ + # RCT Project (Refactored) + +This project has been refactored into a separated Frontend and Backend architecture. + +## Structure + +- **backend/**: Flask application (API). +- **frontend/**: Vue 3 application (UI). + +## Getting Started + +### Backend + +1. Navigate to `backend/` directory. +2. Install dependencies: + ```bash + pip install -r requirements.txt + ``` +3. Run the server: + ```bash + python run.py + ``` + The API will be available at `http://localhost:5000`. + +### Frontend + +1. Navigate to `frontend/` directory. +2. Install dependencies: + ```bash + npm install + ``` +3. Run the development server: + ```bash + npm run dev + ``` + The UI will be available at `http://localhost:5173`. + +## Features + +- **Authentication**: JWT-based login. +- **Dashboard**: View data entries. +- **Admin**: User management (more to be migrated). diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans/.DS_Store b/sans/HarmonyOS Sans/HarmonyOS_Sans/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans/.DS_Store and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Black.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Black.ttf deleted file mode 100644 index 855943b..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Black.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Bold.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Bold.ttf deleted file mode 100644 index 8ea60c1..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Bold.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Light.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Light.ttf deleted file mode 100644 index 9b67785..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Light.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Medium.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Medium.ttf deleted file mode 100644 index 9bcfaa1..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Medium.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Regular.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Regular.ttf deleted file mode 100644 index d7eccac..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Regular.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Thin.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Thin.ttf deleted file mode 100644 index 9b95ebd..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Thin.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans/LICENSE.txt b/sans/HarmonyOS Sans/HarmonyOS_Sans/LICENSE.txt deleted file mode 100644 index 211a701..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans/LICENSE.txt and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/.DS_Store b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/.DS_Store and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Black.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Black.ttf deleted file mode 100644 index 8557a9d..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Black.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Bold.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Bold.ttf deleted file mode 100644 index dc4a846..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Bold.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Light.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Light.ttf deleted file mode 100644 index 80cd373..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Light.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Medium.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Medium.ttf deleted file mode 100644 index 73d2223..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Medium.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Regular.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Regular.ttf deleted file mode 100644 index 8f9f47b..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Regular.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Thin.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Thin.ttf deleted file mode 100644 index 95c8688..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/HarmonyOS_Sans_Condensed_Thin.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/LICENSE.txt b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/LICENSE.txt deleted file mode 100644 index 211a701..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed/LICENSE.txt and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/.DS_Store b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/.DS_Store and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Black_Italic.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Black_Italic.ttf deleted file mode 100644 index 6d678f4..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Black_Italic.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Bold_Italic.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Bold_Italic.ttf deleted file mode 100644 index 168a4e0..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Bold_Italic.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Light_Italic.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Light_Italic.ttf deleted file mode 100644 index f1b71cd..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Light_Italic.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Medium_Italic.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Medium_Italic.ttf deleted file mode 100644 index 51d40c0..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Medium_Italic.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Regular_Italic.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Regular_Italic.ttf deleted file mode 100644 index 223e020..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Regular_Italic.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Thin_Italic.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Thin_Italic.ttf deleted file mode 100644 index a93bd5f..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/HarmonyOS_Sans_Condensed_Thin_Italic.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/LICENSE.txt b/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/LICENSE.txt deleted file mode 100644 index 211a701..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Condensed_Italic/LICENSE.txt and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/.DS_Store b/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/.DS_Store and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Black_Italic.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Black_Italic.ttf deleted file mode 100644 index 2bf4653..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Black_Italic.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Bold_Italic.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Bold_Italic.ttf deleted file mode 100644 index 8b4cc6f..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Bold_Italic.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Light_Italic.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Light_Italic.ttf deleted file mode 100644 index 0fe624a..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Light_Italic.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Medium_Italic.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Medium_Italic.ttf deleted file mode 100644 index 6a8e1e7..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Medium_Italic.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Regular_Italic.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Regular_Italic.ttf deleted file mode 100644 index fac9212..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Regular_Italic.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Thin_Italic.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Thin_Italic.ttf deleted file mode 100644 index a5c4e3e..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/HarmonyOS_Sans_Thin_Italic.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/LICENSE.txt b/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/LICENSE.txt deleted file mode 100644 index 211a701..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Italic/LICENSE.txt and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/.DS_Store b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/.DS_Store and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Black.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Black.ttf deleted file mode 100644 index 300fc17..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Black.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Bold.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Bold.ttf deleted file mode 100644 index da75755..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Bold.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Light.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Light.ttf deleted file mode 100644 index 685eea9..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Light.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Medium.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Medium.ttf deleted file mode 100644 index 8bb40f7..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Medium.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Regular.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Regular.ttf deleted file mode 100644 index 01e01c5..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Regular.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Thin.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Thin.ttf deleted file mode 100644 index fc7f82d..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/HarmonyOS_Sans_Naskh_Arabic_Thin.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/LICENSE.txt b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/LICENSE.txt deleted file mode 100644 index 211a701..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic/LICENSE.txt and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/.DS_Store b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/.DS_Store and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Black.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Black.ttf deleted file mode 100644 index 311cb10..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Black.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Bold.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Bold.ttf deleted file mode 100644 index 890889f..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Bold.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Light.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Light.ttf deleted file mode 100644 index 42c7476..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Light.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Medium.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Medium.ttf deleted file mode 100644 index 941afb1..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Medium.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Regular.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Regular.ttf deleted file mode 100644 index 60a409e..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Regular.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Thin.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Thin.ttf deleted file mode 100644 index 7b9dffe..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/HarmonyOS_Sans_Naskh_Arabic_UI_Thin.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/LICENSE.txt b/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/LICENSE.txt deleted file mode 100644 index 211a701..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_Naskh_Arabic_UI/LICENSE.txt and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/.DS_Store b/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/.DS_Store and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Black.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Black.ttf deleted file mode 100644 index 824b3d4..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Black.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Bold.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Bold.ttf deleted file mode 100644 index 5c925d1..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Bold.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Light.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Light.ttf deleted file mode 100644 index 8cfbc9d..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Light.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Medium.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Medium.ttf deleted file mode 100644 index 350f6a0..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Medium.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Regular.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Regular.ttf deleted file mode 100644 index aff150a..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Regular.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Thin.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Thin.ttf deleted file mode 100644 index 6a58b15..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Thin.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/LICENSE.txt b/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/LICENSE.txt deleted file mode 100644 index 211a701..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_SC/LICENSE.txt and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/.DS_Store b/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/.DS_Store and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Black.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Black.ttf deleted file mode 100644 index cc28028..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Black.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Bold.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Bold.ttf deleted file mode 100644 index e408f06..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Bold.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Light.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Light.ttf deleted file mode 100644 index 115e71d..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Light.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Medium.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Medium.ttf deleted file mode 100644 index 0268f5d..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Medium.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Regular.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Regular.ttf deleted file mode 100644 index 63f7a1b..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Regular.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Thin.ttf b/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Thin.ttf deleted file mode 100644 index 0cc309c..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/HarmonyOS_Sans_TC_Thin.ttf and /dev/null differ diff --git a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/LICENSE.txt b/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/LICENSE.txt deleted file mode 100644 index 211a701..0000000 Binary files a/sans/HarmonyOS Sans/HarmonyOS_Sans_TC/LICENSE.txt and /dev/null differ