commit 17120315283e4b0a683ff1a012b8c34bcddac4a5 Author: mula.liu Date: Sat Dec 20 19:18:59 2025 +0800 0.9.1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f67134c --- /dev/null +++ b/.gitignore @@ -0,0 +1,30 @@ +# OS files +.DS_Store +Thumbs.db +*.swp +*.swo +*~ + +# Editor +.vscode/ +.idea/ +*.sublime-* + +# Project storage (user uploaded files) +storage/ + +# Documentation files (可能是临时的) +*.md.backup +*.md.tmp + +# Logs +*.log +logs/ + +# Environment +.env +.env.local + +# Temporary files +*.tmp +*.temp diff --git a/DATABASE.md b/DATABASE.md new file mode 100644 index 0000000..411f353 --- /dev/null +++ b/DATABASE.md @@ -0,0 +1,337 @@ +# NEX Docus 数据库设计文档 + +## 数据库连接信息 +- **数据库类型**: MySQL 5.7.5+ +- **连接地址**: 10.100.51.51:3306 +- **数据库名**: nex_docus +- **字符集**: utf8mb4 +- **排序规则**: utf8mb4_unicode_ci + +## Redis 缓存 +- **连接地址**: 10.100.51.51:6379 +- **用途**: Session 存储、Token 黑名单、文件上传临时缓存 + +--- + +## 1. 用户认证相关表 + +### 1.1 用户表 (`users`) + +存储系统用户基本信息。 + +```sql +CREATE TABLE `users` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '用户ID', + `username` VARCHAR(50) NOT NULL UNIQUE COMMENT '用户名(登录账号)', + `password_hash` VARCHAR(255) NOT NULL COMMENT '密码哈希(bcrypt)', + `nickname` VARCHAR(50) DEFAULT NULL COMMENT '昵称(显示名称)', + `email` VARCHAR(100) DEFAULT NULL COMMENT '邮箱', + `phone` VARCHAR(20) DEFAULT NULL COMMENT '手机号', + `avatar` VARCHAR(255) DEFAULT NULL COMMENT '头像URL', + `status` TINYINT DEFAULT 1 COMMENT '状态:0-禁用 1-启用', + `is_superuser` TINYINT DEFAULT 0 COMMENT '是否超级管理员:0-否 1-是', + `last_login_at` DATETIME DEFAULT NULL COMMENT '最后登录时间', + `last_login_ip` VARCHAR(50) DEFAULT NULL COMMENT '最后登录IP', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + INDEX `idx_username` (`username`), + INDEX `idx_email` (`email`), + INDEX `idx_status` (`status`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户表'; +``` + +### 1.2 角色表 (`roles`) + +定义系统角色。 + +```sql +CREATE TABLE `roles` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '角色ID', + `role_name` VARCHAR(50) NOT NULL UNIQUE COMMENT '角色名称', + `role_code` VARCHAR(50) NOT NULL UNIQUE COMMENT '角色编码(如:admin, editor, viewer)', + `description` VARCHAR(255) DEFAULT NULL COMMENT '角色描述', + `status` TINYINT DEFAULT 1 COMMENT '状态:0-禁用 1-启用', + `is_system` TINYINT DEFAULT 0 COMMENT '是否系统角色:0-否 1-是(系统角色不可删除)', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + INDEX `idx_role_code` (`role_code`), + INDEX `idx_status` (`status`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色表'; +``` + +**预置角色数据**: +```sql +INSERT INTO `roles` (`role_name`, `role_code`, `description`, `is_system`) VALUES +('超级管理员', 'super_admin', '拥有系统所有权限', 1), +('项目管理员', 'project_admin', '可以创建和管理项目', 1), +('普通用户', 'user', '可以查看和编辑被授权的项目', 1), +('访客', 'guest', '只读权限', 1); +``` + +### 1.3 用户角色关联表 (`user_roles`) + +用户与角色多对多关系。 + +```sql +CREATE TABLE `user_roles` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '关联ID', + `user_id` BIGINT NOT NULL COMMENT '用户ID', + `role_id` BIGINT NOT NULL COMMENT '角色ID', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + UNIQUE KEY `uk_user_role` (`user_id`, `role_id`), + INDEX `idx_user_id` (`user_id`), + INDEX `idx_role_id` (`role_id`), + FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE CASCADE, + FOREIGN KEY (`role_id`) REFERENCES `roles`(`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户角色关联表'; +``` + +--- + +## 2. 权限与菜单管理 + +### 2.1 系统菜单表 (`system_menus`) + +定义系统功能菜单和权限点。 + +```sql +CREATE TABLE `system_menus` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '菜单ID', + `parent_id` BIGINT DEFAULT 0 COMMENT '父菜单ID(0表示根菜单)', + `menu_name` VARCHAR(50) NOT NULL COMMENT '菜单名称', + `menu_code` VARCHAR(50) NOT NULL UNIQUE COMMENT '菜单编码(权限标识)', + `menu_type` TINYINT NOT NULL COMMENT '菜单类型:1-目录 2-菜单 3-按钮/权限点', + `path` VARCHAR(255) DEFAULT NULL COMMENT '路由路径', + `component` VARCHAR(255) DEFAULT NULL COMMENT '组件路径', + `icon` VARCHAR(100) DEFAULT NULL COMMENT '图标', + `sort_order` INT DEFAULT 0 COMMENT '排序号', + `visible` TINYINT DEFAULT 1 COMMENT '是否可见:0-隐藏 1-显示', + `status` TINYINT DEFAULT 1 COMMENT '状态:0-禁用 1-启用', + `permission` VARCHAR(100) DEFAULT NULL COMMENT '权限字符串(如:project:create)', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + INDEX `idx_parent_id` (`parent_id`), + INDEX `idx_menu_code` (`menu_code`), + INDEX `idx_status` (`status`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统菜单表'; +``` + +**预置菜单数据**: +```sql +INSERT INTO `system_menus` (`id`, `parent_id`, `menu_name`, `menu_code`, `menu_type`, `path`, `icon`, `sort_order`, `permission`) VALUES +(1, 0, '项目管理', 'project', 1, '/projects', 'FolderOutlined', 1, NULL), +(2, 1, '我的项目', 'my_projects', 2, '/projects/my', NULL, 1, 'project:view'), +(3, 1, '创建项目', 'create_project', 3, NULL, NULL, 2, 'project:create'), +(4, 1, '编辑项目', 'edit_project', 3, NULL, NULL, 3, 'project:edit'), +(5, 1, '删除项目', 'delete_project', 3, NULL, NULL, 4, 'project:delete'), +(10, 0, '文档管理', 'document', 1, '/documents', 'FileTextOutlined', 2, NULL), +(11, 10, '查看文档', 'view_document', 3, NULL, NULL, 1, 'document:view'), +(12, 10, '编辑文档', 'edit_document', 3, NULL, NULL, 2, 'document:edit'), +(13, 10, '删除文档', 'delete_document', 3, NULL, NULL, 3, 'document:delete'), +(20, 0, '系统管理', 'system', 1, '/system', 'SettingOutlined', 3, NULL), +(21, 20, '用户管理', 'user_manage', 2, '/system/users', NULL, 1, 'system:user:view'), +(22, 20, '角色管理', 'role_manage', 2, '/system/roles', NULL, 2, 'system:role:view'); +``` + +### 2.2 角色菜单授权表 (`role_menus`) + +角色与菜单权限的多对多关系。 + +```sql +CREATE TABLE `role_menus` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '关联ID', + `role_id` BIGINT NOT NULL COMMENT '角色ID', + `menu_id` BIGINT NOT NULL COMMENT '菜单ID', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + UNIQUE KEY `uk_role_menu` (`role_id`, `menu_id`), + INDEX `idx_role_id` (`role_id`), + INDEX `idx_menu_id` (`menu_id`), + FOREIGN KEY (`role_id`) REFERENCES `roles`(`id`) ON DELETE CASCADE, + FOREIGN KEY (`menu_id`) REFERENCES `system_menus`(`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色菜单授权表'; +``` + +--- + +## 3. 项目与文档管理 + +### 3.1 项目表 (`projects`) + +存储项目基本信息。 + +```sql +CREATE TABLE `projects` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '项目ID', + `name` VARCHAR(100) NOT NULL COMMENT '项目名称', + `description` VARCHAR(500) DEFAULT NULL COMMENT '项目描述', + `storage_key` CHAR(36) NOT NULL COMMENT '磁盘存储UUID(物理文件夹名)', + `owner_id` BIGINT NOT NULL COMMENT '项目所有者ID', + `is_public` TINYINT DEFAULT 0 COMMENT '是否公开:0-私有 1-公开', + `is_template` TINYINT DEFAULT 0 COMMENT '是否模板项目:0-否 1-是', + `status` TINYINT DEFAULT 1 COMMENT '状态:0-归档 1-活跃', + `cover_image` VARCHAR(255) DEFAULT NULL COMMENT '封面图', + `sort_order` INT DEFAULT 0 COMMENT '排序号', + `visit_count` INT DEFAULT 0 COMMENT '访问次数', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + UNIQUE KEY `uk_storage_key` (`storage_key`), + INDEX `idx_owner_id` (`owner_id`), + INDEX `idx_name` (`name`), + INDEX `idx_status` (`status`), + INDEX `idx_created_at` (`created_at`), + FOREIGN KEY (`owner_id`) REFERENCES `users`(`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='项目表'; +``` + +### 3.2 项目成员表 (`project_members`) + +项目协作成员管理。 + +```sql +CREATE TABLE `project_members` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '成员ID', + `project_id` BIGINT NOT NULL COMMENT '项目ID', + `user_id` BIGINT NOT NULL COMMENT '用户ID', + `role` ENUM('admin', 'editor', 'viewer') DEFAULT 'viewer' COMMENT '项目角色:admin-管理员 editor-编辑者 viewer-查看者', + `invited_by` BIGINT DEFAULT NULL COMMENT '邀请人ID', + `joined_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '加入时间', + UNIQUE KEY `uk_project_user` (`project_id`, `user_id`), + INDEX `idx_project_id` (`project_id`), + INDEX `idx_user_id` (`user_id`), + INDEX `idx_role` (`role`), + FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON DELETE CASCADE, + FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE CASCADE, + FOREIGN KEY (`invited_by`) REFERENCES `users`(`id`) ON DELETE SET NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='项目成员表'; +``` + +### 3.3 文档元数据表 (`document_meta`) + +可选表,用于存储文档的额外元数据(标签、评论数等)。 + +```sql +CREATE TABLE `document_meta` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '元数据ID', + `project_id` BIGINT NOT NULL COMMENT '项目ID', + `file_path` VARCHAR(500) NOT NULL COMMENT '文件相对路径', + `title` VARCHAR(200) DEFAULT NULL COMMENT '文档标题', + `tags` VARCHAR(500) DEFAULT NULL COMMENT '标签(JSON数组)', + `author_id` BIGINT DEFAULT NULL COMMENT '作者ID', + `word_count` INT DEFAULT 0 COMMENT '字数统计', + `view_count` INT DEFAULT 0 COMMENT '浏览次数', + `last_editor_id` BIGINT DEFAULT NULL COMMENT '最后编辑者ID', + `last_edited_at` DATETIME DEFAULT NULL COMMENT '最后编辑时间', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + UNIQUE KEY `uk_project_path` (`project_id`, `file_path`), + INDEX `idx_project_id` (`project_id`), + INDEX `idx_author_id` (`author_id`), + FULLTEXT KEY `ft_title_tags` (`title`, `tags`), + FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON DELETE CASCADE, + FOREIGN KEY (`author_id`) REFERENCES `users`(`id`) ON DELETE SET NULL, + FOREIGN KEY (`last_editor_id`) REFERENCES `users`(`id`) ON DELETE SET NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文档元数据表'; +``` + +--- + +## 4. 操作日志与审计 + +### 4.1 操作日志表 (`operation_logs`) + +记录关键操作日志。 + +```sql +CREATE TABLE `operation_logs` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '日志ID', + `user_id` BIGINT DEFAULT NULL COMMENT '操作用户ID', + `username` VARCHAR(50) DEFAULT NULL COMMENT '用户名(冗余字段)', + `operation_type` VARCHAR(50) NOT NULL COMMENT '操作类型(create, update, delete等)', + `resource_type` VARCHAR(50) NOT NULL COMMENT '资源类型(project, document, user等)', + `resource_id` BIGINT DEFAULT NULL COMMENT '资源ID', + `detail` TEXT DEFAULT NULL COMMENT '操作详情(JSON)', + `ip_address` VARCHAR(50) DEFAULT NULL COMMENT 'IP地址', + `user_agent` VARCHAR(500) DEFAULT NULL COMMENT '用户代理', + `status` TINYINT DEFAULT 1 COMMENT '状态:0-失败 1-成功', + `error_message` TEXT DEFAULT NULL COMMENT '错误信息', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间', + INDEX `idx_user_id` (`user_id`), + INDEX `idx_resource` (`resource_type`, `resource_id`), + INDEX `idx_created_at` (`created_at`), + FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE SET NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='操作日志表'; +``` + +--- + +## 5. 文件存储说明 + +### 5.1 物理存储结构 + +**根目录**: `/data/nex_docus_store/` + +``` +/data/nex_docus_store/ +├── projects/ +│ ├── / # 项目文件夹(UUID命名) +│ │ ├── README.md # 项目首页 +│ │ ├── _assets/ # 资源文件夹(图片、附件) +│ │ │ ├── images/ # 图片 +│ │ │ └── files/ # 附件 +│ │ ├── / # 用户创建的文件夹 +│ │ │ └── *.md # Markdown文档 +│ │ └── ... +└── temp/ # 临时文件(上传缓存) +``` + +### 5.2 存储规则 + +1. **项目隔离**: 每个项目使用独立的 UUID 文件夹 +2. **路径映射**: `storage_key` 字段存储 UUID,数据库存储显示名称 +3. **资源管理**: 图片和附件存储在 `_assets` 目录 +4. **安全控制**: 所有文件访问必须经过权限验证 +5. **备份策略**: 可直接备份 `/data/nex_docus_store/` 目录 + +--- + +## 6. 索引优化建议 + +1. **复合索引**: + - `projects`: (`owner_id`, `status`) + - `project_members`: (`project_id`, `role`) + - `document_meta`: (`project_id`, `last_edited_at`) + +2. **覆盖索引**: 针对高频查询添加包含查询字段的复合索引 + +3. **分区表**: 当 `operation_logs` 数据量大时,可按月份分区 + +--- + +## 7. 数据库初始化脚本 + +创建完整的初始化 SQL 文件:`backend/scripts/init_database.sql` + +执行顺序: +1. 创建数据库 +2. 创建所有表 +3. 插入初始角色数据 +4. 插入初始菜单数据 +5. 创建默认管理员用户 + +--- + +## 8. 性能优化建议 + +1. **连接池配置**: SQLAlchemy 配置合理的连接池大小 +2. **查询优化**: 使用 `joinedload` 避免 N+1 查询 +3. **缓存策略**: + - 用户信息缓存(5分钟) + - 菜单权限缓存(10分钟) + - 项目列表缓存(1分钟) +4. **读写分离**: 后续可配置主从数据库 + +--- + +**文档版本**: v1.0 +**最后更新**: 2023-12-20 +**维护人**: Mula.liu diff --git a/DEPLOYE.md b/DEPLOYE.md new file mode 100644 index 0000000..a47922e --- /dev/null +++ b/DEPLOYE.md @@ -0,0 +1,17 @@ + +# 开发环境说明 +## Mysql: + + 连接字符串:10.100.51.51:3306 + + 数据库名:nex_docus + + 字符集:utf8mb4 + + 排序规则:utf8mb4_unicode_ci + + 用户名、密码: root | Unis@123 + +## Redis: + + 连接字符串:10.100.51.51:6379 + + db:1 + + 密码: Unis@123 + +## 本地开发环境: + frontend: 前端 + backend: 后端(已经创建虚拟环境venv) \ No newline at end of file diff --git a/IMPLEMENTATION_PLAN.md b/IMPLEMENTATION_PLAN.md new file mode 100644 index 0000000..f40bc70 --- /dev/null +++ b/IMPLEMENTATION_PLAN.md @@ -0,0 +1,79 @@ +# NEX Docus 实施计划 + +## Stage 1: 基础架构与数据库设计 +**Goal**: 完成数据库设计、后端项目初始化、核心数据模型创建 +**Success Criteria**: +- DATABASE.md 文档完成 +- 后端项目结构搭建完成 +- 数据库连接测试通过 +- 所有数据表创建完成 +**Tests**: +- 数据库连接测试 +- 表结构验证 +- ORM 模型单元测试 +**Status**: ✅ Completed + +--- + +## Stage 2: 用户认证与权限系统 +**Goal**: 实现完整的用户认证、角色权限、菜单管理系统 +**Success Criteria**: +- JWT 认证流程完整 +- 用户注册、登录接口正常工作 +- RBAC 权限校验中间件实现 +- 角色-权限-菜单关联关系正确 +**Tests**: +- 登录/注册接口测试 +- Token 生成和验证测试 +- 权限校验测试 +- 角色授权测试 +**Status**: ✅ Completed + +--- + +## Stage 3: 文件存储核心服务 +**Goal**: 实现安全的文件系统存储管理服务 +**Success Criteria**: +- 路径安全校验机制完成 +- 文件读写、目录树生成功能正常 +- 文件上传、下载流式传输实现 +- UUID 文件夹映射机制正常 +**Tests**: +- 路径注入攻击防御测试 +- 文件读写性能测试 +- 大文件上传测试 +- 目录树生成正确性测试 +**Status**: ✅ Completed + +--- + +## Stage 4: 项目与文档管理 API +**Goal**: 实现项目管理、文档 CRUD、协作成员管理的完整 API +**Success Criteria**: +- 项目创建/列表/详情接口完成 +- 文档 CRUD 接口完成 +- 成员邀请/权限管理接口完成 +- 图片/附件上传接口完成 +**Tests**: +- 项目 CRUD 接口测试 +- 文档操作接口测试 +- 成员权限验证测试 +- 文件上传接口测试 +**Status**: ✅ Completed + +--- + +## Stage 5: 前端整合与联调 +**Goal**: 整合现有前端代码,适配新后端 API,实现完整业务流程 +**Success Criteria**: +- 前端路由和布局整合完成 +- API 请求封装完成 +- 项目列表页面实现 +- 文档编辑页面实现 +- 用户登录注册页面实现 +**Tests**: +- 端到端业务流程测试 +- 前后端联调测试 +- 用户体验测试 +**Status**: ✅ Completed + diff --git a/PROJECT.md b/PROJECT.md new file mode 100644 index 0000000..1e02b22 --- /dev/null +++ b/PROJECT.md @@ -0,0 +1,343 @@ +这是一份为您量身定制的《NEX Docus 产品技术方案设计文档》。 + +这份文档整合了我们之前的讨论,采用了**“数据库管理权限 + 文件系统存储内容”**的混合架构,后端确定采用 **FastAPI**,以实现高性能和快速开发。 + +--- + +# NEX Docus 产品技术方案设计文档 (V1.0) + +**文档状态:** 正式版 +**最后更新:** 2023-12-20 +**技术负责人:** [Mula.liu] + +--- + +## 1. 项目概述 (Overview) + +### 1.1 项目简介 + +**NEX Docus** 是一款面向团队协作的轻量级文档管理平台。它结合了传统文档系统的权限管理便利性和本地文件存储的数据透明性。 + +### 1.2 核心设计理念 + +* **文件即真理 (File as Truth):** 所有文档内容、图片、附件直接以文件形式存储在服务器磁盘,不存入数据库 `BLOB` 字段。方便备份、迁移及后续支持 Git 版本控制。 +* **三级架构:** 用户 (User) -> 项目 (Project) -> 文档/文件夹 (File/Folder)。 +* **严格隔离:** 基于项目的物理文件夹隔离,结合数据库的 RBAC 权限控制。 + +### 1.3 功能目标 + +1. **多用户/多租户:** 支持用户注册、登录,创建私有项目。 +2. **项目协作:** 项目拥有者可邀请成员(只读/读写权限)。 +3. **文档管理:** 支持无限层级目录(物理文件夹映射),支持 Markdown 编辑与预览。 +4. **资源管理:** 支持图片、附件拖拽上传与引用。 + +--- + +## 2. 技术选型 (Tech Stack) + +### 2.1 前端 (Frontend) + +* **核心框架:** React 18+ +* **UI 组件库:** Ant Design 5.0 (企业级交互) +* **样式库:** Tailwind CSS (快速排版) +* **状态管理:** +* **Markdown:** + +### 2.2 后端 (Backend) + +* **核心框架:** **Python 3.9.6+** & **FastAPI** (高性能异步框架) +* **WSGI/ASGI:** Uvicorn +* **ORM:** SQLAlchemy (配合 Pydantic 做数据校验) +* **认证:** PyJWT (OAuth2 with Password Bearer) +* **文件操作:** `aiofiles` (异步文件读写) + `shutil` + +### 2.3 数据存储 (Storage) + +* **结构化数据:** MySQL 5.7.5 (存储用户、项目元数据、权限关系) +* **非结构化数据:** 本地文件系统 (Local File System) + +--- + +## 3. 系统架构设计 + +### 3.1 逻辑架构图 + +```mermaid +graph TD + Client[前端 React App] --> |JSON/HTTP| API[FastAPI 后端服务] + + subgraph "后端核心层" + API --> |Auth & Meta| DB[(MySQL 数据库)] + API --> |IO Stream| FS[文件管理服务] + end + + subgraph "存储层" + DB -- 存储关系/权限 --> Metadata[元数据表] + FS -- 读写 MD/图片 --> Disk[服务器磁盘 /data/projects/] + end + +``` + +### 3.2 目录存储结构 (物理设计) + +为了避免中文乱码和项目重名问题,**磁盘文件夹名使用 UUID,数据库存储映射关系**。 + +**根目录:** `/data/nex_docus_store/` + +```text +/data/nex_docus_store/ +├── projects/ +│ ├── 550e8400-e29b-41d4-a716-446655440000/ <-- Project A (UUID) +│ │ ├── README.md <-- 首页文档 +│ │ ├── _assets/ <-- 附件资源目录 +│ │ │ ├── logo.png +│ │ │ └── demo.mp4 +│ │ ├── 01-产品设计/ <-- 普通目录 +│ │ │ ├── 需求文档.md +│ │ │ └── 原型图.md +│ │ └── 02-技术方案/ +│ │ └── 架构.md +│ └── 7f8c... (Project B UUID)/ +└── temp/ <-- 临时上传缓存 + +``` + +--- + +## 4. 数据库设计 (主要表结构) + + +### 4.1 用户表 (`users`) + +```sql +CREATE TABLE `users` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY, + `username` VARCHAR(50) NOT NULL UNIQUE, + `password_hash` VARCHAR(128) NOT NULL, + `nickname` VARCHAR(50), + `avatar` VARCHAR(255), + `status` TINYINT DEFAULT 1 +); + +``` + +### 4.2 项目表 (`projects`) + +```sql +CREATE TABLE `projects` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY, + `name` VARCHAR(100) NOT NULL COMMENT '项目展示名称', + `description` VARCHAR(255), + `storage_key` CHAR(36) NOT NULL COMMENT '磁盘文件夹UUID名称', + `owner_id` BIGINT NOT NULL, + `is_public` TINYINT DEFAULT 0, + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP, + UNIQUE KEY `uk_storage` (`storage_key`) +); + +``` + +### 4.3 项目成员表 (`project_members`) + +```sql +CREATE TABLE `project_members` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY, + `project_id` BIGINT NOT NULL, + `user_id` BIGINT NOT NULL, + `role` ENUM('admin', 'editor', 'viewer') DEFAULT 'viewer', + UNIQUE KEY `uk_member` (`project_id`, `user_id`) +); + +``` + +--- + +## 5. API 接口设计 (FastAPI) + +所有接口前缀: `/api/v1` + +### 5.1 项目管理 (Project) + +* `GET /projects`: 获取我的项目列表(包括创建的和协作的)。 +* `POST /projects`: 创建新项目。 +* *逻辑:* 1. DB插入记录; 2. 生成UUID; 3. `os.makedirs` 创建物理文件夹; 4. 创建默认 `README.md`。 + + +* `POST /projects/{id}/members`: 邀请成员。 + +### 5.2 文件系统操作 (File System) - **核心** + +* **获取目录树** +* `GET /projects/{id}/tree` +* *逻辑:* 递归遍历 `storage_key` 对应的目录,忽略 `.` 开头文件,返回 AntD Tree 格式的 JSON。 + + +* **获取文件内容** +* `GET /projects/{id}/file` +* *Query Param:* `?path=01-产品设计/需求文档.md` +* *逻辑:* 读取文件文本内容返回。 + + +* **保存文件** +* `POST /projects/{id}/file` +* *Body:* `{ "path": "...", "content": "..." }` +* *逻辑:* 覆盖写入。如果路径中的文件夹不存在,自动创建。 + + +* **新建/重命名/删除** +* `POST /projects/{id}/file/operate` +* *Body:* `{ "action": "rename|delete|create_dir", "path": "...", "new_path": "..." }` + + + +### 5.3 资源服务 (Assets) + +* `POST /projects/{id}/upload`: 上传图片 -> 存入 `_assets` -> 返回相对路径。 +* `GET /projects/{id}/assets/{filename}`: 流式返回图片数据 (StreamResponse)。 +* *注意:* 必须鉴权,防止直接通过 URL 盗链访问私有项目图片。 + + + +--- + +## 6. 关键模块实现逻辑 (Python 代码示意) + +### 6.1 路径安全检查 (Security Util) + +这是文件存储系统最重要的部分,防止 `../../etc/passwd` 攻击。 + +```python +import os +from fastapi import HTTPException + +BASE_STORE_PATH = "/data/nex_docus_store/projects" + +def get_secure_path(project_uuid: str, relative_path: str): + # 1. 构建项目根目录绝对路径 + project_root = os.path.abspath(os.path.join(BASE_STORE_PATH, project_uuid)) + + # 2. 构建目标文件绝对路径 + target_path = os.path.abspath(os.path.join(project_root, relative_path)) + + # 3. 核心校验: 目标路径必须以项目根目录开头 + if not target_path.startswith(project_root): + raise HTTPException(status_code=403, detail="非法路径访问") + + return target_path + +``` + +### 6.2 目录树生成 (Tree Generator) + +```python +import os + +def generate_tree(path, relative_root=""): + tree = [] + # 按名称排序,文件夹在前 + items = sorted(os.listdir(path), key=lambda x: (not os.path.isdir(os.path.join(path, x)), x)) + + for item in items: + if item.startswith('.'): continue # 跳过隐藏文件 + + full_path = os.path.join(path, item) + rel_path = os.path.join(relative_root, item) + + node = { + "title": item, + "key": rel_path, # 前端用这个路径请求文件 + } + + if os.path.isdir(full_path): + node["isLeaf"] = False + node["children"] = generate_tree(full_path, rel_path) + else: + node["isLeaf"] = True + + tree.append(node) + return tree + +``` + +--- + +## 7. 前端实现细节 (React) + +### 7.1 编辑器组件 + +建议封装一个 `FileEditor` 组件。 + +```jsx +// 伪代码 +const FileEditor = ({ projectId, filePath }) => { + const [content, setContent] = useState(''); + + // 1. 加载文件 + useEffect(() => { + if(!filePath) return; + fetch(`/api/v1/projects/${projectId}/file?path=${filePath}`) + .then(res => res.text()) + .then(text => setContent(text)); + }, [filePath]); + + // 2. 自动保存/快捷键保存 + const handleSave = () => { + post(`/api/v1/projects/${projectId}/file`, { path: filePath, content }); + }; + + return ( +
+ + { + // 调用后端上传接口,返回 markdown 图片语法 + // ![img](_assets/xxx.png) + }} + /> +
+ ); +} + +``` + +--- + +## 8. 开发路线图 (Roadmap) + +### 第一阶段:MVP (最小可行性产品) + +1. **后端:** 搭建 FastAPI 基础框架,连接 MySQL。 +2. **后端:** 实现 `StorageManager`,跑通文件读写和路径安全校验。 +3. **API:** 实现“项目列表”、“目录树获取”、“读取文档”三个接口。 +4. **前端:** 首页展示项目列表 -> 点击进入文档页 -> 左侧树展示目录 -> 右侧展示 Markdown。 +5. **目标:** 能看、能跑通流程,暂不支持在线编辑。 + +### 第二阶段:编辑与协作 + +1. **API:** 实现文件保存、新建文件/文件夹接口。 +2. **前端:** 集成编辑器,实现 Cmd+S 保存。 +3. **功能:** 图片上传接口实现。 + +### 第三阶段:权限与优化 + +1. **后端:** 完善 `Dependency` 注入,实现严格的 API 权限校验。 +2. **前端:** 添加“成员管理”模态框。 +3. **系统:** 增加 Nginx 缓存策略,提升静态资源加载速度。 + +--- + +## 9. 部署架构建议 + +```text +Server (Linux) +├── Nginx (80/443) +│ ├── /api/ --> Proxy Pass to FastAPI (Port 8000) +│ └── / --> Static Files (React Build) +├── Docker Container: FastAPI App +└── Docker Container: MySQL 5.7 + +``` + +--- diff --git a/QUICKSTART.md b/QUICKSTART.md new file mode 100644 index 0000000..66b737f --- /dev/null +++ b/QUICKSTART.md @@ -0,0 +1,230 @@ +# NEX Docus 快速启动指南 + +欢迎使用 NEX Docus!这是一个完整的快速启动指南,帮助你在 5 分钟内运行整个项目。 + +--- + +## 📋 前置要求 + +确保已安装以下软件: + +- **Python**: 3.9.6+ +- **Node.js**: 16+ +- **MySQL**: 5.7.5+ +- **Redis**: 最新稳定版 +- **Git**: 最新版本 + +--- + +## 🚀 快速启动(3 步) + +### Step 1: 初始化数据库 + +```bash +# 1. 连接到 MySQL +mysql -h10.100.51.51 -uroot -pUnis@321 + +# 2. 执行初始化脚本 +source backend/scripts/init_database.sql + +# 或使用命令行直接执行 +mysql -h10.100.51.51 -uroot -pUnis@321 < backend/scripts/init_database.sql +``` + +### Step 2: 启动后端服务 + +```bash +# 1. 进入后端目录 +cd backend + +# 2. 激活虚拟环境 +source venv/bin/activate # macOS/Linux +# 或 +venv\Scripts\activate # Windows + +# 3. 安装依赖 +pip install -r requirements.txt + +# 4. 启动服务 +python main.py +``` + +后端服务将在 http://localhost:8000 启动 + +### Step 3: 启动前端服务 + +```bash +# 1. 打开新终端,进入前端目录 +cd forntend + +# 2. 安装依赖 +npm install +# 或 +pnpm install + +# 3. 启动开发服务器 +npm run dev +``` + +前端应用将在 http://localhost:5173 启动 + +--- + +## 🎉 开始使用 + +### 1. 登录系统 + +访问 http://localhost:5173,使用默认管理员账号登录: + +- **用户名**: `admin` +- **密码**: `admin123` + +### 2. 创建项目 + +- 点击「创建项目」按钮 +- 填写项目名称和描述 +- 提交创建 + +### 3. 编辑文档 + +- 点击项目卡片进入项目 +- 在左侧目录树中选择文件 +- 在右侧编辑器中编辑 Markdown +- 点击「保存」按钮保存更改 + +--- + +## 📚 目录结构 + +``` +NEX Docus/ +├── backend/ # 后端服务(FastAPI) +│ ├── app/ +│ │ ├── api/ # API 路由 +│ │ ├── core/ # 核心配置 +│ │ ├── models/ # 数据库模型 +│ │ ├── schemas/ # Pydantic Schemas +│ │ ├── services/ # 业务逻辑 +│ │ └── middleware/ # 中间件 +│ ├── scripts/ # 脚本文件 +│ ├── main.py # 应用入口 +│ └── requirements.txt # 依赖包 +│ +├── forntend/ # 前端应用(React + Vite) +│ ├── src/ +│ │ ├── api/ # API 请求 +│ │ ├── components/ # 通用组件 +│ │ ├── pages/ # 页面组件 +│ │ ├── stores/ # 状态管理 +│ │ └── utils/ # 工具函数 +│ ├── package.json +│ └── vite.config.js +│ +├── DATABASE.md # 数据库设计文档 +├── IMPLEMENTATION_PLAN.md # 实施计划 +├── PROJECT.md # 项目技术方案 +└── DEPLOYE.md # 部署配置 +``` + +--- + +## 🔧 常见问题 + +### 1. 后端启动失败 + +**问题**: `ModuleNotFoundError: No module named 'xxx'` + +**解决**: +```bash +cd backend +source venv/bin/activate +pip install -r requirements.txt +``` + +### 2. 数据库连接失败 + +**问题**: `Can't connect to MySQL server` + +**解决**: +- 检查 `backend/.env` 中的数据库配置 +- 确认 MySQL 服务已启动 +- 测试数据库连接: + ```bash + mysql -h10.100.51.51 -uroot -pUnis@321 -e "SELECT 1" + ``` + +### 3. 前端请求 404 + +**问题**: API 请求返回 404 + +**解决**: +- 确认后端服务已启动 +- 检查 `forntend/.env` 中的 API 地址配置 +- 检查浏览器控制台的网络请求 + +### 4. 文件上传/保存失败 + +**问题**: 文件操作失败 + +**解决**: +- 确保文件存储目录存在并有写权限: + ```bash + mkdir -p /data/nex_docus_store/{projects,temp} + chmod 755 /data/nex_docus_store + ``` +- 或修改 `backend/.env` 中的存储路径为当前用户有权限的目录 + +--- + +## 📖 API 文档 + +启动后端服务后,访问以下地址查看 API 文档: + +- **Swagger UI**: http://localhost:8000/docs +- **ReDoc**: http://localhost:8000/redoc + +--- + +## 🔐 安全提醒 + +⚠️ **生产环境部署前请务必修改:** + +1. 修改默认管理员密码 +2. 修改 `backend/.env` 中的 `SECRET_KEY` +3. 配置 HTTPS +4. 限制 CORS 允许的域名 +5. 配置防火墙规则 + +--- + +## 📞 技术支持 + +如果遇到问题,请查看: + +1. **PROJECT.md** - 完整技术方案 +2. **DATABASE.md** - 数据库设计文档 +3. **IMPLEMENTATION_PLAN.md** - 实施计划 + +或联系技术负责人:Mula.liu + +--- + +## ⚡️ 快速命令参考 + +```bash +# 后端 +cd backend && source venv/bin/activate && python main.py + +# 前端 +cd forntend && npm run dev + +# 数据库初始化 +mysql -h10.100.51.51 -uroot -pUnis@321 < backend/scripts/init_database.sql + +# 查看日志 +tail -f backend/logs/app.log +``` + +--- + +**祝你使用愉快!🎊** diff --git a/README.md b/README.md new file mode 100644 index 0000000..8a8c486 --- /dev/null +++ b/README.md @@ -0,0 +1,267 @@ +# NEX Docus 文档管理平台 + +
+ +一个轻量级、高性能的团队协作文档管理平台 + +[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) +[![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/) +[![React](https://img.shields.io/badge/react-18+-blue.svg)](https://reactjs.org/) +[![FastAPI](https://img.shields.io/badge/fastapi-0.109+-green.svg)](https://fastapi.tiangolo.com/) + +
+ +--- + +## ✨ 特性 + +- 🚀 **高性能**: FastAPI 异步后端 + React 18 前端 +- 📁 **文件存储**: 数据库管理权限 + 文件系统存储内容 +- 🔐 **权限控制**: 完整的 RBAC 权限体系 +- 📝 **Markdown 编辑**: 实时预览、图片上传 +- 👥 **团队协作**: 项目成员管理、角色分配 +- 🌲 **目录树**: 无限层级目录支持 +- 💾 **数据安全**: 文件即真理、易于备份和迁移 + +--- + +## 🏗️ 技术架构 + +### 后端技术栈 +- **框架**: FastAPI (Python 3.9+) +- **ORM**: SQLAlchemy 2.0 (异步) +- **数据库**: MySQL 5.7.5+ +- **缓存**: Redis +- **认证**: JWT (PyJWT) +- **文件**: aiofiles (异步 I/O) + +### 前端技术栈 +- **框架**: React 18 +- **构建工具**: Vite +- **UI 组件**: Ant Design 5 +- **路由**: React Router v6 +- **状态管理**: Zustand +- **Markdown**: @uiw/react-md-editor +- **样式**: Tailwind CSS + +--- + +## 📦 项目结构 + +``` +NEX Docus/ +├── backend/ # FastAPI 后端服务 +│ ├── app/ +│ │ ├── api/v1/ # API 路由(v1) +│ │ ├── core/ # 核心配置 +│ │ ├── models/ # 数据库模型 +│ │ ├── schemas/ # Pydantic Schemas +│ │ ├── services/ # 业务逻辑服务 +│ │ └── middleware/ # 中间件 +│ ├── scripts/ # 初始化脚本 +│ └── main.py # 应用入口 +│ +├── forntend/ # React 前端应用 +│ ├── src/ +│ │ ├── api/ # API 封装 +│ │ ├── components/ # 通用组件 +│ │ ├── pages/ # 页面组件 +│ │ ├── stores/ # 状态管理 +│ │ └── utils/ # 工具函数 +│ └── package.json +│ +├── DATABASE.md # 数据库设计文档 +├── PROJECT.md # 技术方案文档 +├── QUICKSTART.md # 快速启动指南 +└── IMPLEMENTATION_PLAN.md # 实施计划 +``` + +--- + +## 🚀 快速开始 + +### 前置要求 + +- Python 3.9.6+ +- Node.js 16+ +- MySQL 5.7.5+ +- Redis (最新版) + +### 1. 初始化数据库 + +```bash +mysql -h10.100.51.51 -uroot -pUnis@321 < backend/scripts/init_database.sql +``` + +### 2. 启动后端 + +```bash +cd backend +source venv/bin/activate +pip install -r requirements.txt +python main.py +``` + +后端将运行在 http://localhost:8000 + +### 3. 启动前端 + +```bash +cd forntend +npm install +npm run dev +``` + +前端将运行在 http://localhost:5173 + +### 4. 登录使用 + +- **用户名**: `admin` +- **密码**: `admin123` + +--- + +## 📖 核心功能 + +### 用户认证 +- ✅ 用户注册/登录 +- ✅ JWT Token 认证 +- ✅ 密码加密存储 +- ✅ 权限角色管理 + +### 项目管理 +- ✅ 创建/编辑/删除项目 +- ✅ 项目成员管理 +- ✅ 访问权限控制 +- ✅ 项目归档 + +### 文档编辑 +- ✅ Markdown 实时预览 +- ✅ 无限层级目录 +- ✅ 文件/文件夹操作 +- ✅ 图片/附件上传 +- ✅ 自动保存 + +--- + +## 🗂️ 数据库设计 + +### 核心表结构 + +- `users` - 用户表 +- `roles` - 角色表 +- `user_roles` - 用户角色关联 +- `system_menus` - 系统菜单 +- `role_menus` - 角色菜单授权 +- `projects` - 项目表 +- `project_members` - 项目成员 +- `document_meta` - 文档元数据(可选) +- `operation_logs` - 操作日志 + +详细设计请查看 [DATABASE.md](DATABASE.md) + +--- + +## 🔒 安全特性 + +- ✅ **密码加密**: bcrypt 加密存储 +- ✅ **JWT 认证**: 访问令牌机制 +- ✅ **路径安全**: 防止路径穿越攻击 +- ✅ **权限校验**: 基于角色的访问控制 +- ✅ **SQL 注入防护**: ORM 自动防护 +- ✅ **CORS 配置**: 跨域请求控制 + +--- + +## 📋 API 文档 + +启动后端后访问: + +- **Swagger UI**: http://localhost:8000/docs +- **ReDoc**: http://localhost:8000/redoc + +### 主要接口 + +**认证** +- `POST /api/v1/auth/register` - 注册 +- `POST /api/v1/auth/login` - 登录 +- `GET /api/v1/auth/me` - 获取当前用户 + +**项目** +- `GET /api/v1/projects/` - 项目列表 +- `POST /api/v1/projects/` - 创建项目 +- `GET /api/v1/projects/{id}` - 项目详情 +- `PUT /api/v1/projects/{id}` - 更新项目 +- `DELETE /api/v1/projects/{id}` - 删除项目 + +**文件** +- `GET /api/v1/files/{project_id}/tree` - 目录树 +- `GET /api/v1/files/{project_id}/file` - 文件内容 +- `POST /api/v1/files/{project_id}/file` - 保存文件 +- `POST /api/v1/files/{project_id}/upload` - 上传文件 + +--- + +## 🛠️ 开发指南 + +### 后端开发 + +1. 添加新的数据模型到 `backend/app/models/` +2. 定义 Pydantic Schema 到 `backend/app/schemas/` +3. 在 `backend/app/api/v1/` 创建路由 +4. 实现业务逻辑到 `backend/app/services/` + +### 前端开发 + +1. 在 `forntend/src/api/` 封装 API 请求 +2. 在 `forntend/src/pages/` 创建页面组件 +3. 在 `forntend/src/App.jsx` 添加路由 +4. 使用 Zustand 管理全局状态 + +--- + +## 📝 文档 + +- [技术方案文档](PROJECT.md) - 完整的技术设计方案 +- [数据库设计](DATABASE.md) - 数据库表结构设计 +- [快速启动指南](QUICKSTART.md) - 5分钟快速上手 +- [实施计划](IMPLEMENTATION_PLAN.md) - 分阶段实施计划 + +--- + +## 🔄 版本历史 + +### v1.0.0 (2023-12-20) + +- ✅ 完整的用户认证系统 +- ✅ 项目管理功能 +- ✅ Markdown 文档编辑 +- ✅ 文件系统管理 +- ✅ 权限控制体系 +- ✅ 团队协作功能 + +--- + +## 📄 许可证 + +Copyright © 2023 Mula.liu + +--- + +## 🙏 致谢 + +感谢以下开源项目: + +- [FastAPI](https://fastapi.tiangolo.com/) +- [React](https://reactjs.org/) +- [Ant Design](https://ant.design/) +- [SQLAlchemy](https://www.sqlalchemy.org/) +- [Vite](https://vitejs.dev/) + +--- + +
+ +**Made with ❤️ by Mula.liu** + +
diff --git a/backend/.gitignore b/backend/.gitignore new file mode 100644 index 0000000..97af647 --- /dev/null +++ b/backend/.gitignore @@ -0,0 +1,61 @@ +# Byte-compiled / optimized / DLL files +*.pyc +__pycache__/ +*.py[cod] +*$py.class +*.so + +# Python +.Python +env/ +venv/ +ENV/ +.venv +pip-log.txt +pip-delete-this-directory.txt + +# Testing +.pytest_cache/ +.coverage +htmlcov/ +.tox/ +.nox/ + +# Build +dist/ +build/ +*.egg-info/ +*.egg + +# Environments +.env +.env.local +.env.*.local + +# Logs +logs/ +*.log + +# Database +/data/ +*.db +*.sqlite +*.sqlite3 + +# IDEs +.idea/ +.vscode/ +*.swp +*.swo +*~ +.project +.pydevproject + +# OS +.DS_Store +Thumbs.db + +# Project specific +storage/ +temp/ +uploads/ diff --git a/backend/README.md b/backend/README.md new file mode 100644 index 0000000..86f0af1 --- /dev/null +++ b/backend/README.md @@ -0,0 +1,158 @@ +# NEX Docus Backend + +NEX Docus 后端服务 - 基于 FastAPI 构建的高性能文档管理平台。 + +## 技术栈 + +- **框架**: FastAPI 0.109+ +- **数据库**: MySQL 5.7.5+ (通过 SQLAlchemy 2.0 异步 ORM) +- **缓存**: Redis +- **认证**: JWT (python-jose) +- **密码加密**: bcrypt (passlib) +- **文件处理**: aiofiles (异步文件 I/O) + +## 项目结构 + +``` +backend/ +├── app/ +│ ├── api/ +│ │ └── v1/ # API 路由(v1 版本) +│ │ ├── auth.py # 用户认证 +│ │ ├── projects.py # 项目管理 +│ │ └── files.py # 文件系统 +│ ├── core/ # 核心配置 +│ │ ├── config.py # 应用配置 +│ │ ├── database.py # 数据库连接 +│ │ ├── security.py # 安全工具 +│ │ └── deps.py # 依赖注入 +│ ├── models/ # 数据库模型 +│ ├── schemas/ # Pydantic Schemas +│ ├── services/ # 业务逻辑 +│ ├── middleware/ # 中间件 +│ └── utils/ # 工具函数 +├── scripts/ # 脚本文件 +│ ├── init_database.sql # 数据库初始化 SQL +│ └── init_db.py # 数据库初始化 Python 脚本 +├── tests/ # 测试文件 +├── main.py # 应用入口 +├── requirements.txt # 依赖包 +└── .env # 环境配置 + +``` + +## 快速开始 + +### 1. 安装依赖 + +```bash +# 激活虚拟环境 +source venv/bin/activate # macOS/Linux +# 或 +venv\Scripts\activate # Windows + +# 安装依赖 +pip install -r requirements.txt +``` + +### 2. 配置环境变量 + +编辑 `.env` 文件,配置数据库连接等信息。 + +### 3. 初始化数据库 + +```bash +# 方式一:使用 SQL 脚本(推荐) +mysql -h10.100.51.51 -uroot -pUnis@321 < scripts/init_database.sql + +# 方式二:使用 Python 脚本(仅创建表结构) +python scripts/init_db.py +``` + +### 4. 启动服务 + +```bash +# 开发模式(自动重载) +python main.py + +# 或使用 uvicorn +uvicorn main:app --reload --host 0.0.0.0 --port 8000 +``` + +服务启动后,访问: +- API 文档: http://localhost:8000/docs +- 健康检查: http://localhost:8000/health + +## API 接口 + +### 认证相关 (`/api/v1/auth`) + +- `POST /register` - 用户注册 +- `POST /login` - 用户登录 +- `GET /me` - 获取当前用户信息 +- `POST /change-password` - 修改密码 + +### 项目管理 (`/api/v1/projects`) + +- `GET /` - 获取我的项目列表 +- `POST /` - 创建新项目 +- `GET /{project_id}` - 获取项目详情 +- `PUT /{project_id}` - 更新项目信息 +- `DELETE /{project_id}` - 删除项目(归档) +- `GET /{project_id}/members` - 获取项目成员 +- `POST /{project_id}/members` - 添加项目成员 + +### 文件系统 (`/api/v1/files`) + +- `GET /{project_id}/tree` - 获取项目目录树 +- `GET /{project_id}/file?path=xxx` - 获取文件内容 +- `POST /{project_id}/file` - 保存文件内容 +- `POST /{project_id}/file/operate` - 文件操作(重命名/删除/创建) +- `POST /{project_id}/upload` - 上传文件(图片/附件) +- `GET /{project_id}/assets/{subfolder}/{filename}` - 获取资源文件 + +## 默认账号 + +初始化数据库后,会创建默认管理员账号: + +- 用户名: `admin` +- 密码: `admin123` + +**⚠️ 生产环境请立即修改默认密码!** + +## 开发指南 + +### 代码风格 + +遵循 PEP 8 代码规范。 + +### 添加新的 API 端点 + +1. 在 `app/api/v1/` 下创建新的路由文件 +2. 在 `app/api/v1/__init__.py` 中注册路由 +3. 在 `app/schemas/` 中定义 Pydantic Schema +4. 在 `app/services/` 中实现业务逻辑 + +### 数据库迁移 + +使用 Alembic 进行数据库迁移: + +```bash +# 生成迁移脚本 +alembic revision --autogenerate -m "描述" + +# 执行迁移 +alembic upgrade head +``` + +## 安全说明 + +1. **路径安全**: 所有文件系统操作都经过路径安全检查,防止路径穿越攻击 +2. **认证鉴权**: 使用 JWT Token 认证,所有需要登录的接口都受保护 +3. **权限控制**: 实现了项目级别的权限控制(owner/admin/editor/viewer) +4. **密码加密**: 使用 bcrypt 加密存储密码 +5. **SQL 注入**: 使用 SQLAlchemy ORM,自动防止 SQL 注入 + +## 许可证 + +Copyright © 2023 Mula.liu diff --git a/backend/app/api/v1/__init__.py b/backend/app/api/v1/__init__.py new file mode 100644 index 0000000..ef6281a --- /dev/null +++ b/backend/app/api/v1/__init__.py @@ -0,0 +1,15 @@ +""" +API v1 路由汇总 +""" +from fastapi import APIRouter +from app.api.v1 import auth, projects, files, menu, dashboard, preview + +api_router = APIRouter() + +# 注册子路由 +api_router.include_router(auth.router, prefix="/auth", tags=["认证"]) +api_router.include_router(projects.router, prefix="/projects", tags=["项目管理"]) +api_router.include_router(files.router, prefix="/files", tags=["文件系统"]) +api_router.include_router(menu.router, prefix="/menu", tags=["权限菜单"]) +api_router.include_router(dashboard.router, prefix="/dashboard", tags=["管理员仪表盘"]) +api_router.include_router(preview.router, prefix="/preview", tags=["项目预览"]) diff --git a/backend/app/api/v1/auth.py b/backend/app/api/v1/auth.py new file mode 100644 index 0000000..5ba8c4b --- /dev/null +++ b/backend/app/api/v1/auth.py @@ -0,0 +1,165 @@ +""" +用户认证相关 API +""" +from fastapi import APIRouter, Depends, HTTPException, status, Request +from sqlalchemy.ext.asyncio import AsyncSession +from sqlalchemy import select +from datetime import datetime +import logging + +from app.core.database import get_db +from app.core.security import verify_password, get_password_hash, create_access_token +from app.core.deps import get_current_user +from app.core.redis_client import TokenCache +from app.models.user import User +from app.models.role import Role, UserRole +from app.schemas.user import UserCreate, UserLogin, UserResponse, Token, ChangePassword, UserUpdate +from app.schemas.response import success_response, error_response + +logger = logging.getLogger(__name__) +router = APIRouter() + + +@router.post("/register", response_model=dict) +async def register(user_in: UserCreate, db: AsyncSession = Depends(get_db)): + """用户注册""" + # 检查用户名是否存在 + result = await db.execute(select(User).where(User.username == user_in.username)) + existing_user = result.scalar_one_or_none() + if existing_user: + raise HTTPException(status_code=400, detail="用户名已存在") + + # 检查邮箱是否存在 + if user_in.email: + result = await db.execute(select(User).where(User.email == user_in.email)) + existing_email = result.scalar_one_or_none() + if existing_email: + raise HTTPException(status_code=400, detail="邮箱已被注册") + + # 创建用户 + db_user = User( + username=user_in.username, + password_hash=get_password_hash(user_in.password), + nickname=user_in.nickname or user_in.username, + email=user_in.email, + phone=user_in.phone, + status=1, + ) + db.add(db_user) + await db.commit() + await db.refresh(db_user) + + # 分配默认角色(普通用户) + result = await db.execute(select(Role).where(Role.role_code == "user")) + default_role = result.scalar_one_or_none() + if default_role: + user_role = UserRole(user_id=db_user.id, role_id=default_role.id) + db.add(user_role) + await db.commit() + + return success_response( + data={"user_id": db_user.id, "username": db_user.username}, + message="注册成功" + ) + + +@router.post("/login", response_model=dict) +async def login(user_in: UserLogin, db: AsyncSession = Depends(get_db)): + """用户登录""" + # 查询用户 + result = await db.execute(select(User).where(User.username == user_in.username)) + user = result.scalar_one_or_none() + + if not user or not verify_password(user_in.password, user.password_hash): + raise HTTPException(status_code=401, detail="用户名或密码错误") + + if user.status != 1: + raise HTTPException(status_code=403, detail="用户已被禁用") + + # 更新最后登录时间 + user.last_login_at = datetime.utcnow() + await db.commit() + + # 生成 Token(sub 必须是字符串) + access_token = create_access_token(data={"sub": str(user.id)}) + + # 保存 token 到 Redis(24小时过期) + await TokenCache.save_token(user.id, access_token, expire_seconds=86400) + + # 返回用户信息和 Token + user_data = UserResponse.from_orm(user) + token_data = Token(access_token=access_token, user=user_data) + + return success_response(data=token_data.dict(), message="登录成功") + + +@router.get("/me", response_model=dict) +async def get_current_user_info(current_user: User = Depends(get_current_user)): + """获取当前用户信息""" + user_data = UserResponse.from_orm(current_user) + return success_response(data=user_data.dict()) + + +@router.put("/profile", response_model=dict) +async def update_profile( + profile_in: UserUpdate, + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """更新用户资料""" + # 检查邮箱是否已被其他用户使用 + if profile_in.email: + result = await db.execute( + select(User).where(User.email == profile_in.email, User.id != current_user.id) + ) + existing_email = result.scalar_one_or_none() + if existing_email: + raise HTTPException(status_code=400, detail="邮箱已被其他用户使用") + + # 更新字段 + update_data = profile_in.dict(exclude_unset=True) + for field, value in update_data.items(): + setattr(current_user, field, value) + + await db.commit() + await db.refresh(current_user) + + user_data = UserResponse.from_orm(current_user) + return success_response(data=user_data.dict(), message="资料更新成功") + + +@router.post("/change-password", response_model=dict) +async def change_password( + password_in: ChangePassword, + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """修改密码""" + # 验证旧密码 + if not verify_password(password_in.old_password, current_user.password_hash): + raise HTTPException(status_code=400, detail="旧密码错误") + + # 更新密码 + current_user.password_hash = get_password_hash(password_in.new_password) + await db.commit() + + # 密码修改后,删除用户所有 token(强制重新登录) + await TokenCache.delete_user_all_tokens(current_user.id) + + return success_response(message="密码修改成功,请重新登录") + + +@router.post("/logout", response_model=dict) +async def logout( + request: Request, + current_user: User = Depends(get_current_user) +): + """退出登录""" + # 从请求状态中获取 token(已在 get_current_user 中保存) + token = getattr(request.state, 'token', None) + + if token: + await TokenCache.delete_token(token) + logger.info(f"User {current_user.username} logged out") + + return success_response(message="退出成功") diff --git a/backend/app/api/v1/dashboard.py b/backend/app/api/v1/dashboard.py new file mode 100644 index 0000000..cfc2dec --- /dev/null +++ b/backend/app/api/v1/dashboard.py @@ -0,0 +1,177 @@ +""" +管理员仪表盘相关 API +""" +from fastapi import APIRouter, Depends, HTTPException +from sqlalchemy.ext.asyncio import AsyncSession +from sqlalchemy import select, func +import os +import glob + +from app.core.database import get_db +from app.core.deps import get_current_user +from app.core.config import settings +from app.models.user import User +from app.models.project import Project, ProjectMember +from app.schemas.response import success_response + +router = APIRouter() + + +@router.get("/stats", response_model=dict) +async def get_dashboard_stats( + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """获取仪表盘统计数据(仅管理员)""" + + # 检查是否为超级管理员 + if current_user.is_superuser != 1: + raise HTTPException(status_code=403, detail="仅管理员可访问") + + # 统计用户数 + user_count_result = await db.execute(select(func.count(User.id))) + user_count = user_count_result.scalar() + + # 统计项目数 + project_count_result = await db.execute(select(func.count(Project.id))) + project_count = project_count_result.scalar() + + # 统计文档数(所有项目中的 .md 文件) + document_count = 0 + if os.path.exists(settings.PROJECTS_PATH): + for project_dir in os.listdir(settings.PROJECTS_PATH): + project_path = os.path.join(settings.PROJECTS_PATH, project_dir) + if os.path.isdir(project_path): + md_files = glob.glob(os.path.join(project_path, "**/*.md"), recursive=True) + document_count += len(md_files) + + # 获取最近创建的用户 + recent_users_result = await db.execute( + select(User) + .order_by(User.created_at.desc()) + .limit(5) + ) + recent_users = recent_users_result.scalars().all() + recent_users_data = [ + { + "id": user.id, + "username": user.username, + "email": user.email, + "created_at": user.created_at.isoformat() if user.created_at else None, + } + for user in recent_users + ] + + # 获取最近创建的项目(包含所有者信息) + recent_projects_result = await db.execute( + select(Project, User) + .join(User, Project.owner_id == User.id) + .order_by(Project.created_at.desc()) + .limit(5) + ) + recent_projects_rows = recent_projects_result.all() + recent_projects_data = [ + { + "id": project.id, + "name": project.name, + "description": project.description, + "owner_name": owner.username, + "created_at": project.created_at.isoformat() if project.created_at else None, + } + for project, owner in recent_projects_rows + ] + + return success_response( + data={ + "stats": { + "user_count": user_count, + "project_count": project_count, + "document_count": document_count, + }, + "recent_users": recent_users_data, + "recent_projects": recent_projects_data, + } + ) + + +@router.get("/personal-stats", response_model=dict) +async def get_personal_stats( + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """获取个人桌面统计数据""" + + # 统计个人项目数 + personal_projects_count_result = await db.execute( + select(func.count(Project.id)).where(Project.owner_id == current_user.id) + ) + personal_projects_count = personal_projects_count_result.scalar() + + # 统计个人文档数(个人项目中的 .md 文件) + document_count = 0 + personal_projects_result = await db.execute( + select(Project).where(Project.owner_id == current_user.id) + ) + personal_projects = personal_projects_result.scalars().all() + + for project in personal_projects: + project_path = os.path.join(settings.PROJECTS_PATH, project.storage_key) + if os.path.exists(project_path) and os.path.isdir(project_path): + md_files = glob.glob(os.path.join(project_path, "**/*.md"), recursive=True) + document_count += len(md_files) + + # 获取最近的个人项目 + recent_personal_projects_result = await db.execute( + select(Project) + .where(Project.owner_id == current_user.id) + .order_by(Project.created_at.desc()) + .limit(5) + ) + recent_personal_projects = recent_personal_projects_result.scalars().all() + recent_personal_projects_data = [ + { + "id": project.id, + "name": project.name, + "description": project.description, + "created_at": project.created_at.isoformat() if project.created_at else None, + } + for project in recent_personal_projects + ] + + # 获取最近的分享项目(从 project_members 表) + recent_shared_projects_result = await db.execute( + select(Project, ProjectMember) + .join(ProjectMember, Project.id == ProjectMember.project_id) + .where(ProjectMember.user_id == current_user.id) + .where(Project.owner_id != current_user.id) + .order_by(ProjectMember.joined_at.desc()) + .limit(5) + ) + recent_shared_projects_rows = recent_shared_projects_result.all() + recent_shared_projects_data = [ + { + "id": project.id, + "name": project.name, + "description": project.description, + "role": member.role, + "joined_at": member.joined_at.isoformat() if member.joined_at else None, + } + for project, member in recent_shared_projects_rows + ] + + return success_response( + data={ + "user_info": { + "id": current_user.id, + "username": current_user.username, + "email": current_user.email, + "created_at": current_user.created_at.isoformat() if current_user.created_at else None, + }, + "stats": { + "personal_projects_count": personal_projects_count, + "document_count": document_count, + }, + "recent_personal_projects": recent_personal_projects_data, + "recent_shared_projects": recent_shared_projects_data, + } + ) diff --git a/backend/app/api/v1/files.py b/backend/app/api/v1/files.py new file mode 100644 index 0000000..f98073b --- /dev/null +++ b/backend/app/api/v1/files.py @@ -0,0 +1,310 @@ +""" +文件系统操作相关 API +""" +from fastapi import APIRouter, Depends, HTTPException, UploadFile, File +from fastapi.responses import StreamingResponse, FileResponse +from sqlalchemy.ext.asyncio import AsyncSession +from sqlalchemy import select +from typing import List +import os +import zipfile +import io +from pathlib import Path + +from app.core.database import get_db +from app.core.deps import get_current_user, get_user_from_token_or_query +from app.models.user import User +from app.models.project import Project, ProjectMember +from app.schemas.file import ( + FileTreeNode, + FileSaveRequest, + FileOperateRequest, + FileUploadResponse, +) +from app.schemas.response import success_response +from app.services.storage import storage_service + +router = APIRouter() + + +async def check_project_access( + project_id: int, + current_user: User, + db: AsyncSession, + require_write: bool = False +): + """检查项目访问权限""" + # 查询项目 + result = await db.execute(select(Project).where(Project.id == project_id)) + project = result.scalar_one_or_none() + + if not project: + raise HTTPException(status_code=404, detail="项目不存在") + + # 检查是否是项目所有者 + if project.owner_id == current_user.id: + return project + + # 检查是否是项目成员 + member_result = await db.execute( + select(ProjectMember).where( + ProjectMember.project_id == project_id, + ProjectMember.user_id == current_user.id + ) + ) + member = member_result.scalar_one_or_none() + + if not member: + if project.is_public == 1 and not require_write: + return project + raise HTTPException(status_code=403, detail="无权访问该项目") + + # 如果需要写权限,检查成员角色 + if require_write and member.role == "viewer": + raise HTTPException(status_code=403, detail="无写入权限") + + return project + + +@router.get("/{project_id}/tree", response_model=dict) +async def get_project_tree( + project_id: int, + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """获取项目目录树""" + project = await check_project_access(project_id, current_user, db) + + # 获取项目根目录 + project_root = storage_service.get_secure_path(project.storage_key) + + # 生成目录树 + tree = storage_service.generate_tree(project_root) + + return success_response(data=tree) + + +@router.get("/{project_id}/file", response_model=dict) +async def get_file_content( + project_id: int, + path: str, + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """获取文件内容""" + project = await check_project_access(project_id, current_user, db) + + # 获取文件路径 + file_path = storage_service.get_secure_path(project.storage_key, path) + + # 读取文件内容 + content = await storage_service.read_file(file_path) + + return success_response(data={"path": path, "content": content}) + + +@router.post("/{project_id}/file", response_model=dict) +async def save_file( + project_id: int, + file_data: FileSaveRequest, + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """保存文件内容""" + project = await check_project_access(project_id, current_user, db, require_write=True) + + # 获取文件路径 + file_path = storage_service.get_secure_path(project.storage_key, file_data.path) + + # 写入文件内容 + await storage_service.write_file(file_path, file_data.content) + + return success_response(message="文件保存成功") + + +@router.post("/{project_id}/file/operate", response_model=dict) +async def operate_file( + project_id: int, + operation: FileOperateRequest, + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """文件操作(重命名、删除、创建目录、创建文件、移动)""" + project = await check_project_access(project_id, current_user, db, require_write=True) + + # 获取当前路径 + current_path = storage_service.get_secure_path(project.storage_key, operation.path) + + if operation.action == "delete": + # 删除文件或文件夹 + await storage_service.delete_file(current_path) + return success_response(message="删除成功") + + elif operation.action == "rename": + # 重命名 + if not operation.new_path: + raise HTTPException(status_code=400, detail="缺少新路径参数") + new_path = storage_service.get_secure_path(project.storage_key, operation.new_path) + await storage_service.rename_file(current_path, new_path) + return success_response(message="重命名成功") + + elif operation.action == "move": + # 移动文件或文件夹 + if not operation.new_path: + raise HTTPException(status_code=400, detail="缺少目标路径参数") + new_path = storage_service.get_secure_path(project.storage_key, operation.new_path) + await storage_service.rename_file(current_path, new_path) + return success_response(message="移动成功") + + elif operation.action == "create_dir": + # 创建目录 + await storage_service.create_directory(current_path) + return success_response(message="目录创建成功") + + elif operation.action == "create_file": + # 创建文件 + content = operation.content or "" + await storage_service.write_file(current_path, content) + return success_response(message="文件创建成功") + + else: + raise HTTPException(status_code=400, detail="不支持的操作类型") + + +@router.post("/{project_id}/upload", response_model=dict) +async def upload_file( + project_id: int, + file: UploadFile = File(...), + subfolder: str = "images", + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """上传文件(图片/附件)""" + project = await check_project_access(project_id, current_user, db, require_write=True) + + # 上传文件 + file_info = await storage_service.upload_file( + project.storage_key, + file, + subfolder=subfolder + ) + + # 构建访问 URL + file_info["url"] = f"/api/v1/files/{project_id}/assets/{subfolder}/{file_info['filename']}" + + return success_response(data=file_info, message="文件上传成功") + + +@router.get("/{project_id}/assets/{subfolder}/{filename}") +async def get_asset_file( + project_id: int, + subfolder: str, + filename: str, + db: AsyncSession = Depends(get_db) +): + """获取资源文件(公开访问,支持分享)""" + # 验证项目是否存在 + result = await db.execute(select(Project).where(Project.id == project_id)) + project = result.scalar_one_or_none() + + if not project: + raise HTTPException(status_code=404, detail="项目不存在") + + # 获取文件路径 + asset_path = f"_assets/{subfolder}/{filename}" + file_path = storage_service.get_secure_path(project.storage_key, asset_path) + + if not file_path.exists() or not file_path.is_file(): + raise HTTPException(status_code=404, detail="文件不存在") + + # 返回文件(流式响应) + return FileResponse( + path=file_path, + filename=filename, + media_type="application/octet-stream" + ) + + +@router.post("/{project_id}/import-documents", response_model=dict) +async def import_documents( + project_id: int, + files: List[UploadFile] = File(...), + target_path: str = "", + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """批量导入Markdown文档""" + project = await check_project_access(project_id, current_user, db, require_write=True) + + # 验证所有文件都是.md格式 + for file in files: + if not file.filename.endswith('.md'): + raise HTTPException(status_code=400, detail=f"文件 {file.filename} 不是Markdown格式") + + # 获取目标目录路径 + target_dir = storage_service.get_secure_path(project.storage_key, target_path) + + # 确保目标目录存在 + if not target_dir.exists(): + target_dir.mkdir(parents=True, exist_ok=True) + + # 保存所有文件 + imported_files = [] + for file in files: + file_path = target_dir / file.filename + content = await file.read() + + # 写入文件 + with open(file_path, 'wb') as f: + f.write(content) + + # 构建相对路径 + relative_path = f"{target_path}/{file.filename}" if target_path else file.filename + imported_files.append(relative_path) + + return success_response( + data={"imported_files": imported_files}, + message=f"成功导入 {len(imported_files)} 个文档" + ) + + +@router.get("/{project_id}/export-directory") +async def export_directory( + project_id: int, + directory_path: str = "", + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """导出目录为ZIP包""" + project = await check_project_access(project_id, current_user, db) + + # 获取目标目录路径 + source_dir = storage_service.get_secure_path(project.storage_key, directory_path) + + if not source_dir.exists(): + raise HTTPException(status_code=404, detail="目录不存在") + + # 创建ZIP文件在内存中 + zip_buffer = io.BytesIO() + + with zipfile.ZipFile(zip_buffer, 'w', zipfile.ZIP_DEFLATED) as zip_file: + # 遍历目录添加所有文件 + for file_path in source_dir.rglob('*'): + if file_path.is_file(): + # 计算相对路径 + arcname = file_path.relative_to(source_dir) + zip_file.write(file_path, arcname) + + # 重置buffer位置 + zip_buffer.seek(0) + + # 生成ZIP文件名 + zip_filename = f"{project.name}_{directory_path.replace('/', '_') if directory_path else 'root'}.zip" + + return StreamingResponse( + zip_buffer, + media_type="application/zip", + headers={ + "Content-Disposition": f"attachment; filename={zip_filename}" + } + ) diff --git a/backend/app/api/v1/menu.py b/backend/app/api/v1/menu.py new file mode 100644 index 0000000..2be0193 --- /dev/null +++ b/backend/app/api/v1/menu.py @@ -0,0 +1,124 @@ +""" +权限菜单相关 API +""" +from fastapi import APIRouter, Depends +from sqlalchemy.ext.asyncio import AsyncSession +from sqlalchemy import select +from typing import List, Dict, Any + +from app.core.database import get_db +from app.core.deps import get_current_user +from app.models.user import User +from app.models.menu import SystemMenu, RoleMenu +from app.models.role import UserRole +from app.schemas.response import success_response + +router = APIRouter() + + +def build_menu_tree(menus: List[SystemMenu], parent_id: int = 0) -> List[Dict[str, Any]]: + """构建菜单树""" + result = [] + for menu in menus: + if menu.parent_id == parent_id: + menu_dict = { + "id": menu.id, + "menu_name": menu.menu_name, + "menu_code": menu.menu_code, + "menu_type": menu.menu_type, + "path": menu.path, + "component": menu.component, + "icon": menu.icon, + "sort_order": menu.sort_order, + "visible": menu.visible, + "permission": menu.permission, + } + + # 递归构建子菜单 + children = build_menu_tree(menus, menu.id) + if children: + menu_dict["children"] = children + + result.append(menu_dict) + + # 按 sort_order 排序 + result.sort(key=lambda x: x.get("sort_order", 0)) + return result + + +@router.get("/user-menus", response_model=dict) +async def get_user_menus( + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """获取当前用户的权限菜单""" + + # 获取用户的角色 + user_roles_result = await db.execute( + select(UserRole.role_id).where(UserRole.user_id == current_user.id) + ) + role_ids = [row[0] for row in user_roles_result.all()] + + if not role_ids: + return success_response(data=[]) + + # 获取角色的菜单权限 + role_menus_result = await db.execute( + select(RoleMenu.menu_id).where(RoleMenu.role_id.in_(role_ids)) + ) + menu_ids = list(set([row[0] for row in role_menus_result.all()])) + + if not menu_ids: + return success_response(data=[]) + + # 获取菜单详情 + menus_result = await db.execute( + select(SystemMenu) + .where(SystemMenu.id.in_(menu_ids)) + .where(SystemMenu.status == 1) + .where(SystemMenu.visible == 1) + .order_by(SystemMenu.sort_order) + ) + user_menus = menus_result.scalars().all() + + # 构建菜单树 + menu_tree = build_menu_tree(user_menus) + + return success_response(data=menu_tree) + + +@router.get("/user-permissions", response_model=dict) +async def get_user_permissions( + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """获取当前用户的权限列表""" + + # 获取用户的角色 + user_roles_result = await db.execute( + select(UserRole.role_id).where(UserRole.user_id == current_user.id) + ) + role_ids = [row[0] for row in user_roles_result.all()] + + if not role_ids: + return success_response(data=[]) + + # 获取角色的菜单权限 + role_menus_result = await db.execute( + select(RoleMenu.menu_id).where(RoleMenu.role_id.in_(role_ids)) + ) + menu_ids = list(set([row[0] for row in role_menus_result.all()])) + + if not menu_ids: + return success_response(data=[]) + + # 获取权限字符串 + permissions_result = await db.execute( + select(SystemMenu.permission) + .where(SystemMenu.id.in_(menu_ids)) + .where(SystemMenu.status == 1) + .where(SystemMenu.permission.isnot(None)) + ) + permissions = [row[0] for row in permissions_result.all()] + + return success_response(data=permissions) diff --git a/backend/app/api/v1/preview.py b/backend/app/api/v1/preview.py new file mode 100644 index 0000000..f4a5a75 --- /dev/null +++ b/backend/app/api/v1/preview.py @@ -0,0 +1,115 @@ +""" +项目预览相关 API(公开访问,支持分享) +""" +from fastapi import APIRouter, Depends, HTTPException, Header +from sqlalchemy.ext.asyncio import AsyncSession +from sqlalchemy import select +from typing import Optional + +from app.core.database import get_db +from app.models.project import Project +from app.schemas.response import success_response +from app.services.storage import storage_service + +router = APIRouter() + + +@router.get("/{project_id}/info", response_model=dict) +async def get_preview_info( + project_id: int, + db: AsyncSession = Depends(get_db) +): + """获取预览项目基本信息(公开访问)""" + # 查询项目 + result = await db.execute(select(Project).where(Project.id == project_id)) + project = result.scalar_one_or_none() + + if not project: + raise HTTPException(status_code=404, detail="项目不存在") + + # 返回基本信息 + info = { + "id": project.id, + "name": project.name, + "description": project.description, + "has_password": bool(project.access_pass), + } + + return success_response(data=info) + + +@router.post("/{project_id}/verify", response_model=dict) +async def verify_access_password( + project_id: int, + password: str = Header(..., alias="X-Access-Password"), + db: AsyncSession = Depends(get_db) +): + """验证访问密码""" + # 查询项目 + result = await db.execute(select(Project).where(Project.id == project_id)) + project = result.scalar_one_or_none() + + if not project: + raise HTTPException(status_code=404, detail="项目不存在") + + # 验证密码 + if not project.access_pass: + return success_response(message="该项目无需密码访问") + + if project.access_pass != password: + raise HTTPException(status_code=403, detail="访问密码错误") + + return success_response(message="验证成功") + + +@router.get("/{project_id}/tree", response_model=dict) +async def get_preview_tree( + project_id: int, + password: Optional[str] = Header(None, alias="X-Access-Password"), + db: AsyncSession = Depends(get_db) +): + """获取预览项目的文档树(公开访问,需验证密码)""" + # 查询项目 + result = await db.execute(select(Project).where(Project.id == project_id)) + project = result.scalar_one_or_none() + + if not project: + raise HTTPException(status_code=404, detail="项目不存在") + + # 如果设置了密码,需要验证 + if project.access_pass: + if not password or project.access_pass != password: + raise HTTPException(status_code=403, detail="需要提供正确的访问密码") + + # 获取文档树 + project_path = storage_service.get_secure_path(project.storage_key) + tree = storage_service.generate_tree(project_path) + + return success_response(data=tree) + + +@router.get("/{project_id}/file", response_model=dict) +async def get_preview_file( + project_id: int, + path: str, + password: Optional[str] = Header(None, alias="X-Access-Password"), + db: AsyncSession = Depends(get_db) +): + """获取预览项目的文件内容(公开访问,需验证密码)""" + # 查询项目 + result = await db.execute(select(Project).where(Project.id == project_id)) + project = result.scalar_one_or_none() + + if not project: + raise HTTPException(status_code=404, detail="项目不存在") + + # 如果设置了密码,需要验证 + if project.access_pass: + if not password or project.access_pass != password: + raise HTTPException(status_code=403, detail="需要提供正确的访问密码") + + # 获取文件内容 + file_path = storage_service.get_secure_path(project.storage_key, path) + content = await storage_service.read_file(file_path) + + return success_response(data={"content": content}) diff --git a/backend/app/api/v1/projects.py b/backend/app/api/v1/projects.py new file mode 100644 index 0000000..52e2f11 --- /dev/null +++ b/backend/app/api/v1/projects.py @@ -0,0 +1,340 @@ +""" +项目管理相关 API +""" +from fastapi import APIRouter, Depends, HTTPException +from sqlalchemy.ext.asyncio import AsyncSession +from sqlalchemy import select, or_ +from typing import List +import uuid + +from app.core.database import get_db +from app.core.deps import get_current_user +from app.models.user import User +from app.models.project import Project, ProjectMember, ProjectMemberRole +from app.schemas.project import ( + ProjectCreate, + ProjectUpdate, + ProjectResponse, + ProjectMemberAdd, + ProjectMemberUpdate, + ProjectMemberResponse, + ProjectShareSettings, + ProjectShareInfo, +) +from app.schemas.response import success_response +from app.services.storage import storage_service + +router = APIRouter() + + +@router.get("/", response_model=dict) +async def get_my_projects( + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """获取我的项目列表(包括创建的和协作的)""" + # 查询我创建的项目 + owned_result = await db.execute( + select(Project).where(Project.owner_id == current_user.id, Project.status == 1) + ) + owned_projects = owned_result.scalars().all() + + # 查询我协作的项目 + member_result = await db.execute( + select(Project) + .join(ProjectMember, ProjectMember.project_id == Project.id) + .where( + ProjectMember.user_id == current_user.id, + Project.owner_id != current_user.id, + Project.status == 1 + ) + ) + member_projects = member_result.scalars().all() + + # 合并结果 + all_projects = owned_projects + member_projects + projects_data = [ProjectResponse.from_orm(p).dict() for p in all_projects] + + return success_response(data=projects_data) + + +@router.post("/", response_model=dict) +async def create_project( + project_in: ProjectCreate, + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """创建新项目""" + # 生成 UUID 作为存储键 + storage_key = str(uuid.uuid4()) + + # 创建项目记录 + db_project = Project( + name=project_in.name, + description=project_in.description, + storage_key=storage_key, + owner_id=current_user.id, + is_public=project_in.is_public, + status=1, + ) + db.add(db_project) + await db.commit() + await db.refresh(db_project) + + # 创建物理文件夹结构 + try: + storage_service.create_project_structure(storage_key) + except Exception as e: + # 如果文件夹创建失败,回滚数据库记录 + await db.delete(db_project) + await db.commit() + raise HTTPException(status_code=500, detail=f"项目文件夹创建失败: {str(e)}") + + # 添加项目所有者为管理员成员 + db_member = ProjectMember( + project_id=db_project.id, + user_id=current_user.id, + role=ProjectMemberRole.ADMIN, + ) + db.add(db_member) + await db.commit() + + project_data = ProjectResponse.from_orm(db_project) + return success_response(data=project_data.dict(), message="项目创建成功") + + +@router.get("/{project_id}", response_model=dict) +async def get_project( + project_id: int, + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """获取项目详情""" + # 查询项目 + result = await db.execute(select(Project).where(Project.id == project_id)) + project = result.scalar_one_or_none() + + if not project: + raise HTTPException(status_code=404, detail="项目不存在") + + # 检查权限(项目所有者或成员可访问) + if project.owner_id != current_user.id: + member_result = await db.execute( + select(ProjectMember).where( + ProjectMember.project_id == project_id, + ProjectMember.user_id == current_user.id + ) + ) + member = member_result.scalar_one_or_none() + if not member and project.is_public != 1: + raise HTTPException(status_code=403, detail="无权访问该项目") + + # 增加访问次数 + project.visit_count += 1 + await db.commit() + + project_data = ProjectResponse.from_orm(project) + return success_response(data=project_data.dict()) + + +@router.put("/{project_id}", response_model=dict) +async def update_project( + project_id: int, + project_in: ProjectUpdate, + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """更新项目信息""" + # 查询项目 + result = await db.execute(select(Project).where(Project.id == project_id)) + project = result.scalar_one_or_none() + + if not project: + raise HTTPException(status_code=404, detail="项目不存在") + + # 只有项目所有者可以更新 + if project.owner_id != current_user.id: + raise HTTPException(status_code=403, detail="无权修改该项目") + + # 更新字段 + update_data = project_in.dict(exclude_unset=True) + for field, value in update_data.items(): + setattr(project, field, value) + + await db.commit() + await db.refresh(project) + + project_data = ProjectResponse.from_orm(project) + return success_response(data=project_data.dict(), message="项目更新成功") + + +@router.delete("/{project_id}", response_model=dict) +async def delete_project( + project_id: int, + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """删除项目(归档)""" + # 查询项目 + result = await db.execute(select(Project).where(Project.id == project_id)) + project = result.scalar_one_or_none() + + if not project: + raise HTTPException(status_code=404, detail="项目不存在") + + # 只有项目所有者可以删除 + if project.owner_id != current_user.id: + raise HTTPException(status_code=403, detail="无权删除该项目") + + # 软删除(归档) + project.status = 0 + await db.commit() + + return success_response(message="项目已归档") + + +@router.get("/{project_id}/members", response_model=dict) +async def get_project_members( + project_id: int, + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """获取项目成员列表""" + # 查询项目 + result = await db.execute(select(Project).where(Project.id == project_id)) + project = result.scalar_one_or_none() + + if not project: + raise HTTPException(status_code=404, detail="项目不存在") + + # 检查权限 + if project.owner_id != current_user.id: + member_result = await db.execute( + select(ProjectMember).where( + ProjectMember.project_id == project_id, + ProjectMember.user_id == current_user.id + ) + ) + member = member_result.scalar_one_or_none() + if not member: + raise HTTPException(status_code=403, detail="无权访问该项目") + + # 查询成员列表 + members_result = await db.execute( + select(ProjectMember).where(ProjectMember.project_id == project_id) + ) + members = members_result.scalars().all() + + members_data = [ProjectMemberResponse.from_orm(m).dict() for m in members] + return success_response(data=members_data) + + +@router.post("/{project_id}/members", response_model=dict) +async def add_project_member( + project_id: int, + member_in: ProjectMemberAdd, + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """添加项目成员""" + # 查询项目 + result = await db.execute(select(Project).where(Project.id == project_id)) + project = result.scalar_one_or_none() + + if not project: + raise HTTPException(status_code=404, detail="项目不存在") + + # 只有项目所有者和管理员可以添加成员 + if project.owner_id != current_user.id: + member_result = await db.execute( + select(ProjectMember).where( + ProjectMember.project_id == project_id, + ProjectMember.user_id == current_user.id, + ProjectMember.role == ProjectMemberRole.ADMIN + ) + ) + member = member_result.scalar_one_or_none() + if not member: + raise HTTPException(status_code=403, detail="无权添加成员") + + # 检查用户是否已是成员 + existing_result = await db.execute( + select(ProjectMember).where( + ProjectMember.project_id == project_id, + ProjectMember.user_id == member_in.user_id + ) + ) + existing_member = existing_result.scalar_one_or_none() + if existing_member: + raise HTTPException(status_code=400, detail="用户已是项目成员") + + # 添加成员 + db_member = ProjectMember( + project_id=project_id, + user_id=member_in.user_id, + role=member_in.role, + invited_by=current_user.id, + ) + db.add(db_member) + await db.commit() + await db.refresh(db_member) + + member_data = ProjectMemberResponse.from_orm(db_member) + return success_response(data=member_data.dict(), message="成员添加成功") + + +@router.get("/{project_id}/share", response_model=dict) +async def get_project_share_info( + project_id: int, + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """获取项目分享信息""" + # 查询项目 + result = await db.execute(select(Project).where(Project.id == project_id)) + project = result.scalar_one_or_none() + + if not project: + raise HTTPException(status_code=404, detail="项目不存在") + + # 只有项目所有者可以获取分享信息 + if project.owner_id != current_user.id: + raise HTTPException(status_code=403, detail="只有项目所有者可以查看分享信息") + + # 构建分享链接 + share_url = f"/preview/{project_id}" + + share_info = ProjectShareInfo( + share_url=share_url, + has_password=bool(project.access_pass), + access_pass=project.access_pass # 返回实际密码给项目所有者 + ) + + return success_response(data=share_info.dict()) + + +@router.post("/{project_id}/share/settings", response_model=dict) +async def update_share_settings( + project_id: int, + settings: ProjectShareSettings, + current_user: User = Depends(get_current_user), + db: AsyncSession = Depends(get_db) +): + """更新分享设置(设置或取消访问密码)""" + # 查询项目 + result = await db.execute(select(Project).where(Project.id == project_id)) + project = result.scalar_one_or_none() + + if not project: + raise HTTPException(status_code=404, detail="项目不存在") + + # 只有项目所有者可以修改分享设置 + if project.owner_id != current_user.id: + raise HTTPException(status_code=403, detail="只有项目所有者可以修改分享设置") + + # 更新访问密码 + project.access_pass = settings.access_pass + await db.commit() + + message = "访问密码已取消" if not settings.access_pass else "访问密码已设置" + return success_response(message=message) diff --git a/backend/app/core/config.py b/backend/app/core/config.py new file mode 100644 index 0000000..479854f --- /dev/null +++ b/backend/app/core/config.py @@ -0,0 +1,78 @@ +""" +应用配置管理 +""" +from pydantic_settings import BaseSettings +from typing import List +from urllib.parse import quote_plus +import os + + +class Settings(BaseSettings): + """应用配置类""" + + # 应用信息 + APP_NAME: str = "NEX Docus" + APP_VERSION: str = "1.0.0" + DEBUG: bool = True + + # 服务器配置 + HOST: str = "0.0.0.0" + PORT: int = 8000 + + # 数据库配置 + DB_HOST: str + DB_PORT: int = 3306 + DB_USER: str + DB_PASSWORD: str + DB_NAME: str + DB_CHARSET: str = "utf8mb4" + + @property + def DATABASE_URL(self) -> str: + """数据库连接URL""" + # URL 编码密码,防止特殊字符导致解析错误 + password = quote_plus(self.DB_PASSWORD) + return f"mysql+aiomysql://{self.DB_USER}:{password}@{self.DB_HOST}:{self.DB_PORT}/{self.DB_NAME}?charset={self.DB_CHARSET}" + + @property + def SYNC_DATABASE_URL(self) -> str: + """同步数据库连接URL(用于 Alembic)""" + # URL 编码密码 + password = quote_plus(self.DB_PASSWORD) + return f"mysql+pymysql://{self.DB_USER}:{password}@{self.DB_HOST}:{self.DB_PORT}/{self.DB_NAME}?charset={self.DB_CHARSET}" + + # Redis 配置 + REDIS_HOST: str + REDIS_PORT: int = 6379 + REDIS_PASSWORD: str + REDIS_DB: int = 8 + + @property + def REDIS_URL(self) -> str: + """Redis 连接URL""" + return f"redis://:{self.REDIS_PASSWORD}@{self.REDIS_HOST}:{self.REDIS_PORT}/{self.REDIS_DB}" + + # JWT 配置 + SECRET_KEY: str + ALGORITHM: str = "HS256" + ACCESS_TOKEN_EXPIRE_MINUTES: int = 1440 # 24小时 + + # 文件存储配置 + STORAGE_ROOT: str = "/data/nex_docus_store" + PROJECTS_PATH: str = "/data/nex_docus_store/projects" + TEMP_PATH: str = "/data/nex_docus_store/temp" + + # 跨域配置 + CORS_ORIGINS: List[str] = ["http://localhost:5173", "http://localhost:3000"] + + # 日志配置 + LOG_LEVEL: str = "INFO" + LOG_PATH: str = "logs" + + class Config: + env_file = ".env" + case_sensitive = True + + +# 创建配置实例 +settings = Settings() diff --git a/backend/app/core/database.py b/backend/app/core/database.py new file mode 100644 index 0000000..ba7685c --- /dev/null +++ b/backend/app/core/database.py @@ -0,0 +1,38 @@ +""" +数据库连接管理 +""" +from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession +from sqlalchemy.orm import sessionmaker, declarative_base +from app.core.config import settings + +# 创建异步引擎 +engine = create_async_engine( + settings.DATABASE_URL, + echo=settings.DEBUG, + pool_pre_ping=True, + pool_size=10, + max_overflow=20, +) + +# 创建异步会话工厂 +AsyncSessionLocal = sessionmaker( + engine, + class_=AsyncSession, + expire_on_commit=False, + autocommit=False, + autoflush=False, +) + +# 创建基础模型类 +Base = declarative_base() + + +async def get_db(): + """ + 获取数据库会话(依赖注入) + """ + async with AsyncSessionLocal() as session: + try: + yield session + finally: + await session.close() diff --git a/backend/app/core/deps.py b/backend/app/core/deps.py new file mode 100644 index 0000000..37bc097 --- /dev/null +++ b/backend/app/core/deps.py @@ -0,0 +1,214 @@ +""" +认证依赖:获取当前登录用户 +""" +from fastapi import Depends, HTTPException, status, Request +from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials +from sqlalchemy.ext.asyncio import AsyncSession +from sqlalchemy import select +from typing import Optional +from app.core.database import get_db +from app.core.security import decode_access_token +from app.core.redis_client import TokenCache +from app.models.user import User +import logging + +logger = logging.getLogger(__name__) + +# HTTP Bearer 认证方案 +security = HTTPBearer() +security_optional = HTTPBearer(auto_error=False) + + +async def get_current_user( + request: Request, + credentials: HTTPAuthorizationCredentials = Depends(security), + db: AsyncSession = Depends(get_db) +) -> User: + """ + 获取当前登录用户(依赖注入) + """ + token = credentials.credentials + logger.info(f"Received token: {token[:20]}...") # 只记录前20个字符 + + # 保存 token 到请求状态,供退出登录使用 + request.state.token = token + + # 先验证 Redis 中是否存在该 token + user_id_from_redis = await TokenCache.get_user_id(token) + if user_id_from_redis is None: + logger.error("Token not found in Redis or expired") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="登录已过期,请重新登录", + headers={"WWW-Authenticate": "Bearer"}, + ) + + # 解码 JWT 验证完整性 + payload = decode_access_token(token) + logger.info(f"Decoded payload: {payload}") + + if payload is None: + logger.error("Token decode failed: payload is None") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="无效的认证凭证", + headers={"WWW-Authenticate": "Bearer"}, + ) + + user_id_str = payload.get("sub") + logger.info(f"Extracted user_id (string): {user_id_str}") + + if user_id_str is None: + logger.error("user_id is None in payload") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="无效的认证凭证", + ) + + # 将字符串转为整数 + try: + user_id = int(user_id_str) + except (ValueError, TypeError): + logger.error(f"Invalid user_id format: {user_id_str}") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="无效的认证凭证", + ) + + # 验证 Redis 中的 user_id 与 JWT 中的是否一致 + if user_id != user_id_from_redis: + logger.error(f"User ID mismatch: JWT={user_id}, Redis={user_id_from_redis}") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="无效的认证凭证", + ) + + # 查询用户 + result = await db.execute(select(User).where(User.id == user_id)) + user = result.scalar_one_or_none() + + if user is None: + logger.error(f"User not found for user_id: {user_id}") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="用户不存在", + ) + + if user.status != 1: + logger.error(f"User {user_id} is disabled") + raise HTTPException( + status_code=status.HTTP_403_FORBIDDEN, + detail="用户已被禁用", + ) + + logger.info(f"User authenticated successfully: {user.username}") + return user + + +async def get_current_active_user( + current_user: User = Depends(get_current_user) +) -> User: + """ + 获取当前活跃用户 + """ + return current_user + + +async def get_user_from_token_or_query( + request: Request, + token: Optional[str] = None, # 从query参数获取 + credentials: Optional[HTTPAuthorizationCredentials] = Depends(security_optional), + db: AsyncSession = Depends(get_db) +) -> User: + """ + 获取当前用户(支持从query参数或header获取token) + 用于图片等资源访问,优先使用header,其次使用query参数 + """ + # 优先从 header 获取 token + if credentials: + token_str = credentials.credentials + elif token: + # 从 query 参数获取 + token_str = token + else: + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="未提供认证凭证", + headers={"WWW-Authenticate": "Bearer"}, + ) + + logger.info(f"Received token: {token_str[:20]}...") + + # 保存 token 到请求状态 + request.state.token = token_str + + # 验证 Redis 中是否存在该 token + user_id_from_redis = await TokenCache.get_user_id(token_str) + if user_id_from_redis is None: + logger.error("Token not found in Redis or expired") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="登录已过期,请重新登录", + headers={"WWW-Authenticate": "Bearer"}, + ) + + # 解码 JWT 验证完整性 + payload = decode_access_token(token_str) + logger.info(f"Decoded payload: {payload}") + + if payload is None: + logger.error("Token decode failed: payload is None") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="无效的认证凭证", + headers={"WWW-Authenticate": "Bearer"}, + ) + + user_id_str = payload.get("sub") + logger.info(f"Extracted user_id (string): {user_id_str}") + + if user_id_str is None: + logger.error("user_id is None in payload") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="无效的认证凭证", + ) + + # 将字符串转为整数 + try: + user_id = int(user_id_str) + except (ValueError, TypeError): + logger.error(f"Invalid user_id format: {user_id_str}") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="无效的认证凭证", + ) + + # 验证 Redis 中的 user_id 与 JWT 中的是否一致 + if user_id != user_id_from_redis: + logger.error(f"User ID mismatch: JWT={user_id}, Redis={user_id_from_redis}") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="无效的认证凭证", + ) + + # 查询用户 + result = await db.execute(select(User).where(User.id == user_id)) + user = result.scalar_one_or_none() + + if user is None: + logger.error(f"User not found for user_id: {user_id}") + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="用户不存在", + ) + + if user.status != 1: + logger.error(f"User {user_id} is disabled") + raise HTTPException( + status_code=status.HTTP_403_FORBIDDEN, + detail="用户已被禁用", + ) + + logger.info(f"User authenticated successfully: {user.username}") + return user diff --git a/backend/app/core/redis_client.py b/backend/app/core/redis_client.py new file mode 100644 index 0000000..310a215 --- /dev/null +++ b/backend/app/core/redis_client.py @@ -0,0 +1,152 @@ +""" +Redis 客户端管理 +""" +import redis.asyncio as aioredis +from typing import Optional +from app.core.config import settings +import logging + +logger = logging.getLogger(__name__) + +# Redis 客户端实例 +redis_client: aioredis.Redis = None + + +async def init_redis(): + """初始化 Redis 连接""" + global redis_client + try: + redis_client = await aioredis.from_url( + settings.REDIS_URL, + encoding="utf-8", + decode_responses=True, + max_connections=10 + ) + # 测试连接 + await redis_client.ping() + logger.info("Redis connected successfully") + except Exception as e: + logger.error(f"Redis connection failed: {e}") + raise + + +async def close_redis(): + """关闭 Redis 连接""" + global redis_client + if redis_client: + await redis_client.close() + logger.info("Redis connection closed") + + +def get_redis() -> aioredis.Redis: + """获取 Redis 客户端""" + return redis_client + + +# Token 缓存相关操作 +class TokenCache: + """Token 缓存管理""" + + TOKEN_PREFIX = "token:" + USER_TOKEN_PREFIX = "user_tokens:" + + @staticmethod + async def save_token(user_id: int, token: str, expire_seconds: int = 86400): + """ + 保存 token 到 Redis + :param user_id: 用户ID + :param token: JWT token + :param expire_seconds: 过期时间(秒),默认24小时 + """ + redis = get_redis() + + # 保存 token -> user_id 映射 + token_key = f"{TokenCache.TOKEN_PREFIX}{token}" + await redis.setex(token_key, expire_seconds, str(user_id)) + + # 保存 user_id -> tokens 集合(支持多设备登录) + user_tokens_key = f"{TokenCache.USER_TOKEN_PREFIX}{user_id}" + await redis.sadd(user_tokens_key, token) + await redis.expire(user_tokens_key, expire_seconds) + + logger.info(f"Token saved for user {user_id}, expires in {expire_seconds}s") + + @staticmethod + async def get_user_id(token: str) -> Optional[int]: + """ + 根据 token 获取用户ID + :param token: JWT token + :return: 用户ID 或 None + """ + redis = get_redis() + token_key = f"{TokenCache.TOKEN_PREFIX}{token}" + user_id_str = await redis.get(token_key) + + if user_id_str: + return int(user_id_str) + return None + + @staticmethod + async def delete_token(token: str): + """ + 删除指定 token + :param token: JWT token + """ + redis = get_redis() + + # 获取 user_id + token_key = f"{TokenCache.TOKEN_PREFIX}{token}" + user_id_str = await redis.get(token_key) + + if user_id_str: + user_id = int(user_id_str) + + # 从用户 tokens 集合中移除 + user_tokens_key = f"{TokenCache.USER_TOKEN_PREFIX}{user_id}" + await redis.srem(user_tokens_key, token) + + # 删除 token + await redis.delete(token_key) + logger.info(f"Token deleted: {token[:20]}...") + + @staticmethod + async def delete_user_all_tokens(user_id: int): + """ + 删除用户的所有 token(用于强制登出) + :param user_id: 用户ID + """ + redis = get_redis() + user_tokens_key = f"{TokenCache.USER_TOKEN_PREFIX}{user_id}" + + # 获取所有 tokens + tokens = await redis.smembers(user_tokens_key) + + # 删除所有 token + for token in tokens: + token_key = f"{TokenCache.TOKEN_PREFIX}{token}" + await redis.delete(token_key) + + # 删除集合 + await redis.delete(user_tokens_key) + logger.info(f"All tokens deleted for user {user_id}") + + @staticmethod + async def extend_token(token: str, expire_seconds: int = 86400): + """ + 延长 token 有效期(用于 token 刷新) + :param token: JWT token + :param expire_seconds: 延长的过期时间(秒) + """ + redis = get_redis() + token_key = f"{TokenCache.TOKEN_PREFIX}{token}" + + # 延长过期时间 + await redis.expire(token_key, expire_seconds) + + # 获取 user_id 并延长用户 tokens 集合过期时间 + user_id_str = await redis.get(token_key) + if user_id_str: + user_tokens_key = f"{TokenCache.USER_TOKEN_PREFIX}{user_id_str}" + await redis.expire(user_tokens_key, expire_seconds) + + logger.info(f"Token extended: {token[:20]}...") diff --git a/backend/app/core/security.py b/backend/app/core/security.py new file mode 100644 index 0000000..6981814 --- /dev/null +++ b/backend/app/core/security.py @@ -0,0 +1,65 @@ +""" +安全相关工具:密码哈希、JWT Token 生成与验证 +""" +from datetime import datetime, timedelta +from typing import Optional +from jose import JWTError, jwt +from passlib.context import CryptContext +from app.core.config import settings +import logging + +logger = logging.getLogger(__name__) + +# 密码加密上下文 +pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") + + +def verify_password(plain_password: str, hashed_password: str) -> bool: + """ + 验证密码 + """ + return pwd_context.verify(plain_password, hashed_password) + + +def get_password_hash(password: str) -> str: + """ + 生成密码哈希 + """ + return pwd_context.hash(password) + + +def create_access_token(data: dict, expires_delta: Optional[timedelta] = None) -> str: + """ + 创建 JWT Access Token + """ + to_encode = data.copy() + if expires_delta: + expire = datetime.utcnow() + expires_delta + else: + expire = datetime.utcnow() + timedelta(minutes=settings.ACCESS_TOKEN_EXPIRE_MINUTES) + + to_encode.update({"exp": expire}) + logger.info(f"Creating token with payload: {to_encode}") + logger.info(f"Using SECRET_KEY: {settings.SECRET_KEY[:10]}...") + logger.info(f"Using ALGORITHM: {settings.ALGORITHM}") + + encoded_jwt = jwt.encode(to_encode, settings.SECRET_KEY, algorithm=settings.ALGORITHM) + logger.info(f"Generated token: {encoded_jwt[:50]}...") + return encoded_jwt + + +def decode_access_token(token: str) -> Optional[dict]: + """ + 解码 JWT Token + """ + try: + logger.info(f"Decoding token: {token[:50]}...") + logger.info(f"Using SECRET_KEY: {settings.SECRET_KEY[:10]}...") + logger.info(f"Using ALGORITHM: {settings.ALGORITHM}") + + payload = jwt.decode(token, settings.SECRET_KEY, algorithms=[settings.ALGORITHM]) + logger.info(f"Decoded payload: {payload}") + return payload + except JWTError as e: + logger.error(f"JWT decode error: {e}") + return None diff --git a/backend/app/models/__init__.py b/backend/app/models/__init__.py new file mode 100644 index 0000000..d709919 --- /dev/null +++ b/backend/app/models/__init__.py @@ -0,0 +1,22 @@ +""" +导出所有数据库模型 +""" +from app.models.user import User +from app.models.role import Role, UserRole +from app.models.menu import SystemMenu, RoleMenu +from app.models.project import Project, ProjectMember, ProjectMemberRole +from app.models.document import DocumentMeta +from app.models.log import OperationLog + +__all__ = [ + "User", + "Role", + "UserRole", + "SystemMenu", + "RoleMenu", + "Project", + "ProjectMember", + "ProjectMemberRole", + "DocumentMeta", + "OperationLog", +] diff --git a/backend/app/models/document.py b/backend/app/models/document.py new file mode 100644 index 0000000..76a1814 --- /dev/null +++ b/backend/app/models/document.py @@ -0,0 +1,28 @@ +""" +文档元数据模型 +""" +from sqlalchemy import Column, BigInteger, String, Integer, DateTime +from sqlalchemy.sql import func +from app.core.database import Base + + +class DocumentMeta(Base): + """文档元数据表模型""" + + __tablename__ = "document_meta" + + id = Column(BigInteger, primary_key=True, autoincrement=True, comment="元数据ID") + project_id = Column(BigInteger, nullable=False, index=True, comment="项目ID") + file_path = Column(String(500), nullable=False, comment="文件相对路径") + title = Column(String(200), comment="文档标题") + tags = Column(String(500), comment="标签(JSON数组)") + author_id = Column(BigInteger, index=True, comment="作者ID") + word_count = Column(Integer, default=0, comment="字数统计") + view_count = Column(Integer, default=0, comment="浏览次数") + last_editor_id = Column(BigInteger, comment="最后编辑者ID") + last_edited_at = Column(DateTime, comment="最后编辑时间") + created_at = Column(DateTime, server_default=func.now(), comment="创建时间") + updated_at = Column(DateTime, server_default=func.now(), onupdate=func.now(), comment="更新时间") + + def __repr__(self): + return f"" diff --git a/backend/app/models/log.py b/backend/app/models/log.py new file mode 100644 index 0000000..428e26e --- /dev/null +++ b/backend/app/models/log.py @@ -0,0 +1,28 @@ +""" +操作日志模型 +""" +from sqlalchemy import Column, BigInteger, String, Integer, DateTime, SmallInteger, Text +from sqlalchemy.sql import func +from app.core.database import Base + + +class OperationLog(Base): + """操作日志表模型""" + + __tablename__ = "operation_logs" + + id = Column(BigInteger, primary_key=True, autoincrement=True, comment="日志ID") + user_id = Column(BigInteger, index=True, comment="操作用户ID") + username = Column(String(50), comment="用户名") + operation_type = Column(String(50), nullable=False, comment="操作类型") + resource_type = Column(String(50), nullable=False, index=True, comment="资源类型") + resource_id = Column(BigInteger, index=True, comment="资源ID") + detail = Column(Text, comment="操作详情(JSON)") + ip_address = Column(String(50), comment="IP地址") + user_agent = Column(String(500), comment="用户代理") + status = Column(SmallInteger, default=1, comment="状态:0-失败 1-成功") + error_message = Column(Text, comment="错误信息") + created_at = Column(DateTime, server_default=func.now(), index=True, comment="操作时间") + + def __repr__(self): + return f"" diff --git a/backend/app/models/menu.py b/backend/app/models/menu.py new file mode 100644 index 0000000..71eaed9 --- /dev/null +++ b/backend/app/models/menu.py @@ -0,0 +1,44 @@ +""" +菜单模型 +""" +from sqlalchemy import Column, BigInteger, String, Integer, DateTime, SmallInteger +from sqlalchemy.sql import func +from app.core.database import Base + + +class SystemMenu(Base): + """系统菜单表模型""" + + __tablename__ = "system_menus" + + id = Column(BigInteger, primary_key=True, autoincrement=True, comment="菜单ID") + parent_id = Column(BigInteger, default=0, comment="父菜单ID(0表示根菜单)") + menu_name = Column(String(50), nullable=False, comment="菜单名称") + menu_code = Column(String(50), nullable=False, unique=True, index=True, comment="菜单编码") + menu_type = Column(SmallInteger, nullable=False, comment="菜单类型:1-目录 2-菜单 3-按钮/权限点") + path = Column(String(255), comment="路由路径") + component = Column(String(255), comment="组件路径") + icon = Column(String(100), comment="图标") + sort_order = Column(Integer, default=0, comment="排序号") + visible = Column(SmallInteger, default=1, comment="是否可见:0-隐藏 1-显示") + status = Column(SmallInteger, default=1, index=True, comment="状态:0-禁用 1-启用") + permission = Column(String(100), comment="权限字符串") + created_at = Column(DateTime, server_default=func.now(), comment="创建时间") + updated_at = Column(DateTime, server_default=func.now(), onupdate=func.now(), comment="更新时间") + + def __repr__(self): + return f"" + + +class RoleMenu(Base): + """角色菜单授权表模型""" + + __tablename__ = "role_menus" + + id = Column(BigInteger, primary_key=True, autoincrement=True, comment="关联ID") + role_id = Column(BigInteger, nullable=False, index=True, comment="角色ID") + menu_id = Column(BigInteger, nullable=False, index=True, comment="菜单ID") + created_at = Column(DateTime, server_default=func.now(), comment="创建时间") + + def __repr__(self): + return f"" diff --git a/backend/app/models/project.py b/backend/app/models/project.py new file mode 100644 index 0000000..07f9fb6 --- /dev/null +++ b/backend/app/models/project.py @@ -0,0 +1,59 @@ +""" +项目模型 +""" +from sqlalchemy import Column, BigInteger, String, Integer, DateTime, SmallInteger, Enum +from sqlalchemy.sql import func +from app.core.database import Base +import enum + + +class ProjectMemberRole(str, enum.Enum): + """项目成员角色枚举""" + ADMIN = "admin" + EDITOR = "editor" + VIEWER = "viewer" + + +class Project(Base): + """项目表模型""" + + __tablename__ = "projects" + + id = Column(BigInteger, primary_key=True, autoincrement=True, comment="项目ID") + name = Column(String(100), nullable=False, index=True, comment="项目名称") + description = Column(String(500), comment="项目描述") + storage_key = Column(String(36), nullable=False, unique=True, comment="磁盘存储UUID") + owner_id = Column(BigInteger, nullable=False, index=True, comment="项目所有者ID") + is_public = Column(SmallInteger, default=0, comment="是否公开:0-私有 1-公开") + is_template = Column(SmallInteger, default=0, comment="是否模板项目:0-否 1-是") + status = Column(SmallInteger, default=1, index=True, comment="状态:0-归档 1-活跃") + cover_image = Column(String(255), comment="封面图") + sort_order = Column(Integer, default=0, comment="排序号") + visit_count = Column(Integer, default=0, comment="访问次数") + access_pass = Column(String(100), comment="访问密码(用于分享链接)") + created_at = Column(DateTime, server_default=func.now(), index=True, comment="创建时间") + updated_at = Column(DateTime, server_default=func.now(), onupdate=func.now(), comment="更新时间") + + def __repr__(self): + return f"" + + +class ProjectMember(Base): + """项目成员表模型""" + + __tablename__ = "project_members" + + id = Column(BigInteger, primary_key=True, autoincrement=True, comment="成员ID") + project_id = Column(BigInteger, nullable=False, index=True, comment="项目ID") + user_id = Column(BigInteger, nullable=False, index=True, comment="用户ID") + role = Column( + Enum(ProjectMemberRole), + default=ProjectMemberRole.VIEWER, + index=True, + comment="项目角色" + ) + invited_by = Column(BigInteger, comment="邀请人ID") + joined_at = Column(DateTime, server_default=func.now(), comment="加入时间") + + def __repr__(self): + return f"" diff --git a/backend/app/models/role.py b/backend/app/models/role.py new file mode 100644 index 0000000..7fdbb58 --- /dev/null +++ b/backend/app/models/role.py @@ -0,0 +1,38 @@ +""" +角色模型 +""" +from sqlalchemy import Column, BigInteger, String, DateTime, SmallInteger +from sqlalchemy.sql import func +from app.core.database import Base + + +class Role(Base): + """角色表模型""" + + __tablename__ = "roles" + + id = Column(BigInteger, primary_key=True, autoincrement=True, comment="角色ID") + role_name = Column(String(50), nullable=False, unique=True, comment="角色名称") + role_code = Column(String(50), nullable=False, unique=True, index=True, comment="角色编码") + description = Column(String(255), comment="角色描述") + status = Column(SmallInteger, default=1, index=True, comment="状态:0-禁用 1-启用") + is_system = Column(SmallInteger, default=0, comment="是否系统角色:0-否 1-是") + created_at = Column(DateTime, server_default=func.now(), comment="创建时间") + updated_at = Column(DateTime, server_default=func.now(), onupdate=func.now(), comment="更新时间") + + def __repr__(self): + return f"" + + +class UserRole(Base): + """用户角色关联表模型""" + + __tablename__ = "user_roles" + + id = Column(BigInteger, primary_key=True, autoincrement=True, comment="关联ID") + user_id = Column(BigInteger, nullable=False, index=True, comment="用户ID") + role_id = Column(BigInteger, nullable=False, index=True, comment="角色ID") + created_at = Column(DateTime, server_default=func.now(), comment="创建时间") + + def __repr__(self): + return f"" diff --git a/backend/app/models/user.py b/backend/app/models/user.py new file mode 100644 index 0000000..fc3e75a --- /dev/null +++ b/backend/app/models/user.py @@ -0,0 +1,29 @@ +""" +用户模型 +""" +from sqlalchemy import Column, BigInteger, String, Integer, DateTime, SmallInteger +from sqlalchemy.sql import func +from app.core.database import Base + + +class User(Base): + """用户表模型""" + + __tablename__ = "users" + + id = Column(BigInteger, primary_key=True, autoincrement=True, comment="用户ID") + username = Column(String(50), nullable=False, unique=True, index=True, comment="用户名") + password_hash = Column(String(255), nullable=False, comment="密码哈希") + nickname = Column(String(50), comment="昵称") + email = Column(String(100), index=True, comment="邮箱") + phone = Column(String(20), comment="手机号") + avatar = Column(String(255), comment="头像URL") + status = Column(SmallInteger, default=1, index=True, comment="状态:0-禁用 1-启用") + is_superuser = Column(SmallInteger, default=0, comment="是否超级管理员:0-否 1-是") + last_login_at = Column(DateTime, comment="最后登录时间") + last_login_ip = Column(String(50), comment="最后登录IP") + created_at = Column(DateTime, server_default=func.now(), comment="创建时间") + updated_at = Column(DateTime, server_default=func.now(), onupdate=func.now(), comment="更新时间") + + def __repr__(self): + return f"" diff --git a/backend/app/schemas/__init__.py b/backend/app/schemas/__init__.py new file mode 100644 index 0000000..eb0ba98 --- /dev/null +++ b/backend/app/schemas/__init__.py @@ -0,0 +1,64 @@ +""" +导出所有 Pydantic Schemas +""" +from app.schemas.user import ( + UserBase, + UserCreate, + UserUpdate, + UserResponse, + UserLogin, + Token, + ChangePassword, +) +from app.schemas.project import ( + ProjectBase, + ProjectCreate, + ProjectUpdate, + ProjectResponse, + ProjectMemberAdd, + ProjectMemberUpdate, + ProjectMemberResponse, +) +from app.schemas.file import ( + FileTreeNode, + FileContentRequest, + FileSaveRequest, + FileOperateRequest, + FileUploadResponse, +) +from app.schemas.response import ( + Response, + PageResponse, + success_response, + error_response, +) + +__all__ = [ + # User + "UserBase", + "UserCreate", + "UserUpdate", + "UserResponse", + "UserLogin", + "Token", + "ChangePassword", + # Project + "ProjectBase", + "ProjectCreate", + "ProjectUpdate", + "ProjectResponse", + "ProjectMemberAdd", + "ProjectMemberUpdate", + "ProjectMemberResponse", + # File + "FileTreeNode", + "FileContentRequest", + "FileSaveRequest", + "FileOperateRequest", + "FileUploadResponse", + # Response + "Response", + "PageResponse", + "success_response", + "error_response", +] diff --git a/backend/app/schemas/file.py b/backend/app/schemas/file.py new file mode 100644 index 0000000..24b5530 --- /dev/null +++ b/backend/app/schemas/file.py @@ -0,0 +1,47 @@ +""" +文件系统操作相关的 Pydantic Schema +""" +from pydantic import BaseModel, Field +from typing import Optional, List + + +class FileTreeNode(BaseModel): + """文件树节点 Schema""" + title: str = Field(..., description="节点标题(文件/文件夹名)") + key: str = Field(..., description="节点唯一键(相对路径)") + isLeaf: bool = Field(..., description="是否叶子节点") + children: Optional[List['FileTreeNode']] = Field(None, description="子节点") + + class Config: + from_attributes = True + + +# 支持递归引用 +FileTreeNode.model_rebuild() + + +class FileContentRequest(BaseModel): + """文件内容请求 Schema""" + path: str = Field(..., description="文件相对路径") + + +class FileSaveRequest(BaseModel): + """文件保存请求 Schema""" + path: str = Field(..., description="文件相对路径") + content: str = Field(..., description="文件内容") + + +class FileOperateRequest(BaseModel): + """文件操作请求 Schema""" + action: str = Field(..., description="操作类型:rename|delete|create_dir|create_file") + path: str = Field(..., description="当前路径") + new_path: Optional[str] = Field(None, description="新路径(重命名时使用)") + content: Optional[str] = Field(None, description="文件内容(创建文件时使用)") + + +class FileUploadResponse(BaseModel): + """文件上传响应 Schema""" + filename: str = Field(..., description="文件名") + path: str = Field(..., description="文件相对路径") + url: str = Field(..., description="文件访问URL") + size: int = Field(..., description="文件大小(字节)") diff --git a/backend/app/schemas/project.py b/backend/app/schemas/project.py new file mode 100644 index 0000000..bee857c --- /dev/null +++ b/backend/app/schemas/project.py @@ -0,0 +1,79 @@ +""" +项目相关的 Pydantic Schema +""" +from pydantic import BaseModel, Field +from typing import Optional +from datetime import datetime +from app.models.project import ProjectMemberRole + + +class ProjectBase(BaseModel): + """项目基础 Schema""" + name: str = Field(..., min_length=1, max_length=100, description="项目名称") + description: Optional[str] = Field(None, max_length=500, description="项目描述") + is_public: int = Field(0, description="是否公开:0-私有 1-公开") + + +class ProjectCreate(ProjectBase): + """创建项目 Schema""" + pass + + +class ProjectUpdate(BaseModel): + """更新项目 Schema""" + name: Optional[str] = Field(None, min_length=1, max_length=100) + description: Optional[str] = None + is_public: Optional[int] = None + cover_image: Optional[str] = None + status: Optional[int] = None + + +class ProjectResponse(ProjectBase): + """项目响应 Schema""" + id: int + storage_key: str + owner_id: int + is_template: int + status: int + cover_image: Optional[str] = None + visit_count: int + created_at: datetime + updated_at: datetime + + class Config: + from_attributes = True + + +class ProjectMemberAdd(BaseModel): + """添加项目成员 Schema""" + user_id: int = Field(..., description="用户ID") + role: ProjectMemberRole = Field(ProjectMemberRole.VIEWER, description="项目角色") + + +class ProjectMemberUpdate(BaseModel): + """更新项目成员 Schema""" + role: ProjectMemberRole = Field(..., description="项目角色") + + +class ProjectMemberResponse(BaseModel): + """项目成员响应 Schema""" + id: int + project_id: int + user_id: int + role: ProjectMemberRole + joined_at: datetime + + class Config: + from_attributes = True + + +class ProjectShareSettings(BaseModel): + """项目分享设置 Schema""" + access_pass: Optional[str] = Field(None, max_length=100, description="访问密码(None表示取消密码)") + + +class ProjectShareInfo(BaseModel): + """项目分享信息响应 Schema""" + share_url: str = Field(..., description="分享链接") + has_password: bool = Field(..., description="是否设置了访问密码") + access_pass: Optional[str] = Field(None, description="访问密码(仅项目所有者可见)") diff --git a/backend/app/schemas/response.py b/backend/app/schemas/response.py new file mode 100644 index 0000000..c76ef71 --- /dev/null +++ b/backend/app/schemas/response.py @@ -0,0 +1,42 @@ +""" +通用响应 Schema +""" +from pydantic import BaseModel, Field +from typing import Generic, TypeVar, Optional, Any + +DataT = TypeVar('DataT') + + +class Response(BaseModel, Generic[DataT]): + """统一响应格式""" + code: int = Field(200, description="状态码") + message: str = Field("success", description="响应消息") + data: Optional[DataT] = Field(None, description="响应数据") + + +class PageResponse(BaseModel, Generic[DataT]): + """分页响应格式""" + code: int = Field(200, description="状态码") + message: str = Field("success", description="响应消息") + data: Optional[DataT] = Field(None, description="响应数据列表") + total: int = Field(0, description="总记录数") + page: int = Field(1, description="当前页码") + page_size: int = Field(10, description="每页大小") + + +def success_response(data: Any = None, message: str = "success") -> dict: + """成功响应""" + return { + "code": 200, + "message": message, + "data": data + } + + +def error_response(message: str = "error", code: int = 400, data: Any = None) -> dict: + """错误响应""" + return { + "code": code, + "message": message, + "data": data + } diff --git a/backend/app/schemas/user.py b/backend/app/schemas/user.py new file mode 100644 index 0000000..6e21955 --- /dev/null +++ b/backend/app/schemas/user.py @@ -0,0 +1,59 @@ +""" +用户相关的 Pydantic Schema +""" +from pydantic import BaseModel, Field, EmailStr +from typing import Optional +from datetime import datetime + + +class UserBase(BaseModel): + """用户基础 Schema""" + username: str = Field(..., min_length=3, max_length=50, description="用户名") + nickname: Optional[str] = Field(None, max_length=50, description="昵称") + email: Optional[EmailStr] = Field(None, description="邮箱") + phone: Optional[str] = Field(None, max_length=20, description="手机号") + + +class UserCreate(UserBase): + """创建用户 Schema""" + password: str = Field(..., min_length=6, max_length=50, description="密码") + + +class UserUpdate(BaseModel): + """更新用户 Schema""" + nickname: Optional[str] = None + email: Optional[EmailStr] = None + phone: Optional[str] = None + avatar: Optional[str] = None + + +class UserResponse(UserBase): + """用户响应 Schema""" + id: int + avatar: Optional[str] = None + status: int + is_superuser: int + last_login_at: Optional[datetime] = None + created_at: datetime + + class Config: + from_attributes = True + + +class UserLogin(BaseModel): + """用户登录 Schema""" + username: str = Field(..., description="用户名") + password: str = Field(..., description="密码") + + +class Token(BaseModel): + """Token 响应 Schema""" + access_token: str + token_type: str = "bearer" + user: UserResponse + + +class ChangePassword(BaseModel): + """修改密码 Schema""" + old_password: str = Field(..., description="旧密码") + new_password: str = Field(..., min_length=6, max_length=50, description="新密码") diff --git a/backend/app/services/storage.py b/backend/app/services/storage.py new file mode 100644 index 0000000..a560e94 --- /dev/null +++ b/backend/app/services/storage.py @@ -0,0 +1,280 @@ +""" +文件存储管理服务 +""" +import os +import shutil +import uuid +import aiofiles +from pathlib import Path +from typing import List, Optional +from fastapi import HTTPException, UploadFile +from app.core.config import settings +from app.schemas.file import FileTreeNode + + +class StorageService: + """文件存储服务类""" + + def __init__(self): + self.projects_root = Path(settings.PROJECTS_PATH) + self.temp_root = Path(settings.TEMP_PATH) + + # 确保根目录存在 + self.projects_root.mkdir(parents=True, exist_ok=True) + self.temp_root.mkdir(parents=True, exist_ok=True) + + def get_secure_path(self, storage_key: str, relative_path: str = "") -> Path: + """ + 获取安全的文件路径(防止路径穿越攻击) + + Args: + storage_key: 项目 UUID + relative_path: 相对路径 + + Returns: + Path: 安全的绝对路径 + + Raises: + HTTPException: 非法路径访问 + """ + # 项目根目录 + project_root = self.projects_root / storage_key + project_root = project_root.resolve() + + # 目标路径 + if relative_path: + target_path = (project_root / relative_path).resolve() + else: + target_path = project_root + + # 安全检查:目标路径必须在项目根目录下 + try: + target_path.relative_to(project_root) + except ValueError: + raise HTTPException(status_code=403, detail="非法路径访问") + + return target_path + + def create_project_structure(self, storage_key: str) -> None: + """ + 创建项目文件夹结构 + + Args: + storage_key: 项目 UUID + """ + project_root = self.projects_root / storage_key + project_root.mkdir(parents=True, exist_ok=True) + + # 创建 _assets 目录 + assets_dir = project_root / "_assets" + assets_dir.mkdir(exist_ok=True) + (assets_dir / "images").mkdir(exist_ok=True) + (assets_dir / "files").mkdir(exist_ok=True) + + # 创建默认 README.md + readme_path = project_root / "README.md" + if not readme_path.exists(): + with open(readme_path, "w", encoding="utf-8") as f: + f.write("# 项目首页\n\n欢迎使用 NEX Docus!\n") + + def generate_tree(self, path: Path, relative_root: str = "") -> List[FileTreeNode]: + """ + 生成目录树结构 + + Args: + path: 目录路径 + relative_root: 相对根路径 + + Returns: + List[FileTreeNode]: 目录树节点列表 + """ + if not path.exists() or not path.is_dir(): + return [] + + tree = [] + try: + # 获取所有文件和文件夹,按类型和名称排序 + items = sorted( + path.iterdir(), + key=lambda x: (not x.is_dir(), x.name.lower()) + ) + + for item in items: + # 跳过隐藏文件、特殊目录和 _assets 目录 + if item.name.startswith(".") or item.name == "_assets": + continue + + rel_path = str(Path(relative_root) / item.name) if relative_root else item.name + + node_data = { + "title": item.name, + "key": rel_path, + "isLeaf": item.is_file(), + } + + if item.is_dir(): + node_data["children"] = self.generate_tree(item, rel_path) + + tree.append(FileTreeNode(**node_data)) + + except PermissionError: + raise HTTPException(status_code=403, detail="权限不足") + + return tree + + async def read_file(self, file_path: Path) -> str: + """ + 读取文件内容 + + Args: + file_path: 文件路径 + + Returns: + str: 文件内容 + + Raises: + HTTPException: 文件不存在或无法读取 + """ + if not file_path.exists(): + raise HTTPException(status_code=404, detail="文件不存在") + + if not file_path.is_file(): + raise HTTPException(status_code=400, detail="不是有效的文件") + + try: + async with aiofiles.open(file_path, "r", encoding="utf-8") as f: + content = await f.read() + return content + except Exception as e: + raise HTTPException(status_code=500, detail=f"文件读取失败: {str(e)}") + + async def write_file(self, file_path: Path, content: str) -> None: + """ + 写入文件内容 + + Args: + file_path: 文件路径 + content: 文件内容 + + Raises: + HTTPException: 写入失败 + """ + try: + # 确保父目录存在 + file_path.parent.mkdir(parents=True, exist_ok=True) + + async with aiofiles.open(file_path, "w", encoding="utf-8") as f: + await f.write(content) + except Exception as e: + raise HTTPException(status_code=500, detail=f"文件写入失败: {str(e)}") + + async def delete_file(self, file_path: Path) -> None: + """ + 删除文件或文件夹 + + Args: + file_path: 文件路径 + + Raises: + HTTPException: 删除失败 + """ + if not file_path.exists(): + raise HTTPException(status_code=404, detail="文件不存在") + + try: + if file_path.is_dir(): + shutil.rmtree(file_path) + else: + file_path.unlink() + except Exception as e: + raise HTTPException(status_code=500, detail=f"删除失败: {str(e)}") + + async def rename_file(self, old_path: Path, new_path: Path) -> None: + """ + 重命名文件或文件夹 + + Args: + old_path: 旧路径 + new_path: 新路径 + + Raises: + HTTPException: 重命名失败 + """ + if not old_path.exists(): + raise HTTPException(status_code=404, detail="文件不存在") + + if new_path.exists(): + raise HTTPException(status_code=400, detail="目标路径已存在") + + try: + old_path.rename(new_path) + except Exception as e: + raise HTTPException(status_code=500, detail=f"重命名失败: {str(e)}") + + async def create_directory(self, dir_path: Path) -> None: + """ + 创建目录 + + Args: + dir_path: 目录路径 + + Raises: + HTTPException: 创建失败 + """ + if dir_path.exists(): + raise HTTPException(status_code=400, detail="目录已存在") + + try: + dir_path.mkdir(parents=True, exist_ok=True) + except Exception as e: + raise HTTPException(status_code=500, detail=f"创建目录失败: {str(e)}") + + async def upload_file( + self, + storage_key: str, + file: UploadFile, + subfolder: str = "images" + ) -> dict: + """ + 上传文件到项目资源目录 + + Args: + storage_key: 项目 UUID + file: 上传的文件 + subfolder: 子文件夹(images 或 files) + + Returns: + dict: 文件信息 + + Raises: + HTTPException: 上传失败 + """ + # 生成唯一文件名 + file_ext = Path(file.filename).suffix + unique_filename = f"{uuid.uuid4().hex}{file_ext}" + + # 目标路径 + target_dir = self.get_secure_path(storage_key, f"_assets/{subfolder}") + target_dir.mkdir(parents=True, exist_ok=True) + target_path = target_dir / unique_filename + + try: + # 保存文件 + async with aiofiles.open(target_path, "wb") as f: + content = await file.read() + await f.write(content) + + # 返回文件信息 + relative_path = f"_assets/{subfolder}/{unique_filename}" + return { + "filename": unique_filename, + "original_filename": file.filename, + "path": relative_path, + "size": len(content), + } + except Exception as e: + raise HTTPException(status_code=500, detail=f"文件上传失败: {str(e)}") + + +# 创建全局实例 +storage_service = StorageService() diff --git a/backend/main.py b/backend/main.py new file mode 100644 index 0000000..6f72c30 --- /dev/null +++ b/backend/main.py @@ -0,0 +1,67 @@ +""" +FastAPI 主应用 +""" +from fastapi import FastAPI +from fastapi.middleware.cors import CORSMiddleware +from contextlib import asynccontextmanager +from app.core.config import settings +from app.core.redis_client import init_redis, close_redis +from app.api.v1 import api_router + + +@asynccontextmanager +async def lifespan(app: FastAPI): + """应用生命周期管理""" + # 启动时初始化 Redis + await init_redis() + yield + # 关闭时清理 Redis 连接 + await close_redis() + + +# 创建 FastAPI 应用 +app = FastAPI( + title=settings.APP_NAME, + version=settings.APP_VERSION, + description="NEX Docus - 团队协作文档管理平台", + debug=settings.DEBUG, + lifespan=lifespan, +) + +# 配置 CORS +app.add_middleware( + CORSMiddleware, + allow_origins=settings.CORS_ORIGINS, + allow_credentials=True, + allow_methods=["*"], + allow_headers=["*"], +) + +# 注册 API 路由 +app.include_router(api_router, prefix="/api/v1") + + +@app.get("/") +async def root(): + """根路径""" + return { + "name": settings.APP_NAME, + "version": settings.APP_VERSION, + "status": "running" + } + + +@app.get("/health") +async def health_check(): + """健康检查""" + return {"status": "healthy"} + + +if __name__ == "__main__": + import uvicorn + uvicorn.run( + "main:app", + host=settings.HOST, + port=settings.PORT, + reload=settings.DEBUG, + ) diff --git a/backend/migrations/add_access_pass_to_projects.sql b/backend/migrations/add_access_pass_to_projects.sql new file mode 100644 index 0000000..738af35 --- /dev/null +++ b/backend/migrations/add_access_pass_to_projects.sql @@ -0,0 +1,5 @@ +-- 为projects表添加access_pass字段(访问密码) +-- 执行时间:2025-12-20 + +ALTER TABLE projects +ADD COLUMN access_pass VARCHAR(100) NULL COMMENT '访问密码(用于分享链接)' AFTER visit_count; diff --git a/backend/requirements.txt b/backend/requirements.txt new file mode 100644 index 0000000..191f488 --- /dev/null +++ b/backend/requirements.txt @@ -0,0 +1,31 @@ +# FastAPI 核心 +fastapi==0.109.0 +uvicorn[standard]==0.27.0 +python-multipart==0.0.6 +email-validator==2.1.0 + +# 数据库 +SQLAlchemy==2.0.25 +pymysql==1.1.0 +aiomysql==0.2.0 +alembic==1.13.1 +greenlet==3.0.3 + +# Redis +redis==5.0.1 +aioredis==2.0.1 + +# 认证与安全 +python-jose[cryptography]==3.3.0 +passlib[bcrypt]==1.7.4 +python-dotenv==1.0.0 +pydantic==2.5.3 +pydantic-settings==2.1.0 + +# 文件处理 +aiofiles==23.2.1 +python-magic==0.4.27 + +# 工具库 +PyYAML==6.0.1 +loguru==0.7.2 diff --git a/backend/scripts/create_nex_design_project.py b/backend/scripts/create_nex_design_project.py new file mode 100644 index 0000000..deb1011 --- /dev/null +++ b/backend/scripts/create_nex_design_project.py @@ -0,0 +1,154 @@ +""" +创建 NEX Design 项目 +""" +import pymysql +import uuid +import os +from pathlib import Path +from datetime import datetime + +# 数据库配置 +DB_CONFIG = { + 'host': '10.100.51.51', + 'port': 3306, + 'user': 'root', + 'password': 'Unis@123', + 'database': 'nex_docus', + 'charset': 'utf8mb4', +} + +# 项目信息 +PROJECT_INFO = { + 'name': 'NEX Design', + 'description': 'NEX 设计文档库', + 'owner_id': 1, # admin 用户的 ID +} + +# 文件存储根目录 +STORAGE_ROOT = '/data/nex_docus_store/projects' + +def create_project(): + """创建项目""" + try: + # 生成 UUID + storage_key = str(uuid.uuid4()) + print(f"生成项目 UUID: {storage_key}") + + # 连接数据库 + print("正在连接数据库...") + connection = pymysql.connect(**DB_CONFIG) + + try: + with connection.cursor() as cursor: + # 1. 插入项目记录 + print("创建项目记录...") + insert_project_sql = """ + INSERT INTO `projects` + (`name`, `description`, `storage_key`, `owner_id`, `is_public`, `status`, `created_at`) + VALUES (%s, %s, %s, %s, %s, %s, %s) + """ + cursor.execute(insert_project_sql, ( + PROJECT_INFO['name'], + PROJECT_INFO['description'], + storage_key, + PROJECT_INFO['owner_id'], + 0, # 私有项目 + 1, # 活跃状态 + datetime.now() + )) + + project_id = cursor.lastrowid + print(f"✓ 项目ID: {project_id}") + + # 2. 添加项目成员(admin 作为管理员) + print("添加项目管理员...") + insert_member_sql = """ + INSERT INTO `project_members` + (`project_id`, `user_id`, `role`, `joined_at`) + VALUES (%s, %s, %s, %s) + """ + cursor.execute(insert_member_sql, ( + project_id, + PROJECT_INFO['owner_id'], + 'admin', + datetime.now() + )) + print("✓ 管理员已添加") + + # 提交事务 + connection.commit() + print("✓ 数据库记录创建成功") + + finally: + connection.close() + + # 3. 创建物理文件夹结构 + print("\n创建项目文件夹...") + project_path = Path(STORAGE_ROOT) / storage_key + + try: + # 创建项目根目录 + project_path.mkdir(parents=True, exist_ok=True) + print(f"✓ 创建目录: {project_path}") + + # 创建 _assets 目录 + assets_dir = project_path / "_assets" + assets_dir.mkdir(exist_ok=True) + (assets_dir / "images").mkdir(exist_ok=True) + (assets_dir / "files").mkdir(exist_ok=True) + print(f"✓ 创建资源目录") + + # 创建默认 README.md + readme_path = project_path / "README.md" + with open(readme_path, "w", encoding="utf-8") as f: + f.write(f"""# {PROJECT_INFO['name']} + +{PROJECT_INFO['description']} + +## 欢迎使用 NEX Docus! + +这是您的项目首页,您可以在这里编写项目介绍、使用说明等内容。 + +### 快速开始 + +1. 在左侧目录树中创建文件夹和文档 +2. 支持 Markdown 语法编写文档 +3. 支持图片和附件上传 + +--- + +创建时间: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} +""") + print(f"✓ 创建 README.md") + + except Exception as e: + print(f"⚠️ 文件夹创建警告: {e}") + print(f" 请确保目录 {STORAGE_ROOT} 存在并有写入权限") + print(f" 或者修改 backend/.env 中的 STORAGE_ROOT 配置") + + print("\n" + "="*60) + print("✅ 项目创建成功!") + print("="*60) + print(f"项目名称: {PROJECT_INFO['name']}") + print(f"项目ID: {project_id}") + print(f"存储路径: {project_path}") + print(f"UUID: {storage_key}") + print("="*60) + print("\n你现在可以:") + print("1. 启动后端服务: cd backend && python main.py") + print("2. 启动前端服务: cd forntend && npm run dev") + print("3. 登录系统 (admin / admin@123)") + print("4. 在项目中添加你的文档") + print() + + except pymysql.Error as e: + print(f"❌ 数据库错误: {e}") + except Exception as e: + print(f"❌ 未知错误: {e}") + +if __name__ == "__main__": + print("=" * 60) + print("创建 NEX Design 项目") + print("=" * 60) + print() + create_project() diff --git a/backend/scripts/generate_password.py b/backend/scripts/generate_password.py new file mode 100644 index 0000000..290e2d5 --- /dev/null +++ b/backend/scripts/generate_password.py @@ -0,0 +1,13 @@ +""" +生成管理员密码哈希 +""" +from passlib.context import CryptContext + +pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") + +# 生成 admin@123 的密码哈希 +password = "admin@123" +password_hash = pwd_context.hash(password) + +print(f"密码: {password}") +print(f"哈希: {password_hash}") diff --git a/backend/scripts/init_database.sql b/backend/scripts/init_database.sql new file mode 100644 index 0000000..4b4ba26 --- /dev/null +++ b/backend/scripts/init_database.sql @@ -0,0 +1,204 @@ +-- NEX Docus 数据库初始化脚本 +-- 创建数据库 +CREATE DATABASE IF NOT EXISTS `nex_docus` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; +USE `nex_docus`; + +-- 1. 用户表 +CREATE TABLE IF NOT EXISTS `users` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '用户ID', + `username` VARCHAR(50) NOT NULL UNIQUE COMMENT '用户名(登录账号)', + `password_hash` VARCHAR(255) NOT NULL COMMENT '密码哈希(bcrypt)', + `nickname` VARCHAR(50) DEFAULT NULL COMMENT '昵称(显示名称)', + `email` VARCHAR(100) DEFAULT NULL COMMENT '邮箱', + `phone` VARCHAR(20) DEFAULT NULL COMMENT '手机号', + `avatar` VARCHAR(255) DEFAULT NULL COMMENT '头像URL', + `status` TINYINT DEFAULT 1 COMMENT '状态:0-禁用 1-启用', + `is_superuser` TINYINT DEFAULT 0 COMMENT '是否超级管理员:0-否 1-是', + `last_login_at` DATETIME DEFAULT NULL COMMENT '最后登录时间', + `last_login_ip` VARCHAR(50) DEFAULT NULL COMMENT '最后登录IP', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + INDEX `idx_username` (`username`), + INDEX `idx_email` (`email`), + INDEX `idx_status` (`status`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户表'; + +-- 2. 角色表 +CREATE TABLE IF NOT EXISTS `roles` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '角色ID', + `role_name` VARCHAR(50) NOT NULL UNIQUE COMMENT '角色名称', + `role_code` VARCHAR(50) NOT NULL UNIQUE COMMENT '角色编码', + `description` VARCHAR(255) DEFAULT NULL COMMENT '角色描述', + `status` TINYINT DEFAULT 1 COMMENT '状态:0-禁用 1-启用', + `is_system` TINYINT DEFAULT 0 COMMENT '是否系统角色:0-否 1-是', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + INDEX `idx_role_code` (`role_code`), + INDEX `idx_status` (`status`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色表'; + +-- 3. 用户角色关联表 +CREATE TABLE IF NOT EXISTS `user_roles` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '关联ID', + `user_id` BIGINT NOT NULL COMMENT '用户ID', + `role_id` BIGINT NOT NULL COMMENT '角色ID', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + UNIQUE KEY `uk_user_role` (`user_id`, `role_id`), + INDEX `idx_user_id` (`user_id`), + INDEX `idx_role_id` (`role_id`), + FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE CASCADE, + FOREIGN KEY (`role_id`) REFERENCES `roles`(`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户角色关联表'; + +-- 4. 系统菜单表 +CREATE TABLE IF NOT EXISTS `system_menus` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '菜单ID', + `parent_id` BIGINT DEFAULT 0 COMMENT '父菜单ID', + `menu_name` VARCHAR(50) NOT NULL COMMENT '菜单名称', + `menu_code` VARCHAR(50) NOT NULL UNIQUE COMMENT '菜单编码', + `menu_type` TINYINT NOT NULL COMMENT '菜单类型:1-目录 2-菜单 3-按钮', + `path` VARCHAR(255) DEFAULT NULL COMMENT '路由路径', + `component` VARCHAR(255) DEFAULT NULL COMMENT '组件路径', + `icon` VARCHAR(100) DEFAULT NULL COMMENT '图标', + `sort_order` INT DEFAULT 0 COMMENT '排序号', + `visible` TINYINT DEFAULT 1 COMMENT '是否可见:0-隐藏 1-显示', + `status` TINYINT DEFAULT 1 COMMENT '状态:0-禁用 1-启用', + `permission` VARCHAR(100) DEFAULT NULL COMMENT '权限字符串', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + INDEX `idx_parent_id` (`parent_id`), + INDEX `idx_menu_code` (`menu_code`), + INDEX `idx_status` (`status`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统菜单表'; + +-- 5. 角色菜单授权表 +CREATE TABLE IF NOT EXISTS `role_menus` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '关联ID', + `role_id` BIGINT NOT NULL COMMENT '角色ID', + `menu_id` BIGINT NOT NULL COMMENT '菜单ID', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + UNIQUE KEY `uk_role_menu` (`role_id`, `menu_id`), + INDEX `idx_role_id` (`role_id`), + INDEX `idx_menu_id` (`menu_id`), + FOREIGN KEY (`role_id`) REFERENCES `roles`(`id`) ON DELETE CASCADE, + FOREIGN KEY (`menu_id`) REFERENCES `system_menus`(`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色菜单授权表'; + +-- 6. 项目表 +CREATE TABLE IF NOT EXISTS `projects` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '项目ID', + `name` VARCHAR(100) NOT NULL COMMENT '项目名称', + `description` VARCHAR(500) DEFAULT NULL COMMENT '项目描述', + `storage_key` CHAR(36) NOT NULL COMMENT '磁盘存储UUID', + `owner_id` BIGINT NOT NULL COMMENT '项目所有者ID', + `is_public` TINYINT DEFAULT 0 COMMENT '是否公开:0-私有 1-公开', + `is_template` TINYINT DEFAULT 0 COMMENT '是否模板项目:0-否 1-是', + `status` TINYINT DEFAULT 1 COMMENT '状态:0-归档 1-活跃', + `cover_image` VARCHAR(255) DEFAULT NULL COMMENT '封面图', + `sort_order` INT DEFAULT 0 COMMENT '排序号', + `visit_count` INT DEFAULT 0 COMMENT '访问次数', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + UNIQUE KEY `uk_storage_key` (`storage_key`), + INDEX `idx_owner_id` (`owner_id`), + INDEX `idx_name` (`name`), + INDEX `idx_status` (`status`), + INDEX `idx_created_at` (`created_at`), + FOREIGN KEY (`owner_id`) REFERENCES `users`(`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='项目表'; + +-- 7. 项目成员表 +CREATE TABLE IF NOT EXISTS `project_members` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '成员ID', + `project_id` BIGINT NOT NULL COMMENT '项目ID', + `user_id` BIGINT NOT NULL COMMENT '用户ID', + `role` ENUM('admin', 'editor', 'viewer') DEFAULT 'viewer' COMMENT '项目角色', + `invited_by` BIGINT DEFAULT NULL COMMENT '邀请人ID', + `joined_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '加入时间', + UNIQUE KEY `uk_project_user` (`project_id`, `user_id`), + INDEX `idx_project_id` (`project_id`), + INDEX `idx_user_id` (`user_id`), + INDEX `idx_role` (`role`), + FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON DELETE CASCADE, + FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE CASCADE, + FOREIGN KEY (`invited_by`) REFERENCES `users`(`id`) ON DELETE SET NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='项目成员表'; + +-- 8. 文档元数据表 +CREATE TABLE IF NOT EXISTS `document_meta` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '元数据ID', + `project_id` BIGINT NOT NULL COMMENT '项目ID', + `file_path` VARCHAR(500) NOT NULL COMMENT '文件相对路径', + `title` VARCHAR(200) DEFAULT NULL COMMENT '文档标题', + `tags` VARCHAR(500) DEFAULT NULL COMMENT '标签(JSON数组)', + `author_id` BIGINT DEFAULT NULL COMMENT '作者ID', + `word_count` INT DEFAULT 0 COMMENT '字数统计', + `view_count` INT DEFAULT 0 COMMENT '浏览次数', + `last_editor_id` BIGINT DEFAULT NULL COMMENT '最后编辑者ID', + `last_edited_at` DATETIME DEFAULT NULL COMMENT '最后编辑时间', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + UNIQUE KEY `uk_project_path` (`project_id`, `file_path`(255)), + INDEX `idx_project_id` (`project_id`), + INDEX `idx_author_id` (`author_id`), + FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON DELETE CASCADE, + FOREIGN KEY (`author_id`) REFERENCES `users`(`id`) ON DELETE SET NULL, + FOREIGN KEY (`last_editor_id`) REFERENCES `users`(`id`) ON DELETE SET NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文档元数据表'; + +-- 9. 操作日志表 +CREATE TABLE IF NOT EXISTS `operation_logs` ( + `id` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '日志ID', + `user_id` BIGINT DEFAULT NULL COMMENT '操作用户ID', + `username` VARCHAR(50) DEFAULT NULL COMMENT '用户名', + `operation_type` VARCHAR(50) NOT NULL COMMENT '操作类型', + `resource_type` VARCHAR(50) NOT NULL COMMENT '资源类型', + `resource_id` BIGINT DEFAULT NULL COMMENT '资源ID', + `detail` TEXT DEFAULT NULL COMMENT '操作详情(JSON)', + `ip_address` VARCHAR(50) DEFAULT NULL COMMENT 'IP地址', + `user_agent` VARCHAR(500) DEFAULT NULL COMMENT '用户代理', + `status` TINYINT DEFAULT 1 COMMENT '状态:0-失败 1-成功', + `error_message` TEXT DEFAULT NULL COMMENT '错误信息', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间', + INDEX `idx_user_id` (`user_id`), + INDEX `idx_resource` (`resource_type`, `resource_id`), + INDEX `idx_created_at` (`created_at`), + FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE SET NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='操作日志表'; + +-- 插入初始角色数据 +INSERT INTO `roles` (`role_name`, `role_code`, `description`, `is_system`) VALUES +('超级管理员', 'super_admin', '拥有系统所有权限', 1), +('项目管理员', 'project_admin', '可以创建和管理项目', 1), +('普通用户', 'user', '可以查看和编辑被授权的项目', 1), +('访客', 'guest', '只读权限', 1); + +-- 插入初始菜单数据 +INSERT INTO `system_menus` (`id`, `parent_id`, `menu_name`, `menu_code`, `menu_type`, `path`, `icon`, `sort_order`, `permission`) VALUES +(1, 0, '项目管理', 'project', 1, '/projects', 'FolderOutlined', 1, NULL), +(2, 1, '我的项目', 'my_projects', 2, '/projects/my', NULL, 1, 'project:view'), +(3, 1, '创建项目', 'create_project', 3, NULL, NULL, 2, 'project:create'), +(4, 1, '编辑项目', 'edit_project', 3, NULL, NULL, 3, 'project:edit'), +(5, 1, '删除项目', 'delete_project', 3, NULL, NULL, 4, 'project:delete'), +(10, 0, '文档管理', 'document', 1, '/documents', 'FileTextOutlined', 2, NULL), +(11, 10, '查看文档', 'view_document', 3, NULL, NULL, 1, 'document:view'), +(12, 10, '编辑文档', 'edit_document', 3, NULL, NULL, 2, 'document:edit'), +(13, 10, '删除文档', 'delete_document', 3, NULL, NULL, 3, 'document:delete'), +(20, 0, '系统管理', 'system', 1, '/system', 'SettingOutlined', 3, NULL), +(21, 20, '用户管理', 'user_manage', 2, '/system/users', NULL, 1, 'system:user:view'), +(22, 20, '角色管理', 'role_manage', 2, '/system/roles', NULL, 2, 'system:role:view'); + +-- 创建默认管理员用户(密码: admin@123) +INSERT INTO `users` (`username`, `password_hash`, `nickname`, `is_superuser`, `status`) VALUES +('admin', '$2b$12$TkyjVycb8PHk/835Py4Kz.r.us7YqPAbF.89NQ7TrU5/r/lTqVAUu', '系统管理员', 1, 1); + +-- 将管理员用户分配超级管理员角色 +INSERT INTO `user_roles` (`user_id`, `role_id`) VALUES (1, 1); + +-- 为超级管理员角色授权所有菜单 +INSERT INTO `role_menus` (`role_id`, `menu_id`) +SELECT 1, id FROM `system_menus`; + +-- 完成 +SELECT '数据库初始化完成!' AS message; +SELECT CONCAT('默认管理员账号: admin, 密码: admin@123') AS credentials; diff --git a/backend/scripts/init_db.py b/backend/scripts/init_db.py new file mode 100644 index 0000000..ded6866 --- /dev/null +++ b/backend/scripts/init_db.py @@ -0,0 +1,36 @@ +""" +数据库初始化 Python 脚本 +使用 SQLAlchemy 创建表结构 +""" +import sys +import os +from pathlib import Path + +# 添加项目根目录到 Python 路径 +sys.path.insert(0, str(Path(__file__).parent.parent)) + +from sqlalchemy import create_engine +from app.core.config import settings +from app.core.database import Base +from app.models import * # 导入所有模型 +from app.core.security import get_password_hash + + +def init_database(): + """初始化数据库""" + print("开始初始化数据库...") + + # 创建同步引擎(用于表创建) + engine = create_engine(settings.SYNC_DATABASE_URL, echo=True) + + # 创建所有表 + print("创建数据库表...") + Base.metadata.create_all(bind=engine) + + print("✓ 数据库表创建完成") + print("\n请执行 SQL 脚本插入初始数据:") + print(f" mysql -h{settings.DB_HOST} -u{settings.DB_USER} -p{settings.DB_PASSWORD} {settings.DB_NAME} < scripts/init_database.sql") + + +if __name__ == "__main__": + init_database() diff --git a/backend/scripts/init_db_pymysql.py b/backend/scripts/init_db_pymysql.py new file mode 100644 index 0000000..ba6e0d5 --- /dev/null +++ b/backend/scripts/init_db_pymysql.py @@ -0,0 +1,94 @@ +""" +使用 Python 执行数据库初始化脚本 +""" +import pymysql +import sys +from pathlib import Path + +# 数据库配置 +DB_CONFIG = { + 'host': '10.100.51.51', + 'port': 3306, + 'user': 'root', + 'password': 'Unis@123', + 'charset': 'utf8mb4', +} + +def execute_sql_file(sql_file_path): + """执行 SQL 文件""" + try: + # 读取 SQL 文件 + with open(sql_file_path, 'r', encoding='utf-8') as f: + sql_content = f.read() + + # 连接数据库 + print("正在连接数据库...") + connection = pymysql.connect(**DB_CONFIG) + + try: + with connection.cursor() as cursor: + # 分割SQL语句(简单分割,按分号) + statements = [] + current_statement = [] + + for line in sql_content.split('\n'): + # 跳过注释 + line = line.strip() + if line.startswith('--') or not line: + continue + + current_statement.append(line) + + # 如果行以分号结尾,表示一条完整的语句 + if line.endswith(';'): + statement = ' '.join(current_statement) + if statement.strip(): + statements.append(statement) + current_statement = [] + + # 执行所有语句 + print(f"共 {len(statements)} 条SQL语句...") + for i, statement in enumerate(statements, 1): + try: + cursor.execute(statement) + # 如果是SELECT语句,获取结果 + if statement.strip().upper().startswith('SELECT'): + result = cursor.fetchall() + if result: + print(f" [{i}] {result}") + else: + print(f" [{i}] 执行成功") + except Exception as e: + print(f" [{i}] 执行失败: {e}") + print(f" SQL: {statement[:100]}...") + + # 提交事务 + connection.commit() + print("\n✅ 数据库初始化完成!") + + finally: + connection.close() + + except FileNotFoundError: + print(f"❌ SQL 文件不存在: {sql_file_path}") + sys.exit(1) + except pymysql.Error as e: + print(f"❌ 数据库错误: {e}") + sys.exit(1) + except Exception as e: + print(f"❌ 未知错误: {e}") + sys.exit(1) + +if __name__ == "__main__": + script_dir = Path(__file__).parent + sql_file = script_dir / "init_database.sql" + + print("=" * 60) + print("NEX Docus 数据库初始化") + print("=" * 60) + print(f"SQL 文件: {sql_file}") + print(f"数据库地址: {DB_CONFIG['host']}:{DB_CONFIG['port']}") + print("=" * 60) + print() + + execute_sql_file(sql_file) diff --git a/docs/DOCKER_DOCS_SETUP.md b/docs/DOCKER_DOCS_SETUP.md new file mode 100644 index 0000000..bc6f660 --- /dev/null +++ b/docs/DOCKER_DOCS_SETUP.md @@ -0,0 +1,370 @@ +# 文档目录 Docker 部署方案 + +## 问题描述 + +应用中 `/design` 路由通过 `fetch('/docs/...')` 加载项目根目录下 `docs/` 文件夹中的 Markdown 文档。在 Docker 容器中运行时,需要确保这些文档能够被访问。 + +## 解决方案:Docker 卷挂载 + +采用 Docker 卷挂载方式,将宿主机的 `docs/` 目录直接映射到容器内,实现文档的实时更新和灵活管理。 + +### 配置方式 + +#### docker-compose.yml 配置 + +```yaml +version: '3.8' + +services: + nex-design: + build: + context: . + dockerfile: Dockerfile + volumes: + - ./logs:/app/logs # 日志目录挂载 + - ./docs:/app/dist/docs:ro # 文档目录挂载(只读) +``` + +**说明:** +- `./docs:/app/dist/docs` - 将宿主机当前目录的 `docs` 映射到容器的 `/app/dist/docs` +- `:ro` - 只读挂载,提高安全性,防止容器内进程修改文档 + +### 方案优势 + +✅ **实时更新** +- 修改 MD 文件后立即生效 +- 无需重新构建 Docker 镜像 +- 无需重启容器 + +✅ **方便维护** +- 在宿主机直接编辑文档 +- 使用熟悉的编辑器和工具 +- 支持版本控制 + +✅ **轻量镜像** +- Docker 镜像不包含文档内容 +- 镜像体积更小 +- 构建速度更快 + +✅ **灵活部署** +- 可以独立管理文档版本 +- 支持多环境部署(开发、测试、生产使用不同文档) +- 易于更新和回滚 + +### 目录结构 + +**宿主机:** +``` +nex-design/ +├── docs/ # 文档源文件(Git 管理) +│ ├── DESIGN_COOKBOOK.md +│ ├── components/ +│ │ ├── PageTitleBar.md +│ │ ├── ListTable.md +│ │ └── ... +│ └── pages/ +├── dist/ # 构建产物(容器内) +│ ├── index.html +│ └── assets/ +└── docker-compose.yml +``` + +**容器内:** +``` +/app/ +├── dist/ # 应用构建产物 +│ ├── index.html +│ ├── assets/ +│ └── docs/ # 挂载点 → 宿主机 docs/ +├── logs/ # 日志目录(挂载) +└── ecosystem.config.js # PM2 配置 +``` + +### 使用流程 + +#### 1. 启动服务 + +```bash +# 第一次启动(构建镜像) +docker-compose up -d --build + +# 后续启动(使用已有镜像) +docker-compose up -d +``` + +#### 2. 修改文档 + +```bash +# 在宿主机直接编辑文档 +vim docs/DESIGN_COOKBOOK.md + +# 或使用 VS Code 等编辑器 +code docs/components/PageTitleBar.md +``` + +#### 3. 验证更新 + +```bash +# 文档修改后立即生效,无需任何操作 +# 浏览器刷新即可看到最新内容 + +# 或使用 curl 验证 +curl http://localhost:3000/docs/DESIGN_COOKBOOK.md +``` + +### 验证挂载 + +```bash +# 检查容器内的挂载情况 +docker exec nex-design-app ls -la /app/dist/docs/ + +# 查看某个文档内容 +docker exec nex-design-app cat /app/dist/docs/DESIGN_COOKBOOK.md + +# 验证文件同步 +# 在宿主机修改文件 +echo "# Test" >> docs/test.md + +# 立即在容器内查看 +docker exec nex-design-app cat /app/dist/docs/test.md +``` + +### 部署注意事项 + +#### 1. 生产环境部署 + +**方式一:携带 docs 目录** +```bash +# 使用 git clone 或 scp 上传整个项目 +git clone /path/to/deploy +cd /path/to/deploy +docker-compose up -d +``` + +**方式二:单独管理文档** +```bash +# 文档单独部署在某个目录 +mkdir -p /var/www/nex-design-docs +# 上传文档到该目录 + +# 修改 docker-compose.yml +volumes: + - /var/www/nex-design-docs:/app/dist/docs:ro +``` + +#### 2. 权限管理 + +```bash +# 确保 docs 目录有正确的权限 +chmod -R 755 docs/ + +# 只读挂载可防止容器内修改,但宿主机权限仍需控制 +``` + +#### 3. 多环境配置 + +可以为不同环境创建不同的 docker-compose 文件: + +```bash +# docker-compose.dev.yml - 开发环境 +volumes: + - ./docs:/app/dist/docs:ro + +# docker-compose.prod.yml - 生产环境 +volumes: + - /var/www/docs:/app/dist/docs:ro +``` + +使用时指定配置文件: +```bash +docker-compose -f docker-compose.prod.yml up -d +``` + +### 故障排查 + +#### 问题 1:文档无法加载 + +```bash +# 检查挂载是否成功 +docker inspect nex-design-app | grep -A 10 Mounts + +# 检查容器内文件 +docker exec nex-design-app ls -la /app/dist/docs/ + +# 检查文件权限 +ls -la docs/ +``` + +#### 问题 2:修改后未生效 + +```bash +# 确认使用的是卷挂载而不是 COPY +docker exec nex-design-app cat /app/dist/docs/DESIGN_COOKBOOK.md + +# 检查浏览器缓存 +# 使用 Ctrl+Shift+R 强制刷新 + +# 检查 serve 是否缓存了静态文件 +docker-compose restart +``` + +#### 问题 3:Windows 路径问题 + +Windows 下需要注意路径格式: +```yaml +# 错误 +volumes: + - .\docs:/app/dist/docs:ro + +# 正确 +volumes: + - ./docs:/app/dist/docs:ro +``` + +### 性能考虑 + +#### 1. 卷挂载性能 + +- **Linux/macOS**: 性能很好,几乎无损耗 +- **Windows/macOS + Docker Desktop**: 可能有轻微性能损耗 +- **生产环境**: 使用 Linux 主机,性能最佳 + +#### 2. 优化建议 + +如果文档很多且访问频繁,可考虑: + +1. **使用命名卷**: +```yaml +volumes: + docs-data: + driver: local + driver_opts: + type: none + o: bind + device: /path/to/docs + +services: + nex-design: + volumes: + - docs-data:/app/dist/docs:ro +``` + +2. **缓存策略**: +在 Nginx 反向代理中添加缓存: +```nginx +location /docs/ { + proxy_pass http://nex_design; + proxy_cache_valid 200 10m; + add_header X-Cache-Status $upstream_cache_status; +} +``` + +## 替代方案对比 + +### 方案 A: 构建时复制(未采用) + +```dockerfile +# Dockerfile +COPY docs /app/dist/docs +``` + +❌ 缺点: +- 修改文档需要重新构建镜像 +- 镜像体积更大 +- 更新流程复杂 + +✅ 优点: +- 镜像自包含 +- 适合不常修改的场景 + +### 方案 B: prebuild 脚本(未采用) + +```json +{ + "scripts": { + "prebuild": "cp -r docs public/" + } +} +``` + +❌ 缺点: +- 需要重新构建才能更新 +- 增加构建时间 +- 文档和代码耦合 + +### 方案 C: 卷挂载(✅ 当前采用) + +```yaml +volumes: + - ./docs:/app/dist/docs:ro +``` + +✅ 优点: +- 实时更新 +- 灵活管理 +- 镜像轻量 + +⚠️ 注意: +- 需要保持 docs 目录结构 +- 部署时需要文档文件 + +## 最佳实践 + +### 1. 文档版本管理 + +```bash +# 使用 Git 管理文档版本 +cd docs +git log DESIGN_COOKBOOK.md + +# 回滚到特定版本 +git checkout DESIGN_COOKBOOK.md +``` + +### 2. 文档自动化部署 + +```bash +#!/bin/bash +# scripts/update-docs.sh + +echo "更新文档..." +cd /path/to/nex-design + +# 拉取最新文档 +git pull origin main -- docs/ + +# 无需重启容器,文档即时生效 +echo "文档已更新!" +``` + +### 3. 监控文档访问 + +可以在 Nginx 中记录文档访问日志: +```nginx +location /docs/ { + access_log /var/log/nginx/docs-access.log; + proxy_pass http://nex_design; +} +``` + +## 总结 + +使用 Docker 卷挂载方案是最灵活、最适合本项目的解决方案: + +✅ **实时更新** - 修改即生效 +✅ **简单维护** - 直接编辑文件 +✅ **轻量镜像** - 更快的构建和部署 +✅ **灵活部署** - 支持多种场景 + +**核心配置只需一行:** +```yaml +volumes: + - ./docs:/app/dist/docs:ro +``` + +## 相关文件 + +- `docker-compose.yml:16` - 卷挂载配置 +- `DEPLOYMENT.md:14-35` - 部署文档说明 +- `QUICKSTART.md` - 快速参考 + diff --git a/docs/MIGRATION.md b/docs/MIGRATION.md new file mode 100644 index 0000000..5300384 --- /dev/null +++ b/docs/MIGRATION.md @@ -0,0 +1,61 @@ +# 文档迁移说明 + +## 📦 按钮扩展组件文档已迁移 + +原 `docs/` 目录下的按钮扩展相关文档已整合并迁移至: + +**新位置:** `src/components/docs/ButtonExtensions.md` + +--- + +## 🗂️ 迁移的文档 + +以下文档已整合到新文档中: + +| 原文档 | 状态 | +|--------|------| +| ~~ButtonHelpDesign.md~~ | ✅ 已整合 | +| ~~ButtonDesignFixes.md~~ | ✅ 已整合 | +| ~~ButtonDesignUpdate.md~~ | ✅ 已整合 | +| ~~ButtonDesignLatestFixes.md~~ | ✅ 已整合 | +| ~~ActionHelpPanelFix.md~~ | ✅ 已整合 | + +--- + +## 📖 新文档包含 + +- ✅ 5种设计方案完整说明 +- ✅ 所有组件的API文档 +- ✅ 详细的使用指南和示例 +- ✅ 最佳实践和性能优化建议 +- ✅ 完整的更新日志和变更记录 + +--- + +## 🔗 快速链接 + +- **文档路径:** `/src/components/docs/ButtonExtensions.md` +- **在线演示:** http://localhost:5173/design/button-designs +- **菜单路径:** 组件设计 → 扩展按钮 + +--- + +## 📅 迁移时间 + +**2025-11-17** - 所有文档已完成整合 + +--- + +## 💡 文档组织原则 + +今后组件文档将遵循以下原则: + +1. **统一位置** - 所有组件文档放在 `src/components/docs/` +2. **就近原则** - 文档与组件代码保持近距离 +3. **单一文档** - 同一功能的文档整合到一个文件 +4. **版本控制** - 使用版本号和更新日志记录变更 + +这样可以: +- ✅ 更容易找到和维护文档 +- ✅ 避免文档分散和重复 +- ✅ 与代码保持同步更新 diff --git a/forntend/.gitignore b/forntend/.gitignore new file mode 100644 index 0000000..a81ed89 --- /dev/null +++ b/forntend/.gitignore @@ -0,0 +1,50 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +# Dependencies +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +# Environment variables +.env +.env.local +.env.development.local +.env.test.local +.env.production.local + +# Testing +coverage +*.lcov +.nyc_output + +# Build +build +.cache + +# OS +.DS_Store +Thumbs.db + +# Temporary files +*.tmp +*.temp +*~ diff --git a/forntend/README.md b/forntend/README.md new file mode 100644 index 0000000..e6f2afb --- /dev/null +++ b/forntend/README.md @@ -0,0 +1,127 @@ +# NEX Docus Frontend + +NEX Docus 前端项目 - 基于 React + Vite + Ant Design 构建。 + +## 技术栈 + +- **框架**: React 18+ +- **构建工具**: Vite 5+ +- **UI 组件**: Ant Design 5+ +- **路由**: React Router v6 +- **HTTP 客户端**: Axios +- **状态管理**: Zustand +- **Markdown 编辑器**: @uiw/react-md-editor +- **样式**: Tailwind CSS + CSS Modules + +## 项目结构 + +``` +forntend/ +├── public/ # 静态资源 +├── src/ +│ ├── api/ # API 请求封装 +│ │ ├── auth.js # 用户认证 +│ │ ├── project.js # 项目管理 +│ │ └── file.js # 文件系统 +│ ├── components/ # 通用组件 +│ │ ├── MainLayout/ # 主布局 +│ │ └── ProtectedRoute.jsx # 路由守卫 +│ ├── pages/ # 页面组件 +│ │ ├── Login/ # 登录页 +│ │ ├── ProjectList/ # 项目列表页 +│ │ └── DocumentEditor/ # 文档编辑页 +│ ├── stores/ # 状态管理 +│ │ └── userStore.js # 用户状态 +│ ├── utils/ # 工具函数 +│ │ └── request.js # HTTP 请求封装 +│ ├── App.jsx # 应用入口 +│ ├── main.jsx # 渲染入口 +│ └── index.css # 全局样式 +├── index.html # HTML 模板 +├── package.json # 项目配置 +├── vite.config.js # Vite 配置 +└── tailwind.config.js # Tailwind 配置 +``` + +## 快速开始 + +### 1. 安装依赖 + +```bash +npm install +# 或 +pnpm install +``` + +### 2. 配置环境变量 + +编辑 `.env` 文件,配置后端 API 地址: + +```env +VITE_API_BASE_URL=http://localhost:8000/api/v1 +``` + +### 3. 启动开发服务器 + +```bash +npm run dev +``` + +访问:http://localhost:5173 + +### 4. 构建生产版本 + +```bash +npm run build +``` + +构建产物在 `dist/` 目录。 + +## 主要功能 + +### 用户认证 +- 用户注册 +- 用户登录 +- 自动Token刷新 +- 退出登录 + +### 项目管理 +- 创建项目 +- 项目列表 +- 项目详情 +- 删除项目(归档) + +### 文档编辑 +- 目录树浏览 +- Markdown 实时预览 +- 文件保存 +- 创建文件/文件夹 +- 删除文件 +- 图片上传 + +## 默认账号 + +- 用户名: `admin` +- 密码: `admin123` + +## 开发指南 + +### 添加新页面 + +1. 在 `src/pages/` 下创建页面组件 +2. 在 `src/App.jsx` 中添加路由 +3. 如果需要认证,使用 `` 包裹 + +### 添加新 API + +1. 在 `src/api/` 下创建对应的 API 文件 +2. 使用 `request` 工具发起请求 +3. 在组件中调用 API + +### 状态管理 + +使用 Zustand 进行状态管理,参考 `src/stores/userStore.js` + +## 许可证 + +Copyright © 2023 Mula.liu diff --git a/forntend/index.html b/forntend/index.html new file mode 100644 index 0000000..da6a0fa --- /dev/null +++ b/forntend/index.html @@ -0,0 +1,13 @@ + + + + + + + NEX Docus - 文档管理平台 + + +
+ + + diff --git a/forntend/package.json b/forntend/package.json new file mode 100644 index 0000000..8add0c4 --- /dev/null +++ b/forntend/package.json @@ -0,0 +1,40 @@ +{ + "name": "nex-docus-frontend", + "private": true, + "version": "1.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview", + "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0" + }, + "dependencies": { + "@ant-design/icons": "^5.2.6", + "@uiw/react-md-editor": "^4.0.4", + "antd": "^5.12.0", + "axios": "^1.6.2", + "dayjs": "^1.11.10", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-router-dom": "^6.20.1", + "rehype-highlight": "^7.0.2", + "rehype-raw": "^7.0.0", + "rehype-slug": "^6.0.0", + "remark-gfm": "^4.0.1", + "zustand": "^4.4.7" + }, + "devDependencies": { + "@types/react": "^18.2.43", + "@types/react-dom": "^18.2.17", + "@vitejs/plugin-react": "^4.2.1", + "autoprefixer": "^10.4.16", + "eslint": "^8.55.0", + "eslint-plugin-react": "^7.33.2", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react-refresh": "^0.4.5", + "postcss": "^8.4.32", + "tailwindcss": "^3.3.6", + "vite": "^5.0.8" + } +} diff --git a/forntend/src/App.css b/forntend/src/App.css new file mode 100644 index 0000000..d6823cf --- /dev/null +++ b/forntend/src/App.css @@ -0,0 +1,17 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', + 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', + sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +#root { + min-height: 100vh; +} diff --git a/forntend/src/App.jsx b/forntend/src/App.jsx new file mode 100644 index 0000000..c5ff612 --- /dev/null +++ b/forntend/src/App.jsx @@ -0,0 +1,91 @@ +import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom' +import { ConfigProvider } from 'antd' +import zhCN from 'antd/locale/zh_CN' +import Login from '@/pages/Login/Login' +import ProjectList from '@/pages/ProjectList/ProjectList' +import DocumentPage from '@/pages/Document/DocumentPage' +import DocumentEditor from '@/pages/Document/DocumentEditor' +import Dashboard from '@/pages/Dashboard' +import Desktop from '@/pages/Desktop' +import Constructing from '@/pages/Constructing' +import PreviewPage from '@/pages/Preview/PreviewPage' +import ProfilePage from '@/pages/Profile/ProfilePage' +import ProtectedRoute from '@/components/ProtectedRoute' +import '@/App.css' + +function App() { + return ( + + + + } /> + {/* 项目预览(公开访问,无需登录) */} + } /> + + +
+ } + /> + + + + } + /> + + + + } + /> + {/* 文档阅读模式 */} + + + + } + /> + {/* 文档编辑模式 */} + + + + } + /> + {/* 功能开发中页面 */} + + + + } + /> + {/* 个人中心 */} + + + + } + /> + } /> + + + + ) +} + +export default App diff --git a/forntend/src/api/auth.js b/forntend/src/api/auth.js new file mode 100644 index 0000000..601bfac --- /dev/null +++ b/forntend/src/api/auth.js @@ -0,0 +1,58 @@ +/** + * 用户认证相关 API + */ +import request from '@/utils/request' + +/** + * 用户注册 + */ +export function register(data) { + return request({ + url: '/auth/register', + method: 'post', + data, + }) +} + +/** + * 用户登录 + */ +export function login(data) { + return request({ + url: '/auth/login', + method: 'post', + data, + }) +} + +/** + * 获取当前用户信息 + */ +export function getCurrentUser() { + return request({ + url: '/auth/me', + method: 'get', + }) +} + +/** + * 更新用户资料 + */ +export function updateProfile(data) { + return request({ + url: '/auth/profile', + method: 'put', + data, + }) +} + +/** + * 修改密码 + */ +export function changePassword(data) { + return request({ + url: '/auth/change-password', + method: 'post', + data, + }) +} diff --git a/forntend/src/api/dashboard.js b/forntend/src/api/dashboard.js new file mode 100644 index 0000000..5640897 --- /dev/null +++ b/forntend/src/api/dashboard.js @@ -0,0 +1,24 @@ +/** + * 管理员仪表盘相关 API + */ +import request from '@/utils/request' + +/** + * 获取管理员仪表盘统计数据 + */ +export function getDashboardStats() { + return request({ + url: '/dashboard/stats', + method: 'get', + }) +} + +/** + * 获取个人桌面统计数据 + */ +export function getPersonalStats() { + return request({ + url: '/dashboard/personal-stats', + method: 'get', + }) +} diff --git a/forntend/src/api/file.js b/forntend/src/api/file.js new file mode 100644 index 0000000..aa14347 --- /dev/null +++ b/forntend/src/api/file.js @@ -0,0 +1,103 @@ +/** + * 文件系统相关 API + */ +import request from '@/utils/request' + +/** + * 获取项目目录树 + */ +export function getProjectTree(projectId) { + return request({ + url: `/files/${projectId}/tree`, + method: 'get', + }) +} + +/** + * 获取文件内容 + */ +export function getFileContent(projectId, path) { + return request({ + url: `/files/${projectId}/file`, + method: 'get', + params: { path }, + }) +} + +/** + * 保存文件内容 + */ +export function saveFile(projectId, data) { + return request({ + url: `/files/${projectId}/file`, + method: 'post', + data, + }) +} + +/** + * 文件操作(重命名/删除/创建) + */ +export function operateFile(projectId, data) { + return request({ + url: `/files/${projectId}/file/operate`, + method: 'post', + data, + }) +} + +/** + * 上传文件 + */ +export function uploadFile(projectId, file, subfolder = 'images') { + const formData = new FormData() + formData.append('file', file) + + return request({ + url: `/files/${projectId}/upload?subfolder=${subfolder}`, + method: 'post', + data: formData, + headers: { + 'Content-Type': 'multipart/form-data', + }, + }) +} + +/** + * 获取资源文件 URL(公开访问,支持分享) + */ +export function getAssetUrl(projectId, subfolder, filename) { + return `/api/v1/files/${projectId}/assets/${subfolder}/${filename}` +} + +/** + * 批量导入Markdown文档 + */ +export function importDocuments(projectId, files, targetPath = '') { + const formData = new FormData() + files.forEach((file) => { + formData.append('files', file) + }) + + return request({ + url: `/files/${projectId}/import-documents?target_path=${targetPath}`, + method: 'post', + data: formData, + headers: { + 'Content-Type': 'multipart/form-data', + }, + }) +} + +/** + * 导出目录为ZIP + */ +export function exportDirectory(projectId, directoryPath = '') { + return request({ + url: `/files/${projectId}/export-directory`, + method: 'get', + params: { directory_path: directoryPath }, + responseType: 'blob', + }) +} + diff --git a/forntend/src/api/menu.js b/forntend/src/api/menu.js new file mode 100644 index 0000000..0d0076b --- /dev/null +++ b/forntend/src/api/menu.js @@ -0,0 +1,24 @@ +/** + * 权限菜单相关 API + */ +import request from '@/utils/request' + +/** + * 获取当前用户的权限菜单 + */ +export function getUserMenus() { + return request({ + url: '/menu/user-menus', + method: 'get', + }) +} + +/** + * 获取当前用户的权限列表 + */ +export function getUserPermissions() { + return request({ + url: '/menu/user-permissions', + method: 'get', + }) +} diff --git a/forntend/src/api/project.js b/forntend/src/api/project.js new file mode 100644 index 0000000..2cd2cbe --- /dev/null +++ b/forntend/src/api/project.js @@ -0,0 +1,77 @@ +/** + * 项目管理相关 API + */ +import request from '@/utils/request' + +/** + * 获取我的项目列表 + */ +export function getMyProjects() { + return request({ + url: '/projects/', + method: 'get', + }) +} + +/** + * 创建项目 + */ +export function createProject(data) { + return request({ + url: '/projects/', + method: 'post', + data, + }) +} + +/** + * 获取项目详情 + */ +export function getProject(projectId) { + return request({ + url: `/projects/${projectId}`, + method: 'get', + }) +} + +/** + * 更新项目信息 + */ +export function updateProject(projectId, data) { + return request({ + url: `/projects/${projectId}`, + method: 'put', + data, + }) +} + +/** + * 删除项目 + */ +export function deleteProject(projectId) { + return request({ + url: `/projects/${projectId}`, + method: 'delete', + }) +} + +/** + * 获取项目成员 + */ +export function getProjectMembers(projectId) { + return request({ + url: `/projects/${projectId}/members`, + method: 'get', + }) +} + +/** + * 添加项目成员 + */ +export function addProjectMember(projectId, data) { + return request({ + url: `/projects/${projectId}/members`, + method: 'post', + data, + }) +} diff --git a/forntend/src/api/share.js b/forntend/src/api/share.js new file mode 100644 index 0000000..6e032db --- /dev/null +++ b/forntend/src/api/share.js @@ -0,0 +1,71 @@ +/** + * 项目分享和预览相关 API + */ +import request from '@/utils/request' + +/** + * 获取项目分享信息 + */ +export function getProjectShareInfo(projectId) { + return request({ + url: `/projects/${projectId}/share`, + method: 'get', + }) +} + +/** + * 更新分享设置(设置或取消访问密码) + */ +export function updateShareSettings(projectId, data) { + return request({ + url: `/projects/${projectId}/share/settings`, + method: 'post', + data, + }) +} + +/** + * 获取预览项目基本信息(公开访问) + */ +export function getPreviewInfo(projectId) { + return request({ + url: `/preview/${projectId}/info`, + method: 'get', + }) +} + +/** + * 验证访问密码 + */ +export function verifyAccessPassword(projectId, password) { + return request({ + url: `/preview/${projectId}/verify`, + method: 'post', + headers: { + 'X-Access-Password': password, + }, + }) +} + +/** + * 获取预览项目的文档树 + */ +export function getPreviewTree(projectId, password = null) { + return request({ + url: `/preview/${projectId}/tree`, + method: 'get', + headers: password ? { 'X-Access-Password': password } : {}, + }) +} + +/** + * 获取预览项目的文件内容 + */ +export function getPreviewFile(projectId, path, password = null) { + return request({ + url: `/preview/${projectId}/file`, + method: 'get', + params: { path }, + headers: password ? { 'X-Access-Password': password } : {}, + }) +} diff --git a/forntend/src/assets/logo-small.png b/forntend/src/assets/logo-small.png new file mode 100644 index 0000000..099c476 Binary files /dev/null and b/forntend/src/assets/logo-small.png differ diff --git a/forntend/src/components/ActionHelpPanel/ActionHelpPanel.css b/forntend/src/components/ActionHelpPanel/ActionHelpPanel.css new file mode 100644 index 0000000..bc039f7 --- /dev/null +++ b/forntend/src/components/ActionHelpPanel/ActionHelpPanel.css @@ -0,0 +1,259 @@ +/* 帮助面板样式 */ +.action-help-panel .ant-drawer-header { + border-bottom: 2px solid #f0f0f0; +} + +.help-panel-title { + display: flex; + align-items: center; + gap: 12px; + font-size: 16px; + font-weight: 600; +} + +.help-panel-header { + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; +} + +.help-panel-header-text { + font-weight: 500; + color: rgba(0, 0, 0, 0.88); +} + +/* 操作详情样式 */ +.help-action-detail { + display: flex; + flex-direction: column; + gap: 20px; +} + +.help-action-header { + display: flex; + align-items: flex-start; + gap: 12px; + padding: 16px; + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + border-radius: 12px; + color: white; +} + +.help-action-icon { + font-size: 28px; + line-height: 1; + opacity: 0.95; +} + +.help-action-info { + flex: 1; + display: flex; + flex-direction: column; + gap: 6px; +} + +.help-action-title { + margin: 0; + font-size: 18px; + font-weight: 600; + color: white; +} + +.help-action-badge { + align-self: flex-start; + margin: 0; + font-size: 11px; + padding: 2px 8px; + border-radius: 10px; +} + +/* 帮助区块样式 */ +.help-section { + padding: 16px; + background: #f8f9fa; + border-radius: 8px; + border-left: 3px solid #1677ff; +} + +.help-section-warning { + background: #fff7e6; + border-left-color: #faad14; +} + +.help-section-title { + display: flex; + align-items: center; + gap: 6px; + font-size: 14px; + font-weight: 600; + color: rgba(0, 0, 0, 0.88); + margin-bottom: 12px; +} + +.help-section-content { + font-size: 13px; + line-height: 1.8; + color: rgba(0, 0, 0, 0.65); +} + +.help-section-list { + margin: 0; + padding-left: 20px; + list-style-type: disc; +} + +.help-section-list li { + font-size: 13px; + line-height: 1.8; + color: rgba(0, 0, 0, 0.65); + margin-bottom: 8px; +} + +.help-section-list li:last-child { + margin-bottom: 0; +} + +.help-section-steps { + margin: 0; + padding-left: 20px; + counter-reset: step-counter; + list-style: none; +} + +.help-section-steps li { + font-size: 13px; + line-height: 1.8; + color: rgba(0, 0, 0, 0.65); + margin-bottom: 12px; + padding-left: 12px; + position: relative; + counter-increment: step-counter; +} + +.help-section-steps li:before { + content: counter(step-counter); + position: absolute; + left: -20px; + top: 0; + display: flex; + align-items: center; + justify-content: center; + width: 20px; + height: 20px; + background: #1677ff; + color: white; + border-radius: 50%; + font-size: 11px; + font-weight: 600; +} + +.help-section-steps li:last-child { + margin-bottom: 0; +} + +.help-shortcut { + display: inline-block; +} + +.help-shortcut kbd { + display: inline-block; + padding: 6px 12px; + background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%); + border: 1px solid #d9d9d9; + border-radius: 6px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 -2px 0 rgba(0, 0, 0, 0.05); + font-size: 12px; + font-family: 'Monaco', 'Consolas', monospace; + color: rgba(0, 0, 0, 0.88); + font-weight: 500; +} + +/* 操作列表样式 */ +.help-actions-list { + display: flex; + flex-direction: column; + gap: 12px; +} + +.help-action-item { + padding: 12px; + background: white; + border: 1px solid #f0f0f0; + border-radius: 8px; + transition: all 0.3s ease; + cursor: pointer; +} + +.help-action-item:hover { + border-color: #1677ff; + box-shadow: 0 2px 8px rgba(22, 119, 255, 0.1); + transform: translateY(-2px); +} + +.help-action-item-header { + display: flex; + align-items: center; + gap: 8px; + margin-bottom: 6px; +} + +.help-action-item-icon { + font-size: 16px; + color: #1677ff; +} + +.help-action-item-title { + flex: 1; + font-size: 14px; + font-weight: 500; + color: rgba(0, 0, 0, 0.88); +} + +.help-action-item-shortcut { + padding: 2px 6px; + background: #f0f0f0; + border: 1px solid #d9d9d9; + border-radius: 4px; + font-size: 11px; + font-family: 'Monaco', 'Consolas', monospace; + color: rgba(0, 0, 0, 0.65); +} + +.help-action-item-desc { + font-size: 12px; + line-height: 1.6; + color: rgba(0, 0, 0, 0.45); + padding-left: 24px; +} + +/* 折叠面板自定义样式 */ +.action-help-panel .ant-collapse-ghost > .ant-collapse-item { + margin-bottom: 16px; +} + +.action-help-panel .ant-collapse-ghost > .ant-collapse-item > .ant-collapse-header { + padding: 12px 16px; + background: #fafafa; + border-radius: 8px; + font-weight: 500; +} + +.action-help-panel .ant-collapse-ghost > .ant-collapse-item > .ant-collapse-content { + padding-top: 12px; +} + +/* 响应式调整 */ +@media (max-width: 768px) { + .action-help-panel .ant-drawer-content-wrapper { + width: 100% !important; + } + + .help-action-header { + padding: 12px; + } + + .help-section { + padding: 12px; + } +} diff --git a/forntend/src/components/ActionHelpPanel/ActionHelpPanel.jsx b/forntend/src/components/ActionHelpPanel/ActionHelpPanel.jsx new file mode 100644 index 0000000..a3cde11 --- /dev/null +++ b/forntend/src/components/ActionHelpPanel/ActionHelpPanel.jsx @@ -0,0 +1,228 @@ +import { useState, useEffect } from 'react' +import { Drawer, Collapse, Badge, Tag, Empty } from 'antd' +import { + QuestionCircleOutlined, + BulbOutlined, + WarningOutlined, + InfoCircleOutlined, + ThunderboltOutlined, +} from '@ant-design/icons' +import './ActionHelpPanel.css' + +const { Panel } = Collapse + +/** + * 操作帮助面板组件 + * 在页面侧边显示当前操作的详细说明和帮助信息 + * @param {Object} props + * @param {boolean} props.visible - 是否显示面板 + * @param {Function} props.onClose - 关闭回调 + * @param {Object} props.currentAction - 当前操作信息 + * @param {Array} props.allActions - 所有可用操作列表 + * @param {string} props.placement - 面板位置 + * @param {Function} props.onActionSelect - 选择操作的回调 + */ +function ActionHelpPanel({ + visible = false, + onClose, + currentAction = null, + allActions = [], + placement = 'right', + onActionSelect, +}) { + const [activeKey, setActiveKey] = useState(['current']) + + // 当 currentAction 变化时,自动展开"当前操作"面板 + useEffect(() => { + if (currentAction && visible) { + setActiveKey(['current']) + } + }, [currentAction, visible]) + + // 渲染当前操作详情 + const renderCurrentAction = () => { + if (!currentAction) { + return ( + + ) + } + + return ( +
+ {/* 操作标题 */} +
+
{currentAction.icon}
+
+

{currentAction.title}

+ {currentAction.badge && ( + + {currentAction.badge.text} + + )} +
+
+ + {/* 操作描述 */} + {currentAction.description && ( +
+
+ 功能说明 +
+
{currentAction.description}
+
+ )} + + {/* 使用场景 */} + {currentAction.scenarios && currentAction.scenarios.length > 0 && ( +
+
+ 使用场景 +
+
    + {currentAction.scenarios.map((scenario, index) => ( +
  • {scenario}
  • + ))} +
+
+ )} + + {/* 操作步骤 */} + {currentAction.steps && currentAction.steps.length > 0 && ( +
+
+ 操作步骤 +
+
    + {currentAction.steps.map((step, index) => ( +
  1. {step}
  2. + ))} +
+
+ )} + + {/* 注意事项 */} + {currentAction.warnings && currentAction.warnings.length > 0 && ( +
+
+ 注意事项 +
+
    + {currentAction.warnings.map((warning, index) => ( +
  • {warning}
  • + ))} +
+
+ )} + + {/* 快捷键 */} + {currentAction.shortcut && ( +
+
⌨️ 快捷键
+
+ {currentAction.shortcut} +
+
+ )} + + {/* 权限要求 */} + {currentAction.permission && ( +
+
🔐 权限要求
+
+ {currentAction.permission} +
+
+ )} +
+ ) + } + + // 渲染所有操作列表 + const renderAllActions = () => { + if (allActions.length === 0) { + return + } + + return ( +
+ {allActions.map((action, index) => ( +
{ + if (onActionSelect) { + onActionSelect(action) + setActiveKey(['current']) + } + }} + > +
+ {action.icon} + {action.title} + {action.shortcut && ( + {action.shortcut} + )} +
+
{action.description}
+
+ ))} +
+ ) + } + + return ( + + + 操作帮助 + {currentAction && } + + } + placement={placement} + width={420} + open={visible} + onClose={onClose} + className="action-help-panel" + > + + + 当前操作 + {currentAction && ( + + )} + + } + key="current" + > + {renderCurrentAction()} + + + + {renderAllActions()} + + + + ) +} + +export default ActionHelpPanel diff --git a/forntend/src/components/BottomHintBar/BottomHintBar.css b/forntend/src/components/BottomHintBar/BottomHintBar.css new file mode 100644 index 0000000..36de3a3 --- /dev/null +++ b/forntend/src/components/BottomHintBar/BottomHintBar.css @@ -0,0 +1,304 @@ +/* 底部提示栏基础样式 */ +.bottom-hint-bar { + position: fixed; + bottom: 0; + left: 0; + right: 0; + z-index: 9999; + padding: 12px 24px; + box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1); + animation: slideUp 0.3s ease; +} + +@keyframes slideUp { + from { + transform: translateY(100%); + opacity: 0; + } + to { + transform: translateY(0); + opacity: 1; + } +} + +/* 主题样式 */ +.bottom-hint-bar-light { + background: #ffffff; + border-top: 1px solid #f0f0f0; +} + +.bottom-hint-bar-dark { + background: #001529; + color: #ffffff; +} + +.bottom-hint-bar-gradient { + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + color: #ffffff; +} + +/* 容器布局 */ +.hint-bar-container { + display: flex; + align-items: center; + gap: 24px; + max-width: 1400px; + margin: 0 auto; +} + +/* 左侧区域 */ +.hint-bar-left { + display: flex; + align-items: center; + gap: 12px; + flex-shrink: 0; +} + +.hint-bar-icon { + font-size: 24px; + opacity: 0.9; +} + +.bottom-hint-bar-light .hint-bar-icon { + color: #1677ff; +} + +.hint-bar-title-section { + display: flex; + flex-direction: column; + gap: 4px; +} + +.hint-bar-title { + margin: 0; + font-size: 15px; + font-weight: 600; + line-height: 1.2; +} + +.bottom-hint-bar-light .hint-bar-title { + color: rgba(0, 0, 0, 0.88); +} + +.hint-bar-badge { + margin: 0; + font-size: 10px; + padding: 1px 6px; + align-self: flex-start; +} + +/* 中间区域 */ +.hint-bar-center { + flex: 1; + display: flex; + align-items: center; + gap: 24px; + flex-wrap: wrap; +} + +.hint-bar-description, +.hint-bar-quick-tip, +.hint-bar-warning { + display: flex; + align-items: center; + gap: 8px; + font-size: 13px; + line-height: 1.4; +} + +.bottom-hint-bar-light .hint-bar-description, +.bottom-hint-bar-light .hint-bar-quick-tip { + color: rgba(0, 0, 0, 0.65); +} + +.hint-info-icon { + font-size: 14px; + opacity: 0.8; +} + +.bottom-hint-bar-light .hint-info-icon { + color: #1677ff; +} + +.hint-tip-icon { + font-size: 14px; + color: #fadb14; +} + +.hint-warning-icon { + font-size: 14px; + color: #ff7a45; +} + +.bottom-hint-bar-light .hint-bar-warning { + color: #d46b08; +} + +/* 右侧区域 */ +.hint-bar-right { + display: flex; + align-items: center; + gap: 16px; + flex-shrink: 0; +} + +.hint-bar-shortcut { + display: flex; + align-items: center; + gap: 8px; +} + +.shortcut-label { + font-size: 11px; + opacity: 0.7; +} + +.shortcut-kbd { + display: inline-block; + padding: 4px 10px; + background: rgba(255, 255, 255, 0.2); + border: 1px solid rgba(255, 255, 255, 0.3); + border-radius: 4px; + font-size: 11px; + font-family: 'Monaco', 'Consolas', monospace; + color: inherit; + font-weight: 500; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} + +.bottom-hint-bar-light .shortcut-kbd { + background: #f0f0f0; + border-color: #d9d9d9; + color: rgba(0, 0, 0, 0.88); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 -2px 0 rgba(0, 0, 0, 0.05); +} + +.hint-bar-close { + display: flex; + align-items: center; + justify-content: center; + width: 28px; + height: 28px; + background: rgba(255, 255, 255, 0.1); + border: 1px solid rgba(255, 255, 255, 0.2); + border-radius: 4px; + color: inherit; + cursor: pointer; + transition: all 0.3s ease; +} + +.hint-bar-close:hover { + background: rgba(255, 255, 255, 0.2); + transform: scale(1.05); +} + +.bottom-hint-bar-light .hint-bar-close { + background: #f0f0f0; + border-color: #d9d9d9; + color: rgba(0, 0, 0, 0.45); +} + +.bottom-hint-bar-light .hint-bar-close:hover { + background: #e0e0e0; + color: rgba(0, 0, 0, 0.88); +} + +/* 进度指示条 */ +.hint-bar-progress { + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: 2px; + background: rgba(255, 255, 255, 0.3); + overflow: hidden; +} + +.hint-bar-progress::after { + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(255, 255, 255, 0.6); + animation: progressWave 3s ease-in-out infinite; +} + +.bottom-hint-bar-light .hint-bar-progress { + background: #f0f0f0; +} + +.bottom-hint-bar-light .hint-bar-progress::after { + background: #1677ff; +} + +@keyframes progressWave { + 0%, 100% { + transform: translateX(-100%); + } + 50% { + transform: translateX(0); + } +} + +/* 响应式调整 */ +@media (max-width: 1024px) { + .hint-bar-container { + flex-wrap: wrap; + gap: 12px; + } + + .hint-bar-center { + flex-basis: 100%; + order: 3; + gap: 12px; + } + + .hint-bar-description, + .hint-bar-quick-tip, + .hint-bar-warning { + font-size: 12px; + } +} + +@media (max-width: 768px) { + .bottom-hint-bar { + padding: 10px 16px; + } + + .hint-bar-left { + gap: 8px; + } + + .hint-bar-icon { + font-size: 20px; + } + + .hint-bar-title { + font-size: 14px; + } + + .hint-bar-right { + gap: 8px; + } + + .shortcut-label { + display: none; + } + + .hint-bar-close { + width: 24px; + height: 24px; + } +} + +@media (max-width: 480px) { + .hint-bar-quick-tip { + display: none; + } + + .hint-bar-warning { + flex-basis: 100%; + } +} diff --git a/forntend/src/components/BottomHintBar/BottomHintBar.jsx b/forntend/src/components/BottomHintBar/BottomHintBar.jsx new file mode 100644 index 0000000..9efe937 --- /dev/null +++ b/forntend/src/components/BottomHintBar/BottomHintBar.jsx @@ -0,0 +1,90 @@ +import { Tag } from 'antd' +import { + InfoCircleOutlined, + BulbOutlined, + WarningOutlined, + CloseOutlined, +} from '@ant-design/icons' +import './BottomHintBar.css' + +/** + * 底部固定提示栏组件 + * 在页面底部显示当前悬停按钮的实时说明 + * @param {Object} props + * @param {boolean} props.visible - 是否显示提示栏 + * @param {Object} props.hintInfo - 当前提示信息 + * @param {Function} props.onClose - 关闭回调 + * @param {string} props.theme - 主题:light, dark, gradient + */ +function BottomHintBar({ visible = false, hintInfo = null, onClose, theme = 'gradient' }) { + if (!visible || !hintInfo) return null + + return ( +
e.stopPropagation()} + > +
+ {/* 左侧:图标和标题 */} +
+
{hintInfo.icon}
+
+

{hintInfo.title}

+ {hintInfo.badge && ( + + {hintInfo.badge.text} + + )} +
+
+ + {/* 中间:主要信息 */} +
+ {/* 描述 */} + {hintInfo.description && ( +
+ + {hintInfo.description} +
+ )} + + {/* 快速提示 */} + {hintInfo.quickTip && ( +
+ + {hintInfo.quickTip} +
+ )} + + {/* 警告 */} + {hintInfo.warning && ( +
+ + {hintInfo.warning} +
+ )} +
+ + {/* 右侧:快捷键和关闭 */} +
+ {hintInfo.shortcut && ( +
+ 快捷键 + {hintInfo.shortcut} +
+ )} + {onClose && ( + + )} +
+
+ + {/* 进度指示条 */} +
+
+ ) +} + +export default BottomHintBar diff --git a/forntend/src/components/ButtonWithGuide/ButtonWithGuide.css b/forntend/src/components/ButtonWithGuide/ButtonWithGuide.css new file mode 100644 index 0000000..0968427 --- /dev/null +++ b/forntend/src/components/ButtonWithGuide/ButtonWithGuide.css @@ -0,0 +1,196 @@ +/* 按钮带引导 - 简洁现代设计 */ +.button-with-guide { + display: inline-flex; + align-items: center; + gap: 4px; +} + +/* 帮助图标按钮 - 简洁扁平设计 */ +.guide-icon-btn { + display: inline-flex; + align-items: center; + justify-content: center; + width: 24px; + height: 24px; + padding: 0; + background: transparent; + border: none; + border-radius: 4px; + color: rgba(0, 0, 0, 0.35); + font-size: 14px; + cursor: pointer; + transition: all 0.2s ease; +} + +.guide-icon-btn:hover { + background: rgba(22, 119, 255, 0.06); + color: #1677ff; +} + +.guide-icon-btn:active { + background: rgba(22, 119, 255, 0.12); +} + +/* 引导弹窗样式 */ +.button-guide-modal .ant-modal-header { + padding: 20px 24px; + border-bottom: 2px solid #f0f0f0; +} + +.button-guide-modal .ant-modal-body { + padding: 24px; + max-height: 600px; + overflow-y: auto; +} + +.guide-modal-header { + display: flex; + align-items: center; + gap: 12px; +} + +.guide-modal-icon { + font-size: 24px; + color: #1677ff; +} + +.guide-modal-title { + font-size: 18px; + font-weight: 600; + color: rgba(0, 0, 0, 0.88); +} + +.guide-modal-badge { + margin: 0; + font-size: 11px; + padding: 2px 8px; +} + +/* 引导区块样式 */ +.guide-section { + margin-bottom: 20px; + padding: 16px; + background: #f8f9fa; + border-radius: 8px; + border-left: 3px solid #1677ff; +} + +.guide-section:last-child { + margin-bottom: 0; +} + +.guide-section-warning { + background: #fff7e6; + border-left-color: #faad14; +} + +.guide-section-title { + display: flex; + align-items: center; + gap: 8px; + font-size: 14px; + font-weight: 600; + color: rgba(0, 0, 0, 0.88); + margin-bottom: 12px; +} + +.guide-section-icon { + font-size: 16px; + color: #1677ff; +} + +.guide-section-warning .guide-section-icon { + color: #faad14; +} + +.guide-section-content { + margin: 0; + font-size: 14px; + line-height: 1.8; + color: rgba(0, 0, 0, 0.65); +} + +.guide-list { + margin: 0; + padding-left: 20px; + list-style-type: disc; +} + +.guide-list li { + font-size: 13px; + line-height: 1.8; + color: rgba(0, 0, 0, 0.65); + margin-bottom: 8px; +} + +.guide-list li:last-child { + margin-bottom: 0; +} + +/* 步骤样式 */ +.guide-steps { + margin-top: 12px; +} + +.guide-steps .ant-steps-item-title { + font-size: 13px !important; + font-weight: 600 !important; +} + +.guide-steps .ant-steps-item-description { + font-size: 13px !important; + line-height: 1.6 !important; + color: rgba(0, 0, 0, 0.65) !important; +} + +/* 引导底部 */ +.guide-footer { + display: flex; + flex-wrap: wrap; + gap: 16px; + margin-top: 20px; + padding: 16px; + background: white; + border-radius: 8px; + border: 1px solid #f0f0f0; +} + +.guide-footer-item { + display: flex; + align-items: center; + gap: 8px; +} + +.guide-footer-label { + font-size: 13px; + color: rgba(0, 0, 0, 0.65); +} + +.guide-footer-kbd { + display: inline-block; + padding: 4px 10px; + background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%); + border: 1px solid #d9d9d9; + border-radius: 6px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 -2px 0 rgba(0, 0, 0, 0.05); + font-size: 11px; + font-family: 'Monaco', 'Consolas', monospace; + color: rgba(0, 0, 0, 0.88); + font-weight: 500; +} + +/* 响应式调整 */ +@media (max-width: 768px) { + .button-guide-modal { + max-width: calc(100% - 32px); + } + + .button-guide-modal .ant-modal-body { + max-height: 500px; + } + + .guide-footer { + flex-direction: column; + gap: 12px; + } +} diff --git a/forntend/src/components/ButtonWithGuide/ButtonWithGuide.jsx b/forntend/src/components/ButtonWithGuide/ButtonWithGuide.jsx new file mode 100644 index 0000000..0f30cc3 --- /dev/null +++ b/forntend/src/components/ButtonWithGuide/ButtonWithGuide.jsx @@ -0,0 +1,165 @@ +import { useState } from 'react' +import { Button, Modal, Steps, Tag } from 'antd' +import { + QuestionCircleOutlined, + BulbOutlined, + WarningOutlined, + CheckCircleOutlined, + InfoCircleOutlined, +} from '@ant-design/icons' +import './ButtonWithGuide.css' + +/** + * 带引导的按钮组件 - 简洁现代设计 + * 在按钮旁边显示一个简洁的帮助图标,点击后显示详细引导 + */ +function ButtonWithGuide({ + label, + icon, + type = 'default', + danger = false, + disabled = false, + onClick, + guide, + size = 'middle', + ...restProps +}) { + const [showGuideModal, setShowGuideModal] = useState(false) + + const handleGuideClick = (e) => { + e.stopPropagation() + if (guide) { + setShowGuideModal(true) + } + } + + return ( + <> +
+ + {guide && !disabled && ( + + )} +
+ + {/* 引导弹窗 */} + {guide && ( + + {guide.icon || icon} + {guide.title} + {guide.badge && ( + + {guide.badge.text} + + )} +
+ } + open={showGuideModal} + onCancel={() => setShowGuideModal(false)} + footer={[ + , + ]} + width={600} + className="button-guide-modal" + > + {/* 功能描述 */} + {guide.description && ( +
+
+ + 功能说明 +
+

{guide.description}

+
+ )} + + {/* 使用步骤 */} + {guide.steps && guide.steps.length > 0 && ( +
+
+ + 操作步骤 +
+ ({ + title: `步骤 ${index + 1}`, + description: step, + status: 'wait', + }))} + className="guide-steps" + /> +
+ )} + + {/* 使用场景 */} + {guide.scenarios && guide.scenarios.length > 0 && ( +
+
+ + 适用场景 +
+
    + {guide.scenarios.map((scenario, index) => ( +
  • {scenario}
  • + ))} +
+
+ )} + + {/* 注意事项 */} + {guide.warnings && guide.warnings.length > 0 && ( +
+
+ + 注意事项 +
+
    + {guide.warnings.map((warning, index) => ( +
  • {warning}
  • + ))} +
+
+ )} + + {/* 快捷键和权限 */} + {(guide.shortcut || guide.permission) && ( +
+ {guide.shortcut && ( +
+ 快捷键: + {guide.shortcut} +
+ )} + {guide.permission && ( +
+ 权限要求: + {guide.permission} +
+ )} +
+ )} + + )} + + ) +} + +export default ButtonWithGuide diff --git a/forntend/src/components/ButtonWithGuideBadge/ButtonWithGuideBadge.css b/forntend/src/components/ButtonWithGuideBadge/ButtonWithGuideBadge.css new file mode 100644 index 0000000..334f120 --- /dev/null +++ b/forntend/src/components/ButtonWithGuideBadge/ButtonWithGuideBadge.css @@ -0,0 +1,243 @@ +.button-guide-badge-wrapper { + display: inline-block; + position: relative; +} + +/* 引导徽章样式 - 改为放在右上角外部 */ +.button-guide-badge-wrapper .ant-badge { + display: block; +} + +.button-guide-badge-wrapper .ant-badge-count { + top: -8px; + right: -8px; + transform: none; +} + +/* 引导徽章样式 */ +.guide-badge { + display: flex; + align-items: center; + justify-content: center; + min-width: 20px; + height: 20px; + padding: 0 6px; + background: #1677ff; + border-radius: 10px; + color: white; + font-size: 12px; + font-weight: 600; + cursor: pointer; + transition: all 0.3s ease; + animation: pulseBadge 2s ease-in-out infinite; + box-shadow: 0 2px 8px rgba(22, 119, 255, 0.4); + border: 2px solid white; +} + +.guide-badge:hover { + animation: none; + transform: scale(1.2); + box-shadow: 0 4px 12px rgba(22, 119, 255, 0.6); +} + +.guide-badge-new { + background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%); + box-shadow: 0 2px 8px rgba(82, 196, 26, 0.4); +} + +.guide-badge-new:hover { + box-shadow: 0 4px 12px rgba(82, 196, 26, 0.6); +} + +.guide-badge-help { + background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%); + box-shadow: 0 2px 8px rgba(22, 119, 255, 0.4); +} + +.guide-badge-help:hover { + box-shadow: 0 4px 12px rgba(22, 119, 255, 0.6); +} + +.guide-badge-warn { + background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%); + box-shadow: 0 2px 8px rgba(250, 173, 20, 0.4); +} + +.guide-badge-warn:hover { + box-shadow: 0 4px 12px rgba(250, 173, 20, 0.6); +} + +@keyframes pulseBadge { + 0%, 100% { + transform: scale(1); + opacity: 1; + } + 50% { + transform: scale(1.15); + opacity: 0.8; + } +} + +/* 引导弹窗样式 */ +.button-guide-modal .ant-modal-header { + padding: 20px 24px; + border-bottom: 2px solid #f0f0f0; +} + +.button-guide-modal .ant-modal-body { + padding: 24px; + max-height: 600px; + overflow-y: auto; +} + +.guide-modal-header { + display: flex; + align-items: center; + gap: 12px; +} + +.guide-modal-icon { + font-size: 24px; + color: #1677ff; +} + +.guide-modal-title { + font-size: 18px; + font-weight: 600; + color: rgba(0, 0, 0, 0.88); +} + +.guide-modal-badge { + margin: 0; + font-size: 11px; + padding: 2px 8px; +} + +/* 引导区块样式 */ +.guide-section { + margin-bottom: 20px; + padding: 16px; + background: #f8f9fa; + border-radius: 8px; + border-left: 3px solid #1677ff; +} + +.guide-section:last-child { + margin-bottom: 0; +} + +.guide-section-warning { + background: #fff7e6; + border-left-color: #faad14; +} + +.guide-section-title { + display: flex; + align-items: center; + gap: 8px; + font-size: 14px; + font-weight: 600; + color: rgba(0, 0, 0, 0.88); + margin-bottom: 12px; +} + +.guide-section-icon { + font-size: 16px; + color: #1677ff; +} + +.guide-section-warning .guide-section-icon { + color: #faad14; +} + +.guide-section-content { + margin: 0; + font-size: 14px; + line-height: 1.8; + color: rgba(0, 0, 0, 0.65); +} + +.guide-list { + margin: 0; + padding-left: 20px; + list-style-type: disc; +} + +.guide-list li { + font-size: 13px; + line-height: 1.8; + color: rgba(0, 0, 0, 0.65); + margin-bottom: 8px; +} + +.guide-list li:last-child { + margin-bottom: 0; +} + +/* 步骤样式 */ +.guide-steps { + margin-top: 12px; +} + +.guide-steps .ant-steps-item-title { + font-size: 13px !important; + font-weight: 600 !important; +} + +.guide-steps .ant-steps-item-description { + font-size: 13px !important; + line-height: 1.6 !important; + color: rgba(0, 0, 0, 0.65) !important; +} + +/* 引导底部 */ +.guide-footer { + display: flex; + flex-wrap: wrap; + gap: 16px; + margin-top: 20px; + padding: 16px; + background: white; + border-radius: 8px; + border: 1px solid #f0f0f0; +} + +.guide-footer-item { + display: flex; + align-items: center; + gap: 8px; +} + +.guide-footer-label { + font-size: 13px; + color: rgba(0, 0, 0, 0.65); +} + +.guide-footer-kbd { + display: inline-block; + padding: 4px 10px; + background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%); + border: 1px solid #d9d9d9; + border-radius: 6px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 -2px 0 rgba(0, 0, 0, 0.05); + font-size: 11px; + font-family: 'Monaco', 'Consolas', monospace; + color: rgba(0, 0, 0, 0.88); + font-weight: 500; +} + +/* 响应式调整 */ +@media (max-width: 768px) { + .button-guide-modal { + max-width: calc(100% - 32px); + } + + .button-guide-modal .ant-modal-body { + max-height: 500px; + } + + .guide-footer { + flex-direction: column; + gap: 12px; + } +} diff --git a/forntend/src/components/ButtonWithGuideBadge/ButtonWithGuideBadge.jsx b/forntend/src/components/ButtonWithGuideBadge/ButtonWithGuideBadge.jsx new file mode 100644 index 0000000..35a8224 --- /dev/null +++ b/forntend/src/components/ButtonWithGuideBadge/ButtonWithGuideBadge.jsx @@ -0,0 +1,222 @@ +import { useState } from 'react' +import { Button, Badge, Modal, Steps, Tag, Divider } from 'antd' +import { + QuestionCircleOutlined, + BulbOutlined, + WarningOutlined, + CheckCircleOutlined, + InfoCircleOutlined, +} from '@ant-design/icons' +import './ButtonWithGuideBadge.css' + +/** + * 智能引导徽章按钮组件 + * 为新功能或复杂按钮添加脉冲动画的徽章,点击后显示详细引导 + * @param {Object} props + * @param {string} props.label - 按钮文本 + * @param {ReactNode} props.icon - 按钮图标 + * @param {string} props.type - 按钮类型 + * @param {boolean} props.danger - 危险按钮 + * @param {boolean} props.disabled - 禁用状态 + * @param {Function} props.onClick - 点击回调 + * @param {Object} props.guide - 引导配置 + * @param {boolean} props.showBadge - 是否显示徽章 + * @param {string} props.badgeType - 徽章类型:new, help, warn + * @param {string} props.size - 按钮大小 + */ +function ButtonWithGuideBadge({ + label, + icon, + type = 'default', + danger = false, + disabled = false, + onClick, + guide, + showBadge = true, + badgeType = 'help', + size = 'middle', + ...restProps +}) { + const [showGuideModal, setShowGuideModal] = useState(false) + + const handleBadgeClick = (e) => { + e.stopPropagation() + if (guide) { + setShowGuideModal(true) + } + } + + const getBadgeConfig = () => { + const configs = { + new: { + text: 'NEW', + color: '#52c41a', + icon: , + }, + help: { + text: '?', + color: '#1677ff', + icon: , + }, + warn: { + text: '!', + color: '#faad14', + icon: , + }, + } + return configs[badgeType] || configs.help + } + + const badgeConfig = getBadgeConfig() + + return ( + <> +
+ {showBadge && guide && !disabled ? ( + + {badgeConfig.icon} +
+ } + offset={[-5, 5]} + > + + + ) : ( + + )} + + + {/* 引导弹窗 */} + {guide && ( + + {guide.icon || icon} + {guide.title} + {guide.badge && ( + + {guide.badge.text} + + )} + + } + open={showGuideModal} + onCancel={() => setShowGuideModal(false)} + footer={[ + , + ]} + width={600} + className="button-guide-modal" + > + {/* 功能描述 */} + {guide.description && ( +
+
+ + 功能说明 +
+

{guide.description}

+
+ )} + + {/* 使用步骤 */} + {guide.steps && guide.steps.length > 0 && ( +
+
+ + 操作步骤 +
+ ({ + title: `步骤 ${index + 1}`, + description: step, + status: 'wait', + }))} + className="guide-steps" + /> +
+ )} + + {/* 使用场景 */} + {guide.scenarios && guide.scenarios.length > 0 && ( +
+
+ + 适用场景 +
+
    + {guide.scenarios.map((scenario, index) => ( +
  • {scenario}
  • + ))} +
+
+ )} + + {/* 注意事项 */} + {guide.warnings && guide.warnings.length > 0 && ( +
+
+ + 注意事项 +
+
    + {guide.warnings.map((warning, index) => ( +
  • {warning}
  • + ))} +
+
+ )} + + {/* 快捷键和权限 */} + {(guide.shortcut || guide.permission) && ( +
+ {guide.shortcut && ( +
+ 快捷键: + {guide.shortcut} +
+ )} + {guide.permission && ( +
+ 权限要求: + {guide.permission} +
+ )} +
+ )} +
+ )} + + ) +} + +export default ButtonWithGuideBadge diff --git a/forntend/src/components/ButtonWithHoverCard/ButtonWithHoverCard.css b/forntend/src/components/ButtonWithHoverCard/ButtonWithHoverCard.css new file mode 100644 index 0000000..eb42451 --- /dev/null +++ b/forntend/src/components/ButtonWithHoverCard/ButtonWithHoverCard.css @@ -0,0 +1,189 @@ +.button-hover-card-wrapper { + display: inline-block; + position: relative; +} + +/* 悬浮卡片 */ +.hover-info-card { + position: fixed; + z-index: 10000; + transform: translateY(-50%); + opacity: 0; + animation: slideInRight 0.3s ease forwards; + pointer-events: none; +} + +.hover-info-card-visible { + opacity: 1; +} + +@keyframes slideInRight { + from { + opacity: 0; + transform: translateY(-50%) translateX(-20px); + } + to { + opacity: 1; + transform: translateY(-50%) translateX(0); + } +} + +.hover-info-card-content { + width: 340px; + background: white; + border-radius: 12px; + box-shadow: + 0 12px 28px rgba(0, 0, 0, 0.12), + 0 6px 12px rgba(0, 0, 0, 0.08), + 0 0 2px rgba(0, 0, 0, 0.04); + overflow: hidden; +} + +.hover-info-card-content .ant-card-body { + padding: 16px; +} + +/* 卡片头部 */ +.hover-card-header { + display: flex; + align-items: flex-start; + justify-content: space-between; + margin-bottom: 12px; + padding-bottom: 12px; + border-bottom: 1px solid #f0f0f0; +} + +.hover-card-title-wrapper { + display: flex; + align-items: center; + gap: 8px; + flex: 1; +} + +.hover-card-icon { + font-size: 20px; + color: #1677ff; +} + +.hover-card-title { + margin: 0; + font-size: 16px; + font-weight: 600; + color: rgba(0, 0, 0, 0.88); +} + +.hover-card-badge { + margin: 0; + font-size: 11px; + padding: 2px 8px; + border-radius: 10px; +} + +/* 卡片描述 */ +.hover-card-description { + margin: 0; + font-size: 13px; + line-height: 1.6; + color: rgba(0, 0, 0, 0.65); +} + +/* 卡片区块 */ +.hover-card-section { + margin-top: 12px; + padding: 10px; + background: #f8f9fa; + border-radius: 8px; + border-left: 3px solid #1677ff; +} + +.hover-card-warning { + background: #fff7e6; + border-left-color: #faad14; +} + +.hover-card-section-title { + display: flex; + align-items: center; + gap: 6px; + font-size: 12px; + font-weight: 600; + color: rgba(0, 0, 0, 0.88); + margin-bottom: 8px; +} + +.section-icon { + font-size: 12px; + color: #1677ff; +} + +.hover-card-warning .section-icon { + color: #faad14; +} + +.hover-card-list { + margin: 0; + padding-left: 16px; + list-style-type: disc; +} + +.hover-card-list li { + font-size: 12px; + line-height: 1.6; + color: rgba(0, 0, 0, 0.65); + margin-bottom: 4px; +} + +.hover-card-list li:last-child { + margin-bottom: 0; +} + +/* 卡片底部 */ +.hover-card-footer { + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 12px; + padding-top: 12px; + border-top: 1px solid #f0f0f0; +} + +.footer-label { + font-size: 12px; + color: rgba(0, 0, 0, 0.45); +} + +.footer-kbd { + display: inline-block; + padding: 4px 10px; + background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%); + border: 1px solid #d9d9d9; + border-radius: 6px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 -2px 0 rgba(0, 0, 0, 0.05); + font-size: 11px; + font-family: 'Monaco', 'Consolas', monospace; + color: rgba(0, 0, 0, 0.88); + font-weight: 500; +} + +/* 响应式调整 */ +@media (max-width: 768px) { + .hover-info-card-content { + width: 280px; + } + + .hover-info-card { + left: 50% !important; + transform: translateX(-50%) translateY(-50%); + } + + @keyframes slideInRight { + from { + opacity: 0; + transform: translateX(-50%) translateY(-50%) scale(0.95); + } + to { + opacity: 1; + transform: translateX(-50%) translateY(-50%) scale(1); + } + } +} diff --git a/forntend/src/components/ButtonWithHoverCard/ButtonWithHoverCard.jsx b/forntend/src/components/ButtonWithHoverCard/ButtonWithHoverCard.jsx new file mode 100644 index 0000000..9800e64 --- /dev/null +++ b/forntend/src/components/ButtonWithHoverCard/ButtonWithHoverCard.jsx @@ -0,0 +1,179 @@ +import { useState, useRef } from 'react' +import { createPortal } from 'react-dom' +import { Button, Card, Tag } from 'antd' +import { + BulbOutlined, + WarningOutlined, + ThunderboltOutlined, +} from '@ant-design/icons' +import './ButtonWithHoverCard.css' + +/** + * 悬浮展开卡片按钮组件 + * 鼠标悬停时,在按钮旁边展开一个精美的信息卡片 + * @param {Object} props + * @param {string} props.label - 按钮文本 + * @param {ReactNode} props.icon - 按钮图标 + * @param {string} props.type - 按钮类型 + * @param {boolean} props.danger - 危险按钮 + * @param {boolean} props.disabled - 禁用状态 + * @param {Function} props.onClick - 点击回调 + * @param {Object} props.cardInfo - 卡片信息配置 + * @param {string} props.size - 按钮大小 + */ +function ButtonWithHoverCard({ + label, + icon, + type = 'default', + danger = false, + disabled = false, + onClick, + cardInfo, + size = 'middle', + ...restProps +}) { + const [showCard, setShowCard] = useState(false) + const [cardPosition, setCardPosition] = useState({ top: 0, left: 0 }) + const wrapperRef = useRef(null) + + const handleMouseEnter = () => { + if (!cardInfo || disabled) return + + if (wrapperRef.current) { + const rect = wrapperRef.current.getBoundingClientRect() + setCardPosition({ + top: rect.top + rect.height / 2, + left: rect.right + 12, + }) + } + setShowCard(true) + } + + const handleMouseLeave = () => { + setShowCard(false) + } + + // 渲染悬浮卡片 + const renderCard = () => { + if (!showCard || !cardInfo) return null + + return ( +
+ + {/* 标题区 */} +
+
+ {cardInfo.icon && ( + {cardInfo.icon} + )} +

{cardInfo.title}

+
+ {cardInfo.badge && ( + + {cardInfo.badge.text} + + )} +
+ + {/* 描述 */} + {cardInfo.description && ( +
+

{cardInfo.description}

+
+ )} + + {/* 使用场景 */} + {cardInfo.scenarios && cardInfo.scenarios.length > 0 && ( +
+
+ + 使用场景 +
+
    + {cardInfo.scenarios.slice(0, 2).map((scenario, index) => ( +
  • {scenario}
  • + ))} +
+
+ )} + + {/* 快速提示 */} + {cardInfo.quickTips && cardInfo.quickTips.length > 0 && ( +
+
+ + 快速提示 +
+
    + {cardInfo.quickTips.map((tip, index) => ( +
  • {tip}
  • + ))} +
+
+ )} + + {/* 注意事项 */} + {cardInfo.warnings && cardInfo.warnings.length > 0 && ( +
+
+ + 注意 +
+
    + {cardInfo.warnings.slice(0, 2).map((warning, index) => ( +
  • {warning}
  • + ))} +
+
+ )} + + {/* 快捷键 */} + {cardInfo.shortcut && ( +
+ 快捷键 + {cardInfo.shortcut} +
+ )} +
+
+ ) + } + + return ( + <> +
+ +
+ + {/* 使用 Portal 渲染悬浮卡片到 body */} + {typeof document !== 'undefined' && createPortal(renderCard(), document.body)} + + ) +} + +export default ButtonWithHoverCard diff --git a/forntend/src/components/ButtonWithTip/ButtonWithTip.css b/forntend/src/components/ButtonWithTip/ButtonWithTip.css new file mode 100644 index 0000000..f1d665a --- /dev/null +++ b/forntend/src/components/ButtonWithTip/ButtonWithTip.css @@ -0,0 +1,163 @@ +/* 按钮包裹容器 */ +.button-with-tip-wrapper { + position: relative; + display: inline-flex; + align-items: center; + gap: 4px; +} + +.button-with-tip { + transition: all 0.3s ease; +} + +/* 提示指示器 */ +.button-tip-indicator { + font-size: 12px; + color: rgba(0, 0, 0, 0.25); + cursor: help; + transition: all 0.3s ease; + animation: pulse 2s ease-in-out infinite; +} + +.button-with-tip-wrapper:hover .button-tip-indicator { + color: #1677ff; + animation: none; +} + +/* 脉冲动画 */ +@keyframes pulse { + 0%, 100% { + opacity: 1; + transform: scale(1); + } + 50% { + opacity: 0.6; + transform: scale(1.1); + } +} + +/* 提示框样式 */ +.button-tip-overlay { + max-width: 360px; +} + +.button-tip-overlay .ant-tooltip-inner { + padding: 12px 16px; + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + border-radius: 8px; + box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3); +} + +.button-tip-overlay .ant-tooltip-arrow { + --antd-arrow-background-color: #667eea; +} + +.button-tip-overlay .ant-tooltip-arrow-content { + background: #667eea; +} + +/* 提示内容布局 */ +.button-tip-content { + display: flex; + flex-direction: column; + gap: 8px; + color: #ffffff; + font-size: 13px; + line-height: 1.6; +} + +.button-tip-title { + font-size: 14px; + font-weight: 600; + color: #ffffff; + border-bottom: 1px solid rgba(255, 255, 255, 0.2); + padding-bottom: 6px; +} + +.button-tip-description { + color: rgba(255, 255, 255, 0.95); + font-size: 13px; +} + +.button-tip-shortcut { + display: flex; + align-items: center; + gap: 6px; + margin-top: 4px; + padding-top: 8px; + border-top: 1px solid rgba(255, 255, 255, 0.15); +} + +.tip-label { + font-size: 12px; + color: rgba(255, 255, 255, 0.8); +} + +.tip-kbd { + display: inline-block; + padding: 2px 8px; + background: rgba(255, 255, 255, 0.2); + border: 1px solid rgba(255, 255, 255, 0.3); + border-radius: 4px; + font-size: 11px; + font-family: 'Monaco', 'Consolas', monospace; + color: #ffffff; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} + +.button-tip-notes { + margin-top: 4px; + padding-top: 8px; + border-top: 1px solid rgba(255, 255, 255, 0.15); +} + +.tip-notes-title { + font-size: 12px; + font-weight: 500; + color: rgba(255, 255, 255, 0.9); + margin-bottom: 6px; +} + +.tip-notes-list { + margin: 0; + padding-left: 16px; + list-style-type: disc; +} + +.tip-notes-list li { + font-size: 12px; + color: rgba(255, 255, 255, 0.85); + margin-bottom: 4px; +} + +.tip-notes-list li:last-child { + margin-bottom: 0; +} + +/* 不同主题的提示框 */ +.tip-theme-success.button-tip-overlay .ant-tooltip-inner { + background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%); +} + +.tip-theme-warning.button-tip-overlay .ant-tooltip-inner { + background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%); +} + +.tip-theme-danger.button-tip-overlay .ant-tooltip-inner { + background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%); +} + +.tip-theme-info.button-tip-overlay .ant-tooltip-inner { + background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); +} + +/* 响应式调整 */ +@media (max-width: 768px) { + .button-tip-overlay { + max-width: 280px; + } + + .button-tip-indicator { + display: none; + } +} diff --git a/forntend/src/components/ButtonWithTip/ButtonWithTip.jsx b/forntend/src/components/ButtonWithTip/ButtonWithTip.jsx new file mode 100644 index 0000000..f8d4130 --- /dev/null +++ b/forntend/src/components/ButtonWithTip/ButtonWithTip.jsx @@ -0,0 +1,105 @@ +import { Button, Tooltip } from 'antd' +import { QuestionCircleOutlined } from '@ant-design/icons' +import './ButtonWithTip.css' + +/** + * 带有增强提示的按钮组件 + * @param {Object} props + * @param {string} props.label - 按钮文本 + * @param {ReactNode} props.icon - 按钮图标 + * @param {string} props.type - 按钮类型 + * @param {boolean} props.danger - 危险按钮 + * @param {boolean} props.disabled - 禁用状态 + * @param {Function} props.onClick - 点击回调 + * @param {Object} props.tip - 提示配置 + * @param {string} props.tip.title - 提示标题 + * @param {string} props.tip.description - 详细描述 + * @param {string} props.tip.shortcut - 快捷键提示 + * @param {Array} props.tip.notes - 注意事项列表 + * @param {string} props.tip.placement - 提示位置 + * @param {boolean} props.showTipIcon - 是否显示提示图标 + * @param {string} props.size - 按钮大小 + */ +function ButtonWithTip({ + label, + icon, + type = 'default', + danger = false, + disabled = false, + onClick, + tip, + showTipIcon = true, + size = 'middle', + ...restProps +}) { + // 如果没有提示配置,直接返回普通按钮 + if (!tip) { + return ( + + ) + } + + // 构建提示内容 + const tooltipContent = ( +
+ {tip.title &&
{tip.title}
} + {tip.description &&
{tip.description}
} + {tip.shortcut && ( +
+ 快捷键: + {tip.shortcut} +
+ )} + {tip.notes && tip.notes.length > 0 && ( +
+
注意事项:
+
    + {tip.notes.map((note, index) => ( +
  • {note}
  • + ))} +
+
+ )} +
+ ) + + return ( + +
+ + {showTipIcon && !disabled && ( + + )} +
+
+ ) +} + +export default ButtonWithTip diff --git a/forntend/src/components/ChartPanel/ChartPanel.css b/forntend/src/components/ChartPanel/ChartPanel.css new file mode 100644 index 0000000..69a0cc2 --- /dev/null +++ b/forntend/src/components/ChartPanel/ChartPanel.css @@ -0,0 +1,17 @@ +/* 图表面板 */ +.chart-panel { + margin-bottom: 16px; +} + +.chart-panel:last-child { + margin-bottom: 0; +} + +.chart-panel-title { + font-size: 13px; + font-weight: 600; + color: rgba(0, 0, 0, 0.88); + margin-bottom: 12px; + padding-left: 8px; + border-left: 3px solid #1677ff; +} diff --git a/forntend/src/components/ChartPanel/ChartPanel.jsx b/forntend/src/components/ChartPanel/ChartPanel.jsx new file mode 100644 index 0000000..5f26c8f --- /dev/null +++ b/forntend/src/components/ChartPanel/ChartPanel.jsx @@ -0,0 +1,202 @@ +import { useEffect, useRef } from 'react' +import * as echarts from 'echarts' +import './ChartPanel.css' + +/** + * 图表面板组件 + * @param {Object} props + * @param {string} props.type - 图表类型: 'line' | 'bar' | 'pie' | 'ring' + * @param {string} props.title - 图表标题 + * @param {Object} props.data - 图表数据 + * @param {number} props.height - 图表高度,默认 200px + * @param {Object} props.option - 自定义 ECharts 配置 + * @param {string} props.className - 自定义类名 + */ +function ChartPanel({ type = 'line', title, data, height = 200, option = {}, className = '' }) { + const chartRef = useRef(null) + const chartInstance = useRef(null) + + useEffect(() => { + if (!chartRef.current || !data) return + + // 使用 setTimeout 确保 DOM 完全渲染 + const timer = setTimeout(() => { + // 初始化图表 + if (!chartInstance.current) { + chartInstance.current = echarts.init(chartRef.current) + } + + // 根据类型生成配置 + const chartOption = getChartOption(type, data, option) + chartInstance.current.setOption(chartOption, true) + }, 0) + + // 窗口大小改变时重绘(使用 passive 选项) + const handleResize = () => { + if (chartInstance.current) { + chartInstance.current.resize() + } + } + + // 添加被动事件监听器 + window.addEventListener('resize', handleResize, { passive: true }) + + return () => { + clearTimeout(timer) + window.removeEventListener('resize', handleResize) + } + }, [type, data, option]) + + // 组件卸载时销毁图表 + useEffect(() => { + return () => { + chartInstance.current?.dispose() + } + }, []) + + return ( +
+ {title &&
{title}
} +
+
+ ) +} + +/** + * 根据图表类型生成 ECharts 配置 + */ +function getChartOption(type, data, customOption) { + const baseOption = { + grid: { + left: '10%', + right: '5%', + top: '15%', + bottom: '15%', + }, + tooltip: { + trigger: type === 'pie' || type === 'ring' ? 'item' : 'axis', + backgroundColor: 'rgba(255, 255, 255, 0.95)', + borderColor: '#e8e8e8', + borderWidth: 1, + textStyle: { + color: '#333', + }, + }, + } + + switch (type) { + case 'line': + return { + ...baseOption, + xAxis: { + type: 'category', + data: data.xAxis || [], + boundaryGap: false, + axisLine: { lineStyle: { color: '#e8e8e8' } }, + axisLabel: { color: '#8c8c8c', fontSize: 11 }, + }, + yAxis: { + type: 'value', + axisLine: { lineStyle: { color: '#e8e8e8' } }, + axisLabel: { color: '#8c8c8c', fontSize: 11 }, + splitLine: { lineStyle: { color: '#f0f0f0' } }, + }, + series: [ + { + type: 'line', + data: data.series || [], + smooth: true, + lineStyle: { width: 2, color: '#1677ff' }, + areaStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { offset: 0, color: 'rgba(22, 119, 255, 0.3)' }, + { offset: 1, color: 'rgba(22, 119, 255, 0.05)' }, + ]), + }, + symbol: 'circle', + symbolSize: 6, + itemStyle: { color: '#1677ff' }, + }, + ], + ...customOption, + } + + case 'bar': + return { + ...baseOption, + xAxis: { + type: 'category', + data: data.xAxis || [], + axisLine: { lineStyle: { color: '#e8e8e8' } }, + axisLabel: { color: '#8c8c8c', fontSize: 11 }, + }, + yAxis: { + type: 'value', + axisLine: { lineStyle: { color: '#e8e8e8' } }, + axisLabel: { color: '#8c8c8c', fontSize: 11 }, + splitLine: { lineStyle: { color: '#f0f0f0' } }, + }, + series: [ + { + type: 'bar', + data: data.series || [], + itemStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { offset: 0, color: '#4096ff' }, + { offset: 1, color: '#1677ff' }, + ]), + borderRadius: [4, 4, 0, 0], + }, + barWidth: '50%', + }, + ], + ...customOption, + } + + case 'pie': + case 'ring': + return { + ...baseOption, + grid: undefined, + legend: { + orient: 'vertical', + right: '10%', + top: 'center', + textStyle: { color: '#8c8c8c', fontSize: 12 }, + }, + series: [ + { + type: 'pie', + radius: type === 'ring' ? ['40%', '65%'] : '65%', + center: ['40%', '50%'], + data: data.series || [], + label: { + fontSize: 11, + color: '#8c8c8c', + }, + labelLine: { + lineStyle: { color: '#d9d9d9' }, + }, + itemStyle: { + borderRadius: 4, + borderColor: '#fff', + borderWidth: 2, + }, + emphasis: { + itemStyle: { + shadowBlur: 10, + shadowOffsetX: 0, + shadowColor: 'rgba(0, 0, 0, 0.3)', + }, + }, + }, + ], + ...customOption, + } + + default: + return { ...baseOption, ...customOption } + } +} + +export default ChartPanel diff --git a/forntend/src/components/ConfirmDialog/ConfirmDialog.jsx b/forntend/src/components/ConfirmDialog/ConfirmDialog.jsx new file mode 100644 index 0000000..d7095b0 --- /dev/null +++ b/forntend/src/components/ConfirmDialog/ConfirmDialog.jsx @@ -0,0 +1,138 @@ +import { Modal } from 'antd' +import { ExclamationCircleOutlined, DeleteOutlined } from '@ant-design/icons' + +/** + * 标准确认对话框组件 + * @param {Object} options - 对话框配置 + * @param {string} options.title - 标题 + * @param {string|ReactNode} options.content - 内容 + * @param {string} options.okText - 确认按钮文字 + * @param {string} options.cancelText - 取消按钮文字 + * @param {string} options.type - 类型: 'warning', 'danger', 'info' + * @param {Function} options.onOk - 确认回调 + * @param {Function} options.onCancel - 取消回调 + */ +const ConfirmDialog = { + /** + * 显示删除确认对话框(单个项目) + */ + delete: ({ title = '确认删除', itemName, itemInfo, onOk, onCancel }) => { + Modal.confirm({ + title, + content: ( +
+

您确定要删除以下项目吗?

+
+

{itemName}

+ {itemInfo && ( +

{itemInfo}

+ )} +
+

+ 此操作不可恢复,请谨慎操作! +

+
+ ), + okText: '确认删除', + cancelText: '取消', + okType: 'danger', + centered: true, + icon: , + onOk, + onCancel, + }) + }, + + /** + * 显示批量删除确认对话框 + */ + batchDelete: ({ count, items, onOk, onCancel }) => { + Modal.confirm({ + title: '批量删除确认', + content: ( +
+

您确定要删除选中的 {count} 个项目吗?

+
+ {items.map((item, index) => ( +
+ {item.name} + {item.info && ( + + ({item.info}) + + )} +
+ ))} +
+

+ 此操作不可恢复,请谨慎操作! +

+
+ ), + okText: '确认删除', + cancelText: '取消', + okType: 'danger', + centered: true, + icon: , + onOk, + onCancel, + }) + }, + + /** + * 显示警告确认对话框 + */ + warning: ({ title, content, okText = '确定', cancelText = '取消', onOk, onCancel }) => { + Modal.confirm({ + title, + content, + okText, + cancelText, + centered: true, + icon: , + onOk, + onCancel, + }) + }, + + /** + * 显示通用确认对话框 + */ + confirm: ({ + title, + content, + okText = '确定', + cancelText = '取消', + okType = 'primary', + onOk, + onCancel, + }) => { + Modal.confirm({ + title, + content, + okText, + cancelText, + okType, + centered: true, + onOk, + onCancel, + }) + }, +} + +export default ConfirmDialog diff --git a/forntend/src/components/DetailDrawer/DetailDrawer.css b/forntend/src/components/DetailDrawer/DetailDrawer.css new file mode 100644 index 0000000..c5db2f2 --- /dev/null +++ b/forntend/src/components/DetailDrawer/DetailDrawer.css @@ -0,0 +1,119 @@ +/* 详情抽屉容器 */ +.detail-drawer-content { + height: 100%; + display: flex; + flex-direction: column; +} + +/* 顶部信息区域 - 固定不滚动 */ +.detail-drawer-header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 16px; + background: #fafafa; + border-bottom: 1px solid #f0f0f0; + flex-shrink: 0; +} + +.detail-drawer-header-left { + display: flex; + align-items: center; + gap: 16px; +} + +.detail-drawer-close-button { + font-size: 18px; + color: #666; +} + +.detail-drawer-close-button:hover { + color: #1677ff; +} + +.detail-drawer-header-info { + display: flex; + align-items: center; + gap: 12px; +} + +.detail-drawer-title-icon { + font-size: 18px; + color: #1677ff; +} + +.detail-drawer-title { + margin: 0; + font-size: 18px; + font-weight: 600; + color: rgba(0, 0, 0, 0.88); +} + +.detail-drawer-badge { + display: flex; + align-items: center; +} + +.detail-drawer-header-right { + flex: 1; + display: flex; + justify-content: flex-end; +} + +/* 可滚动内容区域 */ +.detail-drawer-scrollable-content { + flex: 1; + overflow-y: auto; + overflow-x: hidden; + padding: 24px; +} + +/* 标签页区域 */ +.detail-drawer-tabs { + background: #ffffff; + padding: 0; + min-height: 400px; +} + +.detail-drawer-tabs :global(.ant-tabs) { + height: 100%; +} + +.detail-drawer-tabs :global(.ant-tabs-content-holder) { + overflow: visible; +} + +.detail-drawer-tabs :global(.ant-tabs-nav) { + padding: 0; + margin: 0 0 16px 0; + background: transparent; +} + +.detail-drawer-tabs :global(.ant-tabs-nav::before) { + border-bottom: 1px solid #f0f0f0; +} + +.detail-drawer-tabs :global(.ant-tabs-tab) { + padding: 12px 0; + margin: 0 32px 0 0; + font-size: 14px; + font-weight: 500; +} + +.detail-drawer-tabs :global(.ant-tabs-tab:first-child) { + margin-left: 0; +} + +.detail-drawer-tabs :global(.ant-tabs-tab-active .ant-tabs-tab-btn) { + color: #d946ef; +} + +.detail-drawer-tabs :global(.ant-tabs-ink-bar) { + background: #d946ef; + height: 3px; +} + +.detail-drawer-tab-content { + padding: 0; + background: #ffffff; +} diff --git a/forntend/src/components/DetailDrawer/DetailDrawer.jsx b/forntend/src/components/DetailDrawer/DetailDrawer.jsx new file mode 100644 index 0000000..2ef0eab --- /dev/null +++ b/forntend/src/components/DetailDrawer/DetailDrawer.jsx @@ -0,0 +1,97 @@ +import { Drawer, Button, Space, Tabs } from 'antd' +import { CloseOutlined } from '@ant-design/icons' +import './DetailDrawer.css' + +/** + * 详情抽屉组件 + * @param {Object} props + * @param {boolean} props.visible - 是否显示抽屉 + * @param {Function} props.onClose - 关闭回调 + * @param {Object} props.title - 标题配置 + * @param {string} props.title.text - 标题文本 + * @param {ReactNode} props.title.badge - 状态徽标(可选) + * @param {ReactNode} props.title.icon - 图标(可选) + * @param {Array} props.headerActions - 顶部操作按钮 + * @param {number} props.width - 抽屉宽度 + * @param {ReactNode} props.children - 主要内容 + * @param {Array} props.tabs - 标签页配置(可选) + */ +function DetailDrawer({ + visible, + onClose, + title, + headerActions = [], + width = 1080, + children, + tabs, +}) { + return ( + +
+ {/* 顶部标题栏 - 固定不滚动 */} +
+
+
+
+ + {headerActions.map((action) => ( + + ))} + +
+
+ + {/* 可滚动内容区域 */} +
+ {children} + + {/* 可选的标签页区域 */} + {tabs && tabs.length > 0 && ( +
+ ({ + key: tab.key, + label: tab.label, + children:
{tab.content}
, + }))} + /> +
+ )} +
+
+
+ ) +} + +export default DetailDrawer diff --git a/forntend/src/components/ExtendInfoPanel/ExtendInfoPanel.css b/forntend/src/components/ExtendInfoPanel/ExtendInfoPanel.css new file mode 100644 index 0000000..8ea059b --- /dev/null +++ b/forntend/src/components/ExtendInfoPanel/ExtendInfoPanel.css @@ -0,0 +1,105 @@ +/* 扩展信息面板容器 */ +.extend-info-panel { + display: flex; + gap: 16px; + width: 100%; +} + +/* 垂直布局(默认) */ +.extend-info-panel-vertical { + flex-direction: column; +} + +/* 水平布局 */ +.extend-info-panel-horizontal { + flex-direction: row; + flex-wrap: wrap; +} + +/* 信息区块 */ +.extend-info-section { + background: #ffffff; + border-radius: 8px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); + overflow: hidden; + transition: all 0.3s ease; +} + +/* 水平布局时区块自适应宽度 */ +.extend-info-panel-horizontal .extend-info-section { + flex: 1; + min-width: 0; +} + +.extend-info-section:hover { + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); +} + +/* 区块头部 */ +.extend-info-section-header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 16px 20px; + background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%); + border-bottom: 1px solid #e8e8e8; + cursor: pointer; + user-select: none; + transition: background 0.2s ease; +} + +.extend-info-section-header:hover { + background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%); +} + +.extend-info-section-title { + display: flex; + align-items: center; + gap: 8px; + font-size: 14px; + font-weight: 600; + color: rgba(0, 0, 0, 0.88); +} + +.extend-info-section-icon { + display: flex; + align-items: center; + font-size: 16px; + color: #1677ff; +} + +.extend-info-section-toggle { + display: flex; + align-items: center; + justify-content: center; + width: 24px; + height: 24px; + border: none; + background: transparent; + color: #8c8c8c; + cursor: pointer; + transition: all 0.2s ease; + border-radius: 4px; +} + +.extend-info-section-toggle:hover { + background: rgba(0, 0, 0, 0.06); + color: #1677ff; +} + +/* 区块内容 */ +.extend-info-section-content { + padding: 16px 20px; + animation: expandContent 0.3s ease-out; +} + +@keyframes expandContent { + from { + opacity: 0; + transform: translateY(-10px); + } + to { + opacity: 1; + transform: translateY(0); + } +} diff --git a/forntend/src/components/ExtendInfoPanel/ExtendInfoPanel.jsx b/forntend/src/components/ExtendInfoPanel/ExtendInfoPanel.jsx new file mode 100644 index 0000000..03e5166 --- /dev/null +++ b/forntend/src/components/ExtendInfoPanel/ExtendInfoPanel.jsx @@ -0,0 +1,68 @@ +import { useState } from 'react' +import { UpOutlined, DownOutlined } from '@ant-design/icons' +import './ExtendInfoPanel.css' + +/** + * 扩展信息面板组件 + * @param {Object} props + * @param {Array} props.sections - 信息区块配置数组 + * @param {string} props.sections[].key - 区块唯一键 + * @param {string} props.sections[].title - 区块标题 + * @param {ReactNode} props.sections[].icon - 标题图标 + * @param {ReactNode} props.sections[].content - 区块内容 + * @param {boolean} props.sections[].defaultCollapsed - 默认是否折叠 + * @param {boolean} props.sections[].hideTitleBar - 是否隐藏该区块的标题栏(默认 false) + * @param {string} props.layout - 布局方式:'vertical'(垂直堆叠)| 'horizontal'(水平排列) + * @param {string} props.className - 自定义类名 + */ +function ExtendInfoPanel({ sections = [], layout = 'vertical', className = '' }) { + const [collapsedSections, setCollapsedSections] = useState(() => { + const initial = {} + sections.forEach((section) => { + if (section.defaultCollapsed) { + initial[section.key] = true + } + }) + return initial + }) + + const toggleSection = (key) => { + setCollapsedSections((prev) => ({ + ...prev, + [key]: !prev[key], + })) + } + + return ( +
+ {sections.map((section) => { + const isCollapsed = collapsedSections[section.key] + const hideTitleBar = section.hideTitleBar === true + + return ( +
+ {/* 区块头部 - 可配置隐藏 */} + {!hideTitleBar && ( +
toggleSection(section.key)}> +
+ {section.icon && {section.icon}} + {section.title} +
+ +
+ )} + + {/* 区块内容 - 如果隐藏标题栏则总是显示,否则根据折叠状态 */} + {(hideTitleBar || !isCollapsed) && ( +
{section.content}
+ )} +
+ ) + })} +
+ ) +} + +export default ExtendInfoPanel diff --git a/forntend/src/components/InfoPanel/InfoPanel.css b/forntend/src/components/InfoPanel/InfoPanel.css new file mode 100644 index 0000000..463adb6 --- /dev/null +++ b/forntend/src/components/InfoPanel/InfoPanel.css @@ -0,0 +1,96 @@ +/* 信息面板 */ +.info-panel { + padding: 0; + background: #ffffff; +} + +/* 信息区域容器 */ +.info-panel > :global(.ant-row) { + padding: 24px; + background: #ffffff; + border-bottom: 1px solid #f0f0f0; +} + +.info-panel-item { + display: flex; + flex-direction: column; + gap: 5px; + padding: 10px 0; + border-bottom: 1px solid #f0f0f0; + transition: all 0.2s ease; + position: relative; +} + +.info-panel-item:last-child { + border-bottom: none; +} + +/* 添加左侧装饰条 */ +.info-panel-item::before { + content: ''; + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + width: 0; + height: 0; + background: linear-gradient(180deg, #1677ff 0%, #4096ff 100%); + border-radius: 2px; + transition: all 0.3s ease; +} + +.info-panel-item:hover { + background: linear-gradient(90deg, #f0f7ff 0%, transparent 100%); + padding-left: 10px; + padding-right: 16px; + margin-left: -12px; + margin-right: -16px; + border-radius: 8px; + border-bottom-color: transparent; +} + +.info-panel-item:hover::before { + width: 3px; + height: 60%; +} + +.info-panel-label { + color: rgba(0, 0, 0, 0.45); + font-size: 13px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 1px; + margin-bottom: 4px; +} + +.info-panel-value { + color: rgba(0, 0, 0, 0.88); + font-size: 15px; + font-weight: 500; + word-break: break-all; + line-height: 1.6; +} + +/* 操作按钮区 */ +.info-panel-actions { + padding: 24px 32px; + background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%); + border-top: 2px solid #e8e8e8; + position: relative; +} + +/* 操作区域顶部装饰线 */ +.info-panel-actions::before { + content: ''; + position: absolute; + top: -2px; + left: 0; + right: 0; + height: 2px; + background: linear-gradient(90deg, #1677ff 0%, transparent 50%, #1677ff 100%); + opacity: 0.3; +} + + + + diff --git a/forntend/src/components/InfoPanel/InfoPanel.jsx b/forntend/src/components/InfoPanel/InfoPanel.jsx new file mode 100644 index 0000000..c60f2c9 --- /dev/null +++ b/forntend/src/components/InfoPanel/InfoPanel.jsx @@ -0,0 +1,58 @@ +import { Row, Col, Space, Button } from 'antd' +import './InfoPanel.css' + +/** + * 信息展示面板组件 + * @param {Object} props + * @param {Object} props.data - 数据源 + * @param {Array} props.fields - 字段配置数组 + * @param {Array} props.actions - 操作按钮配置(可选) + * @param {Array} props.gutter - Grid间距配置 + */ +function InfoPanel({ data, fields = [], actions = [], gutter = [24, 16] }) { + if (!data) { + return null + } + + return ( +
+ + {fields.map((field) => { + const value = data[field.key] + const displayValue = field.render ? field.render(value, data) : value + + return ( + +
+
{field.label}
+
{displayValue}
+
+ + ) + })} +
+ + {/* 可选的操作按钮区 */} + {actions && actions.length > 0 && ( +
+ + {actions.map((action) => ( + + ))} + +
+ )} +
+ ) +} + +export default InfoPanel diff --git a/forntend/src/components/ListActionBar/ListActionBar.css b/forntend/src/components/ListActionBar/ListActionBar.css new file mode 100644 index 0000000..86b592f --- /dev/null +++ b/forntend/src/components/ListActionBar/ListActionBar.css @@ -0,0 +1,95 @@ +.list-action-bar { + position: sticky; + top: 0; + z-index: 10; + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 4px; + padding: 16px; + background: #ffffff; + border-radius: 8px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); + width: 100%; +} + +.list-action-bar-left, +.list-action-bar-right { + display: flex; + gap: 12px; + align-items: center; +} + +/* 搜索和筛选组合 */ +.list-action-bar-right :global(.ant-space-compact) { + display: flex; +} + +.list-action-bar-right :global(.ant-space-compact .ant-input-search) { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} + +.list-action-bar-right :global(.ant-space-compact > .ant-btn) { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} + +/* 批量操作区域样式 */ +.selection-info { + display: flex; + align-items: center; + gap: 12px; + padding: 8px 16px; + background: #e6f4ff; + border: 1px solid #91caff; + border-radius: 6px; + font-size: 14px; +} + +.selection-count { + color: rgba(0, 0, 0, 0.85); +} + +.selection-count strong { + color: #1677ff; + font-weight: 600; + margin: 0 4px; +} + +.all-pages-tag { + color: #1677ff; + font-weight: 500; + margin-left: 4px; +} + +.select-all-link, +.clear-selection-link { + color: #1677ff; + cursor: pointer; + text-decoration: none; + white-space: nowrap; + padding: 2px 8px; + border-radius: 4px; + transition: all 0.2s; +} + +.select-all-link:hover, +.clear-selection-link:hover { + background: rgba(22, 119, 255, 0.1); + text-decoration: underline; +} + +/* 响应式 */ +@media (max-width: 768px) { + .list-action-bar { + flex-direction: column; + gap: 12px; + align-items: stretch; + } + + .list-action-bar-left, + .list-action-bar-right { + flex-wrap: wrap; + } +} diff --git a/forntend/src/components/ListActionBar/ListActionBar.jsx b/forntend/src/components/ListActionBar/ListActionBar.jsx new file mode 100644 index 0000000..f1b1c44 --- /dev/null +++ b/forntend/src/components/ListActionBar/ListActionBar.jsx @@ -0,0 +1,134 @@ +import { Button, Input, Space, Popover } from 'antd' +import { ReloadOutlined, FilterOutlined } from '@ant-design/icons' +import './ListActionBar.css' + +const { Search } = Input + +/** + * 列表操作栏组件 + * @param {Object} props + * @param {Array} props.actions - 左侧操作按钮配置数组 + * @param {Array} props.batchActions - 批量操作按钮配置数组(仅在有选中项时显示) + * @param {Object} props.selectionInfo - 选中信息 { count: 选中数量, total: 总数量, isAllPagesSelected: 是否跨页全选 } + * @param {Function} props.onSelectAllPages - 选择所有页回调 + * @param {Function} props.onClearSelection - 清除选择回调 + * @param {Object} props.search - 搜索配置 + * @param {Object} props.filter - 高级筛选配置(可选) + * @param {boolean} props.showRefresh - 是否显示刷新按钮 + * @param {Function} props.onRefresh - 刷新回调 + */ +function ListActionBar({ + actions = [], + batchActions = [], + selectionInfo, + onSelectAllPages, + onClearSelection, + search, + filter, + showRefresh = false, + onRefresh, +}) { + // 是否有选中项 + const hasSelection = selectionInfo && selectionInfo.count > 0 + return ( +
+ {/* 左侧操作按钮区 */} +
+ {/* 常规操作按钮(无选中时显示) */} + {!hasSelection && actions.map((action) => ( + + ))} + + {/* 批量操作区域(有选中时显示) */} + {hasSelection && ( + + {/* 选中信息 */} +
+ + 已选择 {selectionInfo.count} 项 + {selectionInfo.isAllPagesSelected && ( + (全部页) + )} + + {!selectionInfo.isAllPagesSelected && selectionInfo.total > selectionInfo.count && ( + + 选择全部 {selectionInfo.total} 项 + + )} + + 清除 + +
+ + {/* 批量操作按钮 */} + {batchActions.map((action) => ( + + ))} +
+ )} +
+ + {/* 右侧搜索筛选区 */} +
+ + search?.onChange?.(e.target.value)} + value={search?.value} + /> + {filter && ( + + + {filter.title || '高级筛选'} +
+ } + trigger="click" + open={filter.visible} + onOpenChange={filter.onVisibleChange} + placement="bottomRight" + overlayClassName="filter-popover" + > + + + )} + + {showRefresh && ( + + )} +
+
+ ) +} + +export default ListActionBar diff --git a/forntend/src/components/ListTable/ListTable.css b/forntend/src/components/ListTable/ListTable.css new file mode 100644 index 0000000..38deeee --- /dev/null +++ b/forntend/src/components/ListTable/ListTable.css @@ -0,0 +1,49 @@ +/* 列表表格容器 */ +.list-table-container { + background: #ffffff; + border-radius: 8px; + padding: 16px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); + height: 626px; + overflow-y: auto; + width: 100%; +} + +/* 行选中样式 */ +.list-table-container .row-selected { + background-color: #e6f7ff; +} + +.list-table-container .row-selected:hover > td { + background-color: #bae7ff !important; +} + +/* 分页器中的选择信息样式 */ +.table-selection-info { + display: inline-flex; + align-items: center; + gap: 8px; +} + +.selection-count { + color: rgba(0, 0, 0, 0.65); + font-size: 14px; +} + +.count-highlight { + color: #1677ff; + font-weight: 600; +} + +.selection-action { + color: #1677ff; + font-size: 14px; + cursor: pointer; + text-decoration: none; + transition: color 0.3s; + margin-left: 4px; +} + +.selection-action:hover { + color: #4096ff; +} diff --git a/forntend/src/components/ListTable/ListTable.jsx b/forntend/src/components/ListTable/ListTable.jsx new file mode 100644 index 0000000..77dd322 --- /dev/null +++ b/forntend/src/components/ListTable/ListTable.jsx @@ -0,0 +1,115 @@ +import { Table } from 'antd' +import './ListTable.css' + +/** + * 列表表格组件 + * @param {Object} props + * @param {Array} props.columns - 表格列配置 + * @param {Array} props.dataSource - 数据源 + * @param {string} props.rowKey - 行唯一标识字段 + * @param {Array} props.selectedRowKeys - 选中的行 + * @param {Function} props.onSelectionChange - 选择变化回调 + * @param {boolean} props.isAllPagesSelected - 是否跨页全选所有数据 + * @param {number} props.totalCount - 总数据量(用于跨页全选) + * @param {Function} props.onSelectAllPages - 选择所有页回调 + * @param {Function} props.onClearSelection - 清除选择回调 + * @param {Object} props.pagination - 分页配置 + * @param {Object} props.scroll - 表格滚动配置 + * @param {Function} props.onRowClick - 行点击回调 + * @param {Object} props.selectedRow - 当前选中的行 + * @param {boolean} props.loading - 加载状态 + * @param {string} props.className - 自定义类名 + */ +function ListTable({ + columns, + dataSource, + rowKey = 'id', + selectedRowKeys = [], + onSelectionChange, + isAllPagesSelected = false, + totalCount, + onSelectAllPages, + onClearSelection, + pagination = { + pageSize: 10, + showSizeChanger: true, + showQuickJumper: true, + }, + scroll = { x: 1200}, + onRowClick, + selectedRow, + loading = false, + className = '', +}) { + // 行选择配置 + const rowSelection = { + selectedRowKeys, + onChange: (newSelectedRowKeys) => { + onSelectionChange?.(newSelectedRowKeys) + }, + // 当跨页全选时,禁用单个复选框 + getCheckboxProps: () => ({ + disabled: isAllPagesSelected, + }), + } + + // 合并分页配置,添加选择信息显示 + const mergedPagination = pagination === false ? false : { + ...pagination, + showTotal: (total) => ( +
+ {isAllPagesSelected ? ( + <> + + 已选择 {totalCount || total} 项 + + {onClearSelection && ( + + 清除选择 + + )} + + ) : selectedRowKeys.length > 0 ? ( + <> + + 已选择 {selectedRowKeys.length} 项 + + {onSelectAllPages && selectedRowKeys.length < (totalCount || total) && ( + + 选择全部 {totalCount || total} 项 + + )} + {onClearSelection && ( + + 清除 + + )} + + ) : ( + 已选择 0 项 + )} +
+ ), + } + + return ( +
+ ({ + onClick: () => onRowClick?.(record), + className: selectedRow?.[rowKey] === record[rowKey] ? 'row-selected' : '', + })} + /> + + ) +} + +export default ListTable diff --git a/forntend/src/components/MainLayout/AppHeader.css b/forntend/src/components/MainLayout/AppHeader.css new file mode 100644 index 0000000..9b18ee4 --- /dev/null +++ b/forntend/src/components/MainLayout/AppHeader.css @@ -0,0 +1,129 @@ +.app-header { + background: #fff; + padding: 0 24px; + display: flex; + align-items: center; + justify-content: space-between; + box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08); + height: 64px; + border-bottom: 1px solid #f0f0f0; +} + +/* 左侧区域 */ +.header-left { + display: flex; + align-items: center; + gap: 16px; +} + +/* Logo 区域 */ +.header-logo { + display: flex; + align-items: center; + justify-content: center; + width: 168px; + transition: width 0.2s; +} + +.logo-small { + width: 40px; + height: 40px; + border-radius: 8px; + transition: all 0.2s; +} + +.logo-full { + height: 32px; + width: auto; + transition: all 0.2s; +} + +.trigger { + font-size: 18px; + cursor: pointer; + transition: color 0.3s; + padding: 8px; + border-radius: 4px; + color: rgba(0, 0, 0, 0.65); + display: flex; + align-items: center; +} + +.trigger:hover { + color: #b8178d; + background: rgba(184, 23, 141, 0.06); +} + +/* 右侧区域 */ +.header-right { + display: flex; + align-items: center; + gap: 16px; +} + +.header-search { + border-radius: 16px; +} + +.header-actions { + display: flex; + align-items: center; +} + +.header-icon { + font-size: 16px; + color: rgba(0, 0, 0, 0.65); + cursor: pointer; + transition: all 0.3s; + padding: 8px; + border-radius: 4px; + display: flex; + align-items: center; + justify-content: center; +} + +.header-icon:hover { + color: #b8178d; + background: rgba(184, 23, 141, 0.06); +} + +.header-link { + font-size: 14px; + color: rgba(0, 0, 0, 0.65); + cursor: pointer; + transition: all 0.3s; + padding: 6px 12px; + border-radius: 4px; + display: flex; + align-items: center; + gap: 4px; +} + +.header-link:hover { + color: #b8178d; + background: rgba(184, 23, 141, 0.06); +} + +.user-info { + display: flex; + align-items: center; + gap: 8px; + cursor: pointer; + padding: 4px 8px; + border-radius: 4px; + transition: all 0.3s; +} + +.user-info:hover { + background: rgba(184, 23, 141, 0.06); +} + +.username { + font-size: 14px; + color: rgba(0, 0, 0, 0.88); + font-weight: 500; +} + +.ml-1 { + margin-left: 4px; +} diff --git a/forntend/src/components/MainLayout/AppHeader.jsx b/forntend/src/components/MainLayout/AppHeader.jsx new file mode 100644 index 0000000..d7f6001 --- /dev/null +++ b/forntend/src/components/MainLayout/AppHeader.jsx @@ -0,0 +1,135 @@ +import { Layout, Input, Badge, Avatar, Dropdown, Space } from 'antd' +import { useNavigate } from 'react-router-dom' +import { + MenuFoldOutlined, + MenuUnfoldOutlined, + SearchOutlined, + BellOutlined, + QuestionCircleOutlined, + FileTextOutlined, + CustomerServiceOutlined, + UserOutlined, +} from '@ant-design/icons' +import useUserStore from '@/stores/userStore' +import Toast from '@/components/Toast/Toast' +import headerMenuData from '../../data/headerMenuData.json' +import './AppHeader.css' + +const { Header } = Layout + +// 图标映射 +const iconMap = { + QuestionCircleOutlined: , + FileTextOutlined: , + CustomerServiceOutlined: , +} + +function AppHeader({ collapsed, onToggle }) { + const navigate = useNavigate() + const { user, logout } = useUserStore() + + // 用户下拉菜单 + const userMenuItems = [ + { + key: 'profile', + label: '个人中心', + }, + { + key: 'settings', + label: '账户设置', + }, + { + type: 'divider', + }, + { + key: 'logout', + label: '退出登录', + }, + ] + + const handleUserMenuClick = ({ key }) => { + if (key === 'logout') { + logout() + Toast.success('退出成功', '您已安全退出') + navigate('/login') + } else if (key === 'profile') { + navigate('/profile') + } else if (key === 'settings') { + Toast.info('开发中', '账户设置功能正在开发中') + } + } + + const handleHeaderMenuClick = (key) => { + console.log('Header menu clicked:', key) + if (key === 'support') { + Toast.info('开发中', '支持功能正在开发中') + } + } + + return ( +
+ {/* 左侧:Logo + 折叠按钮 */} +
+ {/* Logo 区域 */} +
+

NEX Docus

+
+ + {/* 折叠按钮 */} +
+ {collapsed ? : } +
+
+ + {/* 右侧:搜索 + 功能按钮 + 用户信息 */} +
+ {/* 搜索框 */} + } + style={{ width: 200 }} + /> + + {/* 功能图标 */} + + {/* 动态渲染 header 菜单 */} + {headerMenuData.map((item) => ( +
handleHeaderMenuClick(item.key)} + > + {iconMap[item.icon]} + {item.label} +
+ ))} + + {/* 消息中心 */} + +
+ +
+
+ + {/* 用户下拉菜单 */} + +
+ } /> + {user?.nickname || user?.username || 'User'} +
+
+
+
+
+ ) +} + +export default AppHeader diff --git a/forntend/src/components/MainLayout/AppSider.css b/forntend/src/components/MainLayout/AppSider.css new file mode 100644 index 0000000..f4a98aa --- /dev/null +++ b/forntend/src/components/MainLayout/AppSider.css @@ -0,0 +1,96 @@ +.app-sider { + height: 100%; + overflow: auto; + background: #fafafa; + border-right: 1px solid #f0f0f0; + transition: all 0.2s; +} + +.app-sider::-webkit-scrollbar { + width: 6px; +} + +.app-sider::-webkit-scrollbar-thumb { + background: rgba(0, 0, 0, 0.1); + border-radius: 3px; +} + +.app-sider::-webkit-scrollbar-thumb:hover { + background: rgba(0, 0, 0, 0.2); +} + +/* 菜单样式 */ +.sider-menu { + border-right: none; + padding-top: 8px; + background: #fafafa; +} + +/* 收起状态下的图标放大 */ +:global(.ant-layout-sider-collapsed) .sider-menu :global(.ant-menu-item) { + padding: 0 !important; + display: flex; + align-items: center; + justify-content: center; + height: 56px; + margin: 8px 0; +} + +/* 收起状态下的 SubMenu 样式 */ +:global(.ant-layout-sider-collapsed) .sider-menu :global(.ant-menu-submenu) { + padding: 0 !important; +} + +:global(.ant-layout-sider-collapsed) .sider-menu :global(.ant-menu-submenu-title) { + padding: 0 !important; + display: flex; + align-items: center; + justify-content: center; + height: 56px; + margin: 8px 0; +} + +:global(.ant-layout-sider-collapsed) .sider-menu :global(.anticon) { + font-size: 24px; + margin: 0; +} + +/* 收起状态下的 Tooltip */ +:global(.ant-layout-sider-collapsed) .sider-menu :global(.ant-menu-item-icon) { + font-size: 24px; +} + +:global(.ant-layout-sider-collapsed) .sider-menu :global(.ant-menu-submenu-title) :global(.anticon) { + font-size: 24px; + margin: 0; +} + +/* 菜单项徽章 */ +.menu-item-with-badge { + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; +} + +.menu-badge { + font-size: 10px; + height: 18px; + line-height: 18px; + border-radius: 9px; + padding: 0 6px; + margin-left: 8px; +} + +.badge-hot :global(.ant-badge-count) { + background: #ff4d4f; +} + +.badge-new :global(.ant-badge-count) { + background: #52c41a; +} + +/* 收起状态下隐藏徽章 */ +:global(.ant-layout-sider-collapsed) .menu-badge { + display: none; +} diff --git a/forntend/src/components/MainLayout/AppSider.jsx b/forntend/src/components/MainLayout/AppSider.jsx new file mode 100644 index 0000000..7bddd6b --- /dev/null +++ b/forntend/src/components/MainLayout/AppSider.jsx @@ -0,0 +1,168 @@ +import { useState, useEffect } from 'react' +import { Layout, Menu, Badge, message } from 'antd' +import { useNavigate, useLocation } from 'react-router-dom' +import { + DashboardOutlined, + DesktopOutlined, + GlobalOutlined, + CloudServerOutlined, + UserOutlined, + AppstoreOutlined, + SettingOutlined, + BlockOutlined, + FolderOutlined, + FileTextOutlined, +} from '@ant-design/icons' +import { getUserMenus } from '@/api/menu' +import './AppSider.css' + +const { Sider } = Layout + +// 图标映射 +const iconMap = { + DashboardOutlined, + DesktopOutlined, + GlobalOutlined, + CloudServerOutlined, + UserOutlined, + AppstoreOutlined, + SettingOutlined, + BlockOutlined, + FolderOutlined, + FileTextOutlined, +} + +function AppSider({ collapsed, onToggle }) { + const navigate = useNavigate() + const location = useLocation() + const [openKeys, setOpenKeys] = useState([]) + const [menuData, setMenuData] = useState([]) + const [loading, setLoading] = useState(true) + + // 加载菜单数据 + useEffect(() => { + loadMenus() + }, []) + + const loadMenus = async () => { + try { + const res = await getUserMenus() + if (res.data) { + setMenuData(res.data) + } + } catch (error) { + console.error('Load menus error:', error) + message.error('加载菜单失败') + } finally { + setLoading(false) + } + } + + // 根据当前路径获取应该打开的父菜单 + const getDefaultOpenKeys = () => { + const path = location.pathname + for (const item of menuData) { + if (item.children) { + const hasChild = item.children.some((c) => c.path === path) + if (hasChild) { + return [item.menu_code] + } + } + } + return [] + } + + // 监听路径变化和收拢状态,自动打开父菜单 + useEffect(() => { + if (!collapsed && menuData.length > 0) { + const defaultKeys = getDefaultOpenKeys() + setOpenKeys(defaultKeys) + } + }, [location.pathname, collapsed, menuData]) + + const handleMenuClick = ({ key }) => { + // 查找对应的路径 + for (const item of menuData) { + if (item.menu_code === key && item.path) { + navigate(item.path) + return + } + if (item.children) { + const child = item.children.find((c) => c.menu_code === key) + if (child && child.path) { + navigate(child.path) + return + } + } + } + } + + const handleOpenChange = (keys) => { + setOpenKeys(keys) + } + + // 获取当前选中的菜单项 + const getSelectedKey = () => { + const path = location.pathname + for (const item of menuData) { + if (item.path === path) return item.menu_code + if (item.children) { + const child = item.children.find((c) => c.path === path) + if (child) return child.menu_code + } + } + return '' + } + + // 生成菜单项配置 + const getMenuItems = () => { + return menuData.map((item) => { + const IconComponent = iconMap[item.icon] + const icon = IconComponent ? : null + + // 如果有子菜单 + if (item.children && item.children.length > 0) { + return { + key: item.menu_code, + icon: icon, + label: item.menu_name, + popupClassName: 'sider-submenu-popup', + children: item.children.map((child) => ({ + key: child.menu_code, + label: child.menu_name, + })), + } + } + + // 普通菜单项 + return { + key: item.menu_code, + icon: icon, + label: item.menu_name, + } + }) + } + + return ( + + {/* 菜单 */} + + + ) +} + +export default AppSider diff --git a/forntend/src/components/MainLayout/MainLayout.css b/forntend/src/components/MainLayout/MainLayout.css new file mode 100644 index 0000000..8cbcfef --- /dev/null +++ b/forntend/src/components/MainLayout/MainLayout.css @@ -0,0 +1,24 @@ +.main-layout { + min-height: 100vh; + display: flex; + flex-direction: column; + background: #fafafa; +} + +.main-content-wrapper { + display: flex; + flex: 1; + height: calc(100vh - 64px); + background: #fafafa; +} + +.main-content { + background: #f5f5f5; + overflow-y: auto; + flex: 1; +} + +.content-wrapper { + padding: 16px; + min-height: 100%; +} diff --git a/forntend/src/components/MainLayout/MainLayout.jsx b/forntend/src/components/MainLayout/MainLayout.jsx new file mode 100644 index 0000000..2c4ea0b --- /dev/null +++ b/forntend/src/components/MainLayout/MainLayout.jsx @@ -0,0 +1,31 @@ +import { useState } from 'react' +import { Layout } from 'antd' +import AppSider from './AppSider' +import AppHeader from './AppHeader' +import './MainLayout.css' + +const { Content } = Layout + +function MainLayout({ children }) { + const [collapsed, setCollapsed] = useState(false) + + const toggleCollapsed = () => { + setCollapsed(!collapsed) + } + + return ( + + + + + +
+ {children} +
+
+
+
+ ) +} + +export default MainLayout diff --git a/forntend/src/components/MainLayout/index.js b/forntend/src/components/MainLayout/index.js new file mode 100644 index 0000000..12555fd --- /dev/null +++ b/forntend/src/components/MainLayout/index.js @@ -0,0 +1,4 @@ +export { default } from './MainLayout' +export { default as MainLayout } from './MainLayout' +export { default as AppSider } from './AppSider' +export { default as AppHeader } from './AppHeader' diff --git a/forntend/src/components/PageHeader/PageHeader.css b/forntend/src/components/PageHeader/PageHeader.css new file mode 100644 index 0000000..6ba9202 --- /dev/null +++ b/forntend/src/components/PageHeader/PageHeader.css @@ -0,0 +1,109 @@ +.page-header-standard { + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + border-radius: 12px; + padding: 24px 28px; + margin-bottom: 24px; + display: flex; + justify-content: space-between; + align-items: center; + box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15); + position: relative; + overflow: hidden; +} + +.page-header-standard::before { + content: ''; + position: absolute; + top: -50%; + right: -10%; + width: 300px; + height: 300px; + background: rgba(255, 255, 255, 0.1); + border-radius: 50%; +} + +.page-header-main { + display: flex; + align-items: center; + gap: 16px; + position: relative; + z-index: 1; +} + +.back-button { + width: 36px; + height: 36px; + border-radius: 8px; + background: rgba(255, 255, 255, 0.2); + border: 1px solid rgba(255, 255, 255, 0.3); + color: #ffffff; + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + transition: all 0.3s; + font-size: 16px; +} + +.back-button:hover { + background: rgba(255, 255, 255, 0.3); + transform: translateX(-2px); +} + +.page-header-content { + display: flex; + align-items: center; + gap: 16px; +} + +.page-header-icon { + width: 48px; + height: 48px; + border-radius: 12px; + background: rgba(255, 255, 255, 0.2); + backdrop-filter: blur(10px); + display: flex; + align-items: center; + justify-content: center; + font-size: 24px; + color: #ffffff; + border: 1px solid rgba(255, 255, 255, 0.3); +} + +.page-header-text { + display: flex; + flex-direction: column; + gap: 4px; +} + +.page-header-title { + font-size: 22px; + font-weight: 600; + color: #ffffff; + margin: 0; + letter-spacing: 0.3px; +} + +.page-header-description { + font-size: 14px; + color: rgba(255, 255, 255, 0.9); + margin: 0; + line-height: 1.5; +} + +.page-header-extra { + position: relative; + z-index: 1; +} + +@media (max-width: 768px) { + .page-header-standard { + flex-direction: column; + align-items: flex-start; + gap: 16px; + } + + .page-header-extra { + width: 100%; + } +} diff --git a/forntend/src/components/PageHeader/PageHeader.jsx b/forntend/src/components/PageHeader/PageHeader.jsx new file mode 100644 index 0000000..b934376 --- /dev/null +++ b/forntend/src/components/PageHeader/PageHeader.jsx @@ -0,0 +1,35 @@ +import { ArrowLeftOutlined } from '@ant-design/icons' +import './PageHeader.css' + +function PageHeader({ + title, + description, + icon, + showBack = false, + onBack, + extra +}) { + return ( +
+
+ {showBack && ( + + )} +
+ {icon &&
{icon}
} +
+

{title}

+ {description && ( +

{description}

+ )} +
+
+
+ {extra &&
{extra}
} +
+ ) +} + +export default PageHeader diff --git a/forntend/src/components/PageTitleBar/PageTitleBar.css b/forntend/src/components/PageTitleBar/PageTitleBar.css new file mode 100644 index 0000000..f362ffb --- /dev/null +++ b/forntend/src/components/PageTitleBar/PageTitleBar.css @@ -0,0 +1,187 @@ +.page-title-bar { + background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%); + border-radius: 12px; + padding: 16px 24px; + margin-bottom: 16px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); + position: relative; + overflow: hidden; + border: 1px solid rgba(139, 92, 246, 0.1); +} + +.page-title-bar::before { + content: ''; + position: absolute; + top: -50%; + right: -5%; + width: 200px; + height: 200px; + background: rgba(139, 92, 246, 0.05); + border-radius: 50%; +} + +.title-bar-content { + position: relative; + z-index: 1; + display: flex; + justify-content: space-between; + align-items: center; +} + +.title-bar-left { + flex: 1; +} + +.title-row { + display: flex; + align-items: center; + gap: 16px; +} + +.title-group { + display: flex; + align-items: center; + gap: 12px; +} + +.page-title { + font-size: 20px; + font-weight: 600; + color: #1e293b; + margin: 0; + letter-spacing: 0.3px; +} + +.title-badge { + background: rgba(139, 92, 246, 0.15); + color: #7c3aed; + padding: 2px 10px; + border-radius: 10px; + font-size: 12px; + font-weight: 500; +} + +.page-description { + font-size: 13px; + color: #64748b; + margin: 0; + white-space: nowrap; +} + +.title-bar-right { + display: flex; + align-items: center; + gap: 12px; +} + +.title-actions { + display: flex; + gap: 10px; +} + +.title-actions button { + padding: 8px 16px; + border-radius: 6px; + font-size: 13px; + font-weight: 500; + cursor: pointer; + transition: all 0.3s; + border: none; + outline: none; +} + +.title-actions button.primary { + background: #7c3aed; + color: #ffffff; +} + +.title-actions button.primary:hover { + background: #6d28d9; + transform: translateY(-1px); + box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25); +} + +.title-actions button.secondary { + background: rgba(139, 92, 246, 0.1); + color: #7c3aed; + border: 1px solid rgba(139, 92, 246, 0.2); +} + +.title-actions button.secondary:hover { + background: rgba(139, 92, 246, 0.15); + transform: translateY(-1px); +} + +.toggle-button { + width: 32px; + height: 32px; + border-radius: 6px; + background: rgba(139, 92, 246, 0.1); + border: 1px solid rgba(139, 92, 246, 0.2); + color: #7c3aed; + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + transition: all 0.3s; + font-size: 14px; +} + +.toggle-button:hover { + background: rgba(139, 92, 246, 0.2); + transform: translateY(-1px); +} + +/* 扩展内容区域 */ +.title-bar-expanded-content { + position: relative; + z-index: 1; + margin-top: 8px; + padding: 8px; + background: #ffffff; + border: 1px solid rgba(139, 92, 246, 0.1); + animation: expandContent 0.3s ease-out; +} + +@keyframes expandContent { + from { + opacity: 0; + transform: translateY(-10px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +/* 响应式适配 */ +@media (max-width: 768px) { + .title-bar-content { + flex-direction: column; + align-items: flex-start; + gap: 12px; + } + + .title-row { + flex-direction: column; + align-items: flex-start; + gap: 4px; + } + + .page-description { + white-space: normal; + } + + .title-bar-right { + width: 100%; + justify-content: space-between; + } + + .title-actions { + flex: 1; + } + + .title-actions button { + flex: 1; + } +} diff --git a/forntend/src/components/PageTitleBar/PageTitleBar.jsx b/forntend/src/components/PageTitleBar/PageTitleBar.jsx new file mode 100644 index 0000000..a023b8f --- /dev/null +++ b/forntend/src/components/PageTitleBar/PageTitleBar.jsx @@ -0,0 +1,53 @@ +import { useState } from 'react' +import { UpOutlined, DownOutlined } from '@ant-design/icons' +import './PageTitleBar.css' + +function PageTitleBar({ + title, + badge, + description, + actions, + showToggle = false, + onToggle, + defaultExpanded = false, +}) { + const [expanded, setExpanded] = useState(defaultExpanded) + + const handleToggle = () => { + const newExpanded = !expanded + setExpanded(newExpanded) + if (onToggle) { + onToggle(newExpanded) + } + } + + return ( +
+
+
+
+
+

{title}

+ {badge && {badge}} +
+ {description &&

{description}

} +
+
+
+ {actions &&
{actions}
} + {showToggle && ( + + )} +
+
+
+ ) +} + +export default PageTitleBar diff --git a/forntend/src/components/ProtectedRoute.jsx b/forntend/src/components/ProtectedRoute.jsx new file mode 100644 index 0000000..a6b1512 --- /dev/null +++ b/forntend/src/components/ProtectedRoute.jsx @@ -0,0 +1,14 @@ +import { Navigate } from 'react-router-dom' +import useUserStore from '@/stores/userStore' + +function ProtectedRoute({ children }) { + const token = localStorage.getItem('access_token') + + if (!token) { + return + } + + return children +} + +export default ProtectedRoute diff --git a/forntend/src/components/SelectionAlert/SelectionAlert.css b/forntend/src/components/SelectionAlert/SelectionAlert.css new file mode 100644 index 0000000..bfd2069 --- /dev/null +++ b/forntend/src/components/SelectionAlert/SelectionAlert.css @@ -0,0 +1,49 @@ +.selection-alert-container { + margin-bottom: 16px; +} + +.selection-alert-content { + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; +} + +.selection-alert-content span { + flex: 1; + color: rgba(0, 0, 0, 0.85); +} + +.selection-alert-content strong { + color: #1677ff; + font-weight: 600; + margin: 0 4px; +} + +.selection-alert-content a { + color: #1677ff; + cursor: pointer; + white-space: nowrap; + transition: all 0.2s; + text-decoration: none; + padding: 0 8px; + border-radius: 4px; +} + +.selection-alert-content a:hover { + background: rgba(22, 119, 255, 0.08); + text-decoration: underline; +} + +/* 响应式处理 */ +@media (max-width: 768px) { + .selection-alert-content { + flex-direction: column; + align-items: flex-start; + gap: 8px; + } + + .selection-alert-content a { + padding: 4px 8px; + } +} diff --git a/forntend/src/components/SelectionAlert/SelectionAlert.jsx b/forntend/src/components/SelectionAlert/SelectionAlert.jsx new file mode 100644 index 0000000..82502cd --- /dev/null +++ b/forntend/src/components/SelectionAlert/SelectionAlert.jsx @@ -0,0 +1,89 @@ +import { Alert } from 'antd' +import './SelectionAlert.css' + +/** + * 全选提示条组件 + * @param {Object} props + * @param {number} props.currentPageCount - 当前页选中数量 + * @param {number} props.totalCount - 总数据量 + * @param {boolean} props.isAllPagesSelected - 是否已选择所有页 + * @param {Function} props.onSelectAllPages - 选择所有页的回调 + * @param {Function} props.onClearSelection - 清除选择的回调 + */ +function SelectionAlert({ + currentPageCount, + totalCount, + isAllPagesSelected, + onSelectAllPages, + onClearSelection, +}) { + // 如果没有选中任何项,不显示 + if (currentPageCount === 0) { + return null + } + + // 如果已选择所有页 + if (isAllPagesSelected) { + return ( +
+ + + 已选择全部 {totalCount} 条数据 + + 清除选择 +
+ } + type="info" + showIcon + closable={false} + /> + + ) + } + + // 如果只选择了当前页,且总数大于当前页 + if (currentPageCount > 0 && totalCount > currentPageCount) { + return ( +
+ + + 已选择当前页 {currentPageCount} 条数据 + + + 选择全部 {totalCount} 条数据 + +
+ } + type="warning" + showIcon + closable={false} + /> + + ) + } + + // 只选择了部分数据,且总数等于当前页(单页情况) + return ( +
+ + + 已选择 {currentPageCount} 条数据 + + 清除选择 +
+ } + type="info" + showIcon + closable={false} + /> + + ) +} + +export default SelectionAlert diff --git a/forntend/src/components/SideInfoPanel/SideInfoPanel.css b/forntend/src/components/SideInfoPanel/SideInfoPanel.css new file mode 100644 index 0000000..f6f38a4 --- /dev/null +++ b/forntend/src/components/SideInfoPanel/SideInfoPanel.css @@ -0,0 +1,88 @@ +/* 侧边信息面板容器 */ +.side-info-panel { + display: flex; + flex-direction: column; + gap: 16px; +} + +/* 信息区块 */ +.side-info-section { + background: #ffffff; + border-radius: 8px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); + overflow: hidden; + transition: all 0.3s ease; +} + +.side-info-section:hover { + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); +} + +/* 区块头部 */ +.side-info-section-header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 16px 20px; + background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%); + border-bottom: 1px solid #e8e8e8; + cursor: pointer; + user-select: none; + transition: background 0.2s ease; +} + +.side-info-section-header:hover { + background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%); +} + +.side-info-section-title { + display: flex; + align-items: center; + gap: 8px; + font-size: 14px; + font-weight: 600; + color: rgba(0, 0, 0, 0.88); +} + +.side-info-section-icon { + display: flex; + align-items: center; + font-size: 16px; + color: #1677ff; +} + +.side-info-section-toggle { + display: flex; + align-items: center; + justify-content: center; + width: 24px; + height: 24px; + border: none; + background: transparent; + color: #8c8c8c; + cursor: pointer; + transition: all 0.2s ease; + border-radius: 4px; +} + +.side-info-section-toggle:hover { + background: rgba(0, 0, 0, 0.06); + color: #1677ff; +} + +/* 区块内容 */ +.side-info-section-content { + padding: 16px 20px; + animation: expandContent 0.3s ease-out; +} + +@keyframes expandContent { + from { + opacity: 0; + transform: translateY(-10px); + } + to { + opacity: 1; + transform: translateY(0); + } +} diff --git a/forntend/src/components/SideInfoPanel/SideInfoPanel.jsx b/forntend/src/components/SideInfoPanel/SideInfoPanel.jsx new file mode 100644 index 0000000..b08e4bc --- /dev/null +++ b/forntend/src/components/SideInfoPanel/SideInfoPanel.jsx @@ -0,0 +1,58 @@ +import { useState } from 'react' +import { UpOutlined, DownOutlined } from '@ant-design/icons' +import './SideInfoPanel.css' + +/** + * 侧边信息面板组件 + * @param {Object} props + * @param {Array} props.sections - 信息区块配置数组 + * @param {string} props.className - 自定义类名 + */ +function SideInfoPanel({ sections = [], className = '' }) { + const [collapsedSections, setCollapsedSections] = useState(() => { + const initial = {} + sections.forEach((section) => { + if (section.defaultCollapsed) { + initial[section.key] = true + } + }) + return initial + }) + + const toggleSection = (key) => { + setCollapsedSections((prev) => ({ + ...prev, + [key]: !prev[key], + })) + } + + return ( +
+ {sections.map((section) => { + const isCollapsed = collapsedSections[section.key] + + return ( +
+ {/* 区块头部 */} +
toggleSection(section.key)}> +
+ {section.icon && {section.icon}} + {section.title} +
+ +
+ + {/* 区块内容 */} + {!isCollapsed && ( +
{section.content}
+ )} +
+ ) + })} +
+ ) +} + +export default SideInfoPanel diff --git a/forntend/src/components/SplitLayout/SplitLayout.css b/forntend/src/components/SplitLayout/SplitLayout.css new file mode 100644 index 0000000..097fa77 --- /dev/null +++ b/forntend/src/components/SplitLayout/SplitLayout.css @@ -0,0 +1,72 @@ +/* 分栏布局容器 */ +.split-layout { + display: flex; + width: 100%; + align-items: flex-start; +} + +/* 横向布局(左右分栏) */ +.split-layout-horizontal { + flex-direction: row; +} + +/* 纵向布局(上下分栏) */ +.split-layout-vertical { + flex-direction: column; +} + +/* 主内容区 */ +.split-layout-main { + flex: 1; + min-width: 0; + width: 100%; + display: flex; + flex-direction: column; +} + +/* 扩展信息区 */ +.split-layout-extend { + flex-shrink: 0; + background: #ffffff; +} + +/* 右侧扩展区(横向布局) */ +.split-layout-extend-right { + height: 693px; + overflow-y: auto; + overflow-x: hidden; + position: sticky; + top: 16px; + padding-right: 4px; +} + +/* 顶部扩展区(纵向布局) */ +.split-layout-extend-top { + width: 100%; +} + +/* 滚动条样式(横向布局右侧扩展区) */ +.split-layout-extend-right::-webkit-scrollbar { + width: 6px; +} + +.split-layout-extend-right::-webkit-scrollbar-track { + background: #f5f5f5; + border-radius: 3px; +} + +.split-layout-extend-right::-webkit-scrollbar-thumb { + background: #d9d9d9; + border-radius: 3px; +} + +.split-layout-extend-right::-webkit-scrollbar-thumb:hover { + background: #bfbfbf; +} + +/* 响应式:小屏幕时隐藏右侧扩展区 */ +@media (max-width: 1200px) { + .split-layout-extend-right { + display: none; + } +} diff --git a/forntend/src/components/SplitLayout/SplitLayout.jsx b/forntend/src/components/SplitLayout/SplitLayout.jsx new file mode 100644 index 0000000..b54a2f7 --- /dev/null +++ b/forntend/src/components/SplitLayout/SplitLayout.jsx @@ -0,0 +1,69 @@ +import './SplitLayout.css' + +/** + * 主内容区布局组件 + * @param {Object} props + * @param {string} props.direction - 布局方向:'horizontal'(左右)| 'vertical'(上下) + * @param {ReactNode} props.mainContent - 主内容区 + * @param {ReactNode} props.extendContent - 扩展内容区 + * @param {number} props.extendSize - 扩展区尺寸(horizontal 模式下为宽度,px) + * @param {number} props.gap - 主内容与扩展区间距(px) + * @param {boolean} props.showExtend - 是否显示扩展区 + * @param {string} props.extendPosition - 扩展区位置(horizontal: 'right', vertical: 'top') + * @param {string} props.className - 自定义类名 + * + * @deprecated 旧参数(向后兼容):leftContent, rightContent, rightWidth, showRight + */ +function SplitLayout({ + // 新 API + direction = 'horizontal', + mainContent, + extendContent, + extendSize = 360, + gap = 16, + showExtend = true, + extendPosition, + className = '', + // 旧 API(向后兼容) + leftContent, + rightContent, + rightWidth, + showRight, +}) { + // 向后兼容:如果使用旧 API,转换为新 API + const actualMainContent = mainContent || leftContent + const actualExtendContent = extendContent || rightContent + const actualExtendSize = extendSize !== 360 ? extendSize : (rightWidth || 360) + const actualShowExtend = showExtend !== undefined ? showExtend : (showRight !== undefined ? showRight : true) + const actualDirection = direction + const actualExtendPosition = extendPosition || (actualDirection === 'horizontal' ? 'right' : 'top') + + return ( +
+ {/* 纵向布局且扩展区在顶部时,先渲染扩展区 */} + {actualDirection === 'vertical' && actualExtendPosition === 'top' && actualShowExtend && actualExtendContent && ( +
+ {actualExtendContent} +
+ )} + + {/* 主内容区 */} +
{actualMainContent}
+ + {/* 横向布局时,扩展区在右侧 */} + {actualDirection === 'horizontal' && actualShowExtend && actualExtendContent && ( +
+ {actualExtendContent} +
+ )} +
+ ) +} + +export default SplitLayout diff --git a/forntend/src/components/StatCard/StatCard.css b/forntend/src/components/StatCard/StatCard.css new file mode 100644 index 0000000..509d577 --- /dev/null +++ b/forntend/src/components/StatCard/StatCard.css @@ -0,0 +1,108 @@ +/* 统计卡片 */ +.stat-card { + padding: 16px; + background: #ffffff; + border-radius: 8px; + border: 1px solid #f0f0f0; + transition: all 0.3s ease; +} + +.stat-card:hover { + border-color: #d9d9d9; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); +} + +/* 一列布局(默认) */ +.stat-card-column { + /* 继承默认样式 */ +} + +/* 两列布局 */ +.stat-card.stat-card-row { + display: flex; + align-items: center; + gap: 16px; +} + +.stat-card.stat-card-row .stat-card-header { + flex: 1; + margin-bottom: 0; + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 8px; +} + +.stat-card.stat-card-row .stat-card-body { + flex-shrink: 0; + display: flex; + flex-direction: column; + align-items: flex-end; + gap: 4px; +} + +/* 卡片头部 */ +.stat-card-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 12px; +} + +.stat-card-title { + font-size: 13px; + color: rgba(0, 0, 0, 0.65); + font-weight: 500; +} + +.stat-card-icon { + font-size: 18px; + display: flex; + align-items: center; +} + +/* 卡片内容 */ +.stat-card-body { + display: flex; + align-items: flex-end; + justify-content: space-between; + gap: 8px; +} + +.stat-card-value { + font-size: 24px; + font-weight: 600; + line-height: 1; +} + +.stat-card-suffix { + font-size: 14px; + font-weight: 400; + margin-left: 4px; + color: rgba(0, 0, 0, 0.45); +} + +/* 趋势指示器 */ +.stat-card-trend { + display: flex; + align-items: center; + gap: 4px; + font-size: 12px; + font-weight: 500; + padding: 2px 6px; + border-radius: 4px; +} + +.stat-card-trend.trend-up { + color: #52c41a; + background: #f6ffed; +} + +.stat-card-trend.trend-down { + color: #ff4d4f; + background: #fff1f0; +} + +.stat-card-trend svg { + font-size: 10px; +} diff --git a/forntend/src/components/StatCard/StatCard.jsx b/forntend/src/components/StatCard/StatCard.jsx new file mode 100644 index 0000000..e333c5c --- /dev/null +++ b/forntend/src/components/StatCard/StatCard.jsx @@ -0,0 +1,78 @@ +import { ArrowUpOutlined, ArrowDownOutlined } from '@ant-design/icons' +import './StatCard.css' + +/** + * 统计卡片组件 + * @param {Object} props + * @param {string} props.title - 卡片标题 + * @param {number|string} props.value - 统计值 + * @param {ReactNode} props.icon - 图标 + * @param {string} props.color - 主题颜色,默认 'blue' + * @param {Object} props.trend - 趋势信息 { value: number, direction: 'up' | 'down' } + * @param {string} props.suffix - 后缀单位 + * @param {string} props.layout - 布局模式: 'column' | 'row',默认 'column'(一列) + * @param {string} props.gridColumn - 网格列跨度,如 '1 / -1' 表示占满整行 + * @param {string} props.className - 自定义类名 + * @param {Function} props.onClick - 点击事件处理函数 + * @param {Object} props.style - 自定义样式对象 + */ +function StatCard({ + title, + value, + icon, + color = 'blue', + trend, + suffix = '', + layout = 'column', + gridColumn, + className = '', + onClick, + style: customStyle = {}, +}) { + const colorMap = { + blue: '#1677ff', + green: '#52c41a', + orange: '#faad14', + red: '#ff4d4f', + purple: '#722ed1', + gray: '#8c8c8c', + } + + const themeColor = colorMap[color] || color + + const style = { + ...(gridColumn ? { gridColumn } : {}), + ...customStyle, + } + + return ( +
+
+ {title} + {icon && ( + + {icon} + + )} +
+ +
+
+ {value} + {suffix && {suffix}} +
+ + {trend && ( +
+ {trend.direction === 'up' ? : } + {Math.abs(trend.value)}% +
+ )} +
+
+ ) +} + +export default StatCard diff --git a/forntend/src/components/Toast/Toast.jsx b/forntend/src/components/Toast/Toast.jsx new file mode 100644 index 0000000..94862e3 --- /dev/null +++ b/forntend/src/components/Toast/Toast.jsx @@ -0,0 +1,114 @@ +import { notification } from 'antd' +import { + CheckCircleOutlined, + CloseCircleOutlined, + ExclamationCircleOutlined, + InfoCircleOutlined, +} from '@ant-design/icons' + +// 配置全局通知位置和样式 +notification.config({ + placement: 'topRight', + top: 24, + duration: 3, + maxCount: 3, +}) + +/** + * 标准通知反馈组件 + * 从右上角滑出,默认3秒后消失 + */ +const Toast = { + /** + * 成功通知 + * @param {string} message - 消息内容 + * @param {string} description - 详细描述(可选) + * @param {number} duration - 显示时长(秒),默认3秒 + */ + success: (message, description = '', duration = 3) => { + notification.success({ + message, + description, + duration, + icon: , + style: { + borderRadius: '8px', + boxShadow: '0 4px 12px rgba(0, 0, 0, 0.15)', + }, + }) + }, + + /** + * 错误通知 + * @param {string} message - 消息内容 + * @param {string} description - 详细描述(可选) + * @param {number} duration - 显示时长(秒),默认3秒 + */ + error: (message, description = '', duration = 3) => { + notification.error({ + message, + description, + duration, + icon: , + style: { + borderRadius: '8px', + boxShadow: '0 4px 12px rgba(0, 0, 0, 0.15)', + }, + }) + }, + + /** + * 警告通知 + * @param {string} message - 消息内容 + * @param {string} description - 详细描述(可选) + * @param {number} duration - 显示时长(秒),默认3秒 + */ + warning: (message, description = '', duration = 3) => { + notification.warning({ + message, + description, + duration, + icon: , + style: { + borderRadius: '8px', + boxShadow: '0 4px 12px rgba(0, 0, 0, 0.15)', + }, + }) + }, + + /** + * 信息通知 + * @param {string} message - 消息内容 + * @param {string} description - 详细描述(可选) + * @param {number} duration - 显示时长(秒),默认3秒 + */ + info: (message, description = '', duration = 3) => { + notification.info({ + message, + description, + duration, + icon: , + style: { + borderRadius: '8px', + boxShadow: '0 4px 12px rgba(0, 0, 0, 0.15)', + }, + }) + }, + + /** + * 自定义通知 + * @param {Object} config - 完整的通知配置对象 + */ + custom: (config) => { + notification.open({ + ...config, + style: { + borderRadius: '8px', + boxShadow: '0 4px 12px rgba(0, 0, 0, 0.15)', + ...config.style, + }, + }) + }, +} + +export default Toast diff --git a/forntend/src/components/TreeFilterPanel/TreeFilterPanel.css b/forntend/src/components/TreeFilterPanel/TreeFilterPanel.css new file mode 100644 index 0000000..fd6341c --- /dev/null +++ b/forntend/src/components/TreeFilterPanel/TreeFilterPanel.css @@ -0,0 +1,58 @@ +/* 树形筛选面板 */ +.tree-filter-panel { + width: 320px; + max-height: 500px; + overflow-y: auto; +} + +/* 已选择的筛选条件 */ +.tree-filter-selected { + min-height: 40px; + padding: 12px; + background: #f5f7fa; + border-radius: 6px; + border: 1px dashed #d9d9d9; +} + +.tree-filter-tag { + display: flex; + align-items: center; + gap: 8px; +} + +.tree-filter-label { + font-size: 13px; + color: rgba(0, 0, 0, 0.65); + font-weight: 500; +} + +.tree-filter-placeholder { + display: flex; + align-items: center; + justify-content: center; + min-height: 24px; +} + +.tree-filter-placeholder span { + color: #8c8c8c; + font-size: 13px; +} + +/* 树形选择器容器 */ +.tree-filter-container { + max-height: 280px; + overflow-y: auto; +} + +.tree-filter-header { + font-size: 14px; + font-weight: 500; + margin-bottom: 12px; + color: rgba(0, 0, 0, 0.85); +} + +/* 操作按钮 */ +.tree-filter-actions { + display: flex; + justify-content: flex-end; +} diff --git a/forntend/src/components/TreeFilterPanel/TreeFilterPanel.jsx b/forntend/src/components/TreeFilterPanel/TreeFilterPanel.jsx new file mode 100644 index 0000000..2723c22 --- /dev/null +++ b/forntend/src/components/TreeFilterPanel/TreeFilterPanel.jsx @@ -0,0 +1,119 @@ +import { Tree, Tag, Divider, Button, Space } from 'antd' +import { useState, useEffect } from 'react' +import './TreeFilterPanel.css' + +/** + * 树形筛选面板组件 + * @param {Object} props + * @param {Array} props.treeData - 树形数据 + * @param {string} props.selectedKey - 当前选中的节点ID + * @param {string} props.tempSelectedKey - 临时选中的节点ID(确认前) + * @param {string} props.treeTitle - 树标题 + * @param {Function} props.onSelect - 选择变化回调 + * @param {Function} props.onConfirm - 确认筛选 + * @param {Function} props.onClear - 清除筛选 + * @param {string} props.placeholder - 占位提示文本 + */ +function TreeFilterPanel({ + treeData, + selectedKey, + tempSelectedKey, + treeTitle = '分组筛选', + onSelect, + onConfirm, + onClear, + placeholder = '请选择分组进行筛选', +}) { + // 获取所有节点的key用于默认展开 + const getAllKeys = (nodes) => { + let keys = [] + const traverse = (node) => { + keys.push(node.key) + if (node.children) { + node.children.forEach(traverse) + } + } + nodes.forEach(traverse) + return keys + } + + const [expandedKeys, setExpandedKeys] = useState([]) + + // 初始化时展开所有节点 + useEffect(() => { + if (treeData && treeData.length > 0) { + setExpandedKeys(getAllKeys(treeData)) + } + }, [treeData]) + + // 查找节点名称 + const findNodeName = (nodes, id) => { + for (const node of nodes) { + if (node.key === id) return node.title + if (node.children) { + const found = findNodeName(node.children, id) + if (found) return found + } + } + return '' + } + + const handleTreeSelect = (selectedKeys) => { + const key = selectedKeys[0] || null + onSelect?.(key) + } + + const handleExpand = (keys) => { + setExpandedKeys(keys) + } + + return ( +
+ {/* 已选择的筛选条件 */} +
+ {tempSelectedKey ? ( +
+ 已选择分组: + onSelect?.(null)}> + {findNodeName(treeData, tempSelectedKey)} + +
+ ) : ( +
+ {placeholder} +
+ )} +
+ + + + {/* 树形选择器 */} +
+
{treeTitle}
+ +
+ + + + {/* 操作按钮 */} +
+ + + + +
+
+ ) +} + +export default TreeFilterPanel diff --git a/forntend/src/data/docsMenuData.json b/forntend/src/data/docsMenuData.json new file mode 100644 index 0000000..80a5329 --- /dev/null +++ b/forntend/src/data/docsMenuData.json @@ -0,0 +1,105 @@ +[ + { + "key": "design", + "label": "设计规范", + "children": [ + { + "key": "design-cookbook", + "label": "设计手册", + "path": "/docs/DESIGN_COOKBOOK.md" + } + ] + }, + { + "key": "layouts", + "label": "布局文档", + "children": [ + { + "key": "main-layout", + "label": "主布局", + "path": "/docs/layouts/main-layout.md" + }, + { + "key": "content-area-layout", + "label": "主内容区布局", + "path": "/docs/layouts/content-area-layout.md" + } + ] + }, + { + "key": "components", + "label": "组件文档", + "children": [ + { + "key": "components-overview", + "label": "组件概览", + "path": "/docs/components/README.md" + }, + { + "key": "page-title-bar", + "label": "PageTitleBar", + "path": "/docs/components/PageTitleBar.md" + }, + { + "key": "list-action-bar", + "label": "ListActionBar", + "path": "/docs/components/ListActionBar.md" + }, + { + "key": "tree-filter-panel", + "label": "TreeFilterPanel", + "path": "/docs/components/TreeFilterPanel.md" + }, + { + "key": "list-table", + "label": "ListTable", + "path": "/docs/components/ListTable.md" + }, + { + "key": "detail-drawer", + "label": "DetailDrawer", + "path": "/docs/components/DetailDrawer.md" + }, + { + "key": "info-panel", + "label": "InfoPanel", + "path": "/docs/components/InfoPanel.md" + }, + { + "key": "confirm-dialog", + "label": "ConfirmDialog", + "path": "/docs/components/ConfirmDialog.md" + }, + { + "key": "toast", + "label": "Toast", + "path": "/docs/components/Toast.md" + }, + { + "key": "split-layout", + "label": "SplitLayout", + "path": "/docs/components/SplitLayout.md" + }, + { + "key": "extend-info-panel", + "label": "ExtendInfoPanel", + "path": "/docs/components/ExtendInfoPanel.md" + }, + { + "key": "stat-card", + "label": "StatCard", + "path": "/docs/components/StatCard.md" + }, + { + "key": "chart-panel", + "label": "ChartPanel", + "path": "/docs/components/ChartPanel.md" + }, + { + "key": "button-extension", + "label": "ButtonExtension", + "path": "/docs/components/ButtonExtension.md" + } + ] + } +] diff --git a/forntend/src/data/headerMenuData.json b/forntend/src/data/headerMenuData.json new file mode 100644 index 0000000..f1c6e25 --- /dev/null +++ b/forntend/src/data/headerMenuData.json @@ -0,0 +1,8 @@ +[ + { + "type": "link", + "label": "支持", + "key": "support", + "icon": "CustomerServiceOutlined" + } +] diff --git a/forntend/src/data/menuData.json b/forntend/src/data/menuData.json new file mode 100644 index 0000000..cc33e5b --- /dev/null +++ b/forntend/src/data/menuData.json @@ -0,0 +1,17 @@ +[ + { + "key": "docs", + "label": "文档", + "icon": "FileTextOutlined" + }, + { + "key": "help", + "label": "帮助", + "icon": "QuestionCircleOutlined" + }, + { + "key": "support", + "label": "支持", + "icon": "CustomerServiceOutlined" + } +] diff --git a/forntend/src/index.css b/forntend/src/index.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/forntend/src/index.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/forntend/src/main.jsx b/forntend/src/main.jsx new file mode 100644 index 0000000..54b39dd --- /dev/null +++ b/forntend/src/main.jsx @@ -0,0 +1,10 @@ +import React from 'react' +import ReactDOM from 'react-dom/client' +import App from './App.jsx' +import './index.css' + +ReactDOM.createRoot(document.getElementById('root')).render( + + + , +) diff --git a/forntend/src/pages/Constructing.jsx b/forntend/src/pages/Constructing.jsx new file mode 100644 index 0000000..059834e --- /dev/null +++ b/forntend/src/pages/Constructing.jsx @@ -0,0 +1,33 @@ +import { Result, Button } from 'antd' +import { useNavigate } from 'react-router-dom' +import { ToolOutlined } from '@ant-design/icons' +import MainLayout from '@/components/MainLayout/MainLayout' + +function Constructing() { + const navigate = useNavigate() + + return ( + +
+ } + title="功能开发中" + subTitle="该功能正在紧张开发中,敬请期待..." + extra={ + + } + /> +
+
+ ) +} + +export default Constructing diff --git a/forntend/src/pages/Dashboard.jsx b/forntend/src/pages/Dashboard.jsx new file mode 100644 index 0000000..aa46176 --- /dev/null +++ b/forntend/src/pages/Dashboard.jsx @@ -0,0 +1,154 @@ +import { useState, useEffect } from 'react' +import { Card, Row, Col, Statistic, Table, Spin } from 'antd' +import { UserOutlined, ProjectOutlined, FileTextOutlined } from '@ant-design/icons' +import { getDashboardStats } from '@/api/dashboard' +import MainLayout from '@/components/MainLayout/MainLayout' +import Toast from '@/components/Toast/Toast' + +function Dashboard() { + const [loading, setLoading] = useState(true) + const [stats, setStats] = useState({ + user_count: 0, + project_count: 0, + document_count: 0, + }) + const [recentUsers, setRecentUsers] = useState([]) + const [recentProjects, setRecentProjects] = useState([]) + + useEffect(() => { + loadDashboardData() + }, []) + + const loadDashboardData = async () => { + try { + const res = await getDashboardStats() + if (res.data) { + setStats(res.data.stats) + setRecentUsers(res.data.recent_users) + setRecentProjects(res.data.recent_projects) + } + } catch (error) { + console.error('Load dashboard error:', error) + Toast.error('加载仪表盘数据失败') + } finally { + setLoading(false) + } + } + + const userColumns = [ + { + title: '用户名', + dataIndex: 'username', + key: 'username', + }, + { + title: '邮箱', + dataIndex: 'email', + key: 'email', + }, + { + title: '创建时间', + dataIndex: 'created_at', + key: 'created_at', + render: (text) => (text ? new Date(text).toLocaleString('zh-CN') : '-'), + }, + ] + + const projectColumns = [ + { + title: '项目名称', + dataIndex: 'name', + key: 'name', + }, + { + title: '描述', + dataIndex: 'description', + key: 'description', + }, + { + title: '归属用户', + dataIndex: 'owner_name', + key: 'owner_name', + }, + { + title: '创建时间', + dataIndex: 'created_at', + key: 'created_at', + render: (text) => (text ? new Date(text).toLocaleString('zh-CN') : '-'), + }, + ] + + if (loading) { + return ( + +
+ +
+
+ ) + } + + return ( + +
+

管理员仪表盘

+ + {/* 统计卡片 */} + +
+ + } + valueStyle={{ color: '#3f8600' }} + /> + + + + + } + valueStyle={{ color: '#1890ff' }} + /> + + + + + } + valueStyle={{ color: '#cf1322' }} + /> + + + + + {/* 最近用户 */} + +
+ + + {/* 最近项目 */} + +
+ + + + ) +} + +export default Dashboard diff --git a/forntend/src/pages/Desktop.jsx b/forntend/src/pages/Desktop.jsx new file mode 100644 index 0000000..65edbcc --- /dev/null +++ b/forntend/src/pages/Desktop.jsx @@ -0,0 +1,167 @@ +import { useState, useEffect } from 'react' +import { Card, Row, Col, Statistic, Table, Spin, Descriptions } from 'antd' +import { ProjectOutlined, FileTextOutlined } from '@ant-design/icons' +import { getPersonalStats } from '@/api/dashboard' +import MainLayout from '@/components/MainLayout/MainLayout' +import Toast from '@/components/Toast/Toast' + +function Desktop() { + const [loading, setLoading] = useState(true) + const [userInfo, setUserInfo] = useState({}) + const [stats, setStats] = useState({ + personal_projects_count: 0, + document_count: 0, + }) + const [recentPersonalProjects, setRecentPersonalProjects] = useState([]) + const [recentSharedProjects, setRecentSharedProjects] = useState([]) + + useEffect(() => { + loadPersonalData() + }, []) + + const loadPersonalData = async () => { + try { + const res = await getPersonalStats() + if (res.data) { + setUserInfo(res.data.user_info) + setStats(res.data.stats) + setRecentPersonalProjects(res.data.recent_personal_projects) + setRecentSharedProjects(res.data.recent_shared_projects) + } + } catch (error) { + console.error('Load personal data error:', error) + Toast.error('加载个人桌面数据失败') + } finally { + setLoading(false) + } + } + + const personalProjectColumns = [ + { + title: '项目名称', + dataIndex: 'name', + key: 'name', + }, + { + title: '描述', + dataIndex: 'description', + key: 'description', + }, + { + title: '创建时间', + dataIndex: 'created_at', + key: 'created_at', + render: (text) => (text ? new Date(text).toLocaleString('zh-CN') : '-'), + }, + ] + + const sharedProjectColumns = [ + { + title: '项目名称', + dataIndex: 'name', + key: 'name', + }, + { + title: '描述', + dataIndex: 'description', + key: 'description', + }, + { + title: '角色', + dataIndex: 'role', + key: 'role', + render: (role) => { + const roleMap = { + admin: '管理员', + editor: '编辑者', + viewer: '查看者', + } + return roleMap[role] || role + }, + }, + { + title: '加入时间', + dataIndex: 'joined_at', + key: 'joined_at', + render: (text) => (text ? new Date(text).toLocaleString('zh-CN') : '-'), + }, + ] + + if (loading) { + return ( + +
+ +
+
+ ) + } + + return ( + +
+

个人桌面

+ + {/* 个人信息 */} + + + {userInfo.username} + {userInfo.email} + {userInfo.id} + + {userInfo.created_at ? new Date(userInfo.created_at).toLocaleString('zh-CN') : '-'} + + + + + {/* 统计卡片 */} + +
+ + } + valueStyle={{ color: '#1890ff' }} + /> + + + + + } + valueStyle={{ color: '#cf1322' }} + /> + + + + + {/* 最近的个人项目 */} + +
+ + + {/* 最近的分享项目 */} + +
+ + + + ) +} + +export default Desktop diff --git a/forntend/src/pages/Document/DocumentEditor.css b/forntend/src/pages/Document/DocumentEditor.css new file mode 100644 index 0000000..39c7ffc --- /dev/null +++ b/forntend/src/pages/Document/DocumentEditor.css @@ -0,0 +1,97 @@ +.document-editor-container { + height: calc(100vh - 64px); +} + +.document-sider { + border-right: 1px solid #f0f0f0; + overflow-y: auto; +} + +.sider-header { + padding: 16px; + border-bottom: 1px solid #f0f0f0; + display: flex; + flex-direction: column; + gap: 12px; +} + +.sider-header h3 { + margin: 0; + font-size: 16px; + font-weight: 600; +} + +.sider-actions { + display: flex; + gap: 4px; + flex-wrap: wrap; +} + +.sider-actions .ant-btn { + color: rgba(0, 0, 0, 0.65); + background: #f5f5f5; + border: 1px solid #e8e8e8; +} + +.sider-actions .ant-btn:hover { + color: #1890ff; + background: #e6f7ff; + border-color: #91d5ff; +} + +.file-tree { + padding: 8px; +} + +.document-content { + background: white; + display: flex; + flex-direction: column; +} + +.content-header { + padding: 16px 24px; + border-bottom: 1px solid #f0f0f0; + display: flex; + justify-content: space-between; + align-items: center; + background: white; + flex-shrink: 0; +} + +.content-header h3 { + margin: 0; + font-size: 16px; + font-weight: 600; +} + +.editor-container { + flex: 1; + padding: 16px 24px; + overflow: auto; + display: flex; + flex-direction: column; +} + +.editor-container > div { + flex: 1; + display: flex; + flex-direction: column; +} + +.empty-editor { + height: 100%; + display: flex; + align-items: center; + justify-content: center; + color: #999; +} + +/* Markdown 编辑器样式覆盖 */ +.w-md-editor { + flex: 1 !important; +} + +.w-md-editor-content { + height: 100% !important; +} diff --git a/forntend/src/pages/Document/DocumentEditor.jsx b/forntend/src/pages/Document/DocumentEditor.jsx new file mode 100644 index 0000000..c467372 --- /dev/null +++ b/forntend/src/pages/Document/DocumentEditor.jsx @@ -0,0 +1,791 @@ +import { useState, useEffect, useRef } from 'react' +import { useParams, useNavigate } from 'react-router-dom' +import { Layout, Tree, Button, message, Modal, Input, Space, Tooltip, Dropdown, Upload, Select } from 'antd' +import { + FileOutlined, + FolderOutlined, + PlusOutlined, + DeleteOutlined, + EditOutlined, + SaveOutlined, + EyeOutlined, + FileAddOutlined, + FolderAddOutlined, + UploadOutlined, + DownloadOutlined, + SwapOutlined, + FileImageOutlined, +} from '@ant-design/icons' +import MDEditor, { commands } from '@uiw/react-md-editor' +import { + getProjectTree, + getFileContent, + saveFile, + operateFile, + uploadFile, + importDocuments, + exportDirectory, +} from '@/api/file' +import MainLayout from '@/components/MainLayout/MainLayout' +import './DocumentEditor.css' + +const { Sider, Content } = Layout + +function DocumentEditor() { + const { projectId } = useParams() + const navigate = useNavigate() + const fileInputRef = useRef(null) + const imageInputRef = useRef(null) + const [treeData, setTreeData] = useState([]) + const [selectedFile, setSelectedFile] = useState(null) + const [selectedNode, setSelectedNode] = useState(null) // 当前选中的节点(可能是文件或目录) + const [fileContent, setFileContent] = useState('') + const [loading, setLoading] = useState(false) + const [saving, setSaving] = useState(false) + const [modalVisible, setModalVisible] = useState(false) + const [moveModalVisible, setMoveModalVisible] = useState(false) + const [operationType, setOperationType] = useState(null) + const [newName, setNewName] = useState('') + const [rightClickNode, setRightClickNode] = useState(null) + const [moveTargetPath, setMoveTargetPath] = useState('') + const [dirOptions, setDirOptions] = useState([]) + const [editorHeight, setEditorHeight] = useState(600) // 设置初始高度为600px + + // 在组件挂载后立即计算正确的高度 + useEffect(() => { + const calculateHeight = () => { + const windowHeight = window.innerHeight + const newHeight = Math.max(windowHeight - 180, 400) // 最小高度400px + setEditorHeight(newHeight) + } + + // 立即执行一次 + calculateHeight() + + // 监听窗口大小变化 + window.addEventListener('resize', calculateHeight) + return () => window.removeEventListener('resize', calculateHeight) + }, []) + + useEffect(() => { + fetchTree() + }, [projectId]) + + const fetchTree = async () => { + try { + const res = await getProjectTree(projectId) + setTreeData(res.data || []) + } catch (error) { + console.error('Fetch tree error:', error) + } + } + + const handleSelectFile = async (selectedKeys, info) => { + // 记录选中的节点(无论是文件还是目录) + setSelectedNode(info.node) + + if (info.node.isLeaf) { + const filePath = selectedKeys[0] + setLoading(true) + try { + const res = await getFileContent(projectId, filePath) + setSelectedFile(filePath) + setFileContent(res.data.content) + } catch (error) { + console.error('Load file error:', error) + } finally { + setLoading(false) + } + } + } + + const handleSaveFile = async () => { + if (!selectedFile) { + message.warning('请先选择文件') + return + } + + setSaving(true) + try { + await saveFile(projectId, { + path: selectedFile, + content: fileContent, + }) + message.success('保存成功') + } catch (error) { + console.error('Save file error:', error) + } finally { + setSaving(false) + } + } + + const handleCreateFile = () => { + setOperationType('create_file') + setModalVisible(true) + } + + const handleCreateDir = () => { + setOperationType('create_dir') + setModalVisible(true) + } + + const handleDelete = (path = selectedFile) => { + if (!path) { + message.warning('请先选择文件') + return + } + + // 保护README.md + const fileName = path.split('/').pop() + if (fileName === 'README.md' && path.indexOf('/') === -1) { + message.error('根目录的README.md不允许删除') + return + } + + Modal.confirm({ + title: '确认删除', + content: `确定要删除 ${path} 吗?`, + onOk: async () => { + try { + await operateFile(projectId, { + action: 'delete', + path: path, + }) + message.success('删除成功') + if (selectedFile === path) { + setSelectedFile(null) + setFileContent('') + } + fetchTree() + } catch (error) { + console.error('Delete error:', error) + message.error('删除失败') + } + }, + }) + } + + const handleRename = (path) => { + const fileName = path.split('/').pop() + + // 保护README.md + if (fileName === 'README.md' && path.indexOf('/') === -1) { + message.error('根目录的README.md不允许重命名') + return + } + + setRightClickNode(path) + setNewName(fileName) + setOperationType('rename') + setModalVisible(true) + } + + const handleOperation = async () => { + if (!newName.trim()) { + message.warning('请输入名称') + return + } + + try { + let path, params + + if (operationType === 'rename') { + // 重命名操作 + const oldPath = rightClickNode + const pathParts = oldPath.split('/') + pathParts[pathParts.length - 1] = newName + const newPath = pathParts.join('/') + + params = { + action: 'rename', + path: oldPath, + new_path: newPath, + } + } else { + // 创建操作 - 如果选中了目录节点,在该目录下创建 + if (selectedNode && !selectedNode.isLeaf) { + // 在选中的目录下创建 + path = `${selectedNode.key}/${newName}` + } else { + // 在根目录创建 + path = newName + } + + // 检查文件是否已存在 + const fileExists = checkFileExists(path) + if (fileExists) { + Modal.confirm({ + title: '文件已存在', + content: `文件 "${newName}" 已存在,是否覆盖?`, + okText: '覆盖', + cancelText: '取消', + onOk: async () => { + await executeOperation(operationType, path) + }, + }) + return + } + + params = { + action: operationType, + path: path, + content: operationType === 'create_file' ? '# 新文件\n' : undefined, + } + } + + await operateFile(projectId, params) + message.success('操作成功') + setModalVisible(false) + setNewName('') + setRightClickNode(null) + fetchTree() + + // 如果重命名的是当前打开的文件,清空编辑器 + if (operationType === 'rename' && selectedFile === rightClickNode) { + setSelectedFile(null) + setFileContent('') + } + } catch (error) { + console.error('Operation error:', error) + message.error('操作失败') + } + } + + // 检查文件是否存在 + const checkFileExists = (path) => { + const checkInTree = (nodes, targetPath) => { + for (const node of nodes) { + if (node.key === targetPath) { + return true + } + if (node.children) { + if (checkInTree(node.children, targetPath)) { + return true + } + } + } + return false + } + return checkInTree(treeData, path) + } + + // 执行创建操作 + const executeOperation = async (operation, path) => { + const params = { + action: operation, + path: path, + content: operation === 'create_file' ? '# 新文件\n' : undefined, + } + await operateFile(projectId, params) + message.success('操作成功') + setModalVisible(false) + setNewName('') + setRightClickNode(null) + fetchTree() + } + + // 导入文档 + const handleImportDocuments = async (info) => { + const { fileList } = info + const mdFiles = fileList.filter((f) => f.name.endsWith('.md')) + + if (mdFiles.length === 0) { + message.warning('请选择.md格式的文档') + return + } + + // 确定目标路径(如果选中了目录,上传到该目录) + const targetPath = selectedNode && !selectedNode.isLeaf ? selectedNode.key : '' + + // 检查是否有重名文件 + const existingFiles = [] + mdFiles.forEach((f) => { + const filePath = targetPath ? `${targetPath}/${f.name}` : f.name + if (checkFileExists(filePath)) { + existingFiles.push(f.name) + } + }) + + // 如果有重名文件,询问是否覆盖 + if (existingFiles.length > 0) { + Modal.confirm({ + title: '文件已存在', + content: ( +
+

以下文件已存在,是否覆盖?

+
    + {existingFiles.map((name) => ( +
  • {name}
  • + ))} +
+
+ ), + okText: '覆盖', + cancelText: '取消', + onOk: async () => { + await executeImport(mdFiles, targetPath) + }, + }) + return + } + + // 没有重名文件,直接导入 + await executeImport(mdFiles, targetPath) + } + + // 执行导入操作 + const executeImport = async (mdFiles, targetPath) => { + try { + const files = mdFiles.map((f) => f.originFileObj) + await importDocuments(projectId, files, targetPath) + message.success(`成功导入 ${files.length} 个文档`) + fetchTree() + // 清除文件选择 + if (fileInputRef.current) { + fileInputRef.current.value = '' + } + } catch (error) { + console.error('Import error:', error) + message.error('导入失败') + } + } + + // 导出目录 + const handleExportDirectory = async () => { + // 如果选中了目录,导出该目录;否则导出整个项目 + const directoryPath = selectedNode && !selectedNode.isLeaf ? selectedNode.key : '' + + try { + const response = await exportDirectory(projectId, directoryPath) + + // 从响应头中提取文件名 + const contentDisposition = response.headers['content-disposition'] + let filename = `${directoryPath || 'root'}.zip` + if (contentDisposition) { + const matches = /filename=(.+)/.exec(contentDisposition) + if (matches && matches[1]) { + filename = matches[1] + } + } + + // 创建blob URL并触发下载 + const url = window.URL.createObjectURL(response.data) + const link = document.createElement('a') + link.href = url + link.download = filename + link.style.display = 'none' + document.body.appendChild(link) + link.click() + document.body.removeChild(link) + window.URL.revokeObjectURL(url) + + message.success('导出成功') + } catch (error) { + console.error('Export error:', error) + message.error('导出失败') + } + } + + // 移动文件/目录 + const handleMove = (path) => { + setRightClickNode(path) + // 生成目录选项(排除自己和其子目录) + const options = buildDirOptions(treeData, path) + setDirOptions(options) + setMoveTargetPath('') + setMoveModalVisible(true) + } + + // 构建目录选项 + const buildDirOptions = (nodes, excludePath, prefix = '') => { + let options = [{ label: '根目录', value: '' }] + + const traverse = (items, currentPrefix) => { + items.forEach((node) => { + if (!node.isLeaf && node.key !== excludePath && !node.key.startsWith(excludePath + '/')) { + const path = node.key + options.push({ + label: `${currentPrefix}${node.title}`, + value: path, + }) + if (node.children) { + traverse(node.children, `${currentPrefix}${node.title}/`) + } + } + }) + } + + traverse(nodes, prefix) + return options + } + + // 确认移动 + const handleConfirmMove = async () => { + if (!rightClickNode) return + + const fileName = rightClickNode.split('/').pop() + const newPath = moveTargetPath ? `${moveTargetPath}/${fileName}` : fileName + + try { + await operateFile(projectId, { + action: 'move', + path: rightClickNode, + new_path: newPath, + }) + message.success('移动成功') + setMoveModalVisible(false) + setRightClickNode(null) + fetchTree() + + // 如果移动的是当前打开的文件,清空编辑器 + if (selectedFile === rightClickNode) { + setSelectedFile(null) + setFileContent('') + } + } catch (error) { + console.error('Move error:', error) + message.error('移动失败') + } + } + + const handleImageUpload = async (file) => { + try { + // 使用 'images' 作为子文件夹,后端会自动保存到 _assets/images/ 目录 + const res = await uploadFile(projectId, file, 'images') + // 使用相对路径,便于统一部署 + return res.data.url + } catch (error) { + console.error('Upload error:', error) + message.error('图片上传失败') + return null + } + } + + // 处理粘贴图片 + const handlePaste = async (event) => { + const items = event.clipboardData?.items + if (!items) return + + for (let i = 0; i < items.length; i++) { + const item = items[i] + if (item.type.indexOf('image') !== -1) { + event.preventDefault() + const file = item.getAsFile() + if (file) { + message.loading('上传图片中...', 0) + const url = await handleImageUpload(file) + message.destroy() + + if (url) { + // 插入markdown图片语法 + const imageMarkdown = `![image](${url})` + setFileContent(prev => prev + '\n' + imageMarkdown) + message.success('图片上传成功') + } + } + break + } + } + } + + // 处理拖拽上传图片 + const handleDrop = async (event) => { + const files = event.dataTransfer?.files + if (!files || files.length === 0) return + + for (let i = 0; i < files.length; i++) { + const file = files[i] + if (file.type.indexOf('image') !== -1) { + event.preventDefault() + message.loading('上传图片中...', 0) + const url = await handleImageUpload(file) + message.destroy() + + if (url) { + const imageMarkdown = `![${file.name}](${url})` + setFileContent(prev => prev + '\n' + imageMarkdown) + message.success('图片上传成功') + } + } + } + } + + // 点击选择本地图片 + const handleSelectLocalImage = () => { + imageInputRef.current?.click() + } + + // 处理本地图片文件选择 + const handleLocalImageChange = async (event) => { + const file = event.target.files?.[0] + if (!file) return + + if (!file.type.startsWith('image/')) { + message.warning('请选择图片文件') + return + } + + message.loading('上传图片中...', 0) + const url = await handleImageUpload(file) + message.destroy() + + if (url) { + const imageMarkdown = `![${file.name}](${url})` + setFileContent(prev => prev + '\n' + imageMarkdown) + message.success('图片上传成功') + } + + // 清空input,允许重复选择同一文件 + event.target.value = '' + } + + // 自定义工具栏按钮:添加本地图片 + const addLocalImageCommand = { + name: 'addLocalImage', + keyCommand: 'addLocalImage', + buttonProps: { 'aria-label': 'Add local image' }, + icon: ( + + + + ), + execute: () => { + handleSelectLocalImage() + }, + } + + const renderTreeIcon = ({ isLeaf }) => { + return isLeaf ? : + } + + // 右键菜单项 + const getContextMenuItems = (node) => { + const items = [ + { + key: 'rename', + label: '重命名', + icon: , + onClick: () => handleRename(node.key), + }, + { + key: 'move', + label: '移动', + icon: , + onClick: () => handleMove(node.key), + }, + { + key: 'delete', + label: '删除', + icon: , + danger: true, + onClick: () => handleDelete(node.key), + }, + ] + + return items + } + + // 渲染树节点标题 + const renderTreeTitle = (node) => { + return ( + + {node.title} + + ) + } + + return ( + + + +
+

文档目录

+
+ +
+
+ +
+ + +
+

{selectedFile || '请选择文件'}

+ + + + +
+ +
+ {selectedFile ? ( +
e.preventDefault()}> + + {/* 隐藏的图片选择input */} + +
+ ) : ( +
+

请从左侧选择要编辑的文件

+
+ )} +
+
+
+ + { + setModalVisible(false) + setNewName('') + setRightClickNode(null) + }} + > + setNewName(e.target.value)} + onPressEnter={handleOperation} + /> + + + { + setMoveModalVisible(false) + setRightClickNode(null) + }} + > +
+

选择目标目录:

+ + } + /> +
+ +
+ + 访问密码保护 + + +
+ + {hasPassword && ( +
+ setPassword(e.target.value)} + /> + +
+ )} + + )} +
+ +
+ ) +} + +export default DocumentPage diff --git a/forntend/src/pages/Login/Login.css b/forntend/src/pages/Login/Login.css new file mode 100644 index 0000000..c1ce710 --- /dev/null +++ b/forntend/src/pages/Login/Login.css @@ -0,0 +1,39 @@ +.login-container { + min-height: 100vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); +} + +.login-card { + width: 400px; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); + border-radius: 8px; +} + +.login-header { + text-align: center; + margin-bottom: 24px; +} + +.login-header h1 { + font-size: 32px; + font-weight: bold; + color: #667eea; + margin: 0; +} + +.login-header p { + font-size: 14px; + color: #666; + margin-top: 8px; +} + +.login-footer { + margin-top: 20px; + text-align: center; + color: white; + font-size: 12px; +} diff --git a/forntend/src/pages/Login/Login.jsx b/forntend/src/pages/Login/Login.jsx new file mode 100644 index 0000000..fbb353c --- /dev/null +++ b/forntend/src/pages/Login/Login.jsx @@ -0,0 +1,213 @@ +import { useState } from 'react' +import { useNavigate } from 'react-router-dom' +import { Form, Input, Button, Card, Tabs } from 'antd' +import { UserOutlined, LockOutlined, MailOutlined } from '@ant-design/icons' +import { login, register } from '@/api/auth' +import { getUserMenus } from '@/api/menu' +import useUserStore from '@/stores/userStore' +import Toast from '@/components/Toast/Toast' +import './Login.css' + +function Login() { + const [loading, setLoading] = useState(false) + const [activeTab, setActiveTab] = useState('login') + const navigate = useNavigate() + const { setUser, setToken } = useUserStore() + + const handleLogin = async (values) => { + setLoading(true) + try { + const res = await login(values) + Toast.success('登录成功') + + // 保存 token 和用户信息 + localStorage.setItem('access_token', res.data.access_token) + localStorage.setItem('user_info', JSON.stringify(res.data.user)) + setToken(res.data.access_token) + setUser(res.data.user) + + // 获取用户菜单并跳转到第一个菜单 + try { + const menuRes = await getUserMenus() + if (menuRes.data && menuRes.data.length > 0) { + const firstMenu = menuRes.data[0] + // 如果第一个菜单有子菜单,跳转到第一个子菜单 + if (firstMenu.children && firstMenu.children.length > 0) { + navigate(firstMenu.children[0].path) + } else if (firstMenu.path) { + navigate(firstMenu.path) + } else { + // 如果都没有路径,默认跳转到项目列表 + navigate('/projects') + } + } else { + // 如果没有菜单,默认跳转到项目列表 + navigate('/projects') + } + } catch (menuError) { + console.error('Load menus error:', menuError) + // 如果加载菜单失败,默认跳转到项目列表 + navigate('/projects') + } + } catch (error) { + console.error('Login error:', error) + const errorMsg = error.response?.data?.detail || error.message || '登录失败,请检查用户名和密码' + Toast.error('登录失败', errorMsg) + } finally { + setLoading(false) + } + } + + const handleRegister = async (values) => { + setLoading(true) + try { + await register(values) + Toast.success('注册成功', '请使用您的账号登录') + setActiveTab('login') + } catch (error) { + console.error('Register error:', error) + const errorMsg = error.response?.data?.detail || error.message || '注册失败' + Toast.error('注册失败', errorMsg) + } finally { + setLoading(false) + } + } + + return ( +
+ +
+

NEX Docus

+

团队协作文档管理平台

+
+ + + +
+ + } + placeholder="用户名" + /> + + + + } + placeholder="密码" + /> + + + + + + +
+ + +
+ + } + placeholder="用户名" + /> + + + + } + placeholder="邮箱(选填)" + /> + + + + } + placeholder="密码" + /> + + + ({ + validator(_, value) { + if (!value || getFieldValue('password') === value) { + return Promise.resolve() + } + return Promise.reject(new Error('两次输入的密码不一致')) + }, + }), + ]} + > + } + placeholder="确认密码" + /> + + + + + + +
+
+
+ +
+

默认管理员账号: admin / admin123

+
+
+ ) +} + +export default Login diff --git a/forntend/src/pages/Preview/PreviewPage.css b/forntend/src/pages/Preview/PreviewPage.css new file mode 100644 index 0000000..2b9b2a4 --- /dev/null +++ b/forntend/src/pages/Preview/PreviewPage.css @@ -0,0 +1,331 @@ +.preview-page { + height: 100vh; + overflow: hidden; + background: #fff; +} + +.preview-layout { + height: 100%; + background: #fff; +} + +.preview-sider { + border-right: 1px solid #f0f0f0; + height: 100%; + overflow: hidden; + display: flex; + flex-direction: column; +} + +.preview-sider-header { + padding: 16px; + border-bottom: 1px solid #f0f0f0; +} + +.preview-sider-header h2 { + margin: 0 0 8px 0; + font-size: 18px; + font-weight: 600; + color: rgba(0, 0, 0, 0.88); +} + +.preview-project-desc { + margin: 0; + font-size: 13px; + color: rgba(0, 0, 0, 0.45); + line-height: 1.5; +} + +.preview-menu { + flex: 1; + overflow-y: auto; + border-right: none; +} + +.preview-content-layout { + position: relative; + height: 100%; + background: #fff; +} + +.preview-toc-sider { + border-left: 1px solid #f0f0f0; + background: #fafafa !important; + height: 100%; + overflow: hidden; + display: flex; + flex-direction: column; +} + +.toc-header { + padding: 16px; + border-bottom: 1px solid #f0f0f0; + display: flex; + justify-content: space-between; + align-items: center; + background: #fff; +} + +.toc-header h3 { + margin: 0; + font-size: 14px; + font-weight: 600; + color: rgba(0, 0, 0, 0.85); +} + +.toc-content { + flex: 1; + overflow-y: auto; + overflow-x: auto; + padding: 16px; +} + +.toc-content .ant-anchor { + padding-left: 0; +} + +.toc-content .ant-anchor-link { + padding: 6px 0; +} + +.toc-content .ant-anchor-link-title { + font-size: 13px; + color: rgba(0, 0, 0, 0.75); + line-height: 1.5; + white-space: nowrap; +} + +.toc-content .ant-anchor-link-active > .ant-anchor-link-title { + color: #1890ff; + font-weight: 500; +} + +.toc-empty { + color: #999; + text-align: center; + margin-top: 40px; + font-size: 13px; +} + +.toc-toggle-btn { + position: fixed; + right: 24px; + top: 50%; + transform: translateY(-50%); + z-index: 100; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); +} + +.preview-content { + height: 100%; + overflow-y: auto; + background: #fff; +} + +.preview-content-wrapper { + max-width: 900px; + margin: 0 auto; + padding: 24px; +} + +.preview-loading { + display: flex; + justify-content: center; + align-items: center; + min-height: 400px; +} + +.markdown-body { + font-size: 16px; + line-height: 1.6; + color: #333; +} + +.markdown-body h1 { + font-size: 32px; + font-weight: 600; + margin-top: 24px; + margin-bottom: 16px; + padding-bottom: 8px; + border-bottom: 1px solid #eaecef; +} + +.markdown-body h2 { + font-size: 24px; + font-weight: 600; + margin-top: 24px; + margin-bottom: 16px; + padding-bottom: 8px; + border-bottom: 1px solid #eaecef; +} + +.markdown-body h3 { + font-size: 20px; + font-weight: 600; + margin-top: 20px; + margin-bottom: 12px; +} + +.markdown-body p { + margin-bottom: 16px; +} + +.markdown-body code { + background-color: #f6f8fa; + padding: 2px 6px; + border-radius: 3px; + font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; + font-size: 14px; +} + +.markdown-body pre { + background-color: #f6f8fa; + padding: 16px; + border-radius: 6px; + overflow-x: auto; + margin-bottom: 16px; +} + +.markdown-body pre code { + background-color: transparent; + padding: 0; +} + +.markdown-body blockquote { + padding: 0 16px; + border-left: 4px solid #dfe2e5; + color: #6a737d; + margin-bottom: 16px; +} + +.markdown-body table { + border-collapse: collapse; + width: 100%; + margin-bottom: 16px; + display: block; + overflow-x: auto; +} + +.markdown-body th, +.markdown-body td { + border: 1px solid #dfe2e5; + padding: 8px 13px; +} + +.markdown-body th { + background-color: #f6f8fa; + font-weight: 600; +} + +.markdown-body img { + max-width: 100%; + height: auto; +} + +.markdown-body a { + color: #1677ff; + text-decoration: none; +} + +.markdown-body a:hover { + text-decoration: underline; +} + +.markdown-body ul, +.markdown-body ol { + margin-bottom: 16px; + padding-left: 2em; +} + +.markdown-body li { + margin-bottom: 4px; +} + +/* 移动端菜单按钮 */ +.mobile-menu-btn { + position: fixed; + top: 16px; + left: 16px; + z-index: 1000; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); +} + +/* 移动端响应式样式 */ +@media (max-width: 768px) { + .preview-content-wrapper { + padding: 16px; + padding-top: 60px; /* 为移动端菜单按钮留出空间 */ + } + + .markdown-body { + font-size: 15px; + } + + .markdown-body h1 { + font-size: 26px; + } + + .markdown-body h2 { + font-size: 22px; + } + + .markdown-body h3 { + font-size: 18px; + } + + .markdown-body pre { + padding: 12px; + } + + .markdown-body table { + font-size: 14px; + } + + .markdown-body th, + .markdown-body td { + padding: 6px 10px; + } +} + +/* 平板响应式样式 */ +@media (min-width: 768px) and (max-width: 1024px) { + .preview-sider { + width: 240px !important; + } + + .preview-toc-sider { + width: 200px !important; + } + + .preview-content-wrapper { + max-width: 100%; + padding: 20px; + } +} + +/* 小屏幕优化 */ +@media (max-width: 480px) { + .preview-content-wrapper { + padding: 12px; + } + + .markdown-body { + font-size: 14px; + } + + .markdown-body h1 { + font-size: 22px; + } + + .markdown-body h2 { + font-size: 20px; + } + + .markdown-body h3 { + font-size: 16px; + } + + .markdown-body code { + font-size: 13px; + } +} diff --git a/forntend/src/pages/Preview/PreviewPage.jsx b/forntend/src/pages/Preview/PreviewPage.jsx new file mode 100644 index 0000000..6cd0927 --- /dev/null +++ b/forntend/src/pages/Preview/PreviewPage.jsx @@ -0,0 +1,381 @@ +import { useState, useEffect, useRef } from 'react' +import { useParams } from 'react-router-dom' +import { Layout, Menu, Spin, FloatButton, Button, Modal, Input, message, Drawer, Anchor } from 'antd' +import { VerticalAlignTopOutlined, MenuOutlined, MenuFoldOutlined, MenuUnfoldOutlined, FileTextOutlined, FolderOutlined, LockOutlined } from '@ant-design/icons' +import ReactMarkdown from 'react-markdown' +import remarkGfm from 'remark-gfm' +import rehypeRaw from 'rehype-raw' +import rehypeSlug from 'rehype-slug' +import rehypeHighlight from 'rehype-highlight' +import 'highlight.js/styles/github.css' +import { getPreviewInfo, getPreviewTree, getPreviewFile, verifyAccessPassword } from '@/api/share' +import './PreviewPage.css' + +const { Sider, Content } = Layout + +function PreviewPage() { + const { projectId } = useParams() + const [projectInfo, setProjectInfo] = useState(null) + const [fileTree, setFileTree] = useState([]) + const [selectedFile, setSelectedFile] = useState('') + const [markdownContent, setMarkdownContent] = useState('') + const [loading, setLoading] = useState(false) + const [openKeys, setOpenKeys] = useState([]) + const [tocCollapsed, setTocCollapsed] = useState(false) + const [tocItems, setTocItems] = useState([]) + const [passwordModalVisible, setPasswordModalVisible] = useState(false) + const [password, setPassword] = useState('') + const [accessPassword, setAccessPassword] = useState(null) // 已验证的密码 + const [siderCollapsed, setSiderCollapsed] = useState(false) + const [mobileDrawerVisible, setMobileDrawerVisible] = useState(false) + const [isMobile, setIsMobile] = useState(false) + const contentRef = useRef(null) + + // 检测是否为移动设备 + useEffect(() => { + const checkMobile = () => { + setIsMobile(window.innerWidth < 768) + } + checkMobile() + window.addEventListener('resize', checkMobile) + return () => window.removeEventListener('resize', checkMobile) + }, []) + + useEffect(() => { + loadProjectInfo() + }, [projectId]) + + // 加载项目基本信息 + const loadProjectInfo = async () => { + try { + const res = await getPreviewInfo(projectId) + const info = res.data + setProjectInfo(info) + + if (info.has_password) { + // 需要密码验证 + setPasswordModalVisible(true) + } else { + // 无需密码,直接加载文档树 + loadFileTree() + } + } catch (error) { + console.error('Load project info error:', error) + message.error('项目不存在或已被删除') + } + } + + // 验证密码 + const handleVerifyPassword = async () => { + if (!password.trim()) { + message.warning('请输入访问密码') + return + } + + try { + await verifyAccessPassword(projectId, password) + setAccessPassword(password) + setPasswordModalVisible(false) + loadFileTree(password) + message.success('验证成功') + } catch (error) { + message.error('访问密码错误') + } + } + + // 加载文件树 + const loadFileTree = async (pwd = null) => { + try { + const res = await getPreviewTree(projectId, pwd || accessPassword) + const tree = res.data || [] + setFileTree(tree) + + // 默认打开 README.md + const readmeNode = findReadme(tree) + if (readmeNode) { + setSelectedFile(readmeNode.key) + loadMarkdown(readmeNode.key, pwd || accessPassword) + } + } catch (error) { + console.error('Load file tree error:', error) + if (error.response?.status === 403) { + message.error('访问密码错误或已过期') + setPasswordModalVisible(true) + } + } + } + + // 查找根目录的 README.md + const findReadme = (nodes) => { + for (const node of nodes) { + if (node.title === 'README.md' && node.isLeaf) { + return node + } + } + return null + } + + // 转换文件树为菜单项 + const convertTreeToMenuItems = (nodes) => { + return nodes.map((node) => { + if (!node.isLeaf) { + return { + key: node.key, + label: node.title, + icon: , + children: node.children ? convertTreeToMenuItems(node.children) : [], + } + } else if (node.title && node.title.endsWith('.md')) { + return { + key: node.key, + label: node.title.replace('.md', ''), + icon: , + } + } + return null + }).filter(Boolean) + } + + // 加载 markdown 文件 + const loadMarkdown = async (filePath, pwd = null) => { + setLoading(true) + setTocItems([]) + try { + const res = await getPreviewFile(projectId, filePath, pwd || accessPassword) + setMarkdownContent(res.data?.content || '') + + // 移动端自动关闭侧边栏 + if (isMobile) { + setMobileDrawerVisible(false) + } + + // 滚动到顶部 + if (contentRef.current) { + contentRef.current.scrollTo({ top: 0, behavior: 'smooth' }) + } + } catch (error) { + console.error('Load markdown error:', error) + if (error.response?.status === 403) { + message.error('访问密码错误或已过期') + setPasswordModalVisible(true) + } else { + setMarkdownContent('# 文档加载失败\n\n无法加载该文档,请稍后重试。') + } + } finally { + setLoading(false) + } + } + + // 提取 markdown 标题生成目录 + useEffect(() => { + if (markdownContent) { + const headings = [] + const lines = markdownContent.split('\n') + + lines.forEach((line) => { + const match = line.match(/^(#{1,6})\s+(.+)$/) + if (match) { + const level = match[1].length + const title = match[2] + const key = title.toLowerCase().replace(/[^a-z0-9\u4e00-\u9fa5]+/g, '-') + + headings.push({ + key: `#${key}`, + href: `#${key}`, + title, + level, + }) + } + }) + + setTocItems(headings) + } + }, [markdownContent]) + + // 处理菜单点击 + const handleMenuClick = ({ key }) => { + setSelectedFile(key) + loadMarkdown(key) + } + + const menuItems = convertTreeToMenuItems(fileTree) + + // 侧边栏内容 + const SiderContent = () => ( + <> +
+

{projectInfo?.name || '项目预览'}

+ {projectInfo?.description && ( +

{projectInfo.description}

+ )} +
+ + + ) + + return ( +
+ + {/* 移动端使用 Drawer,桌面端使用 Sider */} + {isMobile ? ( + <> + + setMobileDrawerVisible(false)} + open={mobileDrawerVisible} + width="80%" + > + + + + ) : ( + + + + )} + + {/* 右侧内容区 */} + + +
+ {loading ? ( +
+ +
+ ) : ( +
+ + {markdownContent} + +
+ )} +
+ + {/* 返回顶部按钮 */} + } + type="primary" + style={{ right: tocCollapsed || isMobile ? 24 : 280 }} + onClick={() => { + if (contentRef.current) { + contentRef.current.scrollTo({ top: 0, behavior: 'smooth' }) + } + }} + /> +
+ + {/* 右侧TOC面板(仅桌面端显示) */} + {!isMobile && !tocCollapsed && ( + +
+

文档索引

+
+
+ {tocItems.length > 0 ? ( + contentRef.current} + items={tocItems.map((item) => ({ + key: item.key, + href: item.href, + title: ( +
+ + {item.title} +
+ ), + }))} + /> + ) : ( +
当前文档无标题
+ )} +
+
+ )} +
+ + {/* TOC展开按钮(仅桌面端) */} + {!isMobile && tocCollapsed && ( + + )} + + + {/* 密码验证模态框 */} + + + 访问验证 +
+ } + open={passwordModalVisible} + onOk={handleVerifyPassword} + onCancel={() => setPasswordModalVisible(false)} + okText="验证" + cancelText="取消" + maskClosable={false} + > +
+

该项目需要访问密码,请输入密码后继续浏览。

+ setPassword(e.target.value)} + onPressEnter={handleVerifyPassword} + prefix={} + /> +
+ + + ) +} + +export default PreviewPage diff --git a/forntend/src/pages/Profile/ProfilePage.css b/forntend/src/pages/Profile/ProfilePage.css new file mode 100644 index 0000000..bf37aa1 --- /dev/null +++ b/forntend/src/pages/Profile/ProfilePage.css @@ -0,0 +1,101 @@ +.profile-page { + padding: 24px; + max-width: 1200px; + margin: 0 auto; +} + +.profile-card { + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); +} + +.profile-title { + margin: 0 0 24px 0; + font-size: 24px; + font-weight: 600; + color: rgba(0, 0, 0, 0.88); +} + +.profile-tab-content, +.password-tab-content { + padding: 24px 0; +} + +/* 头像部分 */ +.avatar-section { + display: flex; + flex-direction: column; + align-items: center; + margin-bottom: 40px; + padding: 24px; + background: #fafafa; + border-radius: 8px; +} + +.avatar-tip { + margin-top: 8px; + font-size: 12px; + color: rgba(0, 0, 0, 0.45); +} + +/* 表单样式 */ +.profile-form, +.password-form { + max-width: 500px; +} + +.profile-form .ant-form-item, +.password-form .ant-form-item { + margin-bottom: 20px; +} + +/* 密码安全提示 */ +.password-tips { + margin-top: 32px; + padding: 16px; + background: #f0f5ff; + border-left: 3px solid #1890ff; + border-radius: 4px; +} + +.password-tips h4 { + margin: 0 0 12px 0; + font-size: 14px; + font-weight: 600; + color: rgba(0, 0, 0, 0.85); +} + +.password-tips ul { + margin: 0; + padding-left: 20px; +} + +.password-tips li { + margin-bottom: 8px; + font-size: 13px; + color: rgba(0, 0, 0, 0.65); + line-height: 1.6; +} + +.password-tips li:last-child { + margin-bottom: 0; +} + +/* 响应式 */ +@media (max-width: 768px) { + .profile-page { + padding: 16px; + } + + .profile-title { + font-size: 20px; + } + + .profile-form, + .password-form { + max-width: 100%; + } + + .avatar-section { + padding: 16px; + } +} diff --git a/forntend/src/pages/Profile/ProfilePage.jsx b/forntend/src/pages/Profile/ProfilePage.jsx new file mode 100644 index 0000000..74aeb20 --- /dev/null +++ b/forntend/src/pages/Profile/ProfilePage.jsx @@ -0,0 +1,242 @@ +import { useState, useEffect } from 'react' +import { Card, Tabs, Form, Input, Button, Avatar, Upload, message } from 'antd' +import { UserOutlined, LockOutlined, UploadOutlined } from '@ant-design/icons' +import { getCurrentUser, updateProfile, changePassword } from '@/api/auth' +import useUserStore from '@/stores/userStore' +import MainLayout from '@/components/MainLayout/MainLayout' +import Toast from '@/components/Toast/Toast' +import './ProfilePage.css' + +function ProfilePage() { + const [loading, setLoading] = useState(false) + const [userInfo, setUserInfo] = useState(null) + const [profileForm] = Form.useForm() + const [passwordForm] = Form.useForm() + const { user, setUser } = useUserStore() + + useEffect(() => { + loadUserInfo() + }, []) + + // 加载用户信息 + const loadUserInfo = async () => { + try { + const res = await getCurrentUser() + setUserInfo(res.data) + profileForm.setFieldsValue({ + username: res.data.username, + nickname: res.data.nickname, + email: res.data.email, + phone: res.data.phone, + }) + } catch (error) { + console.error('Load user info error:', error) + message.error('加载用户信息失败') + } + } + + // 更新资料 + const handleUpdateProfile = async (values) => { + setLoading(true) + try { + const res = await updateProfile({ + nickname: values.nickname, + email: values.email, + phone: values.phone, + }) + setUserInfo(res.data) + setUser(res.data) // 更新全局用户信息 + Toast.success('更新成功', '个人资料已更新') + } catch (error) { + console.error('Update profile error:', error) + message.error(error.response?.data?.detail || '更新失败') + } finally { + setLoading(false) + } + } + + // 修改密码 + const handleChangePassword = async (values) => { + setLoading(true) + try { + await changePassword({ + old_password: values.old_password, + new_password: values.new_password, + }) + Toast.success('修改成功', '密码已修改,请重新登录') + passwordForm.resetFields() + // 2秒后跳转到登录页 + setTimeout(() => { + window.location.href = '/login' + }, 2000) + } catch (error) { + console.error('Change password error:', error) + message.error(error.response?.data?.detail || '修改密码失败') + } finally { + setLoading(false) + } + } + + const tabItems = [ + { + key: 'profile', + label: ( + + + 个人资料 + + ), + children: ( +
+
+ } /> + + + +

支持 JPG、PNG 格式,文件小于 2MB

+
+ +
+ + + + + + + + + + + + + + + + + + + + +
+ ), + }, + { + key: 'password', + label: ( + + + 修改密码 + + ), + children: ( +
+
+ + + + + + + + + ({ + validator(_, value) { + if (!value || getFieldValue('new_password') === value) { + return Promise.resolve() + } + return Promise.reject(new Error('两次输入的密码不一致')) + }, + }), + ]} + > + + + + + + + + +
+

密码安全建议:

+
    +
  • 密码长度至少6个字符
  • +
  • 包含字母、数字和特殊字符的组合更安全
  • +
  • 不要使用过于简单的密码,如"123456"
  • +
  • 定期更换密码,提高账户安全性
  • +
+
+ +
+ ), + }, + ] + + return ( + +
+ +

个人中心

+ +
+
+
+ ) +} + +export default ProfilePage diff --git a/forntend/src/pages/ProjectList/ProjectList.css b/forntend/src/pages/ProjectList/ProjectList.css new file mode 100644 index 0000000..ada13f8 --- /dev/null +++ b/forntend/src/pages/ProjectList/ProjectList.css @@ -0,0 +1,57 @@ +.project-list-container { + padding: 24px; +} + +.project-list-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 24px; +} + +.project-list-header h2 { + margin: 0; + font-size: 24px; + font-weight: 600; +} + +.project-card { + text-align: center; + cursor: pointer; + transition: all 0.3s; +} + +.project-card:hover { + transform: translateY(-4px); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); +} + +.project-card-icon { + margin-bottom: 16px; +} + +.project-card h3 { + font-size: 16px; + font-weight: 600; + margin-bottom: 8px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.project-description { + font-size: 14px; + color: #666; + margin-bottom: 12px; + min-height: 40px; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; +} + +.project-meta { + font-size: 12px; + color: #999; +} diff --git a/forntend/src/pages/ProjectList/ProjectList.jsx b/forntend/src/pages/ProjectList/ProjectList.jsx new file mode 100644 index 0000000..0def11d --- /dev/null +++ b/forntend/src/pages/ProjectList/ProjectList.jsx @@ -0,0 +1,296 @@ +import { useState, useEffect } from 'react' +import { useNavigate } from 'react-router-dom' +import { Card, Empty, Modal, Form, Input, Row, Col, Space, Button, Switch, message } from 'antd' +import { PlusOutlined, FolderOutlined, TeamOutlined, EyeOutlined, ShareAltOutlined, CopyOutlined } from '@ant-design/icons' +import { getMyProjects, createProject, deleteProject } from '@/api/project' +import { getProjectShareInfo, updateShareSettings } from '@/api/share' +import MainLayout from '@/components/MainLayout/MainLayout' +import ListActionBar from '@/components/ListActionBar/ListActionBar' +import Toast from '@/components/Toast/Toast' +import './ProjectList.css' + +function ProjectList() { + const [projects, setProjects] = useState([]) + const [loading, setLoading] = useState(false) + const [modalVisible, setModalVisible] = useState(false) + const [shareModalVisible, setShareModalVisible] = useState(false) + const [currentProject, setCurrentProject] = useState(null) + const [shareInfo, setShareInfo] = useState(null) + const [hasPassword, setHasPassword] = useState(false) + const [password, setPassword] = useState('') + const [searchKeyword, setSearchKeyword] = useState('') + const [form] = Form.useForm() + const navigate = useNavigate() + + useEffect(() => { + fetchProjects() + }, []) + + const fetchProjects = async () => { + setLoading(true) + try { + const res = await getMyProjects() + setProjects(res.data || []) + } catch (error) { + console.error('Fetch projects error:', error) + } finally { + setLoading(false) + } + } + + const handleCreateProject = async (values) => { + try { + await createProject(values) + Toast.success('创建成功', '项目已创建') + setModalVisible(false) + form.resetFields() + fetchProjects() + } catch (error) { + console.error('Create project error:', error) + } + } + + const handleDeleteProject = async (projectId) => { + Modal.confirm({ + title: '确认删除', + content: '确定要删除这个项目吗?删除后可以在归档中找到', + onOk: async () => { + try { + await deleteProject(projectId) + Toast.success('归档成功', '项目已归档') + fetchProjects() + } catch (error) { + console.error('Delete project error:', error) + } + }, + }) + } + + const handleOpenProject = (projectId) => { + navigate(`/projects/${projectId}/docs`) + } + + // 打开分享设置 + const handleShare = async (e, project) => { + e.stopPropagation() + setCurrentProject(project) + try { + const res = await getProjectShareInfo(project.id) + setShareInfo(res.data) + setHasPassword(res.data.has_password) + setPassword('') + setShareModalVisible(true) + } catch (error) { + console.error('Get share info error:', error) + message.error('获取分享信息失败') + } + } + + // 复制分享链接 + const handleCopyLink = () => { + if (!shareInfo) return + const fullUrl = `${window.location.origin}${shareInfo.share_url}` + navigator.clipboard.writeText(fullUrl) + message.success('分享链接已复制') + } + + // 切换密码保护 + const handlePasswordToggle = async (checked) => { + if (!checked) { + // 取消密码 + try { + await updateShareSettings(currentProject.id, { access_pass: null }) + setHasPassword(false) + setPassword('') + message.success('已取消访问密码') + // 刷新分享信息 + const res = await getProjectShareInfo(currentProject.id) + setShareInfo(res.data) + } catch (error) { + console.error('Update settings error:', error) + message.error('操作失败') + } + } else { + setHasPassword(true) + } + } + + // 保存密码 + const handleSavePassword = async () => { + if (!password.trim()) { + message.warning('请输入访问密码') + return + } + try { + await updateShareSettings(currentProject.id, { access_pass: password }) + message.success('访问密码已设置') + // 刷新分享信息 + const res = await getProjectShareInfo(currentProject.id) + setShareInfo(res.data) + setHasPassword(true) + } catch (error) { + console.error('Save password error:', error) + message.error('设置密码失败') + } + } + + // 过滤项目 + const filteredProjects = projects.filter((project) => + project.name.toLowerCase().includes(searchKeyword.toLowerCase()) + ) + + return ( + +
+ , + onClick: () => setModalVisible(true), + }, + ]} + search={{ + placeholder: '搜索项目...', + value: searchKeyword, + onChange: setSearchKeyword, + onSearch: (value) => setSearchKeyword(value), + }} + showRefresh + onRefresh={fetchProjects} + /> + + + {filteredProjects.map((project) => ( +
+ handleOpenProject(project.id)} + actions={[ + handleShare(e, project)} />, + , + , + ]} + > +
+ +
+

{project.name}

+

{project.description || '暂无描述'}

+
+ 访问: {project.visit_count} +
+
+ + ))} + + {projects.length === 0 && !loading && ( + + + + )} + + + { + setModalVisible(false) + form.resetFields() + }} + footer={null} + > +
+ + + + + + + + + + + + + + + +
+ + setShareModalVisible(false)} + footer={null} + width={500} + > + {shareInfo && ( + +
+ + + } + /> +
+ +
+ + 访问密码保护 + + +
+ + {hasPassword && ( +
+ setPassword(e.target.value)} + /> + +
+ )} +
+ )} +
+ + + ) +} + +export default ProjectList diff --git a/forntend/src/stores/userStore.js b/forntend/src/stores/userStore.js new file mode 100644 index 0000000..b132ed2 --- /dev/null +++ b/forntend/src/stores/userStore.js @@ -0,0 +1,34 @@ +/** + * 用户状态管理 Store + */ +import { create } from 'zustand' +import { persist } from 'zustand/middleware' + +const useUserStore = create( + persist( + (set) => ({ + user: null, + token: null, + + setUser: (user) => set({ user }), + setToken: (token) => set({ token }), + + logout: () => { + localStorage.removeItem('access_token') + localStorage.removeItem('user_info') + set({ user: null, token: null }) + }, + + isAuthenticated: () => { + const state = useUserStore.getState() + return !!state.token && !!state.user + }, + }), + { + name: 'user-storage', + getStorage: () => localStorage, + } + ) +) + +export default useUserStore diff --git a/forntend/src/utils/request.js b/forntend/src/utils/request.js new file mode 100644 index 0000000..6aab464 --- /dev/null +++ b/forntend/src/utils/request.js @@ -0,0 +1,102 @@ +/** + * Axios 封装 - API 请求工具 + */ +import axios from 'axios' +import Toast from '@/components/Toast/Toast' + +// 创建 axios 实例 +const request = axios.create({ + baseURL: '/api/v1', // 使用相对路径,开发环境通过vite proxy代理,生产环境通过nginx代理 + timeout: 30000, + headers: { + 'Content-Type': 'application/json', + }, +}) + +// 请求拦截器 +request.interceptors.request.use( + (config) => { + // 从 localStorage 获取 token + const token = localStorage.getItem('access_token') + console.log('[Request] Token from localStorage:', token ? token.substring(0, 20) + '...' : 'null') + if (token) { + config.headers.Authorization = `Bearer ${token}` + console.log('[Request] Authorization header set:', config.headers.Authorization.substring(0, 30) + '...') + } + return config + }, + (error) => { + console.error('Request error:', error) + return Promise.reject(error) + } +) + +// 响应拦截器 +request.interceptors.response.use( + (response) => { + // 如果是 blob 类型,返回完整响应(包括 headers) + if (response.config.responseType === 'blob') { + return response + } + + const res = response.data + console.log('[Response] Success:', res) + + // 如果返回的状态码不是 200,说明有错误 + if (res.code !== 200) { + Toast.error('请求失败', res.message || '请求失败') + + // 401: 未登录或 token 过期 + if (res.code === 401) { + localStorage.removeItem('access_token') + localStorage.removeItem('user_info') + window.location.href = '/login' + } + + return Promise.reject(new Error(res.message || '请求失败')) + } + + return res + }, + (error) => { + console.error('Response error:', error) + console.error('Response error detail:', error.response) + + if (error.response) { + const { status, data } = error.response + + switch (status) { + case 401: + // 只有不在登录页时才显示Toast和跳转 + if (!window.location.pathname.includes('/login')) { + Toast.error('认证失败', data?.detail || '未登录或登录已过期') + localStorage.removeItem('access_token') + localStorage.removeItem('user_info') + setTimeout(() => { + window.location.href = '/login' + }, 1000) // 延迟1秒,让Toast有时间显示 + } + break + case 403: + Toast.error('权限不足', data?.detail || '没有权限访问') + break + case 404: + Toast.error('资源不存在', data?.detail || '请求的资源不存在') + break + case 500: + Toast.error('服务器错误', data?.detail || '服务器内部错误') + break + default: + Toast.error('请求失败', data?.detail || data?.message || '请求失败') + } + } else if (error.request) { + Toast.error('网络错误', '请检查网络连接') + } else { + Toast.error('请求错误', error.message || '请求配置错误') + } + + return Promise.reject(error) + } +) + +export default request diff --git a/forntend/tailwind.config.js b/forntend/tailwind.config.js new file mode 100644 index 0000000..ac36ac0 --- /dev/null +++ b/forntend/tailwind.config.js @@ -0,0 +1,65 @@ +/** @type {import('tailwindcss').Config} */ +export default { + content: [ + "./index.html", + "./src/**/*.{js,ts,jsx,tsx}", + ], + theme: { + extend: { + colors: { + primary: { + 50: '#fce7f6', + 100: '#f5bae6', + 200: '#ee8dd6', + 300: '#e760c6', + 400: '#e033b6', + 500: '#b8178d', // 品牌主色 - 匹配 NEX LOGO + 600: '#9c1477', + 700: '#801161', + 800: '#640d4b', + 900: '#480a35', + }, + // 保留原蓝色作为辅助色 + blue: { + 50: '#e6f4ff', + 100: '#bae0ff', + 200: '#91caff', + 300: '#69b1ff', + 400: '#4096ff', + 500: '#1677ff', + 600: '#0958d9', + 700: '#003eb3', + 800: '#002c8c', + 900: '#001d66', + }, + }, + fontFamily: { + sans: [ + '-apple-system', + 'BlinkMacSystemFont', + 'Segoe UI', + 'Roboto', + 'Helvetica Neue', + 'Arial', + 'Noto Sans', + 'sans-serif', + ], + mono: [ + 'SF Mono', + 'Monaco', + 'Inconsolata', + 'Fira Code', + 'Fira Mono', + 'Droid Sans Mono', + 'Source Code Pro', + 'monospace', + ], + }, + }, + }, + plugins: [], + // 与 Ant Design 兼容 + corePlugins: { + preflight: false, + }, +} diff --git a/forntend/vite.config.js b/forntend/vite.config.js new file mode 100644 index 0000000..242744c --- /dev/null +++ b/forntend/vite.config.js @@ -0,0 +1,28 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' +import path from 'path' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [react()], + resolve: { + alias: { + '@': path.resolve(__dirname, './src'), + }, + }, + server: { + port: 5173, + open: true, + proxy: { + // 代理API请求到后端 + '/api': { + target: 'http://localhost:8000', + changeOrigin: true, + }, + }, + }, + build: { + outDir: 'dist', + sourcemap: false, + }, +}) diff --git a/forntend/yarn.lock b/forntend/yarn.lock new file mode 100644 index 0000000..949a192 --- /dev/null +++ b/forntend/yarn.lock @@ -0,0 +1,4795 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@alloc/quick-lru@^5.2.0": + version "5.2.0" + resolved "https://registry.npmmirror.com/@alloc/quick-lru/-/quick-lru-5.2.0.tgz#7bf68b20c0a350f936915fcae06f58e32007ce30" + integrity sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw== + +"@ant-design/colors@^7.0.0", "@ant-design/colors@^7.2.1": + version "7.2.1" + resolved "https://registry.npmmirror.com/@ant-design/colors/-/colors-7.2.1.tgz#3bbc1c6c18550020d1622a0067ff03492318df98" + integrity sha512-lCHDcEzieu4GA3n8ELeZ5VQ8pKQAWcGGLRTQ50aQM2iqPpq2evTxER84jfdPvsPAtEcZ7m44NI45edFMo8oOYQ== + dependencies: + "@ant-design/fast-color" "^2.0.6" + +"@ant-design/cssinjs-utils@^1.1.3": + version "1.1.3" + resolved "https://registry.npmmirror.com/@ant-design/cssinjs-utils/-/cssinjs-utils-1.1.3.tgz#5dd79126057920a6992d57b38dd84e2c0b707977" + integrity sha512-nOoQMLW1l+xR1Co8NFVYiP8pZp3VjIIzqV6D6ShYF2ljtdwWJn5WSsH+7kvCktXL/yhEtWURKOfH5Xz/gzlwsg== + dependencies: + "@ant-design/cssinjs" "^1.21.0" + "@babel/runtime" "^7.23.2" + rc-util "^5.38.0" + +"@ant-design/cssinjs@^1.21.0", "@ant-design/cssinjs@^1.23.0": + version "1.24.0" + resolved "https://registry.npmmirror.com/@ant-design/cssinjs/-/cssinjs-1.24.0.tgz#7db091f03f189abc77a13cbd27a2293802cd7285" + integrity sha512-K4cYrJBsgvL+IoozUXYjbT6LHHNt+19a9zkvpBPxLjFHas1UpPM2A5MlhROb0BT8N8WoavM5VsP9MeSeNK/3mg== + dependencies: + "@babel/runtime" "^7.11.1" + "@emotion/hash" "^0.8.0" + "@emotion/unitless" "^0.7.5" + classnames "^2.3.1" + csstype "^3.1.3" + rc-util "^5.35.0" + stylis "^4.3.4" + +"@ant-design/fast-color@^2.0.6": + version "2.0.6" + resolved "https://registry.npmmirror.com/@ant-design/fast-color/-/fast-color-2.0.6.tgz#ab4d4455c1542c9017d367c2fa8ca3e4215d0ba2" + integrity sha512-y2217gk4NqL35giHl72o6Zzqji9O7vHh9YmhUVkPtAOpoTCH4uWxo/pr4VE8t0+ChEPs0qo4eJRC5Q1eXWo3vA== + dependencies: + "@babel/runtime" "^7.24.7" + +"@ant-design/icons-svg@^4.4.0": + version "4.4.2" + resolved "https://registry.npmmirror.com/@ant-design/icons-svg/-/icons-svg-4.4.2.tgz#ed2be7fb4d82ac7e1d45a54a5b06d6cecf8be6f6" + integrity sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA== + +"@ant-design/icons@^5.2.6", "@ant-design/icons@^5.6.1": + version "5.6.1" + resolved "https://registry.npmmirror.com/@ant-design/icons/-/icons-5.6.1.tgz#7290fcdc3d96ff3fca793ed399053cd29ad5dbd3" + integrity sha512-0/xS39c91WjPAZOWsvi1//zjx6kAp4kxWwctR6kuU6p133w8RU0D2dSCvZC19uQyharg/sAvYxGYWl01BbZZfg== + dependencies: + "@ant-design/colors" "^7.0.0" + "@ant-design/icons-svg" "^4.4.0" + "@babel/runtime" "^7.24.8" + classnames "^2.2.6" + rc-util "^5.31.1" + +"@ant-design/react-slick@~1.1.2": + version "1.1.2" + resolved "https://registry.npmmirror.com/@ant-design/react-slick/-/react-slick-1.1.2.tgz#f84ce3e4d0dc941f02b16f1d1d6d7a371ffbb4f1" + integrity sha512-EzlvzE6xQUBrZuuhSAFTdsr4P2bBBHGZwKFemEfq8gIGyIQCxalYfZW/T2ORbtQx5rU69o+WycP3exY/7T1hGA== + dependencies: + "@babel/runtime" "^7.10.4" + classnames "^2.2.5" + json2mq "^0.2.0" + resize-observer-polyfill "^1.5.1" + throttle-debounce "^5.0.0" + +"@babel/code-frame@^7.27.1": + version "7.27.1" + resolved "https://registry.npmmirror.com/@babel/code-frame/-/code-frame-7.27.1.tgz#200f715e66d52a23b221a9435534a91cc13ad5be" + integrity sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg== + dependencies: + "@babel/helper-validator-identifier" "^7.27.1" + js-tokens "^4.0.0" + picocolors "^1.1.1" + +"@babel/compat-data@^7.27.2": + version "7.28.5" + resolved "https://registry.npmmirror.com/@babel/compat-data/-/compat-data-7.28.5.tgz#a8a4962e1567121ac0b3b487f52107443b455c7f" + integrity sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA== + +"@babel/core@^7.28.0": + version "7.28.5" + resolved "https://registry.npmmirror.com/@babel/core/-/core-7.28.5.tgz#4c81b35e51e1b734f510c99b07dfbc7bbbb48f7e" + integrity sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw== + dependencies: + "@babel/code-frame" "^7.27.1" + "@babel/generator" "^7.28.5" + "@babel/helper-compilation-targets" "^7.27.2" + "@babel/helper-module-transforms" "^7.28.3" + "@babel/helpers" "^7.28.4" + "@babel/parser" "^7.28.5" + "@babel/template" "^7.27.2" + "@babel/traverse" "^7.28.5" + "@babel/types" "^7.28.5" + "@jridgewell/remapping" "^2.3.5" + convert-source-map "^2.0.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.3" + semver "^6.3.1" + +"@babel/generator@^7.28.5": + version "7.28.5" + resolved "https://registry.npmmirror.com/@babel/generator/-/generator-7.28.5.tgz#712722d5e50f44d07bc7ac9fe84438742dd61298" + integrity sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ== + dependencies: + "@babel/parser" "^7.28.5" + "@babel/types" "^7.28.5" + "@jridgewell/gen-mapping" "^0.3.12" + "@jridgewell/trace-mapping" "^0.3.28" + jsesc "^3.0.2" + +"@babel/helper-compilation-targets@^7.27.2": + version "7.27.2" + resolved "https://registry.npmmirror.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz#46a0f6efab808d51d29ce96858dd10ce8732733d" + integrity sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ== + dependencies: + "@babel/compat-data" "^7.27.2" + "@babel/helper-validator-option" "^7.27.1" + browserslist "^4.24.0" + lru-cache "^5.1.1" + semver "^6.3.1" + +"@babel/helper-globals@^7.28.0": + version "7.28.0" + resolved "https://registry.npmmirror.com/@babel/helper-globals/-/helper-globals-7.28.0.tgz#b9430df2aa4e17bc28665eadeae8aa1d985e6674" + integrity sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw== + +"@babel/helper-module-imports@^7.27.1": + version "7.27.1" + resolved "https://registry.npmmirror.com/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz#7ef769a323e2655e126673bb6d2d6913bbead204" + integrity sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w== + dependencies: + "@babel/traverse" "^7.27.1" + "@babel/types" "^7.27.1" + +"@babel/helper-module-transforms@^7.28.3": + version "7.28.3" + resolved "https://registry.npmmirror.com/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz#a2b37d3da3b2344fe085dab234426f2b9a2fa5f6" + integrity sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw== + dependencies: + "@babel/helper-module-imports" "^7.27.1" + "@babel/helper-validator-identifier" "^7.27.1" + "@babel/traverse" "^7.28.3" + +"@babel/helper-plugin-utils@^7.27.1": + version "7.27.1" + resolved "https://registry.npmmirror.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz#ddb2f876534ff8013e6c2b299bf4d39b3c51d44c" + integrity sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw== + +"@babel/helper-string-parser@^7.27.1": + version "7.27.1" + resolved "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz#54da796097ab19ce67ed9f88b47bb2ec49367687" + integrity sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA== + +"@babel/helper-validator-identifier@^7.27.1", "@babel/helper-validator-identifier@^7.28.5": + version "7.28.5" + resolved "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz#010b6938fab7cb7df74aa2bbc06aa503b8fe5fb4" + integrity sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q== + +"@babel/helper-validator-option@^7.27.1": + version "7.27.1" + resolved "https://registry.npmmirror.com/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz#fa52f5b1e7db1ab049445b421c4471303897702f" + integrity sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg== + +"@babel/helpers@^7.28.4": + version "7.28.4" + resolved "https://registry.npmmirror.com/@babel/helpers/-/helpers-7.28.4.tgz#fe07274742e95bdf7cf1443593eeb8926ab63827" + integrity sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w== + dependencies: + "@babel/template" "^7.27.2" + "@babel/types" "^7.28.4" + +"@babel/parser@^7.1.0", "@babel/parser@^7.20.7", "@babel/parser@^7.27.2", "@babel/parser@^7.28.5": + version "7.28.5" + resolved "https://registry.npmmirror.com/@babel/parser/-/parser-7.28.5.tgz#0b0225ee90362f030efd644e8034c99468893b08" + integrity sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ== + dependencies: + "@babel/types" "^7.28.5" + +"@babel/plugin-transform-react-jsx-self@^7.27.1": + version "7.27.1" + resolved "https://registry.npmmirror.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz#af678d8506acf52c577cac73ff7fe6615c85fc92" + integrity sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw== + dependencies: + "@babel/helper-plugin-utils" "^7.27.1" + +"@babel/plugin-transform-react-jsx-source@^7.27.1": + version "7.27.1" + resolved "https://registry.npmmirror.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz#dcfe2c24094bb757bf73960374e7c55e434f19f0" + integrity sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw== + dependencies: + "@babel/helper-plugin-utils" "^7.27.1" + +"@babel/runtime@^7.10.1", "@babel/runtime@^7.10.4", "@babel/runtime@^7.11.1", "@babel/runtime@^7.11.2", "@babel/runtime@^7.14.6", "@babel/runtime@^7.16.7", "@babel/runtime@^7.17.2", "@babel/runtime@^7.18.0", "@babel/runtime@^7.18.3", "@babel/runtime@^7.20.0", "@babel/runtime@^7.20.7", "@babel/runtime@^7.21.0", "@babel/runtime@^7.22.5", "@babel/runtime@^7.23.2", "@babel/runtime@^7.23.6", "@babel/runtime@^7.23.9", "@babel/runtime@^7.24.4", "@babel/runtime@^7.24.7", "@babel/runtime@^7.24.8", "@babel/runtime@^7.25.7", "@babel/runtime@^7.26.0": + version "7.28.4" + resolved "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.28.4.tgz#a70226016fabe25c5783b2f22d3e1c9bc5ca3326" + integrity sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ== + +"@babel/template@^7.27.2": + version "7.27.2" + resolved "https://registry.npmmirror.com/@babel/template/-/template-7.27.2.tgz#fa78ceed3c4e7b63ebf6cb39e5852fca45f6809d" + integrity sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw== + dependencies: + "@babel/code-frame" "^7.27.1" + "@babel/parser" "^7.27.2" + "@babel/types" "^7.27.1" + +"@babel/traverse@^7.27.1", "@babel/traverse@^7.28.3", "@babel/traverse@^7.28.5": + version "7.28.5" + resolved "https://registry.npmmirror.com/@babel/traverse/-/traverse-7.28.5.tgz#450cab9135d21a7a2ca9d2d35aa05c20e68c360b" + integrity sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ== + dependencies: + "@babel/code-frame" "^7.27.1" + "@babel/generator" "^7.28.5" + "@babel/helper-globals" "^7.28.0" + "@babel/parser" "^7.28.5" + "@babel/template" "^7.27.2" + "@babel/types" "^7.28.5" + debug "^4.3.1" + +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.27.1", "@babel/types@^7.28.2", "@babel/types@^7.28.4", "@babel/types@^7.28.5": + version "7.28.5" + resolved "https://registry.npmmirror.com/@babel/types/-/types-7.28.5.tgz#10fc405f60897c35f07e85493c932c7b5ca0592b" + integrity sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA== + dependencies: + "@babel/helper-string-parser" "^7.27.1" + "@babel/helper-validator-identifier" "^7.28.5" + +"@emotion/hash@^0.8.0": + version "0.8.0" + resolved "https://registry.npmmirror.com/@emotion/hash/-/hash-0.8.0.tgz#bbbff68978fefdbe68ccb533bc8cbe1d1afb5413" + integrity sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow== + +"@emotion/unitless@^0.7.5": + version "0.7.5" + resolved "https://registry.npmmirror.com/@emotion/unitless/-/unitless-0.7.5.tgz#77211291c1900a700b8a78cfafda3160d76949ed" + integrity sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg== + +"@esbuild/aix-ppc64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz#c7184a326533fcdf1b8ee0733e21c713b975575f" + integrity sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ== + +"@esbuild/android-arm64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz#09d9b4357780da9ea3a7dfb833a1f1ff439b4052" + integrity sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A== + +"@esbuild/android-arm@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.21.5.tgz#9b04384fb771926dfa6d7ad04324ecb2ab9b2e28" + integrity sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg== + +"@esbuild/android-x64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.21.5.tgz#29918ec2db754cedcb6c1b04de8cd6547af6461e" + integrity sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA== + +"@esbuild/darwin-arm64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz#e495b539660e51690f3928af50a76fb0a6ccff2a" + integrity sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ== + +"@esbuild/darwin-x64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz#c13838fa57372839abdddc91d71542ceea2e1e22" + integrity sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw== + +"@esbuild/freebsd-arm64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz#646b989aa20bf89fd071dd5dbfad69a3542e550e" + integrity sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g== + +"@esbuild/freebsd-x64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz#aa615cfc80af954d3458906e38ca22c18cf5c261" + integrity sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ== + +"@esbuild/linux-arm64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz#70ac6fa14f5cb7e1f7f887bcffb680ad09922b5b" + integrity sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q== + +"@esbuild/linux-arm@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz#fc6fd11a8aca56c1f6f3894f2bea0479f8f626b9" + integrity sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA== + +"@esbuild/linux-ia32@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz#3271f53b3f93e3d093d518d1649d6d68d346ede2" + integrity sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg== + +"@esbuild/linux-loong64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz#ed62e04238c57026aea831c5a130b73c0f9f26df" + integrity sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg== + +"@esbuild/linux-mips64el@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz#e79b8eb48bf3b106fadec1ac8240fb97b4e64cbe" + integrity sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg== + +"@esbuild/linux-ppc64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz#5f2203860a143b9919d383ef7573521fb154c3e4" + integrity sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w== + +"@esbuild/linux-riscv64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz#07bcafd99322d5af62f618cb9e6a9b7f4bb825dc" + integrity sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA== + +"@esbuild/linux-s390x@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz#b7ccf686751d6a3e44b8627ababc8be3ef62d8de" + integrity sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A== + +"@esbuild/linux-x64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz#6d8f0c768e070e64309af8004bb94e68ab2bb3b0" + integrity sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ== + +"@esbuild/netbsd-x64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz#bbe430f60d378ecb88decb219c602667387a6047" + integrity sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg== + +"@esbuild/openbsd-x64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz#99d1cf2937279560d2104821f5ccce220cb2af70" + integrity sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow== + +"@esbuild/sunos-x64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz#08741512c10d529566baba837b4fe052c8f3487b" + integrity sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg== + +"@esbuild/win32-arm64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz#675b7385398411240735016144ab2e99a60fc75d" + integrity sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A== + +"@esbuild/win32-ia32@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz#1bfc3ce98aa6ca9a0969e4d2af72144c59c1193b" + integrity sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA== + +"@esbuild/win32-x64@0.21.5": + version "0.21.5" + resolved "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz#acad351d582d157bb145535db2a6ff53dd514b5c" + integrity sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw== + +"@eslint-community/eslint-utils@^4.2.0": + version "4.9.0" + resolved "https://registry.npmmirror.com/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz#7308df158e064f0dd8b8fdb58aa14fa2a7f913b3" + integrity sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g== + dependencies: + eslint-visitor-keys "^3.4.3" + +"@eslint-community/regexpp@^4.6.1": + version "4.12.2" + resolved "https://registry.npmmirror.com/@eslint-community/regexpp/-/regexpp-4.12.2.tgz#bccdf615bcf7b6e8db830ec0b8d21c9a25de597b" + integrity sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew== + +"@eslint/eslintrc@^2.1.4": + version "2.1.4" + resolved "https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz#388a269f0f25c1b6adc317b5a2c55714894c70ad" + integrity sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ== + dependencies: + ajv "^6.12.4" + debug "^4.3.2" + espree "^9.6.0" + globals "^13.19.0" + ignore "^5.2.0" + import-fresh "^3.2.1" + js-yaml "^4.1.0" + minimatch "^3.1.2" + strip-json-comments "^3.1.1" + +"@eslint/js@8.57.1": + version "8.57.1" + resolved "https://registry.npmmirror.com/@eslint/js/-/js-8.57.1.tgz#de633db3ec2ef6a3c89e2f19038063e8a122e2c2" + integrity sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q== + +"@humanwhocodes/config-array@^0.13.0": + version "0.13.0" + resolved "https://registry.npmmirror.com/@humanwhocodes/config-array/-/config-array-0.13.0.tgz#fb907624df3256d04b9aa2df50d7aa97ec648748" + integrity sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw== + dependencies: + "@humanwhocodes/object-schema" "^2.0.3" + debug "^4.3.1" + minimatch "^3.0.5" + +"@humanwhocodes/module-importer@^1.0.1": + version "1.0.1" + resolved "https://registry.npmmirror.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" + integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== + +"@humanwhocodes/object-schema@^2.0.3": + version "2.0.3" + resolved "https://registry.npmmirror.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz#4a2868d75d6d6963e423bcf90b7fd1be343409d3" + integrity sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA== + +"@jridgewell/gen-mapping@^0.3.12", "@jridgewell/gen-mapping@^0.3.2", "@jridgewell/gen-mapping@^0.3.5": + version "0.3.13" + resolved "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz#6342a19f44347518c93e43b1ac69deb3c4656a1f" + integrity sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA== + dependencies: + "@jridgewell/sourcemap-codec" "^1.5.0" + "@jridgewell/trace-mapping" "^0.3.24" + +"@jridgewell/remapping@^2.3.5": + version "2.3.5" + resolved "https://registry.npmmirror.com/@jridgewell/remapping/-/remapping-2.3.5.tgz#375c476d1972947851ba1e15ae8f123047445aa1" + integrity sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ== + dependencies: + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.24" + +"@jridgewell/resolve-uri@^3.1.0": + version "3.1.2" + resolved "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" + integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== + +"@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.5.0": + version "1.5.5" + resolved "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz#6912b00d2c631c0d15ce1a7ab57cd657f2a8f8ba" + integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og== + +"@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.28": + version "0.3.31" + resolved "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz#db15d6781c931f3a251a3dac39501c98a6082fd0" + integrity sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": + version "1.2.8" + resolved "https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + +"@rc-component/async-validator@^5.0.3": + version "5.0.4" + resolved "https://registry.npmmirror.com/@rc-component/async-validator/-/async-validator-5.0.4.tgz#5291ad92f00a14b6766fc81735c234277f83e948" + integrity sha512-qgGdcVIF604M9EqjNF0hbUTz42bz/RDtxWdWuU5EQe3hi7M8ob54B6B35rOsvX5eSvIHIzT9iH1R3n+hk3CGfg== + dependencies: + "@babel/runtime" "^7.24.4" + +"@rc-component/color-picker@~2.0.1": + version "2.0.1" + resolved "https://registry.npmmirror.com/@rc-component/color-picker/-/color-picker-2.0.1.tgz#6b9b96152466a9d4475cbe72b40b594bfda164be" + integrity sha512-WcZYwAThV/b2GISQ8F+7650r5ZZJ043E57aVBFkQ+kSY4C6wdofXgB0hBx+GPGpIU0Z81eETNoDUJMr7oy/P8Q== + dependencies: + "@ant-design/fast-color" "^2.0.6" + "@babel/runtime" "^7.23.6" + classnames "^2.2.6" + rc-util "^5.38.1" + +"@rc-component/context@^1.4.0": + version "1.4.0" + resolved "https://registry.npmmirror.com/@rc-component/context/-/context-1.4.0.tgz#dc6fb021d6773546af8f016ae4ce9aea088395e8" + integrity sha512-kFcNxg9oLRMoL3qki0OMxK+7g5mypjgaaJp/pkOis/6rVxma9nJBF/8kCIuTYHUQNr0ii7MxqE33wirPZLJQ2w== + dependencies: + "@babel/runtime" "^7.10.1" + rc-util "^5.27.0" + +"@rc-component/mini-decimal@^1.0.1": + version "1.1.0" + resolved "https://registry.npmmirror.com/@rc-component/mini-decimal/-/mini-decimal-1.1.0.tgz#7b7a362b14a0a54cb5bc6fd2b82731f29f11d9b0" + integrity sha512-jS4E7T9Li2GuYwI6PyiVXmxTiM6b07rlD9Ge8uGZSCz3WlzcG5ZK7g5bbuKNeZ9pgUuPK/5guV781ujdVpm4HQ== + dependencies: + "@babel/runtime" "^7.18.0" + +"@rc-component/mutate-observer@^1.1.0": + version "1.1.0" + resolved "https://registry.npmmirror.com/@rc-component/mutate-observer/-/mutate-observer-1.1.0.tgz#ee53cc88b78aade3cd0653609215a44779386fd8" + integrity sha512-QjrOsDXQusNwGZPf4/qRQasg7UFEj06XiCJ8iuiq/Io7CrHrgVi6Uuetw60WAMG1799v+aM8kyc+1L/GBbHSlw== + dependencies: + "@babel/runtime" "^7.18.0" + classnames "^2.3.2" + rc-util "^5.24.4" + +"@rc-component/portal@^1.0.0-8", "@rc-component/portal@^1.0.0-9", "@rc-component/portal@^1.0.2", "@rc-component/portal@^1.1.0", "@rc-component/portal@^1.1.1": + version "1.1.2" + resolved "https://registry.npmmirror.com/@rc-component/portal/-/portal-1.1.2.tgz#55db1e51d784e034442e9700536faaa6ab63fc71" + integrity sha512-6f813C0IsasTZms08kfA8kPAGxbbkYToa8ALaiDIGGECU4i9hj8Plgbx0sNJDrey3EtHO30hmdaxtT0138xZcg== + dependencies: + "@babel/runtime" "^7.18.0" + classnames "^2.3.2" + rc-util "^5.24.4" + +"@rc-component/qrcode@~1.1.0": + version "1.1.1" + resolved "https://registry.npmmirror.com/@rc-component/qrcode/-/qrcode-1.1.1.tgz#909f181bb9a7469d32a6e96c7f35476d4bd92008" + integrity sha512-LfLGNymzKdUPjXUbRP+xOhIWY4jQ+YMj5MmWAcgcAq1Ij8XP7tRmAXqyuv96XvLUBE/5cA8hLFl9eO1JQMujrA== + dependencies: + "@babel/runtime" "^7.24.7" + +"@rc-component/tour@~1.15.1": + version "1.15.1" + resolved "https://registry.npmmirror.com/@rc-component/tour/-/tour-1.15.1.tgz#9b79808254185fc19e964172d99e25e8c6800ded" + integrity sha512-Tr2t7J1DKZUpfJuDZWHxyxWpfmj8EZrqSgyMZ+BCdvKZ6r1UDsfU46M/iWAAFBy961Ssfom2kv5f3UcjIL2CmQ== + dependencies: + "@babel/runtime" "^7.18.0" + "@rc-component/portal" "^1.0.0-9" + "@rc-component/trigger" "^2.0.0" + classnames "^2.3.2" + rc-util "^5.24.4" + +"@rc-component/trigger@^2.0.0", "@rc-component/trigger@^2.1.1", "@rc-component/trigger@^2.3.0": + version "2.3.0" + resolved "https://registry.npmmirror.com/@rc-component/trigger/-/trigger-2.3.0.tgz#9499ada078daca9dd99d01f0f0743ee1ab9e398b" + integrity sha512-iwaxZyzOuK0D7lS+0AQEtW52zUWxoGqTGkke3dRyb8pYiShmRpCjB/8TzPI4R6YySCH7Vm9BZj/31VPiiQTLBg== + dependencies: + "@babel/runtime" "^7.23.2" + "@rc-component/portal" "^1.1.0" + classnames "^2.3.2" + rc-motion "^2.0.0" + rc-resize-observer "^1.3.1" + rc-util "^5.44.0" + +"@remix-run/router@1.23.1": + version "1.23.1" + resolved "https://registry.npmmirror.com/@remix-run/router/-/router-1.23.1.tgz#0ce8857b024e24fc427585316383ad9d295b3a7f" + integrity sha512-vDbaOzF7yT2Qs4vO6XV1MHcJv+3dgR1sT+l3B8xxOVhUC336prMvqrvsLL/9Dnw2xr6Qhz4J0dmS0llNAbnUmQ== + +"@rolldown/pluginutils@1.0.0-beta.27": + version "1.0.0-beta.27" + resolved "https://registry.npmmirror.com/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz#47d2bf4cef6d470b22f5831b420f8964e0bf755f" + integrity sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA== + +"@rollup/rollup-android-arm-eabi@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.53.5.tgz#3d12635170ef3d32aa9222b4fb92b5d5400f08e9" + integrity sha512-iDGS/h7D8t7tvZ1t6+WPK04KD0MwzLZrG0se1hzBjSi5fyxlsiggoJHwh18PCFNn7tG43OWb6pdZ6Y+rMlmyNQ== + +"@rollup/rollup-android-arm64@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.53.5.tgz#cd2a448be8fb337f6e5ca12a3053a407ac80766d" + integrity sha512-wrSAViWvZHBMMlWk6EJhvg8/rjxzyEhEdgfMMjREHEq11EtJ6IP6yfcCH57YAEca2Oe3FNCE9DSTgU70EIGmVw== + +"@rollup/rollup-darwin-arm64@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.53.5.tgz#651263a5eb362a3730f8d5df2a55d1dab8a6a720" + integrity sha512-S87zZPBmRO6u1YXQLwpveZm4JfPpAa6oHBX7/ghSiGH3rz/KDgAu1rKdGutV+WUI6tKDMbaBJomhnT30Y2t4VQ== + +"@rollup/rollup-darwin-x64@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.53.5.tgz#76956ce183eb461a58735770b7bf3030a549ceea" + integrity sha512-YTbnsAaHo6VrAczISxgpTva8EkfQus0VPEVJCEaboHtZRIb6h6j0BNxRBOwnDciFTZLDPW5r+ZBmhL/+YpTZgA== + +"@rollup/rollup-freebsd-arm64@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.53.5.tgz#287448b57d619007b14d34ed35bf1bc4f41c023b" + integrity sha512-1T8eY2J8rKJWzaznV7zedfdhD1BqVs1iqILhmHDq/bqCUZsrMt+j8VCTHhP0vdfbHK3e1IQ7VYx3jlKqwlf+vw== + +"@rollup/rollup-freebsd-x64@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.53.5.tgz#e6dca813e189aa189dab821ea8807f48873b80f2" + integrity sha512-sHTiuXyBJApxRn+VFMaw1U+Qsz4kcNlxQ742snICYPrY+DDL8/ZbaC4DVIB7vgZmp3jiDaKA0WpBdP0aqPJoBQ== + +"@rollup/rollup-linux-arm-gnueabihf@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.53.5.tgz#74045a96fa6c5b1b1269440a68d1496d34b1730a" + integrity sha512-dV3T9MyAf0w8zPVLVBptVlzaXxka6xg1f16VAQmjg+4KMSTWDvhimI/Y6mp8oHwNrmnmVl9XxJ/w/mO4uIQONA== + +"@rollup/rollup-linux-arm-musleabihf@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.53.5.tgz#7d175bddc9acffc40431ee3fb9417136ccc499e1" + integrity sha512-wIGYC1x/hyjP+KAu9+ewDI+fi5XSNiUi9Bvg6KGAh2TsNMA3tSEs+Sh6jJ/r4BV/bx/CyWu2ue9kDnIdRyafcQ== + +"@rollup/rollup-linux-arm64-gnu@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.53.5.tgz#228b0aec95b24f4080175b51396cd14cb275e38f" + integrity sha512-Y+qVA0D9d0y2FRNiG9oM3Hut/DgODZbU9I8pLLPwAsU0tUKZ49cyV1tzmB/qRbSzGvY8lpgGkJuMyuhH7Ma+Vg== + +"@rollup/rollup-linux-arm64-musl@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.53.5.tgz#079050e023fad9bbb95d1d36fcfad23eeb0e1caa" + integrity sha512-juaC4bEgJsyFVfqhtGLz8mbopaWD+WeSOYr5E16y+1of6KQjc0BpwZLuxkClqY1i8sco+MdyoXPNiCkQou09+g== + +"@rollup/rollup-linux-loong64-gnu@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.53.5.tgz#3849451858c4d5c8838b5e16ec339b8e49aaf68a" + integrity sha512-rIEC0hZ17A42iXtHX+EPJVL/CakHo+tT7W0pbzdAGuWOt2jxDFh7A/lRhsNHBcqL4T36+UiAgwO8pbmn3dE8wA== + +"@rollup/rollup-linux-ppc64-gnu@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.53.5.tgz#10bdab69c660f6f7b48e23f17c42637aa1f9b29a" + integrity sha512-T7l409NhUE552RcAOcmJHj3xyZ2h7vMWzcwQI0hvn5tqHh3oSoclf9WgTl+0QqffWFG8MEVZZP1/OBglKZx52Q== + +"@rollup/rollup-linux-riscv64-gnu@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.53.5.tgz#c0e776c6193369ee16f8e9ebf6a6ec09828d603d" + integrity sha512-7OK5/GhxbnrMcxIFoYfhV/TkknarkYC1hqUw1wU2xUN3TVRLNT5FmBv4KkheSG2xZ6IEbRAhTooTV2+R5Tk0lQ== + +"@rollup/rollup-linux-riscv64-musl@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.53.5.tgz#6fcfb9084822036b9e4ff66e5c8b472d77226fae" + integrity sha512-GwuDBE/PsXaTa76lO5eLJTyr2k8QkPipAyOrs4V/KJufHCZBJ495VCGJol35grx9xryk4V+2zd3Ri+3v7NPh+w== + +"@rollup/rollup-linux-s390x-gnu@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.53.5.tgz#204bf1f758b65263adad3183d1ea7c9fc333e453" + integrity sha512-IAE1Ziyr1qNfnmiQLHBURAD+eh/zH1pIeJjeShleII7Vj8kyEm2PF77o+lf3WTHDpNJcu4IXJxNO0Zluro8bOw== + +"@rollup/rollup-linux-x64-gnu@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.53.5.tgz#704a927285c370b4481a77e5a6468ebc841f72ca" + integrity sha512-Pg6E+oP7GvZ4XwgRJBuSXZjcqpIW3yCBhK4BcsANvb47qMvAbCjR6E+1a/U2WXz1JJxp9/4Dno3/iSJLcm5auw== + +"@rollup/rollup-linux-x64-musl@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.53.5.tgz#3a7ccf6239f7efc6745b95075cf855b137cd0b52" + integrity sha512-txGtluxDKTxaMDzUduGP0wdfng24y1rygUMnmlUJ88fzCCULCLn7oE5kb2+tRB+MWq1QDZT6ObT5RrR8HFRKqg== + +"@rollup/rollup-openharmony-arm64@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.53.5.tgz#cb29644e4330b8d9aec0c594bf092222545db218" + integrity sha512-3DFiLPnTxiOQV993fMc+KO8zXHTcIjgaInrqlG8zDp1TlhYl6WgrOHuJkJQ6M8zHEcntSJsUp1XFZSY8C1DYbg== + +"@rollup/rollup-win32-arm64-msvc@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.53.5.tgz#bae9daf924900b600f6a53c0659b12cb2f6c33e4" + integrity sha512-nggc/wPpNTgjGg75hu+Q/3i32R00Lq1B6N1DO7MCU340MRKL3WZJMjA9U4K4gzy3dkZPXm9E1Nc81FItBVGRlA== + +"@rollup/rollup-win32-ia32-msvc@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.53.5.tgz#48002d2b9e4ab93049acd0d399c7aa7f7c5f363c" + integrity sha512-U/54pTbdQpPLBdEzCT6NBCFAfSZMvmjr0twhnD9f4EIvlm9wy3jjQ38yQj1AGznrNO65EWQMgm/QUjuIVrYF9w== + +"@rollup/rollup-win32-x64-gnu@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.53.5.tgz#aa0344b25dc31f2d822caf886786e377b45e660b" + integrity sha512-2NqKgZSuLH9SXBBV2dWNRCZmocgSOx8OJSdpRaEcRlIfX8YrKxUT6z0F1NpvDVhOsl190UFTRh2F2WDWWCYp3A== + +"@rollup/rollup-win32-x64-msvc@4.53.5": + version "4.53.5" + resolved "https://registry.npmmirror.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.53.5.tgz#e0d19dffcf25f0fd86f50402a3413004003939e9" + integrity sha512-JRpZUhCfhZ4keB5v0fe02gQJy05GqboPOaxvjugW04RLSYYoB/9t2lx2u/tMs/Na/1NXfY8QYjgRljRpN+MjTQ== + +"@types/babel__core@^7.20.5": + version "7.20.5" + resolved "https://registry.npmmirror.com/@types/babel__core/-/babel__core-7.20.5.tgz#3df15f27ba85319caa07ba08d0721889bb39c017" + integrity sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA== + dependencies: + "@babel/parser" "^7.20.7" + "@babel/types" "^7.20.7" + "@types/babel__generator" "*" + "@types/babel__template" "*" + "@types/babel__traverse" "*" + +"@types/babel__generator@*": + version "7.27.0" + resolved "https://registry.npmmirror.com/@types/babel__generator/-/babel__generator-7.27.0.tgz#b5819294c51179957afaec341442f9341e4108a9" + integrity sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg== + dependencies: + "@babel/types" "^7.0.0" + +"@types/babel__template@*": + version "7.4.4" + resolved "https://registry.npmmirror.com/@types/babel__template/-/babel__template-7.4.4.tgz#5672513701c1b2199bc6dad636a9d7491586766f" + integrity sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + +"@types/babel__traverse@*": + version "7.28.0" + resolved "https://registry.npmmirror.com/@types/babel__traverse/-/babel__traverse-7.28.0.tgz#07d713d6cce0d265c9849db0cbe62d3f61f36f74" + integrity sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q== + dependencies: + "@babel/types" "^7.28.2" + +"@types/debug@^4.0.0": + version "4.1.12" + resolved "https://registry.npmmirror.com/@types/debug/-/debug-4.1.12.tgz#a155f21690871953410df4b6b6f53187f0500917" + integrity sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ== + dependencies: + "@types/ms" "*" + +"@types/estree-jsx@^1.0.0": + version "1.0.5" + resolved "https://registry.npmmirror.com/@types/estree-jsx/-/estree-jsx-1.0.5.tgz#858a88ea20f34fe65111f005a689fa1ebf70dc18" + integrity sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg== + dependencies: + "@types/estree" "*" + +"@types/estree@*", "@types/estree@1.0.8", "@types/estree@^1.0.0": + version "1.0.8" + resolved "https://registry.npmmirror.com/@types/estree/-/estree-1.0.8.tgz#958b91c991b1867ced318bedea0e215ee050726e" + integrity sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w== + +"@types/hast@^2.0.0": + version "2.3.10" + resolved "https://registry.npmmirror.com/@types/hast/-/hast-2.3.10.tgz#5c9d9e0b304bbb8879b857225c5ebab2d81d7643" + integrity sha512-McWspRw8xx8J9HurkVBfYj0xKoE25tOFlHGdx4MJ5xORQrMGZNqJhVQWaIbm6Oyla5kYOXtDiopzKRJzEOkwJw== + dependencies: + "@types/unist" "^2" + +"@types/hast@^3.0.0": + version "3.0.4" + resolved "https://registry.npmmirror.com/@types/hast/-/hast-3.0.4.tgz#1d6b39993b82cea6ad783945b0508c25903e15aa" + integrity sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ== + dependencies: + "@types/unist" "*" + +"@types/mdast@^4.0.0": + version "4.0.4" + resolved "https://registry.npmmirror.com/@types/mdast/-/mdast-4.0.4.tgz#7ccf72edd2f1aa7dd3437e180c64373585804dd6" + integrity sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA== + dependencies: + "@types/unist" "*" + +"@types/ms@*": + version "2.1.0" + resolved "https://registry.npmmirror.com/@types/ms/-/ms-2.1.0.tgz#052aa67a48eccc4309d7f0191b7e41434b90bb78" + integrity sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA== + +"@types/prismjs@^1.0.0": + version "1.26.5" + resolved "https://registry.npmmirror.com/@types/prismjs/-/prismjs-1.26.5.tgz#72499abbb4c4ec9982446509d2f14fb8483869d6" + integrity sha512-AUZTa7hQ2KY5L7AmtSiqxlhWxb4ina0yd8hNbl4TWuqnv/pFP0nDMb3YrfSBf4hJVGLh2YEIBfKaBW/9UEl6IQ== + +"@types/prop-types@*": + version "15.7.15" + resolved "https://registry.npmmirror.com/@types/prop-types/-/prop-types-15.7.15.tgz#e6e5a86d602beaca71ce5163fadf5f95d70931c7" + integrity sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw== + +"@types/react-dom@^18.2.17": + version "18.3.7" + resolved "https://registry.npmmirror.com/@types/react-dom/-/react-dom-18.3.7.tgz#b89ddf2cd83b4feafcc4e2ea41afdfb95a0d194f" + integrity sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ== + +"@types/react@^18.2.43": + version "18.3.27" + resolved "https://registry.npmmirror.com/@types/react/-/react-18.3.27.tgz#74a3b590ea183983dc65a474dc17553ae1415c34" + integrity sha512-cisd7gxkzjBKU2GgdYrTdtQx1SORymWyaAFhaxQPK9bYO9ot3Y5OikQRvY0VYQtvwjeQnizCINJAenh/V7MK2w== + dependencies: + "@types/prop-types" "*" + csstype "^3.2.2" + +"@types/unist@*", "@types/unist@^3.0.0": + version "3.0.3" + resolved "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz#acaab0f919ce69cce629c2d4ed2eb4adc1b6c20c" + integrity sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q== + +"@types/unist@^2", "@types/unist@^2.0.0": + version "2.0.11" + resolved "https://registry.npmmirror.com/@types/unist/-/unist-2.0.11.tgz#11af57b127e32487774841f7a4e54eab166d03c4" + integrity sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA== + +"@uiw/copy-to-clipboard@~1.0.12": + version "1.0.19" + resolved "https://registry.npmmirror.com/@uiw/copy-to-clipboard/-/copy-to-clipboard-1.0.19.tgz#daaab63e1c3030d9a2f61bf853380667691d3f6c" + integrity sha512-AYxzFUBkZrhtExb2QC0C4lFH2+BSx6JVId9iqeGHakBuosqiQHUQaNZCvIBeM97Ucp+nJ22flOh8FBT2pKRRAA== + +"@uiw/react-markdown-preview@^5.0.6": + version "5.1.5" + resolved "https://registry.npmmirror.com/@uiw/react-markdown-preview/-/react-markdown-preview-5.1.5.tgz#c8fa17c7e88be826ff376cb7b48eff0ffb296a2c" + integrity sha512-DNOqx1a6gJR7Btt57zpGEKTfHRlb7rWbtctMRO2f82wWcuoJsxPBrM+JWebDdOD0LfD8oe2CQvW2ICQJKHQhZg== + dependencies: + "@babel/runtime" "^7.17.2" + "@uiw/copy-to-clipboard" "~1.0.12" + react-markdown "~9.0.1" + rehype-attr "~3.0.1" + rehype-autolink-headings "~7.1.0" + rehype-ignore "^2.0.0" + rehype-prism-plus "2.0.0" + rehype-raw "^7.0.0" + rehype-rewrite "~4.0.0" + rehype-slug "~6.0.0" + remark-gfm "~4.0.0" + remark-github-blockquote-alert "^1.0.0" + unist-util-visit "^5.0.0" + +"@uiw/react-md-editor@^4.0.4": + version "4.0.11" + resolved "https://registry.npmmirror.com/@uiw/react-md-editor/-/react-md-editor-4.0.11.tgz#cd33452fe83b91c836badfee567c8d0b57c1a8b8" + integrity sha512-F0OR5O1v54EkZYvJj3ew0I7UqLiPeU34hMAY4MdXS3hI86rruYi5DHVkG/VuvLkUZW7wIETM2QFtZ459gKIjQA== + dependencies: + "@babel/runtime" "^7.14.6" + "@uiw/react-markdown-preview" "^5.0.6" + rehype "~13.0.0" + rehype-prism-plus "~2.0.0" + +"@ungap/structured-clone@^1.0.0", "@ungap/structured-clone@^1.2.0": + version "1.3.0" + resolved "https://registry.npmmirror.com/@ungap/structured-clone/-/structured-clone-1.3.0.tgz#d06bbb384ebcf6c505fde1c3d0ed4ddffe0aaff8" + integrity sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g== + +"@vitejs/plugin-react@^4.2.1": + version "4.7.0" + resolved "https://registry.npmmirror.com/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz#647af4e7bb75ad3add578e762ad984b90f4a24b9" + integrity sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA== + dependencies: + "@babel/core" "^7.28.0" + "@babel/plugin-transform-react-jsx-self" "^7.27.1" + "@babel/plugin-transform-react-jsx-source" "^7.27.1" + "@rolldown/pluginutils" "1.0.0-beta.27" + "@types/babel__core" "^7.20.5" + react-refresh "^0.17.0" + +acorn-jsx@^5.3.2: + version "5.3.2" + resolved "https://registry.npmmirror.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== + +acorn@^8.9.0: + version "8.15.0" + resolved "https://registry.npmmirror.com/acorn/-/acorn-8.15.0.tgz#a360898bc415edaac46c8241f6383975b930b816" + integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg== + +ajv@^6.12.4: + version "6.12.6" + resolved "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +antd@^5.12.0: + version "5.29.3" + resolved "https://registry.npmmirror.com/antd/-/antd-5.29.3.tgz#404eda9f9716b2ff9b06251dfecb7028d7c4de40" + integrity sha512-3DdbGCa9tWAJGcCJ6rzR8EJFsv2CtyEbkVabZE14pfgUHfCicWCj0/QzQVLDYg8CPfQk9BH7fHCoTXHTy7MP/A== + dependencies: + "@ant-design/colors" "^7.2.1" + "@ant-design/cssinjs" "^1.23.0" + "@ant-design/cssinjs-utils" "^1.1.3" + "@ant-design/fast-color" "^2.0.6" + "@ant-design/icons" "^5.6.1" + "@ant-design/react-slick" "~1.1.2" + "@babel/runtime" "^7.26.0" + "@rc-component/color-picker" "~2.0.1" + "@rc-component/mutate-observer" "^1.1.0" + "@rc-component/qrcode" "~1.1.0" + "@rc-component/tour" "~1.15.1" + "@rc-component/trigger" "^2.3.0" + classnames "^2.5.1" + copy-to-clipboard "^3.3.3" + dayjs "^1.11.11" + rc-cascader "~3.34.0" + rc-checkbox "~3.5.0" + rc-collapse "~3.9.0" + rc-dialog "~9.6.0" + rc-drawer "~7.3.0" + rc-dropdown "~4.2.1" + rc-field-form "~2.7.1" + rc-image "~7.12.0" + rc-input "~1.8.0" + rc-input-number "~9.5.0" + rc-mentions "~2.20.0" + rc-menu "~9.16.1" + rc-motion "^2.9.5" + rc-notification "~5.6.4" + rc-pagination "~5.1.0" + rc-picker "~4.11.3" + rc-progress "~4.0.0" + rc-rate "~2.13.1" + rc-resize-observer "^1.4.3" + rc-segmented "~2.7.0" + rc-select "~14.16.8" + rc-slider "~11.1.9" + rc-steps "~6.0.1" + rc-switch "~4.1.0" + rc-table "~7.54.0" + rc-tabs "~15.7.0" + rc-textarea "~1.10.2" + rc-tooltip "~6.4.0" + rc-tree "~5.13.1" + rc-tree-select "~5.27.0" + rc-upload "~4.11.0" + rc-util "^5.44.4" + scroll-into-view-if-needed "^3.1.0" + throttle-debounce "^5.0.2" + +any-promise@^1.0.0: + version "1.3.0" + resolved "https://registry.npmmirror.com/any-promise/-/any-promise-1.3.0.tgz#abc6afeedcea52e809cdc0376aed3ce39635d17f" + integrity sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A== + +anymatch@~3.1.2: + version "3.1.3" + resolved "https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" + integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +arg@^5.0.2: + version "5.0.2" + resolved "https://registry.npmmirror.com/arg/-/arg-5.0.2.tgz#c81433cc427c92c4dcf4865142dbca6f15acd59c" + integrity sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg== + +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.npmmirror.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + +array-buffer-byte-length@^1.0.1, array-buffer-byte-length@^1.0.2: + version "1.0.2" + resolved "https://registry.npmmirror.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz#384d12a37295aec3769ab022ad323a18a51ccf8b" + integrity sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw== + dependencies: + call-bound "^1.0.3" + is-array-buffer "^3.0.5" + +array-includes@^3.1.6, array-includes@^3.1.8: + version "3.1.9" + resolved "https://registry.npmmirror.com/array-includes/-/array-includes-3.1.9.tgz#1f0ccaa08e90cdbc3eb433210f903ad0f17c3f3a" + integrity sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.4" + define-properties "^1.2.1" + es-abstract "^1.24.0" + es-object-atoms "^1.1.1" + get-intrinsic "^1.3.0" + is-string "^1.1.1" + math-intrinsics "^1.1.0" + +array.prototype.findlast@^1.2.5: + version "1.2.5" + resolved "https://registry.npmmirror.com/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz#3e4fbcb30a15a7f5bf64cf2faae22d139c2e4904" + integrity sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ== + dependencies: + call-bind "^1.0.7" + define-properties "^1.2.1" + es-abstract "^1.23.2" + es-errors "^1.3.0" + es-object-atoms "^1.0.0" + es-shim-unscopables "^1.0.2" + +array.prototype.flat@^1.3.1: + version "1.3.3" + resolved "https://registry.npmmirror.com/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz#534aaf9e6e8dd79fb6b9a9917f839ef1ec63afe5" + integrity sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg== + dependencies: + call-bind "^1.0.8" + define-properties "^1.2.1" + es-abstract "^1.23.5" + es-shim-unscopables "^1.0.2" + +array.prototype.flatmap@^1.3.3: + version "1.3.3" + resolved "https://registry.npmmirror.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz#712cc792ae70370ae40586264629e33aab5dd38b" + integrity sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg== + dependencies: + call-bind "^1.0.8" + define-properties "^1.2.1" + es-abstract "^1.23.5" + es-shim-unscopables "^1.0.2" + +array.prototype.tosorted@^1.1.4: + version "1.1.4" + resolved "https://registry.npmmirror.com/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz#fe954678ff53034e717ea3352a03f0b0b86f7ffc" + integrity sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA== + dependencies: + call-bind "^1.0.7" + define-properties "^1.2.1" + es-abstract "^1.23.3" + es-errors "^1.3.0" + es-shim-unscopables "^1.0.2" + +arraybuffer.prototype.slice@^1.0.4: + version "1.0.4" + resolved "https://registry.npmmirror.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz#9d760d84dbdd06d0cbf92c8849615a1a7ab3183c" + integrity sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ== + dependencies: + array-buffer-byte-length "^1.0.1" + call-bind "^1.0.8" + define-properties "^1.2.1" + es-abstract "^1.23.5" + es-errors "^1.3.0" + get-intrinsic "^1.2.6" + is-array-buffer "^3.0.4" + +async-function@^1.0.0: + version "1.0.0" + resolved "https://registry.npmmirror.com/async-function/-/async-function-1.0.0.tgz#509c9fca60eaf85034c6829838188e4e4c8ffb2b" + integrity sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA== + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== + +autoprefixer@^10.4.16: + version "10.4.23" + resolved "https://registry.npmmirror.com/autoprefixer/-/autoprefixer-10.4.23.tgz#c6aa6db8e7376fcd900f9fd79d143ceebad8c4e6" + integrity sha512-YYTXSFulfwytnjAPlw8QHncHJmlvFKtczb8InXaAx9Q0LbfDnfEYDE55omerIJKihhmU61Ft+cAOSzQVaBUmeA== + dependencies: + browserslist "^4.28.1" + caniuse-lite "^1.0.30001760" + fraction.js "^5.3.4" + picocolors "^1.1.1" + postcss-value-parser "^4.2.0" + +available-typed-arrays@^1.0.7: + version "1.0.7" + resolved "https://registry.npmmirror.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz#a5cc375d6a03c2efc87a553f3e0b1522def14846" + integrity sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ== + dependencies: + possible-typed-array-names "^1.0.0" + +axios@^1.6.2: + version "1.13.2" + resolved "https://registry.npmmirror.com/axios/-/axios-1.13.2.tgz#9ada120b7b5ab24509553ec3e40123521117f687" + integrity sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA== + dependencies: + follow-redirects "^1.15.6" + form-data "^4.0.4" + proxy-from-env "^1.1.0" + +bail@^2.0.0: + version "2.0.2" + resolved "https://registry.npmmirror.com/bail/-/bail-2.0.2.tgz#d26f5cd8fe5d6f832a31517b9f7c356040ba6d5d" + integrity sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw== + +balanced-match@^1.0.0: + version "1.0.2" + resolved "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" + integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== + +baseline-browser-mapping@^2.9.0: + version "2.9.11" + resolved "https://registry.npmmirror.com/baseline-browser-mapping/-/baseline-browser-mapping-2.9.11.tgz#53724708c8db5f97206517ecfe362dbe5181deea" + integrity sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ== + +bcp-47-match@^2.0.0: + version "2.0.3" + resolved "https://registry.npmmirror.com/bcp-47-match/-/bcp-47-match-2.0.3.tgz#603226f6e5d3914a581408be33b28a53144b09d0" + integrity sha512-JtTezzbAibu8G0R9op9zb3vcWZd9JF6M0xOYGPn0fNCd7wOpRB1mU2mH9T8gaBGbAAyIIVgB2G7xG0GP98zMAQ== + +binary-extensions@^2.0.0: + version "2.3.0" + resolved "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" + integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw== + +boolbase@^1.0.0: + version "1.0.0" + resolved "https://registry.npmmirror.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" + integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww== + +brace-expansion@^1.1.7: + version "1.1.12" + resolved "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.12.tgz#ab9b454466e5a8cc3a187beaad580412a9c5b843" + integrity sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +braces@^3.0.3, braces@~3.0.2: + version "3.0.3" + resolved "https://registry.npmmirror.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" + integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== + dependencies: + fill-range "^7.1.1" + +browserslist@^4.24.0, browserslist@^4.28.1: + version "4.28.1" + resolved "https://registry.npmmirror.com/browserslist/-/browserslist-4.28.1.tgz#7f534594628c53c63101079e27e40de490456a95" + integrity sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA== + dependencies: + baseline-browser-mapping "^2.9.0" + caniuse-lite "^1.0.30001759" + electron-to-chromium "^1.5.263" + node-releases "^2.0.27" + update-browserslist-db "^1.2.0" + +call-bind-apply-helpers@^1.0.0, call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: + version "1.0.2" + resolved "https://registry.npmmirror.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6" + integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== + dependencies: + es-errors "^1.3.0" + function-bind "^1.1.2" + +call-bind@^1.0.7, call-bind@^1.0.8: + version "1.0.8" + resolved "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.8.tgz#0736a9660f537e3388826f440d5ec45f744eaa4c" + integrity sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww== + dependencies: + call-bind-apply-helpers "^1.0.0" + es-define-property "^1.0.0" + get-intrinsic "^1.2.4" + set-function-length "^1.2.2" + +call-bound@^1.0.2, call-bound@^1.0.3, call-bound@^1.0.4: + version "1.0.4" + resolved "https://registry.npmmirror.com/call-bound/-/call-bound-1.0.4.tgz#238de935d2a2a692928c538c7ccfa91067fd062a" + integrity sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg== + dependencies: + call-bind-apply-helpers "^1.0.2" + get-intrinsic "^1.3.0" + +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.npmmirror.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + +camelcase-css@^2.0.1: + version "2.0.1" + resolved "https://registry.npmmirror.com/camelcase-css/-/camelcase-css-2.0.1.tgz#ee978f6947914cc30c6b44741b6ed1df7f043fd5" + integrity sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA== + +caniuse-lite@^1.0.30001759, caniuse-lite@^1.0.30001760: + version "1.0.30001761" + resolved "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001761.tgz#4ca4c6e3792b24e8e2214baa568fc0e43de28191" + integrity sha512-JF9ptu1vP2coz98+5051jZ4PwQgd2ni8A+gYSN7EA7dPKIMf0pDlSUxhdmVOaV3/fYK5uWBkgSXJaRLr4+3A6g== + +ccount@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/ccount/-/ccount-2.0.1.tgz#17a3bf82302e0870d6da43a01311a8bc02a3ecf5" + integrity sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg== + +chalk@^4.0.0: + version "4.1.2" + resolved "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +character-entities-html4@^2.0.0: + version "2.1.0" + resolved "https://registry.npmmirror.com/character-entities-html4/-/character-entities-html4-2.1.0.tgz#1f1adb940c971a4b22ba39ddca6b618dc6e56b2b" + integrity sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA== + +character-entities-legacy@^3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz#76bc83a90738901d7bc223a9e93759fdd560125b" + integrity sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ== + +character-entities@^2.0.0: + version "2.0.2" + resolved "https://registry.npmmirror.com/character-entities/-/character-entities-2.0.2.tgz#2d09c2e72cd9523076ccb21157dff66ad43fcc22" + integrity sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ== + +character-reference-invalid@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz#85c66b041e43b47210faf401278abf808ac45cb9" + integrity sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw== + +chokidar@^3.6.0: + version "3.6.0" + resolved "https://registry.npmmirror.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" + integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== + dependencies: + anymatch "~3.1.2" + braces "~3.0.2" + glob-parent "~5.1.2" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.6.0" + optionalDependencies: + fsevents "~2.3.2" + +classnames@2.x, classnames@^2.2.1, classnames@^2.2.3, classnames@^2.2.5, classnames@^2.2.6, classnames@^2.3.1, classnames@^2.3.2, classnames@^2.5.1: + version "2.5.1" + resolved "https://registry.npmmirror.com/classnames/-/classnames-2.5.1.tgz#ba774c614be0f016da105c858e7159eae8e7687b" + integrity sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow== + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +comma-separated-tokens@^2.0.0: + version "2.0.3" + resolved "https://registry.npmmirror.com/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz#4e89c9458acb61bc8fef19f4529973b2392839ee" + integrity sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg== + +commander@^4.0.0: + version "4.1.1" + resolved "https://registry.npmmirror.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068" + integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== + +compute-scroll-into-view@^3.0.2: + version "3.1.1" + resolved "https://registry.npmmirror.com/compute-scroll-into-view/-/compute-scroll-into-view-3.1.1.tgz#02c3386ec531fb6a9881967388e53e8564f3e9aa" + integrity sha512-VRhuHOLoKYOy4UbilLbUzbYg93XLjv2PncJC50EuTWPA3gaja1UjBsUP/D/9/juV3vQFr6XBEzn9KCAHdUvOHw== + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== + +convert-source-map@^2.0.0: + version "2.0.0" + resolved "https://registry.npmmirror.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" + integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== + +copy-to-clipboard@^3.3.3: + version "3.3.3" + resolved "https://registry.npmmirror.com/copy-to-clipboard/-/copy-to-clipboard-3.3.3.tgz#55ac43a1db8ae639a4bd99511c148cdd1b83a1b0" + integrity sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA== + dependencies: + toggle-selection "^1.0.6" + +cross-spawn@^7.0.2: + version "7.0.6" + resolved "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f" + integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +css-selector-parser@^3.0.0: + version "3.3.0" + resolved "https://registry.npmmirror.com/css-selector-parser/-/css-selector-parser-3.3.0.tgz#1a34220d76762c929ae99993df5a60721f505082" + integrity sha512-Y2asgMGFqJKF4fq4xHDSlFYIkeVfRsm69lQC1q9kbEsH5XtnINTMrweLkjYMeaUgiXBy/uvKeO/a1JHTNnmB2g== + +cssesc@^3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" + integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== + +csstype@^3.1.3, csstype@^3.2.2: + version "3.2.3" + resolved "https://registry.npmmirror.com/csstype/-/csstype-3.2.3.tgz#ec48c0f3e993e50648c86da559e2610995cf989a" + integrity sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ== + +data-view-buffer@^1.0.2: + version "1.0.2" + resolved "https://registry.npmmirror.com/data-view-buffer/-/data-view-buffer-1.0.2.tgz#211a03ba95ecaf7798a8c7198d79536211f88570" + integrity sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ== + dependencies: + call-bound "^1.0.3" + es-errors "^1.3.0" + is-data-view "^1.0.2" + +data-view-byte-length@^1.0.2: + version "1.0.2" + resolved "https://registry.npmmirror.com/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz#9e80f7ca52453ce3e93d25a35318767ea7704735" + integrity sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ== + dependencies: + call-bound "^1.0.3" + es-errors "^1.3.0" + is-data-view "^1.0.2" + +data-view-byte-offset@^1.0.1: + version "1.0.1" + resolved "https://registry.npmmirror.com/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz#068307f9b71ab76dbbe10291389e020856606191" + integrity sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + is-data-view "^1.0.1" + +dayjs@^1.11.10, dayjs@^1.11.11: + version "1.11.19" + resolved "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.19.tgz#15dc98e854bb43917f12021806af897c58ae2938" + integrity sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw== + +debug@^4.0.0, debug@^4.1.0, debug@^4.3.1, debug@^4.3.2: + version "4.4.3" + resolved "https://registry.npmmirror.com/debug/-/debug-4.4.3.tgz#c6ae432d9bd9662582fce08709b038c58e9e3d6a" + integrity sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA== + dependencies: + ms "^2.1.3" + +decode-named-character-reference@^1.0.0: + version "1.2.0" + resolved "https://registry.npmmirror.com/decode-named-character-reference/-/decode-named-character-reference-1.2.0.tgz#25c32ae6dd5e21889549d40f676030e9514cc0ed" + integrity sha512-c6fcElNV6ShtZXmsgNgFFV5tVX2PaV4g+MOAkb8eXHvn6sryJBrZa9r0zV6+dtTyoCKxtDy5tyQ5ZwQuidtd+Q== + dependencies: + character-entities "^2.0.0" + +deep-is@^0.1.3: + version "0.1.4" + resolved "https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== + +define-data-property@^1.0.1, define-data-property@^1.1.4: + version "1.1.4" + resolved "https://registry.npmmirror.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" + integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + gopd "^1.0.1" + +define-properties@^1.1.3, define-properties@^1.2.1: + version "1.2.1" + resolved "https://registry.npmmirror.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c" + integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg== + dependencies: + define-data-property "^1.0.1" + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== + +dequal@^2.0.0: + version "2.0.3" + resolved "https://registry.npmmirror.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" + integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== + +devlop@^1.0.0, devlop@^1.1.0: + version "1.1.0" + resolved "https://registry.npmmirror.com/devlop/-/devlop-1.1.0.tgz#4db7c2ca4dc6e0e834c30be70c94bbc976dc7018" + integrity sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA== + dependencies: + dequal "^2.0.0" + +didyoumean@^1.2.2: + version "1.2.2" + resolved "https://registry.npmmirror.com/didyoumean/-/didyoumean-1.2.2.tgz#989346ffe9e839b4555ecf5666edea0d3e8ad037" + integrity sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw== + +direction@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/direction/-/direction-2.0.1.tgz#71800dd3c4fa102406502905d3866e65bdebb985" + integrity sha512-9S6m9Sukh1cZNknO1CWAr2QAWsbKLafQiyM5gZ7VgXHeuaoUwffKN4q6NC4A/Mf9iiPlOXQEKW/Mv/mh9/3YFA== + +dlv@^1.1.3: + version "1.1.3" + resolved "https://registry.npmmirror.com/dlv/-/dlv-1.1.3.tgz#5c198a8a11453596e751494d49874bc7732f2e79" + integrity sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA== + +doctrine@^2.1.0: + version "2.1.0" + resolved "https://registry.npmmirror.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" + integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== + dependencies: + esutils "^2.0.2" + +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== + dependencies: + esutils "^2.0.2" + +dunder-proto@^1.0.0, dunder-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.npmmirror.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a" + integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== + dependencies: + call-bind-apply-helpers "^1.0.1" + es-errors "^1.3.0" + gopd "^1.2.0" + +electron-to-chromium@^1.5.263: + version "1.5.267" + resolved "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz#5d84f2df8cdb6bfe7e873706bb21bd4bfb574dc7" + integrity sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw== + +entities@^6.0.0: + version "6.0.1" + resolved "https://registry.npmmirror.com/entities/-/entities-6.0.1.tgz#c28c34a43379ca7f61d074130b2f5f7020a30694" + integrity sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g== + +es-abstract@^1.17.5, es-abstract@^1.23.2, es-abstract@^1.23.3, es-abstract@^1.23.5, es-abstract@^1.23.6, es-abstract@^1.23.9, es-abstract@^1.24.0, es-abstract@^1.24.1: + version "1.24.1" + resolved "https://registry.npmmirror.com/es-abstract/-/es-abstract-1.24.1.tgz#f0c131ed5ea1bb2411134a8dd94def09c46c7899" + integrity sha512-zHXBLhP+QehSSbsS9Pt23Gg964240DPd6QCf8WpkqEXxQ7fhdZzYsocOr5u7apWonsS5EjZDmTF+/slGMyasvw== + dependencies: + array-buffer-byte-length "^1.0.2" + arraybuffer.prototype.slice "^1.0.4" + available-typed-arrays "^1.0.7" + call-bind "^1.0.8" + call-bound "^1.0.4" + data-view-buffer "^1.0.2" + data-view-byte-length "^1.0.2" + data-view-byte-offset "^1.0.1" + es-define-property "^1.0.1" + es-errors "^1.3.0" + es-object-atoms "^1.1.1" + es-set-tostringtag "^2.1.0" + es-to-primitive "^1.3.0" + function.prototype.name "^1.1.8" + get-intrinsic "^1.3.0" + get-proto "^1.0.1" + get-symbol-description "^1.1.0" + globalthis "^1.0.4" + gopd "^1.2.0" + has-property-descriptors "^1.0.2" + has-proto "^1.2.0" + has-symbols "^1.1.0" + hasown "^2.0.2" + internal-slot "^1.1.0" + is-array-buffer "^3.0.5" + is-callable "^1.2.7" + is-data-view "^1.0.2" + is-negative-zero "^2.0.3" + is-regex "^1.2.1" + is-set "^2.0.3" + is-shared-array-buffer "^1.0.4" + is-string "^1.1.1" + is-typed-array "^1.1.15" + is-weakref "^1.1.1" + math-intrinsics "^1.1.0" + object-inspect "^1.13.4" + object-keys "^1.1.1" + object.assign "^4.1.7" + own-keys "^1.0.1" + regexp.prototype.flags "^1.5.4" + safe-array-concat "^1.1.3" + safe-push-apply "^1.0.0" + safe-regex-test "^1.1.0" + set-proto "^1.0.0" + stop-iteration-iterator "^1.1.0" + string.prototype.trim "^1.2.10" + string.prototype.trimend "^1.0.9" + string.prototype.trimstart "^1.0.8" + typed-array-buffer "^1.0.3" + typed-array-byte-length "^1.0.3" + typed-array-byte-offset "^1.0.4" + typed-array-length "^1.0.7" + unbox-primitive "^1.1.0" + which-typed-array "^1.1.19" + +es-define-property@^1.0.0, es-define-property@^1.0.1: + version "1.0.1" + resolved "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa" + integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== + +es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== + +es-iterator-helpers@^1.2.1: + version "1.2.2" + resolved "https://registry.npmmirror.com/es-iterator-helpers/-/es-iterator-helpers-1.2.2.tgz#d979a9f686e2b0b72f88dbead7229924544720bc" + integrity sha512-BrUQ0cPTB/IwXj23HtwHjS9n7O4h9FX94b4xc5zlTHxeLgTAdzYUDyy6KdExAl9lbN5rtfe44xpjpmj9grxs5w== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.4" + define-properties "^1.2.1" + es-abstract "^1.24.1" + es-errors "^1.3.0" + es-set-tostringtag "^2.1.0" + function-bind "^1.1.2" + get-intrinsic "^1.3.0" + globalthis "^1.0.4" + gopd "^1.2.0" + has-property-descriptors "^1.0.2" + has-proto "^1.2.0" + has-symbols "^1.1.0" + internal-slot "^1.1.0" + iterator.prototype "^1.1.5" + safe-array-concat "^1.1.3" + +es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: + version "1.1.1" + resolved "https://registry.npmmirror.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz#1c4f2c4837327597ce69d2ca190a7fdd172338c1" + integrity sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA== + dependencies: + es-errors "^1.3.0" + +es-set-tostringtag@^2.1.0: + version "2.1.0" + resolved "https://registry.npmmirror.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz#f31dbbe0c183b00a6d26eb6325c810c0fd18bd4d" + integrity sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA== + dependencies: + es-errors "^1.3.0" + get-intrinsic "^1.2.6" + has-tostringtag "^1.0.2" + hasown "^2.0.2" + +es-shim-unscopables@^1.0.2: + version "1.1.0" + resolved "https://registry.npmmirror.com/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz#438df35520dac5d105f3943d927549ea3b00f4b5" + integrity sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw== + dependencies: + hasown "^2.0.2" + +es-to-primitive@^1.3.0: + version "1.3.0" + resolved "https://registry.npmmirror.com/es-to-primitive/-/es-to-primitive-1.3.0.tgz#96c89c82cc49fd8794a24835ba3e1ff87f214e18" + integrity sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g== + dependencies: + is-callable "^1.2.7" + is-date-object "^1.0.5" + is-symbol "^1.0.4" + +esbuild@^0.21.3: + version "0.21.5" + resolved "https://registry.npmmirror.com/esbuild/-/esbuild-0.21.5.tgz#9ca301b120922959b766360d8ac830da0d02997d" + integrity sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw== + optionalDependencies: + "@esbuild/aix-ppc64" "0.21.5" + "@esbuild/android-arm" "0.21.5" + "@esbuild/android-arm64" "0.21.5" + "@esbuild/android-x64" "0.21.5" + "@esbuild/darwin-arm64" "0.21.5" + "@esbuild/darwin-x64" "0.21.5" + "@esbuild/freebsd-arm64" "0.21.5" + "@esbuild/freebsd-x64" "0.21.5" + "@esbuild/linux-arm" "0.21.5" + "@esbuild/linux-arm64" "0.21.5" + "@esbuild/linux-ia32" "0.21.5" + "@esbuild/linux-loong64" "0.21.5" + "@esbuild/linux-mips64el" "0.21.5" + "@esbuild/linux-ppc64" "0.21.5" + "@esbuild/linux-riscv64" "0.21.5" + "@esbuild/linux-s390x" "0.21.5" + "@esbuild/linux-x64" "0.21.5" + "@esbuild/netbsd-x64" "0.21.5" + "@esbuild/openbsd-x64" "0.21.5" + "@esbuild/sunos-x64" "0.21.5" + "@esbuild/win32-arm64" "0.21.5" + "@esbuild/win32-ia32" "0.21.5" + "@esbuild/win32-x64" "0.21.5" + +escalade@^3.2.0: + version "3.2.0" + resolved "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" + integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== + +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + +escape-string-regexp@^5.0.0: + version "5.0.0" + resolved "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8" + integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== + +eslint-plugin-react-hooks@^4.6.0: + version "4.6.2" + resolved "https://registry.npmmirror.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz#c829eb06c0e6f484b3fbb85a97e57784f328c596" + integrity sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ== + +eslint-plugin-react-refresh@^0.4.5: + version "0.4.26" + resolved "https://registry.npmmirror.com/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.26.tgz#2bcdd109ea9fb4e0b56bb1b5146cf8841b21b626" + integrity sha512-1RETEylht2O6FM/MvgnyvT+8K21wLqDNg4qD51Zj3guhjt433XbnnkVttHMyaVyAFD03QSV4LPS5iE3VQmO7XQ== + +eslint-plugin-react@^7.33.2: + version "7.37.5" + resolved "https://registry.npmmirror.com/eslint-plugin-react/-/eslint-plugin-react-7.37.5.tgz#2975511472bdda1b272b34d779335c9b0e877065" + integrity sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA== + dependencies: + array-includes "^3.1.8" + array.prototype.findlast "^1.2.5" + array.prototype.flatmap "^1.3.3" + array.prototype.tosorted "^1.1.4" + doctrine "^2.1.0" + es-iterator-helpers "^1.2.1" + estraverse "^5.3.0" + hasown "^2.0.2" + jsx-ast-utils "^2.4.1 || ^3.0.0" + minimatch "^3.1.2" + object.entries "^1.1.9" + object.fromentries "^2.0.8" + object.values "^1.2.1" + prop-types "^15.8.1" + resolve "^2.0.0-next.5" + semver "^6.3.1" + string.prototype.matchall "^4.0.12" + string.prototype.repeat "^1.0.0" + +eslint-scope@^7.2.2: + version "7.2.2" + resolved "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" + integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== + dependencies: + esrecurse "^4.3.0" + estraverse "^5.2.0" + +eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: + version "3.4.3" + resolved "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" + integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== + +eslint@^8.55.0: + version "8.57.1" + resolved "https://registry.npmmirror.com/eslint/-/eslint-8.57.1.tgz#7df109654aba7e3bbe5c8eae533c5e461d3c6ca9" + integrity sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA== + dependencies: + "@eslint-community/eslint-utils" "^4.2.0" + "@eslint-community/regexpp" "^4.6.1" + "@eslint/eslintrc" "^2.1.4" + "@eslint/js" "8.57.1" + "@humanwhocodes/config-array" "^0.13.0" + "@humanwhocodes/module-importer" "^1.0.1" + "@nodelib/fs.walk" "^1.2.8" + "@ungap/structured-clone" "^1.2.0" + ajv "^6.12.4" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.3.2" + doctrine "^3.0.0" + escape-string-regexp "^4.0.0" + eslint-scope "^7.2.2" + eslint-visitor-keys "^3.4.3" + espree "^9.6.1" + esquery "^1.4.2" + esutils "^2.0.2" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + find-up "^5.0.0" + glob-parent "^6.0.2" + globals "^13.19.0" + graphemer "^1.4.0" + ignore "^5.2.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + is-path-inside "^3.0.3" + js-yaml "^4.1.0" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash.merge "^4.6.2" + minimatch "^3.1.2" + natural-compare "^1.4.0" + optionator "^0.9.3" + strip-ansi "^6.0.1" + text-table "^0.2.0" + +espree@^9.6.0, espree@^9.6.1: + version "9.6.1" + resolved "https://registry.npmmirror.com/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f" + integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== + dependencies: + acorn "^8.9.0" + acorn-jsx "^5.3.2" + eslint-visitor-keys "^3.4.1" + +esquery@^1.4.2: + version "1.6.0" + resolved "https://registry.npmmirror.com/esquery/-/esquery-1.6.0.tgz#91419234f804d852a82dceec3e16cdc22cf9dae7" + integrity sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg== + dependencies: + estraverse "^5.1.0" + +esrecurse@^4.3.0: + version "4.3.0" + resolved "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== + dependencies: + estraverse "^5.2.0" + +estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: + version "5.3.0" + resolved "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== + +estree-util-is-identifier-name@^3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz#0b5ef4c4ff13508b34dcd01ecfa945f61fce5dbd" + integrity sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg== + +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + +extend@^3.0.0: + version "3.0.2" + resolved "https://registry.npmmirror.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== + +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: + version "3.1.3" + resolved "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== + +fast-glob@^3.3.2: + version "3.3.3" + resolved "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.3.tgz#d06d585ce8dba90a16b0505c543c3ccfb3aeb818" + integrity sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.8" + +fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +fast-levenshtein@^2.0.6: + version "2.0.6" + resolved "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== + +fastq@^1.6.0: + version "1.19.1" + resolved "https://registry.npmmirror.com/fastq/-/fastq-1.19.1.tgz#d50eaba803c8846a883c16492821ebcd2cda55f5" + integrity sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ== + dependencies: + reusify "^1.0.4" + +fdir@^6.5.0: + version "6.5.0" + resolved "https://registry.npmmirror.com/fdir/-/fdir-6.5.0.tgz#ed2ab967a331ade62f18d077dae192684d50d350" + integrity sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg== + +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.npmmirror.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== + dependencies: + flat-cache "^3.0.4" + +fill-range@^7.1.1: + version "7.1.1" + resolved "https://registry.npmmirror.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" + integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg== + dependencies: + to-regex-range "^5.0.1" + +find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + +flat-cache@^3.0.4: + version "3.2.0" + resolved "https://registry.npmmirror.com/flat-cache/-/flat-cache-3.2.0.tgz#2c0c2d5040c99b1632771a9d105725c0115363ee" + integrity sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw== + dependencies: + flatted "^3.2.9" + keyv "^4.5.3" + rimraf "^3.0.2" + +flatted@^3.2.9: + version "3.3.3" + resolved "https://registry.npmmirror.com/flatted/-/flatted-3.3.3.tgz#67c8fad95454a7c7abebf74bb78ee74a44023358" + integrity sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg== + +follow-redirects@^1.15.6: + version "1.15.11" + resolved "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.11.tgz#777d73d72a92f8ec4d2e410eb47352a56b8e8340" + integrity sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ== + +for-each@^0.3.3, for-each@^0.3.5: + version "0.3.5" + resolved "https://registry.npmmirror.com/for-each/-/for-each-0.3.5.tgz#d650688027826920feeb0af747ee7b9421a41d47" + integrity sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg== + dependencies: + is-callable "^1.2.7" + +form-data@^4.0.4: + version "4.0.5" + resolved "https://registry.npmmirror.com/form-data/-/form-data-4.0.5.tgz#b49e48858045ff4cbf6b03e1805cebcad3679053" + integrity sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w== + 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" + +fraction.js@^5.3.4: + version "5.3.4" + resolved "https://registry.npmmirror.com/fraction.js/-/fraction.js-5.3.4.tgz#8c0fcc6a9908262df4ed197427bdeef563e0699a" + integrity sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ== + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== + +fsevents@~2.3.2, fsevents@~2.3.3: + version "2.3.3" + resolved "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + +function.prototype.name@^1.1.6, function.prototype.name@^1.1.8: + version "1.1.8" + resolved "https://registry.npmmirror.com/function.prototype.name/-/function.prototype.name-1.1.8.tgz#e68e1df7b259a5c949eeef95cdbde53edffabb78" + integrity sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.3" + define-properties "^1.2.1" + functions-have-names "^1.2.3" + hasown "^2.0.2" + is-callable "^1.2.7" + +functions-have-names@^1.2.3: + version "1.2.3" + resolved "https://registry.npmmirror.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" + integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== + +generator-function@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/generator-function/-/generator-function-2.0.1.tgz#0e75dd410d1243687a0ba2e951b94eedb8f737a2" + integrity sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g== + +gensync@^1.0.0-beta.2: + version "1.0.0-beta.2" + resolved "https://registry.npmmirror.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" + integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== + +get-intrinsic@^1.2.4, get-intrinsic@^1.2.5, get-intrinsic@^1.2.6, get-intrinsic@^1.2.7, get-intrinsic@^1.3.0: + version "1.3.0" + resolved "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz#743f0e3b6964a93a5491ed1bffaae054d7f98d01" + integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== + 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" + +get-proto@^1.0.0, get-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.npmmirror.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1" + integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== + dependencies: + dunder-proto "^1.0.1" + es-object-atoms "^1.0.0" + +get-symbol-description@^1.1.0: + version "1.1.0" + resolved "https://registry.npmmirror.com/get-symbol-description/-/get-symbol-description-1.1.0.tgz#7bdd54e0befe8ffc9f3b4e203220d9f1e881b6ee" + integrity sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg== + dependencies: + call-bound "^1.0.3" + es-errors "^1.3.0" + get-intrinsic "^1.2.6" + +github-slugger@^2.0.0: + version "2.0.0" + resolved "https://registry.npmmirror.com/github-slugger/-/github-slugger-2.0.0.tgz#52cf2f9279a21eb6c59dd385b410f0c0adda8f1a" + integrity sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw== + +glob-parent@^5.1.2, glob-parent@~5.1.2: + version "5.1.2" + resolved "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + +glob-parent@^6.0.2: + version "6.0.2" + resolved "https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== + dependencies: + is-glob "^4.0.3" + +glob@^7.1.3: + version "7.2.3" + resolved "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.1.1" + once "^1.3.0" + path-is-absolute "^1.0.0" + +globals@^13.19.0: + version "13.24.0" + resolved "https://registry.npmmirror.com/globals/-/globals-13.24.0.tgz#8432a19d78ce0c1e833949c36adb345400bb1171" + integrity sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ== + dependencies: + type-fest "^0.20.2" + +globalthis@^1.0.4: + version "1.0.4" + resolved "https://registry.npmmirror.com/globalthis/-/globalthis-1.0.4.tgz#7430ed3a975d97bfb59bcce41f5cabbafa651236" + integrity sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ== + dependencies: + define-properties "^1.2.1" + gopd "^1.0.1" + +gopd@^1.0.1, gopd@^1.2.0: + version "1.2.0" + resolved "https://registry.npmmirror.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1" + integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== + +graphemer@^1.4.0: + version "1.4.0" + resolved "https://registry.npmmirror.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" + integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== + +has-bigints@^1.0.2: + version "1.1.0" + resolved "https://registry.npmmirror.com/has-bigints/-/has-bigints-1.1.0.tgz#28607e965ac967e03cd2a2c70a2636a1edad49fe" + integrity sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg== + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.2: + version "1.0.2" + resolved "https://registry.npmmirror.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" + integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== + dependencies: + es-define-property "^1.0.0" + +has-proto@^1.2.0: + version "1.2.0" + resolved "https://registry.npmmirror.com/has-proto/-/has-proto-1.2.0.tgz#5de5a6eabd95fdffd9818b43055e8065e39fe9d5" + integrity sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ== + dependencies: + dunder-proto "^1.0.0" + +has-symbols@^1.0.3, has-symbols@^1.1.0: + version "1.1.0" + resolved "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338" + integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== + +has-tostringtag@^1.0.2: + version "1.0.2" + resolved "https://registry.npmmirror.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" + integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== + dependencies: + has-symbols "^1.0.3" + +hasown@^2.0.2: + version "2.0.2" + resolved "https://registry.npmmirror.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" + +hast-util-from-html@^2.0.0: + version "2.0.3" + resolved "https://registry.npmmirror.com/hast-util-from-html/-/hast-util-from-html-2.0.3.tgz#485c74785358beb80c4ba6346299311ac4c49c82" + integrity sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw== + dependencies: + "@types/hast" "^3.0.0" + devlop "^1.1.0" + hast-util-from-parse5 "^8.0.0" + parse5 "^7.0.0" + vfile "^6.0.0" + vfile-message "^4.0.0" + +hast-util-from-parse5@^8.0.0: + version "8.0.3" + resolved "https://registry.npmmirror.com/hast-util-from-parse5/-/hast-util-from-parse5-8.0.3.tgz#830a35022fff28c3fea3697a98c2f4cc6b835a2e" + integrity sha512-3kxEVkEKt0zvcZ3hCRYI8rqrgwtlIOFMWkbclACvjlDw8Li9S2hk/d51OI0nr/gIpdMHNepwgOKqZ/sy0Clpyg== + dependencies: + "@types/hast" "^3.0.0" + "@types/unist" "^3.0.0" + devlop "^1.0.0" + hastscript "^9.0.0" + property-information "^7.0.0" + vfile "^6.0.0" + vfile-location "^5.0.0" + web-namespaces "^2.0.0" + +hast-util-has-property@^3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/hast-util-has-property/-/hast-util-has-property-3.0.0.tgz#4e595e3cddb8ce530ea92f6fc4111a818d8e7f93" + integrity sha512-MNilsvEKLFpV604hwfhVStK0usFY/QmM5zX16bo7EjnAEGofr5YyI37kzopBlZJkHD4t887i+q/C8/tr5Q94cA== + dependencies: + "@types/hast" "^3.0.0" + +hast-util-heading-rank@^3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/hast-util-heading-rank/-/hast-util-heading-rank-3.0.0.tgz#2d5c6f2807a7af5c45f74e623498dd6054d2aba8" + integrity sha512-EJKb8oMUXVHcWZTDepnr+WNbfnXKFNf9duMesmr4S8SXTJBJ9M4Yok08pu9vxdJwdlGRhVumk9mEhkEvKGifwA== + dependencies: + "@types/hast" "^3.0.0" + +hast-util-is-element@^3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/hast-util-is-element/-/hast-util-is-element-3.0.0.tgz#6e31a6532c217e5b533848c7e52c9d9369ca0932" + integrity sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g== + dependencies: + "@types/hast" "^3.0.0" + +hast-util-parse-selector@^3.0.0: + version "3.1.1" + resolved "https://registry.npmmirror.com/hast-util-parse-selector/-/hast-util-parse-selector-3.1.1.tgz#25ab00ae9e75cbc62cf7a901f68a247eade659e2" + integrity sha512-jdlwBjEexy1oGz0aJ2f4GKMaVKkA9jwjr4MjAAI22E5fM/TXVZHuS5OpONtdeIkRKqAaryQ2E9xNQxijoThSZA== + dependencies: + "@types/hast" "^2.0.0" + +hast-util-parse-selector@^4.0.0: + version "4.0.0" + resolved "https://registry.npmmirror.com/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz#352879fa86e25616036037dd8931fb5f34cb4a27" + integrity sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A== + dependencies: + "@types/hast" "^3.0.0" + +hast-util-raw@^9.0.0: + version "9.1.0" + resolved "https://registry.npmmirror.com/hast-util-raw/-/hast-util-raw-9.1.0.tgz#79b66b26f6f68fb50dfb4716b2cdca90d92adf2e" + integrity sha512-Y8/SBAHkZGoNkpzqqfCldijcuUKh7/su31kEBp67cFY09Wy0mTRgtsLYsiIxMJxlu0f6AA5SUTbDR8K0rxnbUw== + dependencies: + "@types/hast" "^3.0.0" + "@types/unist" "^3.0.0" + "@ungap/structured-clone" "^1.0.0" + hast-util-from-parse5 "^8.0.0" + hast-util-to-parse5 "^8.0.0" + html-void-elements "^3.0.0" + mdast-util-to-hast "^13.0.0" + parse5 "^7.0.0" + unist-util-position "^5.0.0" + unist-util-visit "^5.0.0" + vfile "^6.0.0" + web-namespaces "^2.0.0" + zwitch "^2.0.0" + +hast-util-select@^6.0.0: + version "6.0.4" + resolved "https://registry.npmmirror.com/hast-util-select/-/hast-util-select-6.0.4.tgz#1d8f69657a57441d0ce0ade35887874d3e65a303" + integrity sha512-RqGS1ZgI0MwxLaKLDxjprynNzINEkRHY2i8ln4DDjgv9ZhcYVIHN9rlpiYsqtFwrgpYU361SyWDQcGNIBVu3lw== + dependencies: + "@types/hast" "^3.0.0" + "@types/unist" "^3.0.0" + bcp-47-match "^2.0.0" + comma-separated-tokens "^2.0.0" + css-selector-parser "^3.0.0" + devlop "^1.0.0" + direction "^2.0.0" + hast-util-has-property "^3.0.0" + hast-util-to-string "^3.0.0" + hast-util-whitespace "^3.0.0" + nth-check "^2.0.0" + property-information "^7.0.0" + space-separated-tokens "^2.0.0" + unist-util-visit "^5.0.0" + zwitch "^2.0.0" + +hast-util-to-html@^9.0.0: + version "9.0.5" + resolved "https://registry.npmmirror.com/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz#ccc673a55bb8e85775b08ac28380f72d47167005" + integrity sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw== + dependencies: + "@types/hast" "^3.0.0" + "@types/unist" "^3.0.0" + ccount "^2.0.0" + comma-separated-tokens "^2.0.0" + hast-util-whitespace "^3.0.0" + html-void-elements "^3.0.0" + mdast-util-to-hast "^13.0.0" + property-information "^7.0.0" + space-separated-tokens "^2.0.0" + stringify-entities "^4.0.0" + zwitch "^2.0.4" + +hast-util-to-jsx-runtime@^2.0.0: + version "2.3.6" + resolved "https://registry.npmmirror.com/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz#ff31897aae59f62232e21594eac7ef6b63333e98" + integrity sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg== + dependencies: + "@types/estree" "^1.0.0" + "@types/hast" "^3.0.0" + "@types/unist" "^3.0.0" + comma-separated-tokens "^2.0.0" + devlop "^1.0.0" + estree-util-is-identifier-name "^3.0.0" + hast-util-whitespace "^3.0.0" + mdast-util-mdx-expression "^2.0.0" + mdast-util-mdx-jsx "^3.0.0" + mdast-util-mdxjs-esm "^2.0.0" + property-information "^7.0.0" + space-separated-tokens "^2.0.0" + style-to-js "^1.0.0" + unist-util-position "^5.0.0" + vfile-message "^4.0.0" + +hast-util-to-parse5@^8.0.0: + version "8.0.1" + resolved "https://registry.npmmirror.com/hast-util-to-parse5/-/hast-util-to-parse5-8.0.1.tgz#95aa391cc0514b4951418d01c883d1038af42f5d" + integrity sha512-MlWT6Pjt4CG9lFCjiz4BH7l9wmrMkfkJYCxFwKQic8+RTZgWPuWxwAfjJElsXkex7DJjfSJsQIt931ilUgmwdA== + dependencies: + "@types/hast" "^3.0.0" + comma-separated-tokens "^2.0.0" + devlop "^1.0.0" + property-information "^7.0.0" + space-separated-tokens "^2.0.0" + web-namespaces "^2.0.0" + zwitch "^2.0.0" + +hast-util-to-string@^3.0.0: + version "3.0.1" + resolved "https://registry.npmmirror.com/hast-util-to-string/-/hast-util-to-string-3.0.1.tgz#a4f15e682849326dd211c97129c94b0c3e76527c" + integrity sha512-XelQVTDWvqcl3axRfI0xSeoVKzyIFPwsAGSLIsKdJKQMXDYJS4WYrBNF/8J7RdhIcFI2BOHgAifggsvsxp/3+A== + dependencies: + "@types/hast" "^3.0.0" + +hast-util-to-text@^4.0.0: + version "4.0.2" + resolved "https://registry.npmmirror.com/hast-util-to-text/-/hast-util-to-text-4.0.2.tgz#57b676931e71bf9cb852453678495b3080bfae3e" + integrity sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A== + dependencies: + "@types/hast" "^3.0.0" + "@types/unist" "^3.0.0" + hast-util-is-element "^3.0.0" + unist-util-find-after "^5.0.0" + +hast-util-whitespace@^3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz#7778ed9d3c92dd9e8c5c8f648a49c21fc51cb621" + integrity sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw== + dependencies: + "@types/hast" "^3.0.0" + +hastscript@^7.0.0: + version "7.2.0" + resolved "https://registry.npmmirror.com/hastscript/-/hastscript-7.2.0.tgz#0eafb7afb153d047077fa2a833dc9b7ec604d10b" + integrity sha512-TtYPq24IldU8iKoJQqvZOuhi5CyCQRAbvDOX0x1eW6rsHSxa/1i2CCiptNTotGHJ3VoHRGmqiv6/D3q113ikkw== + dependencies: + "@types/hast" "^2.0.0" + comma-separated-tokens "^2.0.0" + hast-util-parse-selector "^3.0.0" + property-information "^6.0.0" + space-separated-tokens "^2.0.0" + +hastscript@^9.0.0: + version "9.0.1" + resolved "https://registry.npmmirror.com/hastscript/-/hastscript-9.0.1.tgz#dbc84bef6051d40084342c229c451cd9dc567dff" + integrity sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w== + dependencies: + "@types/hast" "^3.0.0" + comma-separated-tokens "^2.0.0" + hast-util-parse-selector "^4.0.0" + property-information "^7.0.0" + space-separated-tokens "^2.0.0" + +highlight.js@~11.11.0: + version "11.11.1" + resolved "https://registry.npmmirror.com/highlight.js/-/highlight.js-11.11.1.tgz#fca06fa0e5aeecf6c4d437239135fabc15213585" + integrity sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w== + +html-url-attributes@^3.0.0: + version "3.0.1" + resolved "https://registry.npmmirror.com/html-url-attributes/-/html-url-attributes-3.0.1.tgz#83b052cd5e437071b756cd74ae70f708870c2d87" + integrity sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ== + +html-void-elements@^3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/html-void-elements/-/html-void-elements-3.0.0.tgz#fc9dbd84af9e747249034d4d62602def6517f1d7" + integrity sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg== + +ignore@^5.2.0: + version "5.3.2" + resolved "https://registry.npmmirror.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" + integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== + +import-fresh@^3.2.1: + version "3.3.1" + resolved "https://registry.npmmirror.com/import-fresh/-/import-fresh-3.3.1.tgz#9cecb56503c0ada1f2741dbbd6546e4b13b57ccf" + integrity sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.npmmirror.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2: + version "2.0.4" + resolved "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +inline-style-parser@0.2.7: + version "0.2.7" + resolved "https://registry.npmmirror.com/inline-style-parser/-/inline-style-parser-0.2.7.tgz#b1fc68bfc0313b8685745e4464e37f9376b9c909" + integrity sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA== + +internal-slot@^1.1.0: + version "1.1.0" + resolved "https://registry.npmmirror.com/internal-slot/-/internal-slot-1.1.0.tgz#1eac91762947d2f7056bc838d93e13b2e9604961" + integrity sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw== + dependencies: + es-errors "^1.3.0" + hasown "^2.0.2" + side-channel "^1.1.0" + +is-alphabetical@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/is-alphabetical/-/is-alphabetical-2.0.1.tgz#01072053ea7c1036df3c7d19a6daaec7f19e789b" + integrity sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ== + +is-alphanumerical@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz#7c03fbe96e3e931113e57f964b0a368cc2dfd875" + integrity sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw== + dependencies: + is-alphabetical "^2.0.0" + is-decimal "^2.0.0" + +is-array-buffer@^3.0.4, is-array-buffer@^3.0.5: + version "3.0.5" + resolved "https://registry.npmmirror.com/is-array-buffer/-/is-array-buffer-3.0.5.tgz#65742e1e687bd2cc666253068fd8707fe4d44280" + integrity sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.3" + get-intrinsic "^1.2.6" + +is-async-function@^2.0.0: + version "2.1.1" + resolved "https://registry.npmmirror.com/is-async-function/-/is-async-function-2.1.1.tgz#3e69018c8e04e73b738793d020bfe884b9fd3523" + integrity sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ== + dependencies: + async-function "^1.0.0" + call-bound "^1.0.3" + get-proto "^1.0.1" + has-tostringtag "^1.0.2" + safe-regex-test "^1.1.0" + +is-bigint@^1.1.0: + version "1.1.0" + resolved "https://registry.npmmirror.com/is-bigint/-/is-bigint-1.1.0.tgz#dda7a3445df57a42583db4228682eba7c4170672" + integrity sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ== + dependencies: + has-bigints "^1.0.2" + +is-binary-path@~2.1.0: + version "2.1.0" + resolved "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== + dependencies: + binary-extensions "^2.0.0" + +is-boolean-object@^1.2.1: + version "1.2.2" + resolved "https://registry.npmmirror.com/is-boolean-object/-/is-boolean-object-1.2.2.tgz#7067f47709809a393c71ff5bb3e135d8a9215d9e" + integrity sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A== + dependencies: + call-bound "^1.0.3" + has-tostringtag "^1.0.2" + +is-callable@^1.2.7: + version "1.2.7" + resolved "https://registry.npmmirror.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" + integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== + +is-core-module@^2.13.0, is-core-module@^2.16.1: + version "2.16.1" + resolved "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.16.1.tgz#2a98801a849f43e2add644fbb6bc6229b19a4ef4" + integrity sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w== + dependencies: + hasown "^2.0.2" + +is-data-view@^1.0.1, is-data-view@^1.0.2: + version "1.0.2" + resolved "https://registry.npmmirror.com/is-data-view/-/is-data-view-1.0.2.tgz#bae0a41b9688986c2188dda6657e56b8f9e63b8e" + integrity sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw== + dependencies: + call-bound "^1.0.2" + get-intrinsic "^1.2.6" + is-typed-array "^1.1.13" + +is-date-object@^1.0.5, is-date-object@^1.1.0: + version "1.1.0" + resolved "https://registry.npmmirror.com/is-date-object/-/is-date-object-1.1.0.tgz#ad85541996fc7aa8b2729701d27b7319f95d82f7" + integrity sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg== + dependencies: + call-bound "^1.0.2" + has-tostringtag "^1.0.2" + +is-decimal@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/is-decimal/-/is-decimal-2.0.1.tgz#9469d2dc190d0214fd87d78b78caecc0cc14eef7" + integrity sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A== + +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== + +is-finalizationregistry@^1.1.0: + version "1.1.1" + resolved "https://registry.npmmirror.com/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz#eefdcdc6c94ddd0674d9c85887bf93f944a97c90" + integrity sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg== + dependencies: + call-bound "^1.0.3" + +is-generator-function@^1.0.10: + version "1.1.2" + resolved "https://registry.npmmirror.com/is-generator-function/-/is-generator-function-1.1.2.tgz#ae3b61e3d5ea4e4839b90bad22b02335051a17d5" + integrity sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA== + dependencies: + call-bound "^1.0.4" + generator-function "^2.0.0" + get-proto "^1.0.1" + has-tostringtag "^1.0.2" + safe-regex-test "^1.1.0" + +is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: + version "4.0.3" + resolved "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + +is-hexadecimal@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz#86b5bf668fca307498d319dfc03289d781a90027" + integrity sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg== + +is-map@^2.0.3: + version "2.0.3" + resolved "https://registry.npmmirror.com/is-map/-/is-map-2.0.3.tgz#ede96b7fe1e270b3c4465e3a465658764926d62e" + integrity sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw== + +is-negative-zero@^2.0.3: + version "2.0.3" + resolved "https://registry.npmmirror.com/is-negative-zero/-/is-negative-zero-2.0.3.tgz#ced903a027aca6381b777a5743069d7376a49747" + integrity sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw== + +is-number-object@^1.1.1: + version "1.1.1" + resolved "https://registry.npmmirror.com/is-number-object/-/is-number-object-1.1.1.tgz#144b21e95a1bc148205dcc2814a9134ec41b2541" + integrity sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw== + dependencies: + call-bound "^1.0.3" + has-tostringtag "^1.0.2" + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + +is-path-inside@^3.0.3: + version "3.0.3" + resolved "https://registry.npmmirror.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" + integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== + +is-plain-obj@^4.0.0: + version "4.1.0" + resolved "https://registry.npmmirror.com/is-plain-obj/-/is-plain-obj-4.1.0.tgz#d65025edec3657ce032fd7db63c97883eaed71f0" + integrity sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg== + +is-regex@^1.2.1: + version "1.2.1" + resolved "https://registry.npmmirror.com/is-regex/-/is-regex-1.2.1.tgz#76d70a3ed10ef9be48eb577887d74205bf0cad22" + integrity sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g== + dependencies: + call-bound "^1.0.2" + gopd "^1.2.0" + has-tostringtag "^1.0.2" + hasown "^2.0.2" + +is-set@^2.0.3: + version "2.0.3" + resolved "https://registry.npmmirror.com/is-set/-/is-set-2.0.3.tgz#8ab209ea424608141372ded6e0cb200ef1d9d01d" + integrity sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg== + +is-shared-array-buffer@^1.0.4: + version "1.0.4" + resolved "https://registry.npmmirror.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz#9b67844bd9b7f246ba0708c3a93e34269c774f6f" + integrity sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A== + dependencies: + call-bound "^1.0.3" + +is-string@^1.1.1: + version "1.1.1" + resolved "https://registry.npmmirror.com/is-string/-/is-string-1.1.1.tgz#92ea3f3d5c5b6e039ca8677e5ac8d07ea773cbb9" + integrity sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA== + dependencies: + call-bound "^1.0.3" + has-tostringtag "^1.0.2" + +is-symbol@^1.0.4, is-symbol@^1.1.1: + version "1.1.1" + resolved "https://registry.npmmirror.com/is-symbol/-/is-symbol-1.1.1.tgz#f47761279f532e2b05a7024a7506dbbedacd0634" + integrity sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w== + dependencies: + call-bound "^1.0.2" + has-symbols "^1.1.0" + safe-regex-test "^1.1.0" + +is-typed-array@^1.1.13, is-typed-array@^1.1.14, is-typed-array@^1.1.15: + version "1.1.15" + resolved "https://registry.npmmirror.com/is-typed-array/-/is-typed-array-1.1.15.tgz#4bfb4a45b61cee83a5a46fba778e4e8d59c0ce0b" + integrity sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ== + dependencies: + which-typed-array "^1.1.16" + +is-weakmap@^2.0.2: + version "2.0.2" + resolved "https://registry.npmmirror.com/is-weakmap/-/is-weakmap-2.0.2.tgz#bf72615d649dfe5f699079c54b83e47d1ae19cfd" + integrity sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w== + +is-weakref@^1.0.2, is-weakref@^1.1.1: + version "1.1.1" + resolved "https://registry.npmmirror.com/is-weakref/-/is-weakref-1.1.1.tgz#eea430182be8d64174bd96bffbc46f21bf3f9293" + integrity sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew== + dependencies: + call-bound "^1.0.3" + +is-weakset@^2.0.3: + version "2.0.4" + resolved "https://registry.npmmirror.com/is-weakset/-/is-weakset-2.0.4.tgz#c9f5deb0bc1906c6d6f1027f284ddf459249daca" + integrity sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ== + dependencies: + call-bound "^1.0.3" + get-intrinsic "^1.2.6" + +isarray@^2.0.5: + version "2.0.5" + resolved "https://registry.npmmirror.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" + integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== + +iterator.prototype@^1.1.5: + version "1.1.5" + resolved "https://registry.npmmirror.com/iterator.prototype/-/iterator.prototype-1.1.5.tgz#12c959a29de32de0aa3bbbb801f4d777066dae39" + integrity sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g== + dependencies: + define-data-property "^1.1.4" + es-object-atoms "^1.0.0" + get-intrinsic "^1.2.6" + get-proto "^1.0.0" + has-symbols "^1.1.0" + set-function-name "^2.0.2" + +jiti@^1.21.7: + version "1.21.7" + resolved "https://registry.npmmirror.com/jiti/-/jiti-1.21.7.tgz#9dd81043424a3d28458b193d965f0d18a2300ba9" + integrity sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A== + +"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-yaml@^4.1.0: + version "4.1.1" + resolved "https://registry.npmmirror.com/js-yaml/-/js-yaml-4.1.1.tgz#854c292467705b699476e1a2decc0c8a3458806b" + integrity sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA== + dependencies: + argparse "^2.0.1" + +jsesc@^3.0.2: + version "3.1.0" + resolved "https://registry.npmmirror.com/jsesc/-/jsesc-3.1.0.tgz#74d335a234f67ed19907fdadfac7ccf9d409825d" + integrity sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA== + +json-buffer@3.0.1: + version "3.0.1" + resolved "https://registry.npmmirror.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" + integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.npmmirror.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== + +json2mq@^0.2.0: + version "0.2.0" + resolved "https://registry.npmmirror.com/json2mq/-/json2mq-0.2.0.tgz#b637bd3ba9eabe122c83e9720483aeb10d2c904a" + integrity sha512-SzoRg7ux5DWTII9J2qkrZrqV1gt+rTaoufMxEzXbS26Uid0NwaJd123HcoB80TgubEppxxIGdNxCx50fEoEWQA== + dependencies: + string-convert "^0.2.0" + +json5@^2.2.3: + version "2.2.3" + resolved "https://registry.npmmirror.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== + +"jsx-ast-utils@^2.4.1 || ^3.0.0": + version "3.3.5" + resolved "https://registry.npmmirror.com/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz#4766bd05a8e2a11af222becd19e15575e52a853a" + integrity sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ== + dependencies: + array-includes "^3.1.6" + array.prototype.flat "^1.3.1" + object.assign "^4.1.4" + object.values "^1.1.6" + +keyv@^4.5.3: + version "4.5.4" + resolved "https://registry.npmmirror.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93" + integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== + dependencies: + json-buffer "3.0.1" + +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.npmmirror.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== + dependencies: + prelude-ls "^1.2.1" + type-check "~0.4.0" + +lilconfig@^3.1.1, lilconfig@^3.1.3: + version "3.1.3" + resolved "https://registry.npmmirror.com/lilconfig/-/lilconfig-3.1.3.tgz#a1bcfd6257f9585bf5ae14ceeebb7b559025e4c4" + integrity sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw== + +lines-and-columns@^1.1.6: + version "1.2.4" + resolved "https://registry.npmmirror.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" + integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== + +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + +longest-streak@^3.0.0: + version "3.1.0" + resolved "https://registry.npmmirror.com/longest-streak/-/longest-streak-3.1.0.tgz#62fa67cd958742a1574af9f39866364102d90cd4" + integrity sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g== + +loose-envify@^1.1.0, loose-envify@^1.4.0: + version "1.4.0" + resolved "https://registry.npmmirror.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" + integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== + dependencies: + js-tokens "^3.0.0 || ^4.0.0" + +lowlight@^3.0.0: + version "3.3.0" + resolved "https://registry.npmmirror.com/lowlight/-/lowlight-3.3.0.tgz#007b8a5bfcfd27cc65b96246d2de3e9dd4e23c6c" + integrity sha512-0JNhgFoPvP6U6lE/UdVsSq99tn6DhjjpAj5MxG49ewd2mOBVtwWYIT8ClyABhq198aXXODMU6Ox8DrGy/CpTZQ== + dependencies: + "@types/hast" "^3.0.0" + devlop "^1.0.0" + highlight.js "~11.11.0" + +lru-cache@^5.1.1: + version "5.1.1" + resolved "https://registry.npmmirror.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== + dependencies: + yallist "^3.0.2" + +markdown-table@^3.0.0: + version "3.0.4" + resolved "https://registry.npmmirror.com/markdown-table/-/markdown-table-3.0.4.tgz#fe44d6d410ff9d6f2ea1797a3f60aa4d2b631c2a" + integrity sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw== + +math-intrinsics@^1.1.0: + version "1.1.0" + resolved "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9" + integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== + +mdast-util-find-and-replace@^3.0.0: + version "3.0.2" + resolved "https://registry.npmmirror.com/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz#70a3174c894e14df722abf43bc250cbae44b11df" + integrity sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg== + dependencies: + "@types/mdast" "^4.0.0" + escape-string-regexp "^5.0.0" + unist-util-is "^6.0.0" + unist-util-visit-parents "^6.0.0" + +mdast-util-from-markdown@^2.0.0: + version "2.0.2" + resolved "https://registry.npmmirror.com/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.2.tgz#4850390ca7cf17413a9b9a0fbefcd1bc0eb4160a" + integrity sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA== + dependencies: + "@types/mdast" "^4.0.0" + "@types/unist" "^3.0.0" + decode-named-character-reference "^1.0.0" + devlop "^1.0.0" + mdast-util-to-string "^4.0.0" + micromark "^4.0.0" + micromark-util-decode-numeric-character-reference "^2.0.0" + micromark-util-decode-string "^2.0.0" + micromark-util-normalize-identifier "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + unist-util-stringify-position "^4.0.0" + +mdast-util-gfm-autolink-literal@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz#abd557630337bd30a6d5a4bd8252e1c2dc0875d5" + integrity sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ== + dependencies: + "@types/mdast" "^4.0.0" + ccount "^2.0.0" + devlop "^1.0.0" + mdast-util-find-and-replace "^3.0.0" + micromark-util-character "^2.0.0" + +mdast-util-gfm-footnote@^2.0.0: + version "2.1.0" + resolved "https://registry.npmmirror.com/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz#7778e9d9ca3df7238cc2bd3fa2b1bf6a65b19403" + integrity sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ== + dependencies: + "@types/mdast" "^4.0.0" + devlop "^1.1.0" + mdast-util-from-markdown "^2.0.0" + mdast-util-to-markdown "^2.0.0" + micromark-util-normalize-identifier "^2.0.0" + +mdast-util-gfm-strikethrough@^2.0.0: + version "2.0.0" + resolved "https://registry.npmmirror.com/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz#d44ef9e8ed283ac8c1165ab0d0dfd058c2764c16" + integrity sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg== + dependencies: + "@types/mdast" "^4.0.0" + mdast-util-from-markdown "^2.0.0" + mdast-util-to-markdown "^2.0.0" + +mdast-util-gfm-table@^2.0.0: + version "2.0.0" + resolved "https://registry.npmmirror.com/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz#7a435fb6223a72b0862b33afbd712b6dae878d38" + integrity sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg== + dependencies: + "@types/mdast" "^4.0.0" + devlop "^1.0.0" + markdown-table "^3.0.0" + mdast-util-from-markdown "^2.0.0" + mdast-util-to-markdown "^2.0.0" + +mdast-util-gfm-task-list-item@^2.0.0: + version "2.0.0" + resolved "https://registry.npmmirror.com/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz#e68095d2f8a4303ef24094ab642e1047b991a936" + integrity sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ== + dependencies: + "@types/mdast" "^4.0.0" + devlop "^1.0.0" + mdast-util-from-markdown "^2.0.0" + mdast-util-to-markdown "^2.0.0" + +mdast-util-gfm@^3.0.0: + version "3.1.0" + resolved "https://registry.npmmirror.com/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz#2cdf63b92c2a331406b0fb0db4c077c1b0331751" + integrity sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ== + dependencies: + mdast-util-from-markdown "^2.0.0" + mdast-util-gfm-autolink-literal "^2.0.0" + mdast-util-gfm-footnote "^2.0.0" + mdast-util-gfm-strikethrough "^2.0.0" + mdast-util-gfm-table "^2.0.0" + mdast-util-gfm-task-list-item "^2.0.0" + mdast-util-to-markdown "^2.0.0" + +mdast-util-mdx-expression@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz#43f0abac9adc756e2086f63822a38c8d3c3a5096" + integrity sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ== + dependencies: + "@types/estree-jsx" "^1.0.0" + "@types/hast" "^3.0.0" + "@types/mdast" "^4.0.0" + devlop "^1.0.0" + mdast-util-from-markdown "^2.0.0" + mdast-util-to-markdown "^2.0.0" + +mdast-util-mdx-jsx@^3.0.0: + version "3.2.0" + resolved "https://registry.npmmirror.com/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.0.tgz#fd04c67a2a7499efb905a8a5c578dddc9fdada0d" + integrity sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q== + dependencies: + "@types/estree-jsx" "^1.0.0" + "@types/hast" "^3.0.0" + "@types/mdast" "^4.0.0" + "@types/unist" "^3.0.0" + ccount "^2.0.0" + devlop "^1.1.0" + mdast-util-from-markdown "^2.0.0" + mdast-util-to-markdown "^2.0.0" + parse-entities "^4.0.0" + stringify-entities "^4.0.0" + unist-util-stringify-position "^4.0.0" + vfile-message "^4.0.0" + +mdast-util-mdxjs-esm@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz#019cfbe757ad62dd557db35a695e7314bcc9fa97" + integrity sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg== + dependencies: + "@types/estree-jsx" "^1.0.0" + "@types/hast" "^3.0.0" + "@types/mdast" "^4.0.0" + devlop "^1.0.0" + mdast-util-from-markdown "^2.0.0" + mdast-util-to-markdown "^2.0.0" + +mdast-util-phrasing@^4.0.0: + version "4.1.0" + resolved "https://registry.npmmirror.com/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz#7cc0a8dec30eaf04b7b1a9661a92adb3382aa6e3" + integrity sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w== + dependencies: + "@types/mdast" "^4.0.0" + unist-util-is "^6.0.0" + +mdast-util-to-hast@^13.0.0: + version "13.2.1" + resolved "https://registry.npmmirror.com/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz#d7ff84ca499a57e2c060ae67548ad950e689a053" + integrity sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA== + dependencies: + "@types/hast" "^3.0.0" + "@types/mdast" "^4.0.0" + "@ungap/structured-clone" "^1.0.0" + devlop "^1.0.0" + micromark-util-sanitize-uri "^2.0.0" + trim-lines "^3.0.0" + unist-util-position "^5.0.0" + unist-util-visit "^5.0.0" + vfile "^6.0.0" + +mdast-util-to-markdown@^2.0.0: + version "2.1.2" + resolved "https://registry.npmmirror.com/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz#f910ffe60897f04bb4b7e7ee434486f76288361b" + integrity sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA== + dependencies: + "@types/mdast" "^4.0.0" + "@types/unist" "^3.0.0" + longest-streak "^3.0.0" + mdast-util-phrasing "^4.0.0" + mdast-util-to-string "^4.0.0" + micromark-util-classify-character "^2.0.0" + micromark-util-decode-string "^2.0.0" + unist-util-visit "^5.0.0" + zwitch "^2.0.0" + +mdast-util-to-string@^4.0.0: + version "4.0.0" + resolved "https://registry.npmmirror.com/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz#7a5121475556a04e7eddeb67b264aae79d312814" + integrity sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg== + dependencies: + "@types/mdast" "^4.0.0" + +merge2@^1.3.0: + version "1.4.1" + resolved "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + +micromark-core-commonmark@^2.0.0: + version "2.0.3" + resolved "https://registry.npmmirror.com/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz#c691630e485021a68cf28dbc2b2ca27ebf678cd4" + integrity sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg== + dependencies: + decode-named-character-reference "^1.0.0" + devlop "^1.0.0" + micromark-factory-destination "^2.0.0" + micromark-factory-label "^2.0.0" + micromark-factory-space "^2.0.0" + micromark-factory-title "^2.0.0" + micromark-factory-whitespace "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-chunked "^2.0.0" + micromark-util-classify-character "^2.0.0" + micromark-util-html-tag-name "^2.0.0" + micromark-util-normalize-identifier "^2.0.0" + micromark-util-resolve-all "^2.0.0" + micromark-util-subtokenize "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-extension-gfm-autolink-literal@^2.0.0: + version "2.1.0" + resolved "https://registry.npmmirror.com/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz#6286aee9686c4462c1e3552a9d505feddceeb935" + integrity sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw== + dependencies: + micromark-util-character "^2.0.0" + micromark-util-sanitize-uri "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-extension-gfm-footnote@^2.0.0: + version "2.1.0" + resolved "https://registry.npmmirror.com/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz#4dab56d4e398b9853f6fe4efac4fc9361f3e0750" + integrity sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw== + dependencies: + devlop "^1.0.0" + micromark-core-commonmark "^2.0.0" + micromark-factory-space "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-normalize-identifier "^2.0.0" + micromark-util-sanitize-uri "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-extension-gfm-strikethrough@^2.0.0: + version "2.1.0" + resolved "https://registry.npmmirror.com/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz#86106df8b3a692b5f6a92280d3879be6be46d923" + integrity sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw== + dependencies: + devlop "^1.0.0" + micromark-util-chunked "^2.0.0" + micromark-util-classify-character "^2.0.0" + micromark-util-resolve-all "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-extension-gfm-table@^2.0.0: + version "2.1.1" + resolved "https://registry.npmmirror.com/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz#fac70bcbf51fe65f5f44033118d39be8a9b5940b" + integrity sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg== + dependencies: + devlop "^1.0.0" + micromark-factory-space "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-extension-gfm-tagfilter@^2.0.0: + version "2.0.0" + resolved "https://registry.npmmirror.com/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz#f26d8a7807b5985fba13cf61465b58ca5ff7dc57" + integrity sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg== + dependencies: + micromark-util-types "^2.0.0" + +micromark-extension-gfm-task-list-item@^2.0.0: + version "2.1.0" + resolved "https://registry.npmmirror.com/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz#bcc34d805639829990ec175c3eea12bb5b781f2c" + integrity sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw== + dependencies: + devlop "^1.0.0" + micromark-factory-space "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-extension-gfm@^3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz#3e13376ab95dd7a5cfd0e29560dfe999657b3c5b" + integrity sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w== + dependencies: + micromark-extension-gfm-autolink-literal "^2.0.0" + micromark-extension-gfm-footnote "^2.0.0" + micromark-extension-gfm-strikethrough "^2.0.0" + micromark-extension-gfm-table "^2.0.0" + micromark-extension-gfm-tagfilter "^2.0.0" + micromark-extension-gfm-task-list-item "^2.0.0" + micromark-util-combine-extensions "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-factory-destination@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz#8fef8e0f7081f0474fbdd92deb50c990a0264639" + integrity sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA== + dependencies: + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-factory-label@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz#5267efa97f1e5254efc7f20b459a38cb21058ba1" + integrity sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg== + dependencies: + devlop "^1.0.0" + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-factory-space@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz#36d0212e962b2b3121f8525fc7a3c7c029f334fc" + integrity sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg== + dependencies: + micromark-util-character "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-factory-title@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz#237e4aa5d58a95863f01032d9ee9b090f1de6e94" + integrity sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw== + dependencies: + micromark-factory-space "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-factory-whitespace@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz#06b26b2983c4d27bfcc657b33e25134d4868b0b1" + integrity sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ== + dependencies: + micromark-factory-space "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-util-character@^2.0.0: + version "2.1.1" + resolved "https://registry.npmmirror.com/micromark-util-character/-/micromark-util-character-2.1.1.tgz#2f987831a40d4c510ac261e89852c4e9703ccda6" + integrity sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q== + dependencies: + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-util-chunked@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz#47fbcd93471a3fccab86cff03847fc3552db1051" + integrity sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA== + dependencies: + micromark-util-symbol "^2.0.0" + +micromark-util-classify-character@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz#d399faf9c45ca14c8b4be98b1ea481bced87b629" + integrity sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q== + dependencies: + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-util-combine-extensions@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz#2a0f490ab08bff5cc2fd5eec6dd0ca04f89b30a9" + integrity sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg== + dependencies: + micromark-util-chunked "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-util-decode-numeric-character-reference@^2.0.0: + version "2.0.2" + resolved "https://registry.npmmirror.com/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz#fcf15b660979388e6f118cdb6bf7d79d73d26fe5" + integrity sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw== + dependencies: + micromark-util-symbol "^2.0.0" + +micromark-util-decode-string@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz#6cb99582e5d271e84efca8e61a807994d7161eb2" + integrity sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ== + dependencies: + decode-named-character-reference "^1.0.0" + micromark-util-character "^2.0.0" + micromark-util-decode-numeric-character-reference "^2.0.0" + micromark-util-symbol "^2.0.0" + +micromark-util-encode@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz#0d51d1c095551cfaac368326963cf55f15f540b8" + integrity sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw== + +micromark-util-html-tag-name@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz#e40403096481986b41c106627f98f72d4d10b825" + integrity sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA== + +micromark-util-normalize-identifier@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz#c30d77b2e832acf6526f8bf1aa47bc9c9438c16d" + integrity sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q== + dependencies: + micromark-util-symbol "^2.0.0" + +micromark-util-resolve-all@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz#e1a2d62cdd237230a2ae11839027b19381e31e8b" + integrity sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg== + dependencies: + micromark-util-types "^2.0.0" + +micromark-util-sanitize-uri@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz#ab89789b818a58752b73d6b55238621b7faa8fd7" + integrity sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ== + dependencies: + micromark-util-character "^2.0.0" + micromark-util-encode "^2.0.0" + micromark-util-symbol "^2.0.0" + +micromark-util-subtokenize@^2.0.0: + version "2.1.0" + resolved "https://registry.npmmirror.com/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz#d8ade5ba0f3197a1cf6a2999fbbfe6357a1a19ee" + integrity sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA== + dependencies: + devlop "^1.0.0" + micromark-util-chunked "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-util-symbol@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz#e5da494e8eb2b071a0d08fb34f6cefec6c0a19b8" + integrity sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q== + +micromark-util-types@^2.0.0: + version "2.0.2" + resolved "https://registry.npmmirror.com/micromark-util-types/-/micromark-util-types-2.0.2.tgz#f00225f5f5a0ebc3254f96c36b6605c4b393908e" + integrity sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA== + +micromark@^4.0.0: + version "4.0.2" + resolved "https://registry.npmmirror.com/micromark/-/micromark-4.0.2.tgz#91395a3e1884a198e62116e33c9c568e39936fdb" + integrity sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA== + dependencies: + "@types/debug" "^4.0.0" + debug "^4.0.0" + decode-named-character-reference "^1.0.0" + devlop "^1.0.0" + micromark-core-commonmark "^2.0.0" + micromark-factory-space "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-chunked "^2.0.0" + micromark-util-combine-extensions "^2.0.0" + micromark-util-decode-numeric-character-reference "^2.0.0" + micromark-util-encode "^2.0.0" + micromark-util-normalize-identifier "^2.0.0" + micromark-util-resolve-all "^2.0.0" + micromark-util-sanitize-uri "^2.0.0" + micromark-util-subtokenize "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromatch@^4.0.8: + version "4.0.8" + resolved "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" + integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== + dependencies: + braces "^3.0.3" + picomatch "^2.3.1" + +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@^2.1.12: + version "2.1.35" + resolved "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: + version "3.1.2" + resolved "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +ms@^2.1.3: + version "2.1.3" + resolved "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +mz@^2.7.0: + version "2.7.0" + resolved "https://registry.npmmirror.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32" + integrity sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q== + dependencies: + any-promise "^1.0.0" + object-assign "^4.0.1" + thenify-all "^1.0.0" + +nanoid@^3.3.11: + version "3.3.11" + resolved "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.11.tgz#4f4f112cefbe303202f2199838128936266d185b" + integrity sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w== + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.npmmirror.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== + +node-releases@^2.0.27: + version "2.0.27" + resolved "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.27.tgz#eedca519205cf20f650f61d56b070db111231e4e" + integrity sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA== + +normalize-path@^3.0.0, normalize-path@~3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + +nth-check@^2.0.0: + version "2.1.1" + resolved "https://registry.npmmirror.com/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d" + integrity sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w== + dependencies: + boolbase "^1.0.0" + +object-assign@^4.0.1, object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== + +object-hash@^3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/object-hash/-/object-hash-3.0.0.tgz#73f97f753e7baffc0e2cc9d6e079079744ac82e9" + integrity sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw== + +object-inspect@^1.13.3, object-inspect@^1.13.4: + version "1.13.4" + resolved "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.13.4.tgz#8375265e21bc20d0fa582c22e1b13485d6e00213" + integrity sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew== + +object-keys@^1.1.1: + version "1.1.1" + resolved "https://registry.npmmirror.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== + +object.assign@^4.1.4, object.assign@^4.1.7: + version "4.1.7" + resolved "https://registry.npmmirror.com/object.assign/-/object.assign-4.1.7.tgz#8c14ca1a424c6a561b0bb2a22f66f5049a945d3d" + integrity sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.3" + define-properties "^1.2.1" + es-object-atoms "^1.0.0" + has-symbols "^1.1.0" + object-keys "^1.1.1" + +object.entries@^1.1.9: + version "1.1.9" + resolved "https://registry.npmmirror.com/object.entries/-/object.entries-1.1.9.tgz#e4770a6a1444afb61bd39f984018b5bede25f8b3" + integrity sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.4" + define-properties "^1.2.1" + es-object-atoms "^1.1.1" + +object.fromentries@^2.0.8: + version "2.0.8" + resolved "https://registry.npmmirror.com/object.fromentries/-/object.fromentries-2.0.8.tgz#f7195d8a9b97bd95cbc1999ea939ecd1a2b00c65" + integrity sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ== + dependencies: + call-bind "^1.0.7" + define-properties "^1.2.1" + es-abstract "^1.23.2" + es-object-atoms "^1.0.0" + +object.values@^1.1.6, object.values@^1.2.1: + version "1.2.1" + resolved "https://registry.npmmirror.com/object.values/-/object.values-1.2.1.tgz#deed520a50809ff7f75a7cfd4bc64c7a038c6216" + integrity sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.3" + define-properties "^1.2.1" + es-object-atoms "^1.0.0" + +once@^1.3.0: + version "1.4.0" + resolved "https://registry.npmmirror.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== + dependencies: + wrappy "1" + +optionator@^0.9.3: + version "0.9.4" + resolved "https://registry.npmmirror.com/optionator/-/optionator-0.9.4.tgz#7ea1c1a5d91d764fb282139c88fe11e182a3a734" + integrity sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g== + dependencies: + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + word-wrap "^1.2.5" + +own-keys@^1.0.1: + version "1.0.1" + resolved "https://registry.npmmirror.com/own-keys/-/own-keys-1.0.1.tgz#e4006910a2bf913585289676eebd6f390cf51358" + integrity sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg== + dependencies: + get-intrinsic "^1.2.6" + object-keys "^1.1.1" + safe-push-apply "^1.0.0" + +p-limit@^3.0.2: + version "3.1.0" + resolved "https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.npmmirror.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.npmmirror.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + +parse-entities@^4.0.0: + version "4.0.2" + resolved "https://registry.npmmirror.com/parse-entities/-/parse-entities-4.0.2.tgz#61d46f5ed28e4ee62e9ddc43d6b010188443f159" + integrity sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw== + dependencies: + "@types/unist" "^2.0.0" + character-entities-legacy "^3.0.0" + character-reference-invalid "^2.0.0" + decode-named-character-reference "^1.0.0" + is-alphanumerical "^2.0.0" + is-decimal "^2.0.0" + is-hexadecimal "^2.0.0" + +parse-numeric-range@^1.3.0: + version "1.3.0" + resolved "https://registry.npmmirror.com/parse-numeric-range/-/parse-numeric-range-1.3.0.tgz#7c63b61190d61e4d53a1197f0c83c47bb670ffa3" + integrity sha512-twN+njEipszzlMJd4ONUYgSfZPDxgHhT9Ahed5uTigpQn90FggW4SA/AIPq/6a149fTbE9qBEcSwE3FAEp6wQQ== + +parse5@^7.0.0: + version "7.3.0" + resolved "https://registry.npmmirror.com/parse5/-/parse5-7.3.0.tgz#d7e224fa72399c7a175099f45fc2ad024b05ec05" + integrity sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw== + dependencies: + entities "^6.0.0" + +path-exists@^4.0.0: + version "4.0.0" + resolved "https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" + integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== + +path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-parse@^1.0.7: + version "1.0.7" + resolved "https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== + +picocolors@^1.1.1: + version "1.1.1" + resolved "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" + integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== + +picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + +picomatch@^4.0.3: + version "4.0.3" + resolved "https://registry.npmmirror.com/picomatch/-/picomatch-4.0.3.tgz#796c76136d1eead715db1e7bad785dedd695a042" + integrity sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q== + +pify@^2.3.0: + version "2.3.0" + resolved "https://registry.npmmirror.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== + +pirates@^4.0.1: + version "4.0.7" + resolved "https://registry.npmmirror.com/pirates/-/pirates-4.0.7.tgz#643b4a18c4257c8a65104b73f3049ce9a0a15e22" + integrity sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA== + +possible-typed-array-names@^1.0.0: + version "1.1.0" + resolved "https://registry.npmmirror.com/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz#93e3582bc0e5426586d9d07b79ee40fc841de4ae" + integrity sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg== + +postcss-import@^15.1.0: + version "15.1.0" + resolved "https://registry.npmmirror.com/postcss-import/-/postcss-import-15.1.0.tgz#41c64ed8cc0e23735a9698b3249ffdbf704adc70" + integrity sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew== + dependencies: + postcss-value-parser "^4.0.0" + read-cache "^1.0.0" + resolve "^1.1.7" + +postcss-js@^4.0.1: + version "4.1.0" + resolved "https://registry.npmmirror.com/postcss-js/-/postcss-js-4.1.0.tgz#003b63c6edde948766e40f3daf7e997ae43a5ce6" + integrity sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw== + dependencies: + camelcase-css "^2.0.1" + +"postcss-load-config@^4.0.2 || ^5.0 || ^6.0": + version "6.0.1" + resolved "https://registry.npmmirror.com/postcss-load-config/-/postcss-load-config-6.0.1.tgz#6fd7dcd8ae89badcf1b2d644489cbabf83aa8096" + integrity sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g== + dependencies: + lilconfig "^3.1.1" + +postcss-nested@^6.2.0: + version "6.2.0" + resolved "https://registry.npmmirror.com/postcss-nested/-/postcss-nested-6.2.0.tgz#4c2d22ab5f20b9cb61e2c5c5915950784d068131" + integrity sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ== + dependencies: + postcss-selector-parser "^6.1.1" + +postcss-selector-parser@^6.1.1, postcss-selector-parser@^6.1.2: + version "6.1.2" + resolved "https://registry.npmmirror.com/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz#27ecb41fb0e3b6ba7a1ec84fff347f734c7929de" + integrity sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg== + dependencies: + cssesc "^3.0.0" + util-deprecate "^1.0.2" + +postcss-value-parser@^4.0.0, postcss-value-parser@^4.2.0: + version "4.2.0" + resolved "https://registry.npmmirror.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" + integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== + +postcss@^8.4.32, postcss@^8.4.43, postcss@^8.4.47: + version "8.5.6" + resolved "https://registry.npmmirror.com/postcss/-/postcss-8.5.6.tgz#2825006615a619b4f62a9e7426cc120b349a8f3c" + integrity sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg== + dependencies: + nanoid "^3.3.11" + picocolors "^1.1.1" + source-map-js "^1.2.1" + +prelude-ls@^1.2.1: + version "1.2.1" + resolved "https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== + +prop-types@^15.8.1: + version "15.8.1" + resolved "https://registry.npmmirror.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" + integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== + dependencies: + loose-envify "^1.4.0" + object-assign "^4.1.1" + react-is "^16.13.1" + +property-information@^6.0.0: + version "6.5.0" + resolved "https://registry.npmmirror.com/property-information/-/property-information-6.5.0.tgz#6212fbb52ba757e92ef4fb9d657563b933b7ffec" + integrity sha512-PgTgs/BlvHxOu8QuEN7wi5A0OmXaBcHpmCSTehcs6Uuu9IkDIEo13Hy7n898RHfrQ49vKCoGeWZSaAK01nwVig== + +property-information@^7.0.0: + version "7.1.0" + resolved "https://registry.npmmirror.com/property-information/-/property-information-7.1.0.tgz#b622e8646e02b580205415586b40804d3e8bfd5d" + integrity sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ== + +proxy-from-env@^1.1.0: + version "1.1.0" + resolved "https://registry.npmmirror.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + +punycode@^2.1.0: + version "2.3.1" + resolved "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" + integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== + +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + +rc-cascader@~3.34.0: + version "3.34.0" + resolved "https://registry.npmmirror.com/rc-cascader/-/rc-cascader-3.34.0.tgz#56f936ab6b1229bab7d558701ce9b9e96536582c" + integrity sha512-KpXypcvju9ptjW9FaN2NFcA2QH9E9LHKq169Y0eWtH4e/wHQ5Wh5qZakAgvb8EKZ736WZ3B0zLLOBsrsja5Dag== + dependencies: + "@babel/runtime" "^7.25.7" + classnames "^2.3.1" + rc-select "~14.16.2" + rc-tree "~5.13.0" + rc-util "^5.43.0" + +rc-checkbox@~3.5.0: + version "3.5.0" + resolved "https://registry.npmmirror.com/rc-checkbox/-/rc-checkbox-3.5.0.tgz#3ae2441e3a321774d390f76539e706864fcf5ff0" + integrity sha512-aOAQc3E98HteIIsSqm6Xk2FPKIER6+5vyEFMZfo73TqM+VVAIqOkHoPjgKLqSNtVLWScoaM7vY2ZrGEheI79yg== + dependencies: + "@babel/runtime" "^7.10.1" + classnames "^2.3.2" + rc-util "^5.25.2" + +rc-collapse@~3.9.0: + version "3.9.0" + resolved "https://registry.npmmirror.com/rc-collapse/-/rc-collapse-3.9.0.tgz#972404ce7724e1c9d1d2476543e1175404a36806" + integrity sha512-swDdz4QZ4dFTo4RAUMLL50qP0EY62N2kvmk2We5xYdRwcRn8WcYtuetCJpwpaCbUfUt5+huLpVxhvmnK+PHrkA== + dependencies: + "@babel/runtime" "^7.10.1" + classnames "2.x" + rc-motion "^2.3.4" + rc-util "^5.27.0" + +rc-dialog@~9.6.0: + version "9.6.0" + resolved "https://registry.npmmirror.com/rc-dialog/-/rc-dialog-9.6.0.tgz#dc7a255c6ad1cb56021c3a61c7de86ee88c7c371" + integrity sha512-ApoVi9Z8PaCQg6FsUzS8yvBEQy0ZL2PkuvAgrmohPkN3okps5WZ5WQWPc1RNuiOKaAYv8B97ACdsFU5LizzCqg== + dependencies: + "@babel/runtime" "^7.10.1" + "@rc-component/portal" "^1.0.0-8" + classnames "^2.2.6" + rc-motion "^2.3.0" + rc-util "^5.21.0" + +rc-drawer@~7.3.0: + version "7.3.0" + resolved "https://registry.npmmirror.com/rc-drawer/-/rc-drawer-7.3.0.tgz#1bb5fe5f9da38b6a2b2a7dffc9fcb647252a328f" + integrity sha512-DX6CIgiBWNpJIMGFO8BAISFkxiuKitoizooj4BDyee8/SnBn0zwO2FHrNDpqqepj0E/TFTDpmEBCyFuTgC7MOg== + dependencies: + "@babel/runtime" "^7.23.9" + "@rc-component/portal" "^1.1.1" + classnames "^2.2.6" + rc-motion "^2.6.1" + rc-util "^5.38.1" + +rc-dropdown@~4.2.0, rc-dropdown@~4.2.1: + version "4.2.1" + resolved "https://registry.npmmirror.com/rc-dropdown/-/rc-dropdown-4.2.1.tgz#44729eb2a4272e0353d31ac060da21e606accb1c" + integrity sha512-YDAlXsPv3I1n42dv1JpdM7wJ+gSUBfeyPK59ZpBD9jQhK9jVuxpjj3NmWQHOBceA1zEPVX84T2wbdb2SD0UjmA== + dependencies: + "@babel/runtime" "^7.18.3" + "@rc-component/trigger" "^2.0.0" + classnames "^2.2.6" + rc-util "^5.44.1" + +rc-field-form@~2.7.1: + version "2.7.1" + resolved "https://registry.npmmirror.com/rc-field-form/-/rc-field-form-2.7.1.tgz#8bb1d7c6bf40e2b99b494816972252c327d9b5a0" + integrity sha512-vKeSifSJ6HoLaAB+B8aq/Qgm8a3dyxROzCtKNCsBQgiverpc4kWDQihoUwzUj+zNWJOykwSY4dNX3QrGwtVb9A== + dependencies: + "@babel/runtime" "^7.18.0" + "@rc-component/async-validator" "^5.0.3" + rc-util "^5.32.2" + +rc-image@~7.12.0: + version "7.12.0" + resolved "https://registry.npmmirror.com/rc-image/-/rc-image-7.12.0.tgz#95e9314701e668217d113c1f29b4f01ac025cafe" + integrity sha512-cZ3HTyyckPnNnUb9/DRqduqzLfrQRyi+CdHjdqgsyDpI3Ln5UX1kXnAhPBSJj9pVRzwRFgqkN7p9b6HBDjmu/Q== + dependencies: + "@babel/runtime" "^7.11.2" + "@rc-component/portal" "^1.0.2" + classnames "^2.2.6" + rc-dialog "~9.6.0" + rc-motion "^2.6.2" + rc-util "^5.34.1" + +rc-input-number@~9.5.0: + version "9.5.0" + resolved "https://registry.npmmirror.com/rc-input-number/-/rc-input-number-9.5.0.tgz#b47963d0f2cbd85ab2f1badfdc089a904c073f38" + integrity sha512-bKaEvB5tHebUURAEXw35LDcnRZLq3x1k7GxfAqBMzmpHkDGzjAtnUL8y4y5N15rIFIg5IJgwr211jInl3cipag== + dependencies: + "@babel/runtime" "^7.10.1" + "@rc-component/mini-decimal" "^1.0.1" + classnames "^2.2.5" + rc-input "~1.8.0" + rc-util "^5.40.1" + +rc-input@~1.8.0: + version "1.8.0" + resolved "https://registry.npmmirror.com/rc-input/-/rc-input-1.8.0.tgz#d2f4404befebf2fbdc28390d5494c302f74ae974" + integrity sha512-KXvaTbX+7ha8a/k+eg6SYRVERK0NddX8QX7a7AnRvUa/rEH0CNMlpcBzBkhI0wp2C8C4HlMoYl8TImSN+fuHKA== + dependencies: + "@babel/runtime" "^7.11.1" + classnames "^2.2.1" + rc-util "^5.18.1" + +rc-mentions@~2.20.0: + version "2.20.0" + resolved "https://registry.npmmirror.com/rc-mentions/-/rc-mentions-2.20.0.tgz#3bbeac0352b02e0ce3e1244adb48701bb6903bf7" + integrity sha512-w8HCMZEh3f0nR8ZEd466ATqmXFCMGMN5UFCzEUL0bM/nGw/wOS2GgRzKBcm19K++jDyuWCOJOdgcKGXU3fXfbQ== + dependencies: + "@babel/runtime" "^7.22.5" + "@rc-component/trigger" "^2.0.0" + classnames "^2.2.6" + rc-input "~1.8.0" + rc-menu "~9.16.0" + rc-textarea "~1.10.0" + rc-util "^5.34.1" + +rc-menu@~9.16.0, rc-menu@~9.16.1: + version "9.16.1" + resolved "https://registry.npmmirror.com/rc-menu/-/rc-menu-9.16.1.tgz#9df1168e41d87dc7164c582173e1a1d32011899f" + integrity sha512-ghHx6/6Dvp+fw8CJhDUHFHDJ84hJE3BXNCzSgLdmNiFErWSOaZNsihDAsKq9ByTALo/xkNIwtDFGIl6r+RPXBg== + dependencies: + "@babel/runtime" "^7.10.1" + "@rc-component/trigger" "^2.0.0" + classnames "2.x" + rc-motion "^2.4.3" + rc-overflow "^1.3.1" + rc-util "^5.27.0" + +rc-motion@^2.0.0, rc-motion@^2.0.1, rc-motion@^2.3.0, rc-motion@^2.3.4, rc-motion@^2.4.3, rc-motion@^2.4.4, rc-motion@^2.6.1, rc-motion@^2.6.2, rc-motion@^2.9.0, rc-motion@^2.9.5: + version "2.9.5" + resolved "https://registry.npmmirror.com/rc-motion/-/rc-motion-2.9.5.tgz#12c6ead4fd355f94f00de9bb4f15df576d677e0c" + integrity sha512-w+XTUrfh7ArbYEd2582uDrEhmBHwK1ZENJiSJVb7uRxdE7qJSYjbO2eksRXmndqyKqKoYPc9ClpPh5242mV1vA== + dependencies: + "@babel/runtime" "^7.11.1" + classnames "^2.2.1" + rc-util "^5.44.0" + +rc-notification@~5.6.4: + version "5.6.4" + resolved "https://registry.npmmirror.com/rc-notification/-/rc-notification-5.6.4.tgz#ea89c39c13cd517fdfd97fe63f03376fabb78544" + integrity sha512-KcS4O6B4qzM3KH7lkwOB7ooLPZ4b6J+VMmQgT51VZCeEcmghdeR4IrMcFq0LG+RPdnbe/ArT086tGM8Snimgiw== + dependencies: + "@babel/runtime" "^7.10.1" + classnames "2.x" + rc-motion "^2.9.0" + rc-util "^5.20.1" + +rc-overflow@^1.3.1, rc-overflow@^1.3.2: + version "1.5.0" + resolved "https://registry.npmmirror.com/rc-overflow/-/rc-overflow-1.5.0.tgz#02e58a15199e392adfcc87e0d6e9e7c8e57f2771" + integrity sha512-Lm/v9h0LymeUYJf0x39OveU52InkdRXqnn2aYXfWmo8WdOonIKB2kfau+GF0fWq6jPgtdO9yMqveGcK6aIhJmg== + dependencies: + "@babel/runtime" "^7.11.1" + classnames "^2.2.1" + rc-resize-observer "^1.0.0" + rc-util "^5.37.0" + +rc-pagination@~5.1.0: + version "5.1.0" + resolved "https://registry.npmmirror.com/rc-pagination/-/rc-pagination-5.1.0.tgz#a6e63a2c5db29e62f991282eb18a2d3ee725ba8b" + integrity sha512-8416Yip/+eclTFdHXLKTxZvn70duYVGTvUUWbckCCZoIl3jagqke3GLsFrMs0bsQBikiYpZLD9206Ej4SOdOXQ== + dependencies: + "@babel/runtime" "^7.10.1" + classnames "^2.3.2" + rc-util "^5.38.0" + +rc-picker@~4.11.3: + version "4.11.3" + resolved "https://registry.npmmirror.com/rc-picker/-/rc-picker-4.11.3.tgz#7e7e3ad83aa461c284b8391c697492d1c34d2cb8" + integrity sha512-MJ5teb7FlNE0NFHTncxXQ62Y5lytq6sh5nUw0iH8OkHL/TjARSEvSHpr940pWgjGANpjCwyMdvsEV55l5tYNSg== + dependencies: + "@babel/runtime" "^7.24.7" + "@rc-component/trigger" "^2.0.0" + classnames "^2.2.1" + rc-overflow "^1.3.2" + rc-resize-observer "^1.4.0" + rc-util "^5.43.0" + +rc-progress@~4.0.0: + version "4.0.0" + resolved "https://registry.npmmirror.com/rc-progress/-/rc-progress-4.0.0.tgz#5382147d9add33d3a5fbd264001373df6440e126" + integrity sha512-oofVMMafOCokIUIBnZLNcOZFsABaUw8PPrf1/y0ZBvKZNpOiu5h4AO9vv11Sw0p4Hb3D0yGWuEattcQGtNJ/aw== + dependencies: + "@babel/runtime" "^7.10.1" + classnames "^2.2.6" + rc-util "^5.16.1" + +rc-rate@~2.13.1: + version "2.13.1" + resolved "https://registry.npmmirror.com/rc-rate/-/rc-rate-2.13.1.tgz#29af7a3d4768362e9d4388f955a8b6389526b7fd" + integrity sha512-QUhQ9ivQ8Gy7mtMZPAjLbxBt5y9GRp65VcUyGUMF3N3fhiftivPHdpuDIaWIMOTEprAjZPC08bls1dQB+I1F2Q== + dependencies: + "@babel/runtime" "^7.10.1" + classnames "^2.2.5" + rc-util "^5.0.1" + +rc-resize-observer@^1.0.0, rc-resize-observer@^1.1.0, rc-resize-observer@^1.3.1, rc-resize-observer@^1.4.0, rc-resize-observer@^1.4.3: + version "1.4.3" + resolved "https://registry.npmmirror.com/rc-resize-observer/-/rc-resize-observer-1.4.3.tgz#4fd41fa561ba51362b5155a07c35d7c89a1ea569" + integrity sha512-YZLjUbyIWox8E9i9C3Tm7ia+W7euPItNWSPX5sCcQTYbnwDb5uNpnLHQCG1f22oZWUhLw4Mv2tFmeWe68CDQRQ== + dependencies: + "@babel/runtime" "^7.20.7" + classnames "^2.2.1" + rc-util "^5.44.1" + resize-observer-polyfill "^1.5.1" + +rc-segmented@~2.7.0: + version "2.7.0" + resolved "https://registry.npmmirror.com/rc-segmented/-/rc-segmented-2.7.0.tgz#f56c2044abf8f03958b3a9a9d32987f10dcc4fc4" + integrity sha512-liijAjXz+KnTRVnxxXG2sYDGd6iLL7VpGGdR8gwoxAXy2KglviKCxLWZdjKYJzYzGSUwKDSTdYk8brj54Bn5BA== + dependencies: + "@babel/runtime" "^7.11.1" + classnames "^2.2.1" + rc-motion "^2.4.4" + rc-util "^5.17.0" + +rc-select@~14.16.2, rc-select@~14.16.8: + version "14.16.8" + resolved "https://registry.npmmirror.com/rc-select/-/rc-select-14.16.8.tgz#78e6782f1ccc1f03d9003bc3effa4ed609d29a97" + integrity sha512-NOV5BZa1wZrsdkKaiK7LHRuo5ZjZYMDxPP6/1+09+FB4KoNi8jcG1ZqLE3AVCxEsYMBe65OBx71wFoHRTP3LRg== + dependencies: + "@babel/runtime" "^7.10.1" + "@rc-component/trigger" "^2.1.1" + classnames "2.x" + rc-motion "^2.0.1" + rc-overflow "^1.3.1" + rc-util "^5.16.1" + rc-virtual-list "^3.5.2" + +rc-slider@~11.1.9: + version "11.1.9" + resolved "https://registry.npmmirror.com/rc-slider/-/rc-slider-11.1.9.tgz#d872130fbf4ec51f28543d62e90451091d6f5208" + integrity sha512-h8IknhzSh3FEM9u8ivkskh+Ef4Yo4JRIY2nj7MrH6GQmrwV6mcpJf5/4KgH5JaVI1H3E52yCdpOlVyGZIeph5A== + dependencies: + "@babel/runtime" "^7.10.1" + classnames "^2.2.5" + rc-util "^5.36.0" + +rc-steps@~6.0.1: + version "6.0.1" + resolved "https://registry.npmmirror.com/rc-steps/-/rc-steps-6.0.1.tgz#c2136cd0087733f6d509209a84a5c80dc29a274d" + integrity sha512-lKHL+Sny0SeHkQKKDJlAjV5oZ8DwCdS2hFhAkIjuQt1/pB81M0cA0ErVFdHq9+jmPmFw1vJB2F5NBzFXLJxV+g== + dependencies: + "@babel/runtime" "^7.16.7" + classnames "^2.2.3" + rc-util "^5.16.1" + +rc-switch@~4.1.0: + version "4.1.0" + resolved "https://registry.npmmirror.com/rc-switch/-/rc-switch-4.1.0.tgz#f37d81b4e0c5afd1274fd85367b17306bf25e7d7" + integrity sha512-TI8ufP2Az9oEbvyCeVE4+90PDSljGyuwix3fV58p7HV2o4wBnVToEyomJRVyTaZeqNPAp+vqeo4Wnj5u0ZZQBg== + dependencies: + "@babel/runtime" "^7.21.0" + classnames "^2.2.1" + rc-util "^5.30.0" + +rc-table@~7.54.0: + version "7.54.0" + resolved "https://registry.npmmirror.com/rc-table/-/rc-table-7.54.0.tgz#dedd4ea18d1189f2acdf90a80f04d8ca0111e16a" + integrity sha512-/wDTkki6wBTjwylwAGjpLKYklKo9YgjZwAU77+7ME5mBoS32Q4nAwoqhA2lSge6fobLW3Tap6uc5xfwaL2p0Sw== + dependencies: + "@babel/runtime" "^7.10.1" + "@rc-component/context" "^1.4.0" + classnames "^2.2.5" + rc-resize-observer "^1.1.0" + rc-util "^5.44.3" + rc-virtual-list "^3.14.2" + +rc-tabs@~15.7.0: + version "15.7.0" + resolved "https://registry.npmmirror.com/rc-tabs/-/rc-tabs-15.7.0.tgz#14ca2ee6213d00491a8b67ae26e2d35c256bf19a" + integrity sha512-ZepiE+6fmozYdWf/9gVp7k56PKHB1YYoDsKeQA1CBlJ/POIhjkcYiv0AGP0w2Jhzftd3AVvZP/K+V+Lpi2ankA== + dependencies: + "@babel/runtime" "^7.11.2" + classnames "2.x" + rc-dropdown "~4.2.0" + rc-menu "~9.16.0" + rc-motion "^2.6.2" + rc-resize-observer "^1.0.0" + rc-util "^5.34.1" + +rc-textarea@~1.10.0, rc-textarea@~1.10.2: + version "1.10.2" + resolved "https://registry.npmmirror.com/rc-textarea/-/rc-textarea-1.10.2.tgz#459e3574a95c32939c6793045a1e4db04cb514cc" + integrity sha512-HfaeXiaSlpiSp0I/pvWpecFEHpVysZ9tpDLNkxQbMvMz6gsr7aVZ7FpWP9kt4t7DB+jJXesYS0us1uPZnlRnwQ== + dependencies: + "@babel/runtime" "^7.10.1" + classnames "^2.2.1" + rc-input "~1.8.0" + rc-resize-observer "^1.0.0" + rc-util "^5.27.0" + +rc-tooltip@~6.4.0: + version "6.4.0" + resolved "https://registry.npmmirror.com/rc-tooltip/-/rc-tooltip-6.4.0.tgz#e832ed0392872025e59928cfc1ad9045656467fd" + integrity sha512-kqyivim5cp8I5RkHmpsp1Nn/Wk+1oeloMv9c7LXNgDxUpGm+RbXJGL+OPvDlcRnx9DBeOe4wyOIl4OKUERyH1g== + dependencies: + "@babel/runtime" "^7.11.2" + "@rc-component/trigger" "^2.0.0" + classnames "^2.3.1" + rc-util "^5.44.3" + +rc-tree-select@~5.27.0: + version "5.27.0" + resolved "https://registry.npmmirror.com/rc-tree-select/-/rc-tree-select-5.27.0.tgz#3daa62972ae80846dac96bf4776d1a9dc9c7c4c6" + integrity sha512-2qTBTzwIT7LRI1o7zLyrCzmo5tQanmyGbSaGTIf7sYimCklAToVVfpMC6OAldSKolcnjorBYPNSKQqJmN3TCww== + dependencies: + "@babel/runtime" "^7.25.7" + classnames "2.x" + rc-select "~14.16.2" + rc-tree "~5.13.0" + rc-util "^5.43.0" + +rc-tree@~5.13.0, rc-tree@~5.13.1: + version "5.13.1" + resolved "https://registry.npmmirror.com/rc-tree/-/rc-tree-5.13.1.tgz#f36a33a94a1282f4b09685216c01487089748910" + integrity sha512-FNhIefhftobCdUJshO7M8uZTA9F4OPGVXqGfZkkD/5soDeOhwO06T/aKTrg0WD8gRg/pyfq+ql3aMymLHCTC4A== + dependencies: + "@babel/runtime" "^7.10.1" + classnames "2.x" + rc-motion "^2.0.1" + rc-util "^5.16.1" + rc-virtual-list "^3.5.1" + +rc-upload@~4.11.0: + version "4.11.0" + resolved "https://registry.npmmirror.com/rc-upload/-/rc-upload-4.11.0.tgz#c2ced905a8b38b3e5c48493d388ca0e8373de18b" + integrity sha512-ZUyT//2JAehfHzjWowqROcwYJKnZkIUGWaTE/VogVrepSl7AFNbQf4+zGfX4zl9Vrj/Jm8scLO0R6UlPDKK4wA== + dependencies: + "@babel/runtime" "^7.18.3" + classnames "^2.2.5" + rc-util "^5.2.0" + +rc-util@^5.0.1, rc-util@^5.16.1, rc-util@^5.17.0, rc-util@^5.18.1, rc-util@^5.2.0, rc-util@^5.20.1, rc-util@^5.21.0, rc-util@^5.24.4, rc-util@^5.25.2, rc-util@^5.27.0, rc-util@^5.30.0, rc-util@^5.31.1, rc-util@^5.32.2, rc-util@^5.34.1, rc-util@^5.35.0, rc-util@^5.36.0, rc-util@^5.37.0, rc-util@^5.38.0, rc-util@^5.38.1, rc-util@^5.40.1, rc-util@^5.43.0, rc-util@^5.44.0, rc-util@^5.44.1, rc-util@^5.44.3, rc-util@^5.44.4: + version "5.44.4" + resolved "https://registry.npmmirror.com/rc-util/-/rc-util-5.44.4.tgz#89ee9037683cca01cd60f1a6bbda761457dd6ba5" + integrity sha512-resueRJzmHG9Q6rI/DfK6Kdv9/Lfls05vzMs1Sk3M2P+3cJa+MakaZyWY8IPfehVuhPJFKrIY1IK4GqbiaiY5w== + dependencies: + "@babel/runtime" "^7.18.3" + react-is "^18.2.0" + +rc-virtual-list@^3.14.2, rc-virtual-list@^3.5.1, rc-virtual-list@^3.5.2: + version "3.19.2" + resolved "https://registry.npmmirror.com/rc-virtual-list/-/rc-virtual-list-3.19.2.tgz#1dd2d782c9a3ccbe537bb873447d73f83af8de0f" + integrity sha512-Ys6NcjwGkuwkeaWBDqfI3xWuZ7rDiQXlH1o2zLfFzATfEgXcqpk8CkgMfbJD81McqjcJVez25a3kPxCR807evA== + dependencies: + "@babel/runtime" "^7.20.0" + classnames "^2.2.6" + rc-resize-observer "^1.0.0" + rc-util "^5.36.0" + +react-dom@^18.2.0: + version "18.3.1" + resolved "https://registry.npmmirror.com/react-dom/-/react-dom-18.3.1.tgz#c2265d79511b57d479b3dd3fdfa51536494c5cb4" + integrity sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw== + dependencies: + loose-envify "^1.1.0" + scheduler "^0.23.2" + +react-is@^16.13.1: + version "16.13.1" + resolved "https://registry.npmmirror.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" + integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== + +react-is@^18.2.0: + version "18.3.1" + resolved "https://registry.npmmirror.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e" + integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg== + +react-markdown@~9.0.1: + version "9.0.3" + resolved "https://registry.npmmirror.com/react-markdown/-/react-markdown-9.0.3.tgz#c12bf60dad05e9bf650b86bcc612d80636e8456e" + integrity sha512-Yk7Z94dbgYTOrdk41Z74GoKA7rThnsbbqBTRYuxoe08qvfQ9tJVhmAKw6BJS/ZORG7kTy/s1QvYzSuaoBA1qfw== + dependencies: + "@types/hast" "^3.0.0" + devlop "^1.0.0" + hast-util-to-jsx-runtime "^2.0.0" + html-url-attributes "^3.0.0" + mdast-util-to-hast "^13.0.0" + remark-parse "^11.0.0" + remark-rehype "^11.0.0" + unified "^11.0.0" + unist-util-visit "^5.0.0" + vfile "^6.0.0" + +react-refresh@^0.17.0: + version "0.17.0" + resolved "https://registry.npmmirror.com/react-refresh/-/react-refresh-0.17.0.tgz#b7e579c3657f23d04eccbe4ad2e58a8ed51e7e53" + integrity sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ== + +react-router-dom@^6.20.1: + version "6.30.2" + resolved "https://registry.npmmirror.com/react-router-dom/-/react-router-dom-6.30.2.tgz#ee8c161bce4890d34484b552f8510f9af0e22b01" + integrity sha512-l2OwHn3UUnEVUqc6/1VMmR1cvZryZ3j3NzapC2eUXO1dB0sYp5mvwdjiXhpUbRb21eFow3qSxpP8Yv6oAU824Q== + dependencies: + "@remix-run/router" "1.23.1" + react-router "6.30.2" + +react-router@6.30.2: + version "6.30.2" + resolved "https://registry.npmmirror.com/react-router/-/react-router-6.30.2.tgz#c78a3b40f7011f49a373b1df89492e7d4ec12359" + integrity sha512-H2Bm38Zu1bm8KUE5NVWRMzuIyAV8p/JrOaBJAwVmp37AXG72+CZJlEBw6pdn9i5TBgLMhNDgijS4ZlblpHyWTA== + dependencies: + "@remix-run/router" "1.23.1" + +react@^18.2.0: + version "18.3.1" + resolved "https://registry.npmmirror.com/react/-/react-18.3.1.tgz#49ab892009c53933625bd16b2533fc754cab2891" + integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ== + dependencies: + loose-envify "^1.1.0" + +read-cache@^1.0.0: + version "1.0.0" + resolved "https://registry.npmmirror.com/read-cache/-/read-cache-1.0.0.tgz#e664ef31161166c9751cdbe8dbcf86b5fb58f774" + integrity sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA== + dependencies: + pify "^2.3.0" + +readdirp@~3.6.0: + version "3.6.0" + resolved "https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" + integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== + dependencies: + picomatch "^2.2.1" + +reflect.getprototypeof@^1.0.6, reflect.getprototypeof@^1.0.9: + version "1.0.10" + resolved "https://registry.npmmirror.com/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz#c629219e78a3316d8b604c765ef68996964e7bf9" + integrity sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw== + dependencies: + call-bind "^1.0.8" + define-properties "^1.2.1" + es-abstract "^1.23.9" + es-errors "^1.3.0" + es-object-atoms "^1.0.0" + get-intrinsic "^1.2.7" + get-proto "^1.0.1" + which-builtin-type "^1.2.1" + +refractor@^4.8.0: + version "4.9.0" + resolved "https://registry.npmmirror.com/refractor/-/refractor-4.9.0.tgz#2e1c7af0157230cdd2f9086660912eadc5f68323" + integrity sha512-nEG1SPXFoGGx+dcjftjv8cAjEusIh6ED1xhf5DG3C0x/k+rmZ2duKnc3QLpt6qeHv5fPb8uwN3VWN2BT7fr3Og== + dependencies: + "@types/hast" "^2.0.0" + "@types/prismjs" "^1.0.0" + hastscript "^7.0.0" + parse-entities "^4.0.0" + +regexp.prototype.flags@^1.5.3, regexp.prototype.flags@^1.5.4: + version "1.5.4" + resolved "https://registry.npmmirror.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz#1ad6c62d44a259007e55b3970e00f746efbcaa19" + integrity sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA== + dependencies: + call-bind "^1.0.8" + define-properties "^1.2.1" + es-errors "^1.3.0" + get-proto "^1.0.1" + gopd "^1.2.0" + set-function-name "^2.0.2" + +rehype-attr@~3.0.1: + version "3.0.3" + resolved "https://registry.npmmirror.com/rehype-attr/-/rehype-attr-3.0.3.tgz#36b9c3d2bd91708f0c56080bc3005cba60dec4a7" + integrity sha512-Up50Xfra8tyxnkJdCzLBIBtxOcB2M1xdeKe1324U06RAvSjYm7ULSeoM+b/nYPQPVd7jsXJ9+39IG1WAJPXONw== + dependencies: + unified "~11.0.0" + unist-util-visit "~5.0.0" + +rehype-autolink-headings@~7.1.0: + version "7.1.0" + resolved "https://registry.npmmirror.com/rehype-autolink-headings/-/rehype-autolink-headings-7.1.0.tgz#531087e155d9df053944923efd47d99728f3b196" + integrity sha512-rItO/pSdvnvsP4QRB1pmPiNHUskikqtPojZKJPPPAVx9Hj8i8TwMBhofrrAYRhYOOBZH9tgmG5lPqDLuIWPWmw== + dependencies: + "@types/hast" "^3.0.0" + "@ungap/structured-clone" "^1.0.0" + hast-util-heading-rank "^3.0.0" + hast-util-is-element "^3.0.0" + unified "^11.0.0" + unist-util-visit "^5.0.0" + +rehype-highlight@^7.0.2: + version "7.0.2" + resolved "https://registry.npmmirror.com/rehype-highlight/-/rehype-highlight-7.0.2.tgz#997e05e3a336853f6f6b2cfc450c5dad0f960b07" + integrity sha512-k158pK7wdC2qL3M5NcZROZ2tR/l7zOzjxXd5VGdcfIyoijjQqpHd3JKtYSBDpDZ38UI2WJWuFAtkMDxmx5kstA== + dependencies: + "@types/hast" "^3.0.0" + hast-util-to-text "^4.0.0" + lowlight "^3.0.0" + unist-util-visit "^5.0.0" + vfile "^6.0.0" + +rehype-ignore@^2.0.0: + version "2.0.3" + resolved "https://registry.npmmirror.com/rehype-ignore/-/rehype-ignore-2.0.3.tgz#2548758120fa7aa6ede5e0bbea1b850d25c8fbf4" + integrity sha512-IzhP6/u/6sm49sdktuYSmeIuObWB+5yC/5eqVws8BhuGA9kY25/byz6uCy/Ravj6lXUShEd2ofHM5MyAIj86Sg== + dependencies: + hast-util-select "^6.0.0" + unified "^11.0.0" + unist-util-visit "^5.0.0" + +rehype-parse@^9.0.0: + version "9.0.1" + resolved "https://registry.npmmirror.com/rehype-parse/-/rehype-parse-9.0.1.tgz#9993bda129acc64c417a9d3654a7be38b2a94c20" + integrity sha512-ksCzCD0Fgfh7trPDxr2rSylbwq9iYDkSn8TCDmEJ49ljEUBxDVCzCHv7QNzZOfODanX4+bWQ4WZqLCRWYLfhag== + dependencies: + "@types/hast" "^3.0.0" + hast-util-from-html "^2.0.0" + unified "^11.0.0" + +rehype-prism-plus@2.0.0: + version "2.0.0" + resolved "https://registry.npmmirror.com/rehype-prism-plus/-/rehype-prism-plus-2.0.0.tgz#75b1e2d0dd7496125987a1732cb7d560de02a0fd" + integrity sha512-FeM/9V2N7EvDZVdR2dqhAzlw5YI49m9Tgn7ZrYJeYHIahM6gcXpH0K1y2gNnKanZCydOMluJvX2cB9z3lhY8XQ== + dependencies: + hast-util-to-string "^3.0.0" + parse-numeric-range "^1.3.0" + refractor "^4.8.0" + rehype-parse "^9.0.0" + unist-util-filter "^5.0.0" + unist-util-visit "^5.0.0" + +rehype-prism-plus@~2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/rehype-prism-plus/-/rehype-prism-plus-2.0.1.tgz#5acc4c1940f90d9170cc0e9055de240b2da899c9" + integrity sha512-Wglct0OW12tksTUseAPyWPo3srjBOY7xKlql/DPKi7HbsdZTyaLCAoO58QBKSczFQxElTsQlOY3JDOFzB/K++Q== + dependencies: + hast-util-to-string "^3.0.0" + parse-numeric-range "^1.3.0" + refractor "^4.8.0" + rehype-parse "^9.0.0" + unist-util-filter "^5.0.0" + unist-util-visit "^5.0.0" + +rehype-raw@^7.0.0: + version "7.0.0" + resolved "https://registry.npmmirror.com/rehype-raw/-/rehype-raw-7.0.0.tgz#59d7348fd5dbef3807bbaa1d443efd2dd85ecee4" + integrity sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww== + dependencies: + "@types/hast" "^3.0.0" + hast-util-raw "^9.0.0" + vfile "^6.0.0" + +rehype-rewrite@~4.0.0: + version "4.0.4" + resolved "https://registry.npmmirror.com/rehype-rewrite/-/rehype-rewrite-4.0.4.tgz#69c89f18c42033a7e73f79178b8f0578dd3a5a69" + integrity sha512-L/FO96EOzSA6bzOam4DVu61/PB3AGKcSPXpa53yMIozoxH4qg1+bVZDF8zh1EsuxtSauAhzt5cCnvoplAaSLrw== + dependencies: + hast-util-select "^6.0.0" + unified "^11.0.3" + unist-util-visit "^5.0.0" + +rehype-slug@^6.0.0, rehype-slug@~6.0.0: + version "6.0.0" + resolved "https://registry.npmmirror.com/rehype-slug/-/rehype-slug-6.0.0.tgz#1d21cf7fc8a83ef874d873c15e6adaee6344eaf1" + integrity sha512-lWyvf/jwu+oS5+hL5eClVd3hNdmwM1kAC0BUvEGD19pajQMIzcNUd/k9GsfQ+FfECvX+JE+e9/btsKH0EjJT6A== + dependencies: + "@types/hast" "^3.0.0" + github-slugger "^2.0.0" + hast-util-heading-rank "^3.0.0" + hast-util-to-string "^3.0.0" + unist-util-visit "^5.0.0" + +rehype-stringify@^10.0.0: + version "10.0.1" + resolved "https://registry.npmmirror.com/rehype-stringify/-/rehype-stringify-10.0.1.tgz#2ec1ebc56c6aba07905d3b4470bdf0f684f30b75" + integrity sha512-k9ecfXHmIPuFVI61B9DeLPN0qFHfawM6RsuX48hoqlaKSF61RskNjSm1lI8PhBEM0MRdLxVVm4WmTqJQccH9mA== + dependencies: + "@types/hast" "^3.0.0" + hast-util-to-html "^9.0.0" + unified "^11.0.0" + +rehype@~13.0.0: + version "13.0.2" + resolved "https://registry.npmmirror.com/rehype/-/rehype-13.0.2.tgz#ab0b3ac26573d7b265a0099feffad450e4cf1952" + integrity sha512-j31mdaRFrwFRUIlxGeuPXXKWQxet52RBQRvCmzl5eCefn/KGbomK5GMHNMsOJf55fgo3qw5tST5neDuarDYR2A== + dependencies: + "@types/hast" "^3.0.0" + rehype-parse "^9.0.0" + rehype-stringify "^10.0.0" + unified "^11.0.0" + +remark-gfm@^4.0.1, remark-gfm@~4.0.0: + version "4.0.1" + resolved "https://registry.npmmirror.com/remark-gfm/-/remark-gfm-4.0.1.tgz#33227b2a74397670d357bf05c098eaf8513f0d6b" + integrity sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg== + dependencies: + "@types/mdast" "^4.0.0" + mdast-util-gfm "^3.0.0" + micromark-extension-gfm "^3.0.0" + remark-parse "^11.0.0" + remark-stringify "^11.0.0" + unified "^11.0.0" + +remark-github-blockquote-alert@^1.0.0: + version "1.3.1" + resolved "https://registry.npmmirror.com/remark-github-blockquote-alert/-/remark-github-blockquote-alert-1.3.1.tgz#36367542be9d94627d62d8fc5b925ea37d6bc9fe" + integrity sha512-OPNnimcKeozWN1w8KVQEuHOxgN3L4rah8geMOLhA5vN9wITqU4FWD+G26tkEsCGHiOVDbISx+Se5rGZ+D1p0Jg== + dependencies: + unist-util-visit "^5.0.0" + +remark-parse@^11.0.0: + version "11.0.0" + resolved "https://registry.npmmirror.com/remark-parse/-/remark-parse-11.0.0.tgz#aa60743fcb37ebf6b069204eb4da304e40db45a1" + integrity sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA== + dependencies: + "@types/mdast" "^4.0.0" + mdast-util-from-markdown "^2.0.0" + micromark-util-types "^2.0.0" + unified "^11.0.0" + +remark-rehype@^11.0.0: + version "11.1.2" + resolved "https://registry.npmmirror.com/remark-rehype/-/remark-rehype-11.1.2.tgz#2addaadda80ca9bd9aa0da763e74d16327683b37" + integrity sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw== + dependencies: + "@types/hast" "^3.0.0" + "@types/mdast" "^4.0.0" + mdast-util-to-hast "^13.0.0" + unified "^11.0.0" + vfile "^6.0.0" + +remark-stringify@^11.0.0: + version "11.0.0" + resolved "https://registry.npmmirror.com/remark-stringify/-/remark-stringify-11.0.0.tgz#4c5b01dd711c269df1aaae11743eb7e2e7636fd3" + integrity sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw== + dependencies: + "@types/mdast" "^4.0.0" + mdast-util-to-markdown "^2.0.0" + unified "^11.0.0" + +resize-observer-polyfill@^1.5.1: + version "1.5.1" + resolved "https://registry.npmmirror.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz#0e9020dd3d21024458d4ebd27e23e40269810464" + integrity sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg== + +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.npmmirror.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + +resolve@^1.1.7, resolve@^1.22.8: + version "1.22.11" + resolved "https://registry.npmmirror.com/resolve/-/resolve-1.22.11.tgz#aad857ce1ffb8bfa9b0b1ac29f1156383f68c262" + integrity sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ== + dependencies: + is-core-module "^2.16.1" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + +resolve@^2.0.0-next.5: + version "2.0.0-next.5" + resolved "https://registry.npmmirror.com/resolve/-/resolve-2.0.0-next.5.tgz#6b0ec3107e671e52b68cd068ef327173b90dc03c" + integrity sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA== + dependencies: + is-core-module "^2.13.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + +reusify@^1.0.4: + version "1.1.0" + resolved "https://registry.npmmirror.com/reusify/-/reusify-1.1.0.tgz#0fe13b9522e1473f51b558ee796e08f11f9b489f" + integrity sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw== + +rimraf@^3.0.2: + version "3.0.2" + resolved "https://registry.npmmirror.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + +rollup@^4.20.0: + version "4.53.5" + resolved "https://registry.npmmirror.com/rollup/-/rollup-4.53.5.tgz#820f46d435c207fd640256f34a0deadf8e95b118" + integrity sha512-iTNAbFSlRpcHeeWu73ywU/8KuU/LZmNCSxp6fjQkJBD3ivUb8tpDrXhIxEzA05HlYMEwmtaUnb3RP+YNv162OQ== + dependencies: + "@types/estree" "1.0.8" + optionalDependencies: + "@rollup/rollup-android-arm-eabi" "4.53.5" + "@rollup/rollup-android-arm64" "4.53.5" + "@rollup/rollup-darwin-arm64" "4.53.5" + "@rollup/rollup-darwin-x64" "4.53.5" + "@rollup/rollup-freebsd-arm64" "4.53.5" + "@rollup/rollup-freebsd-x64" "4.53.5" + "@rollup/rollup-linux-arm-gnueabihf" "4.53.5" + "@rollup/rollup-linux-arm-musleabihf" "4.53.5" + "@rollup/rollup-linux-arm64-gnu" "4.53.5" + "@rollup/rollup-linux-arm64-musl" "4.53.5" + "@rollup/rollup-linux-loong64-gnu" "4.53.5" + "@rollup/rollup-linux-ppc64-gnu" "4.53.5" + "@rollup/rollup-linux-riscv64-gnu" "4.53.5" + "@rollup/rollup-linux-riscv64-musl" "4.53.5" + "@rollup/rollup-linux-s390x-gnu" "4.53.5" + "@rollup/rollup-linux-x64-gnu" "4.53.5" + "@rollup/rollup-linux-x64-musl" "4.53.5" + "@rollup/rollup-openharmony-arm64" "4.53.5" + "@rollup/rollup-win32-arm64-msvc" "4.53.5" + "@rollup/rollup-win32-ia32-msvc" "4.53.5" + "@rollup/rollup-win32-x64-gnu" "4.53.5" + "@rollup/rollup-win32-x64-msvc" "4.53.5" + fsevents "~2.3.2" + +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== + dependencies: + queue-microtask "^1.2.2" + +safe-array-concat@^1.1.3: + version "1.1.3" + resolved "https://registry.npmmirror.com/safe-array-concat/-/safe-array-concat-1.1.3.tgz#c9e54ec4f603b0bbb8e7e5007a5ee7aecd1538c3" + integrity sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.2" + get-intrinsic "^1.2.6" + has-symbols "^1.1.0" + isarray "^2.0.5" + +safe-push-apply@^1.0.0: + version "1.0.0" + resolved "https://registry.npmmirror.com/safe-push-apply/-/safe-push-apply-1.0.0.tgz#01850e981c1602d398c85081f360e4e6d03d27f5" + integrity sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA== + dependencies: + es-errors "^1.3.0" + isarray "^2.0.5" + +safe-regex-test@^1.1.0: + version "1.1.0" + resolved "https://registry.npmmirror.com/safe-regex-test/-/safe-regex-test-1.1.0.tgz#7f87dfb67a3150782eaaf18583ff5d1711ac10c1" + integrity sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + is-regex "^1.2.1" + +scheduler@^0.23.2: + version "0.23.2" + resolved "https://registry.npmmirror.com/scheduler/-/scheduler-0.23.2.tgz#414ba64a3b282892e944cf2108ecc078d115cdc3" + integrity sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ== + dependencies: + loose-envify "^1.1.0" + +scroll-into-view-if-needed@^3.1.0: + version "3.1.0" + resolved "https://registry.npmmirror.com/scroll-into-view-if-needed/-/scroll-into-view-if-needed-3.1.0.tgz#fa9524518c799b45a2ef6bbffb92bcad0296d01f" + integrity sha512-49oNpRjWRvnU8NyGVmUaYG4jtTkNonFZI86MmGRDqBphEK2EXT9gdEUoQPZhuBM8yWHxCWbobltqYO5M4XrUvQ== + dependencies: + compute-scroll-into-view "^3.0.2" + +semver@^6.3.1: + version "6.3.1" + resolved "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" + integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== + +set-function-length@^1.2.2: + version "1.2.2" + resolved "https://registry.npmmirror.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" + integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== + dependencies: + define-data-property "^1.1.4" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + gopd "^1.0.1" + has-property-descriptors "^1.0.2" + +set-function-name@^2.0.2: + version "2.0.2" + resolved "https://registry.npmmirror.com/set-function-name/-/set-function-name-2.0.2.tgz#16a705c5a0dc2f5e638ca96d8a8cd4e1c2b90985" + integrity sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ== + dependencies: + define-data-property "^1.1.4" + es-errors "^1.3.0" + functions-have-names "^1.2.3" + has-property-descriptors "^1.0.2" + +set-proto@^1.0.0: + version "1.0.0" + resolved "https://registry.npmmirror.com/set-proto/-/set-proto-1.0.0.tgz#0760dbcff30b2d7e801fd6e19983e56da337565e" + integrity sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw== + dependencies: + dunder-proto "^1.0.1" + es-errors "^1.3.0" + es-object-atoms "^1.0.0" + +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + +side-channel-list@^1.0.0: + version "1.0.0" + resolved "https://registry.npmmirror.com/side-channel-list/-/side-channel-list-1.0.0.tgz#10cb5984263115d3b7a0e336591e290a830af8ad" + integrity sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA== + dependencies: + es-errors "^1.3.0" + object-inspect "^1.13.3" + +side-channel-map@^1.0.1: + version "1.0.1" + resolved "https://registry.npmmirror.com/side-channel-map/-/side-channel-map-1.0.1.tgz#d6bb6b37902c6fef5174e5f533fab4c732a26f42" + integrity sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + get-intrinsic "^1.2.5" + object-inspect "^1.13.3" + +side-channel-weakmap@^1.0.2: + version "1.0.2" + resolved "https://registry.npmmirror.com/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz#11dda19d5368e40ce9ec2bdc1fb0ecbc0790ecea" + integrity sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + get-intrinsic "^1.2.5" + object-inspect "^1.13.3" + side-channel-map "^1.0.1" + +side-channel@^1.1.0: + version "1.1.0" + resolved "https://registry.npmmirror.com/side-channel/-/side-channel-1.1.0.tgz#c3fcff9c4da932784873335ec9765fa94ff66bc9" + integrity sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw== + dependencies: + es-errors "^1.3.0" + object-inspect "^1.13.3" + side-channel-list "^1.0.0" + side-channel-map "^1.0.1" + side-channel-weakmap "^1.0.2" + +source-map-js@^1.2.1: + version "1.2.1" + resolved "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46" + integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA== + +space-separated-tokens@^2.0.0: + version "2.0.2" + resolved "https://registry.npmmirror.com/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz#1ecd9d2350a3844572c3f4a312bceb018348859f" + integrity sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q== + +stop-iteration-iterator@^1.1.0: + version "1.1.0" + resolved "https://registry.npmmirror.com/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz#f481ff70a548f6124d0312c3aa14cbfa7aa542ad" + integrity sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ== + dependencies: + es-errors "^1.3.0" + internal-slot "^1.1.0" + +string-convert@^0.2.0: + version "0.2.1" + resolved "https://registry.npmmirror.com/string-convert/-/string-convert-0.2.1.tgz#6982cc3049fbb4cd85f8b24568b9d9bf39eeff97" + integrity sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A== + +string.prototype.matchall@^4.0.12: + version "4.0.12" + resolved "https://registry.npmmirror.com/string.prototype.matchall/-/string.prototype.matchall-4.0.12.tgz#6c88740e49ad4956b1332a911e949583a275d4c0" + integrity sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.3" + define-properties "^1.2.1" + es-abstract "^1.23.6" + es-errors "^1.3.0" + es-object-atoms "^1.0.0" + get-intrinsic "^1.2.6" + gopd "^1.2.0" + has-symbols "^1.1.0" + internal-slot "^1.1.0" + regexp.prototype.flags "^1.5.3" + set-function-name "^2.0.2" + side-channel "^1.1.0" + +string.prototype.repeat@^1.0.0: + version "1.0.0" + resolved "https://registry.npmmirror.com/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz#e90872ee0308b29435aa26275f6e1b762daee01a" + integrity sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.5" + +string.prototype.trim@^1.2.10: + version "1.2.10" + resolved "https://registry.npmmirror.com/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz#40b2dd5ee94c959b4dcfb1d65ce72e90da480c81" + integrity sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.2" + define-data-property "^1.1.4" + define-properties "^1.2.1" + es-abstract "^1.23.5" + es-object-atoms "^1.0.0" + has-property-descriptors "^1.0.2" + +string.prototype.trimend@^1.0.9: + version "1.0.9" + resolved "https://registry.npmmirror.com/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz#62e2731272cd285041b36596054e9f66569b6942" + integrity sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.2" + define-properties "^1.2.1" + es-object-atoms "^1.0.0" + +string.prototype.trimstart@^1.0.8: + version "1.0.8" + resolved "https://registry.npmmirror.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz#7ee834dda8c7c17eff3118472bb35bfedaa34dde" + integrity sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg== + dependencies: + call-bind "^1.0.7" + define-properties "^1.2.1" + es-object-atoms "^1.0.0" + +stringify-entities@^4.0.0: + version "4.0.4" + resolved "https://registry.npmmirror.com/stringify-entities/-/stringify-entities-4.0.4.tgz#b3b79ef5f277cc4ac73caeb0236c5ba939b3a4f3" + integrity sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg== + dependencies: + character-entities-html4 "^2.0.0" + character-entities-legacy "^3.0.0" + +strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-json-comments@^3.1.1: + version "3.1.1" + resolved "https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== + +style-to-js@^1.0.0: + version "1.1.21" + resolved "https://registry.npmmirror.com/style-to-js/-/style-to-js-1.1.21.tgz#2908941187f857e79e28e9cd78008b9a0b3e0e8d" + integrity sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ== + dependencies: + style-to-object "1.0.14" + +style-to-object@1.0.14: + version "1.0.14" + resolved "https://registry.npmmirror.com/style-to-object/-/style-to-object-1.0.14.tgz#1d22f0e7266bb8c6d8cae5caf4ec4f005e08f611" + integrity sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw== + dependencies: + inline-style-parser "0.2.7" + +stylis@^4.3.4: + version "4.3.6" + resolved "https://registry.npmmirror.com/stylis/-/stylis-4.3.6.tgz#7c7b97191cb4f195f03ecab7d52f7902ed378320" + integrity sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ== + +sucrase@^3.35.0: + version "3.35.1" + resolved "https://registry.npmmirror.com/sucrase/-/sucrase-3.35.1.tgz#4619ea50393fe8bd0ae5071c26abd9b2e346bfe1" + integrity sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw== + dependencies: + "@jridgewell/gen-mapping" "^0.3.2" + commander "^4.0.0" + lines-and-columns "^1.1.6" + mz "^2.7.0" + pirates "^4.0.1" + tinyglobby "^0.2.11" + ts-interface-checker "^0.1.9" + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + dependencies: + has-flag "^4.0.0" + +supports-preserve-symlinks-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" + integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== + +tailwindcss@^3.3.6: + version "3.4.19" + resolved "https://registry.npmmirror.com/tailwindcss/-/tailwindcss-3.4.19.tgz#af2a0a4ae302d52ebe078b6775e799e132500ee2" + integrity sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ== + dependencies: + "@alloc/quick-lru" "^5.2.0" + arg "^5.0.2" + chokidar "^3.6.0" + didyoumean "^1.2.2" + dlv "^1.1.3" + fast-glob "^3.3.2" + glob-parent "^6.0.2" + is-glob "^4.0.3" + jiti "^1.21.7" + lilconfig "^3.1.3" + micromatch "^4.0.8" + normalize-path "^3.0.0" + object-hash "^3.0.0" + picocolors "^1.1.1" + postcss "^8.4.47" + postcss-import "^15.1.0" + postcss-js "^4.0.1" + postcss-load-config "^4.0.2 || ^5.0 || ^6.0" + postcss-nested "^6.2.0" + postcss-selector-parser "^6.1.2" + resolve "^1.22.8" + sucrase "^3.35.0" + +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.npmmirror.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== + +thenify-all@^1.0.0: + version "1.6.0" + resolved "https://registry.npmmirror.com/thenify-all/-/thenify-all-1.6.0.tgz#1a1918d402d8fc3f98fbf234db0bcc8cc10e9726" + integrity sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA== + dependencies: + thenify ">= 3.1.0 < 4" + +"thenify@>= 3.1.0 < 4": + version "3.3.1" + resolved "https://registry.npmmirror.com/thenify/-/thenify-3.3.1.tgz#8932e686a4066038a016dd9e2ca46add9838a95f" + integrity sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw== + dependencies: + any-promise "^1.0.0" + +throttle-debounce@^5.0.0, throttle-debounce@^5.0.2: + version "5.0.2" + resolved "https://registry.npmmirror.com/throttle-debounce/-/throttle-debounce-5.0.2.tgz#ec5549d84e053f043c9fd0f2a6dd892ff84456b1" + integrity sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A== + +tinyglobby@^0.2.11: + version "0.2.15" + resolved "https://registry.npmmirror.com/tinyglobby/-/tinyglobby-0.2.15.tgz#e228dd1e638cea993d2fdb4fcd2d4602a79951c2" + integrity sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ== + dependencies: + fdir "^6.5.0" + picomatch "^4.0.3" + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + +toggle-selection@^1.0.6: + version "1.0.6" + resolved "https://registry.npmmirror.com/toggle-selection/-/toggle-selection-1.0.6.tgz#6e45b1263f2017fa0acc7d89d78b15b8bf77da32" + integrity sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ== + +trim-lines@^3.0.0: + version "3.0.1" + resolved "https://registry.npmmirror.com/trim-lines/-/trim-lines-3.0.1.tgz#d802e332a07df861c48802c04321017b1bd87338" + integrity sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg== + +trough@^2.0.0: + version "2.2.0" + resolved "https://registry.npmmirror.com/trough/-/trough-2.2.0.tgz#94a60bd6bd375c152c1df911a4b11d5b0256f50f" + integrity sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw== + +ts-interface-checker@^0.1.9: + version "0.1.13" + resolved "https://registry.npmmirror.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz#784fd3d679722bc103b1b4b8030bcddb5db2a699" + integrity sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA== + +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== + dependencies: + prelude-ls "^1.2.1" + +type-fest@^0.20.2: + version "0.20.2" + resolved "https://registry.npmmirror.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" + integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== + +typed-array-buffer@^1.0.3: + version "1.0.3" + resolved "https://registry.npmmirror.com/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz#a72395450a4869ec033fd549371b47af3a2ee536" + integrity sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw== + dependencies: + call-bound "^1.0.3" + es-errors "^1.3.0" + is-typed-array "^1.1.14" + +typed-array-byte-length@^1.0.3: + version "1.0.3" + resolved "https://registry.npmmirror.com/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz#8407a04f7d78684f3d252aa1a143d2b77b4160ce" + integrity sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg== + dependencies: + call-bind "^1.0.8" + for-each "^0.3.3" + gopd "^1.2.0" + has-proto "^1.2.0" + is-typed-array "^1.1.14" + +typed-array-byte-offset@^1.0.4: + version "1.0.4" + resolved "https://registry.npmmirror.com/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz#ae3698b8ec91a8ab945016108aef00d5bff12355" + integrity sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ== + dependencies: + available-typed-arrays "^1.0.7" + call-bind "^1.0.8" + for-each "^0.3.3" + gopd "^1.2.0" + has-proto "^1.2.0" + is-typed-array "^1.1.15" + reflect.getprototypeof "^1.0.9" + +typed-array-length@^1.0.7: + version "1.0.7" + resolved "https://registry.npmmirror.com/typed-array-length/-/typed-array-length-1.0.7.tgz#ee4deff984b64be1e118b0de8c9c877d5ce73d3d" + integrity sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg== + dependencies: + call-bind "^1.0.7" + for-each "^0.3.3" + gopd "^1.0.1" + is-typed-array "^1.1.13" + possible-typed-array-names "^1.0.0" + reflect.getprototypeof "^1.0.6" + +unbox-primitive@^1.1.0: + version "1.1.0" + resolved "https://registry.npmmirror.com/unbox-primitive/-/unbox-primitive-1.1.0.tgz#8d9d2c9edeea8460c7f35033a88867944934d1e2" + integrity sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw== + dependencies: + call-bound "^1.0.3" + has-bigints "^1.0.2" + has-symbols "^1.1.0" + which-boxed-primitive "^1.1.1" + +unified@^11.0.0, unified@^11.0.3, unified@~11.0.0: + version "11.0.5" + resolved "https://registry.npmmirror.com/unified/-/unified-11.0.5.tgz#f66677610a5c0a9ee90cab2b8d4d66037026d9e1" + integrity sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA== + dependencies: + "@types/unist" "^3.0.0" + bail "^2.0.0" + devlop "^1.0.0" + extend "^3.0.0" + is-plain-obj "^4.0.0" + trough "^2.0.0" + vfile "^6.0.0" + +unist-util-filter@^5.0.0: + version "5.0.1" + resolved "https://registry.npmmirror.com/unist-util-filter/-/unist-util-filter-5.0.1.tgz#f9f3a0bdee007e040964c274dda27bac663d0a39" + integrity sha512-pHx7D4Zt6+TsfwylH9+lYhBhzyhEnCXs/lbq/Hstxno5z4gVdyc2WEW0asfjGKPyG4pEKrnBv5hdkO6+aRnQJw== + dependencies: + "@types/unist" "^3.0.0" + unist-util-is "^6.0.0" + unist-util-visit-parents "^6.0.0" + +unist-util-find-after@^5.0.0: + version "5.0.0" + resolved "https://registry.npmmirror.com/unist-util-find-after/-/unist-util-find-after-5.0.0.tgz#3fccc1b086b56f34c8b798e1ff90b5c54468e896" + integrity sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ== + dependencies: + "@types/unist" "^3.0.0" + unist-util-is "^6.0.0" + +unist-util-is@^6.0.0: + version "6.0.1" + resolved "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.1.tgz#d0a3f86f2dd0db7acd7d8c2478080b5c67f9c6a9" + integrity sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g== + dependencies: + "@types/unist" "^3.0.0" + +unist-util-position@^5.0.0: + version "5.0.0" + resolved "https://registry.npmmirror.com/unist-util-position/-/unist-util-position-5.0.0.tgz#678f20ab5ca1207a97d7ea8a388373c9cf896be4" + integrity sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA== + dependencies: + "@types/unist" "^3.0.0" + +unist-util-stringify-position@^4.0.0: + version "4.0.0" + resolved "https://registry.npmmirror.com/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz#449c6e21a880e0855bf5aabadeb3a740314abac2" + integrity sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ== + dependencies: + "@types/unist" "^3.0.0" + +unist-util-visit-parents@^6.0.0: + version "6.0.2" + resolved "https://registry.npmmirror.com/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz#777df7fb98652ce16b4b7cd999d0a1a40efa3a02" + integrity sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ== + dependencies: + "@types/unist" "^3.0.0" + unist-util-is "^6.0.0" + +unist-util-visit@^5.0.0, unist-util-visit@~5.0.0: + version "5.0.0" + resolved "https://registry.npmmirror.com/unist-util-visit/-/unist-util-visit-5.0.0.tgz#a7de1f31f72ffd3519ea71814cccf5fd6a9217d6" + integrity sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg== + dependencies: + "@types/unist" "^3.0.0" + unist-util-is "^6.0.0" + unist-util-visit-parents "^6.0.0" + +update-browserslist-db@^1.2.0: + version "1.2.3" + resolved "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz#64d76db58713136acbeb4c49114366cc6cc2e80d" + integrity sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w== + dependencies: + escalade "^3.2.0" + picocolors "^1.1.1" + +uri-js@^4.2.2: + version "4.4.1" + resolved "https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" + integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== + dependencies: + punycode "^2.1.0" + +use-sync-external-store@^1.2.2: + version "1.6.0" + resolved "https://registry.npmmirror.com/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz#b174bfa65cb2b526732d9f2ac0a408027876f32d" + integrity sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w== + +util-deprecate@^1.0.2: + version "1.0.2" + resolved "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== + +vfile-location@^5.0.0: + version "5.0.3" + resolved "https://registry.npmmirror.com/vfile-location/-/vfile-location-5.0.3.tgz#cb9eacd20f2b6426d19451e0eafa3d0a846225c3" + integrity sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg== + dependencies: + "@types/unist" "^3.0.0" + vfile "^6.0.0" + +vfile-message@^4.0.0: + version "4.0.3" + resolved "https://registry.npmmirror.com/vfile-message/-/vfile-message-4.0.3.tgz#87b44dddd7b70f0641c2e3ed0864ba73e2ea8df4" + integrity sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw== + dependencies: + "@types/unist" "^3.0.0" + unist-util-stringify-position "^4.0.0" + +vfile@^6.0.0: + version "6.0.3" + resolved "https://registry.npmmirror.com/vfile/-/vfile-6.0.3.tgz#3652ab1c496531852bf55a6bac57af981ebc38ab" + integrity sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q== + dependencies: + "@types/unist" "^3.0.0" + vfile-message "^4.0.0" + +vite@^5.0.8: + version "5.4.21" + resolved "https://registry.npmmirror.com/vite/-/vite-5.4.21.tgz#84a4f7c5d860b071676d39ba513c0d598fdc7027" + integrity sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw== + dependencies: + esbuild "^0.21.3" + postcss "^8.4.43" + rollup "^4.20.0" + optionalDependencies: + fsevents "~2.3.3" + +web-namespaces@^2.0.0: + version "2.0.1" + resolved "https://registry.npmmirror.com/web-namespaces/-/web-namespaces-2.0.1.tgz#1010ff7c650eccb2592cebeeaf9a1b253fd40692" + integrity sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ== + +which-boxed-primitive@^1.1.0, which-boxed-primitive@^1.1.1: + version "1.1.1" + resolved "https://registry.npmmirror.com/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz#d76ec27df7fa165f18d5808374a5fe23c29b176e" + integrity sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA== + dependencies: + is-bigint "^1.1.0" + is-boolean-object "^1.2.1" + is-number-object "^1.1.1" + is-string "^1.1.1" + is-symbol "^1.1.1" + +which-builtin-type@^1.2.1: + version "1.2.1" + resolved "https://registry.npmmirror.com/which-builtin-type/-/which-builtin-type-1.2.1.tgz#89183da1b4907ab089a6b02029cc5d8d6574270e" + integrity sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q== + dependencies: + call-bound "^1.0.2" + function.prototype.name "^1.1.6" + has-tostringtag "^1.0.2" + is-async-function "^2.0.0" + is-date-object "^1.1.0" + is-finalizationregistry "^1.1.0" + is-generator-function "^1.0.10" + is-regex "^1.2.1" + is-weakref "^1.0.2" + isarray "^2.0.5" + which-boxed-primitive "^1.1.0" + which-collection "^1.0.2" + which-typed-array "^1.1.16" + +which-collection@^1.0.2: + version "1.0.2" + resolved "https://registry.npmmirror.com/which-collection/-/which-collection-1.0.2.tgz#627ef76243920a107e7ce8e96191debe4b16c2a0" + integrity sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw== + dependencies: + is-map "^2.0.3" + is-set "^2.0.3" + is-weakmap "^2.0.2" + is-weakset "^2.0.3" + +which-typed-array@^1.1.16, which-typed-array@^1.1.19: + version "1.1.19" + resolved "https://registry.npmmirror.com/which-typed-array/-/which-typed-array-1.1.19.tgz#df03842e870b6b88e117524a4b364b6fc689f956" + integrity sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw== + dependencies: + available-typed-arrays "^1.0.7" + call-bind "^1.0.8" + call-bound "^1.0.4" + for-each "^0.3.5" + get-proto "^1.0.1" + gopd "^1.2.0" + has-tostringtag "^1.0.2" + +which@^2.0.1: + version "2.0.2" + resolved "https://registry.npmmirror.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + +word-wrap@^1.2.5: + version "1.2.5" + resolved "https://registry.npmmirror.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" + integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== + +wrappy@1: + version "1.0.2" + resolved "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== + +yallist@^3.0.2: + version "3.1.1" + resolved "https://registry.npmmirror.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== + +yocto-queue@^0.1.0: + version "0.1.0" + resolved "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" + integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== + +zustand@^4.4.7: + version "4.5.7" + resolved "https://registry.npmmirror.com/zustand/-/zustand-4.5.7.tgz#7d6bb2026a142415dd8be8891d7870e6dbe65f55" + integrity sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw== + dependencies: + use-sync-external-store "^1.2.2" + +zwitch@^2.0.0, zwitch@^2.0.4: + version "2.0.4" + resolved "https://registry.npmmirror.com/zwitch/-/zwitch-2.0.4.tgz#c827d4b0acb76fc3e685a4c6ec2902d51070e9d7" + integrity sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==