commit d136b9dddc0772588904e0af3e99a363b604c24b Author: zhougf Date: Fri May 29 00:26:43 2026 +0800 Initial screen starter scaffold diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..281ce7e --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +node_modules/ +dist/ +.env +.env.* +.DS_Store +*.log +coverage/ +data/ +uploads/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..71b5b6e --- /dev/null +++ b/README.md @@ -0,0 +1,53 @@ +# Dev Screen Starter + +Dev Screen Starter 是一个面向项目交付的大屏开发基础框架。它不提供拖拽式设计器,而是为每个客户项目提供可复用的屏幕适配、图表容器、数据刷新、调试工具和部署骨架。 + +## 定位 + +适合这种工作流: + +1. 接到客户大屏项目。 +2. 根据需求新建一个项目页面。 +3. 图表、布局、业务逻辑按客户定制开发。 +4. 复用基础框架能力,减少重复搭建成本。 + +不适合: + +- 让非技术人员拖拽搭屏。 +- 做通用低代码平台。 +- 维护复杂组件配置市场。 + +## 技术栈 + +- React +- TypeScript +- Vite +- ECharts +- pnpm workspace + +## 目录 + +```txt +apps/demo-screen/ 示例客户大屏 +packages/screen-core/ 屏幕适配、舞台、布局基础能力 +packages/charts/ ECharts 容器、状态封装、主题工具 +packages/data/ HTTP、轮询、mock、数据转换 +packages/debug/ 开发调试面板和日志工具 +templates/project-basic/ 新客户项目模板 +doc/ 项目规划和实施文档 +``` + +## 命令 + +```bash +pnpm install +pnpm dev +pnpm typecheck +pnpm build +``` + +## 项目文档 + +- [项目规划](doc/project-plan.md) +- [项目框架说明](doc/framework.md) +- [交付流程](doc/delivery-workflow.md) diff --git a/apps/customer-demo/index.html b/apps/customer-demo/index.html new file mode 100644 index 0000000..beb7baf --- /dev/null +++ b/apps/customer-demo/index.html @@ -0,0 +1,12 @@ + + + + + + 客户Demo态势大屏 + + +
+ + + diff --git a/apps/customer-demo/package.json b/apps/customer-demo/package.json new file mode 100644 index 0000000..8c6d519 --- /dev/null +++ b/apps/customer-demo/package.json @@ -0,0 +1,27 @@ +{ + "name": "@dev-screen-starter/customer-demo", + "version": "0.1.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --host 0.0.0.0", + "build": "tsc --noEmit && vite build", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@dev-screen-starter/charts": "workspace:*", + "@dev-screen-starter/data": "workspace:*", + "@dev-screen-starter/debug": "workspace:*", + "@dev-screen-starter/screen-core": "workspace:*", + "@vitejs/plugin-react": "^5.0.4", + "echarts": "^6.0.0", + "react": "^19.1.1", + "react-dom": "^19.1.1", + "vite": "^7.1.7" + }, + "devDependencies": { + "@types/react": "^19.1.16", + "@types/react-dom": "^19.1.9", + "typescript": "^5.9.2" + } +} diff --git a/apps/customer-demo/src/ProjectScreen.tsx b/apps/customer-demo/src/ProjectScreen.tsx new file mode 100644 index 0000000..120b72b --- /dev/null +++ b/apps/customer-demo/src/ProjectScreen.tsx @@ -0,0 +1,18 @@ +import { MetricCard, ScreenStage } from '@dev-screen-starter/screen-core' + +export function ProjectScreen() { + return ( + +
+ 客户Demo态势大屏 + 大屏总览 +
+ +
+ + + +
+
+ ) +} diff --git a/apps/customer-demo/src/main.tsx b/apps/customer-demo/src/main.tsx new file mode 100644 index 0000000..0395884 --- /dev/null +++ b/apps/customer-demo/src/main.tsx @@ -0,0 +1,5 @@ +import { createRoot } from 'react-dom/client' +import { ProjectScreen } from './ProjectScreen' +import './screen.css' + +createRoot(document.getElementById('root')!).render() diff --git a/apps/customer-demo/src/screen.css b/apps/customer-demo/src/screen.css new file mode 100644 index 0000000..744569d --- /dev/null +++ b/apps/customer-demo/src/screen.css @@ -0,0 +1,82 @@ +* { + box-sizing: border-box; +} + +body { + margin: 0; + background: #05090d; + color: #dce8f5; + font-family: + Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; +} + +.screen-viewport { + background: #05090d; + height: 100vh; + overflow: hidden; + position: relative; + width: 100vw; +} + +.screen-stage { + left: 50%; + overflow: hidden; + position: absolute; + top: 50%; + transform-origin: center center; +} + +.screen-title { + left: 56px; + position: absolute; + top: 42px; +} + +.screen-title span { + color: #88a1bd; + display: block; + font-size: 16px; + margin-bottom: 8px; +} + +.screen-title strong { + color: #f1f7ff; + font-size: 42px; +} + +.metric-row { + display: grid; + gap: 24px; + grid-template-columns: repeat(3, 1fr); + left: 56px; + position: absolute; + right: 56px; + top: 150px; +} + +.metric-card { + background: rgb(9 26 42 / 88%); + border: 1px solid rgb(88 130 171 / 42%); + border-radius: 8px; + min-height: 148px; + padding: 22px 24px; +} + +.metric-card span { + color: #9fb4cc; + display: block; + font-size: 16px; + margin-bottom: 18px; +} + +.metric-card strong { + color: #f0f7ff; + font-size: 48px; + line-height: 1; +} + +.metric-card small { + color: #9fb4cc; + font-size: 18px; + margin-left: 8px; +} diff --git a/apps/customer-demo/tsconfig.json b/apps/customer-demo/tsconfig.json new file mode 100644 index 0000000..3bc1e46 --- /dev/null +++ b/apps/customer-demo/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "jsx": "react-jsx", + "types": ["vite/client"] + }, + "include": ["src", "vite.config.ts"] +} diff --git a/apps/customer-demo/vite.config.ts b/apps/customer-demo/vite.config.ts new file mode 100644 index 0000000..12f7f53 --- /dev/null +++ b/apps/customer-demo/vite.config.ts @@ -0,0 +1,6 @@ +import react from '@vitejs/plugin-react' +import { defineConfig } from 'vite' + +export default defineConfig({ + plugins: [react()] +}) diff --git a/apps/demo-screen/index.html b/apps/demo-screen/index.html new file mode 100644 index 0000000..acc8361 --- /dev/null +++ b/apps/demo-screen/index.html @@ -0,0 +1,12 @@ + + + + + + Demo Screen + + +
+ + + diff --git a/apps/demo-screen/package.json b/apps/demo-screen/package.json new file mode 100644 index 0000000..0abd757 --- /dev/null +++ b/apps/demo-screen/package.json @@ -0,0 +1,28 @@ +{ + "name": "@dev-screen-starter/demo-screen", + "version": "0.1.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --host 0.0.0.0", + "build": "tsc --noEmit && vite build", + "typecheck": "tsc --noEmit", + "preview": "vite preview --host 0.0.0.0" + }, + "dependencies": { + "@dev-screen-starter/charts": "workspace:*", + "@dev-screen-starter/data": "workspace:*", + "@dev-screen-starter/debug": "workspace:*", + "@dev-screen-starter/screen-core": "workspace:*", + "@vitejs/plugin-react": "^5.0.4", + "echarts": "^6.0.0", + "react": "^19.1.1", + "react-dom": "^19.1.1", + "vite": "^7.1.7" + }, + "devDependencies": { + "@types/react": "^19.1.16", + "@types/react-dom": "^19.1.9", + "typescript": "^5.9.2" + } +} diff --git a/apps/demo-screen/src/demo/mockData.ts b/apps/demo-screen/src/demo/mockData.ts new file mode 100644 index 0000000..ef0a9da --- /dev/null +++ b/apps/demo-screen/src/demo/mockData.ts @@ -0,0 +1,38 @@ +export const metrics = [ + { label: '今日订单', value: 1280, unit: '单', tone: 'blue' as const }, + { label: '在线设备', value: 342, unit: '台', tone: 'green' as const }, + { label: '告警数量', value: 17, unit: '条', tone: 'amber' as const } +] + +export const orderTrend = { + xAxis: ['08:00', '10:00', '12:00', '14:00', '16:00', '18:00'], + values: [120, 240, 380, 520, 760, 920] +} + +export const channelOrders = { + categories: ['小程序', 'App', '门店', '渠道商', '客服'], + values: [420, 360, 280, 190, 130] +} + +export const regionRank = { + categories: ['华东', '华南', '华北', '西南', '东北'], + values: [960, 820, 680, 520, 390] +} + +export const orderShare = [ + { name: '标准订单', value: 56 }, + { name: '加急订单', value: 24 }, + { name: '售后工单', value: 12 }, + { name: '异常订单', value: 8 } +] + +export const qualityRadar = { + indicators: [ + { name: '响应', max: 100 }, + { name: '履约', max: 100 }, + { name: '成本', max: 100 }, + { name: '质量', max: 100 }, + { name: '满意度', max: 100 } + ], + values: [88, 76, 68, 92, 84] +} diff --git a/apps/demo-screen/src/main.tsx b/apps/demo-screen/src/main.tsx new file mode 100644 index 0000000..cb9cfdd --- /dev/null +++ b/apps/demo-screen/src/main.tsx @@ -0,0 +1,5 @@ +import { createRoot } from 'react-dom/client' +import { DemoOverview } from './pages/DemoOverview' +import './styles/screen.css' + +createRoot(document.getElementById('root')!).render() diff --git a/apps/demo-screen/src/pages/DemoOverview.tsx b/apps/demo-screen/src/pages/DemoOverview.tsx new file mode 100644 index 0000000..416d7c5 --- /dev/null +++ b/apps/demo-screen/src/pages/DemoOverview.tsx @@ -0,0 +1,85 @@ +import { + createBarOption, + createGaugeOption, + createLineOption, + createPieOption, + createRadarOption, + createRankBarOption, + EChart +} from '@dev-screen-starter/charts' +import { DebugBadge } from '@dev-screen-starter/debug' +import { MetricCard, Panel, ScreenStage } from '@dev-screen-starter/screen-core' +import { channelOrders, metrics, orderShare, orderTrend, qualityRadar, regionRank } from '../demo/mockData' + +export function DemoOverview() { + return ( + +
+ 客户项目大屏模板 + 运营态势总览 +
+ +
+ {metrics.map((metric) => ( + + ))} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ ) +} diff --git a/apps/demo-screen/src/styles/screen.css b/apps/demo-screen/src/styles/screen.css new file mode 100644 index 0000000..4bb8c18 --- /dev/null +++ b/apps/demo-screen/src/styles/screen.css @@ -0,0 +1,143 @@ +* { + box-sizing: border-box; +} + +body { + margin: 0; + background: #05090d; + color: #dce8f5; + font-family: + Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; +} + +.screen-viewport { + background: #05090d; + height: 100vh; + overflow: hidden; + position: relative; + width: 100vw; +} + +.screen-stage { + left: 50%; + overflow: hidden; + position: absolute; + top: 50%; + transform-origin: center center; +} + +.screen-title { + display: flex; + flex-direction: column; + gap: 8px; + left: 56px; + position: absolute; + top: 42px; +} + +.screen-title span { + color: #88a1bd; + font-size: 16px; +} + +.screen-title strong { + color: #f1f7ff; + font-size: 42px; + letter-spacing: 0; +} + +.metric-row { + display: grid; + gap: 24px; + grid-template-columns: repeat(3, 1fr); + left: 56px; + position: absolute; + right: 56px; + top: 150px; +} + +.metric-card { + background: rgb(9 26 42 / 88%); + border: 1px solid rgb(88 130 171 / 42%); + border-radius: 8px; + min-height: 148px; + padding: 22px 24px; +} + +.metric-card span { + color: #9fb4cc; + display: block; + font-size: 16px; + margin-bottom: 18px; +} + +.metric-card strong { + color: #f0f7ff; + font-size: 48px; + line-height: 1; +} + +.metric-card small { + color: #9fb4cc; + font-size: 18px; + margin-left: 8px; +} + +.tone-green { + border-color: rgb(78 170 116 / 42%); +} + +.tone-amber { + border-color: rgb(216 161 62 / 42%); +} + +.screen-panel { + background: rgb(8 22 36 / 86%); + border: 1px solid rgb(88 130 171 / 36%); + border-radius: 8px; + display: flex; + flex-direction: column; + padding: 18px; +} + +.screen-panel header { + color: #d7e6f7; + font-size: 18px; + font-weight: 700; + margin-bottom: 12px; +} + +.screen-panel-body { + flex: 1; + min-height: 0; +} + +.chart-grid { + bottom: 56px; + display: grid; + gap: 20px; + grid-template-columns: repeat(3, 1fr); + grid-template-rows: repeat(2, minmax(0, 1fr)); + left: 56px; + position: absolute; + right: 56px; + top: 340px; +} + +.chart-host { + height: 100%; + width: 100%; +} + +.debug-badge { + background: rgb(3 8 13 / 80%); + border: 1px solid rgb(100 135 170 / 35%); + border-radius: 6px; + bottom: 18px; + color: #9fb4cc; + display: flex; + gap: 12px; + padding: 8px 10px; + position: absolute; + right: 18px; +} diff --git a/apps/demo-screen/tsconfig.json b/apps/demo-screen/tsconfig.json new file mode 100644 index 0000000..3bc1e46 --- /dev/null +++ b/apps/demo-screen/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "jsx": "react-jsx", + "types": ["vite/client"] + }, + "include": ["src", "vite.config.ts"] +} diff --git a/apps/demo-screen/vite.config.ts b/apps/demo-screen/vite.config.ts new file mode 100644 index 0000000..c9a64ad --- /dev/null +++ b/apps/demo-screen/vite.config.ts @@ -0,0 +1,9 @@ +import react from '@vitejs/plugin-react' +import { defineConfig } from 'vite' + +export default defineConfig({ + plugins: [react()], + server: { + port: 5173 + } +}) diff --git a/doc/delivery-workflow.md b/doc/delivery-workflow.md new file mode 100644 index 0000000..1cff59e --- /dev/null +++ b/doc/delivery-workflow.md @@ -0,0 +1,74 @@ +# 大屏项目交付流程 + +## 1. 接需求 + +确认内容: + +- 屏幕尺寸和播放设备。 +- 是否 1920x1080、4K、拼接屏或特殊比例。 +- 页面数量。 +- 指标定义。 +- 数据接口来源。 +- 刷新频率。 +- 是否需要实时推送。 +- 是否需要离线展示。 +- 客户视觉参考。 + +## 2. 新建项目 + +```bash +pnpm new customer-a 客户A运营大屏 +pnpm install +pnpm --filter @dev-screen-starter/customer-a dev +``` + +## 3. 实现页面 + +推荐顺序: + +1. 先定设计稿尺寸和布局。 +2. 写静态页面。 +3. 接 mock 数据。 +4. 接真实接口。 +5. 做不同屏幕适配验证。 +6. 做截图验收。 + +## 4. 数据接入 + +低频数据: + +- HTTP + `usePollingData` + +中频数据: + +- SSE 或 WebSocket + +高频数据: + +- 项目单独实现实时通道,不放进 starter 的默认能力。 + +## 5. 验收 + +检查项: + +- 目标屏幕比例下没有裁切错误。 +- 4K 或客户实际设备下文字清晰。 +- 图表 resize 正常。 +- loading、empty、error 状态可接受。 +- 接口断开时页面不崩溃。 +- 浏览器全屏展示正常。 +- 构建产物可以独立部署。 + +## 6. 部署 + +推荐: + +- `pnpm --filter build` +- 将 `dist/` 部署到 Nginx 或客户静态服务。 +- 数据接口通过环境变量配置。 + +后续可以补充: + +- Dockerfile +- Nginx config +- CI 构建脚本 diff --git a/doc/framework.md b/doc/framework.md new file mode 100644 index 0000000..cb1300f --- /dev/null +++ b/doc/framework.md @@ -0,0 +1,144 @@ +# 项目框架说明 + +## 1. 框架原则 + +Dev Screen Starter 只复用基础能力,不复用完整业务页面。每个客户大屏都应该是明确的代码实现,而不是通用 JSON 配置渲染。 + +框架关注: + +- 屏幕适配 +- 图表生命周期 +- 数据刷新 +- 调试体验 +- 项目模板 +- 部署约定 + +业务项目关注: + +- 客户视觉风格 +- 页面布局 +- 指标定义 +- 图表配置 +- 数据接口 +- 动效和交互 + +## 2. screen-core + +`screen-core` 提供大屏运行的基础组件。 + +### ScreenStage + +职责: + +- 固定设计稿尺寸,默认 `1920x1080`。 +- 根据浏览器窗口自动缩放。 +- 支持 `fit`、`fill`、`stretch`、`none`。 + +使用方式: + +```tsx + + + +``` + +### Panel + +用于常规图表面板或信息区域。 + +### MetricCard + +用于指标展示。项目中可以直接使用,也可以复制后按客户视觉重写。 + +## 3. charts + +`charts` 提供 ECharts 基础封装。 + +### EChart + +职责: + +- 初始化 ECharts 实例。 +- 监听容器尺寸变化并自动 resize。 +- 支持 loading 状态。 +- 组件卸载时自动 dispose。 + +### withChartDefaults + +提供基础 tooltip、grid、文字风格配置。项目里可以按客户视觉覆盖。 + +### 图表工厂 + +图表工厂只生成 ECharts option,不限制项目继续覆盖配置。 + +当前提供: + +- `createLineOption`:折线图,支持单序列和多序列。 +- `createBarOption`:柱状图,支持单序列和多序列。 +- `createRankBarOption`:横向排名条。 +- `createPieOption`:饼图/环图。 +- `createGaugeOption`:仪表盘。 +- `createRadarOption`:雷达图。 + +推荐用法: + +```tsx + +``` + +## 4. data + +`data` 提供轻量数据工具。 + +### requestJson + +封装基础 JSON 请求。 + +### usePollingData + +用于定时刷新接口数据。 + +适合: + +- 30 秒刷新指标。 +- 5 秒刷新告警。 +- 项目开发时接 mock loader。 + +不适合: + +- 高频毫秒级数据。 +- 大规模实时流。 + +这些场景建议按项目单独实现 WebSocket、SSE 或 MQTT。 + +## 5. debug + +`debug` 提供开发时调试组件。 + +### DebugBadge + +显示缩放比例、数据更新时间等轻量信息。生产环境默认不显示,项目可显式打开。 + +## 6. 项目模板 + +`templates/project-basic` 是新客户项目起点。 + +创建命令: + +```bash +pnpm new customer-a 客户A运营大屏 +``` + +生成: + +```txt +apps/customer-a/ +``` + +然后开发人员在该目录内自由实现客户页面。 diff --git a/doc/project-plan.md b/doc/project-plan.md new file mode 100644 index 0000000..a4ed19d --- /dev/null +++ b/doc/project-plan.md @@ -0,0 +1,109 @@ +# Dev Screen Starter 项目计划 + +## 1. 项目目标 + +Dev Screen Starter 不做拖拽式大屏设计器,而是提供一套项目型大屏开发基础框架。每次接到客户项目时,开发人员基于模板新建项目页面,根据客户需求定制布局、图表、数据接口和视觉风格。 + +核心目标: + +- 5 分钟创建一个新客户大屏项目。 +- 复用屏幕适配、图表容器、数据刷新、调试工具和部署骨架。 +- 保持每个项目的代码自由度,避免被低代码配置体系限制。 +- 让客户只看到高质量运行页,不接触编辑器。 + +## 2. 不做什么 + +- 不做拖拽编辑器。 +- 不做组件市场。 +- 不做配置化属性面板。 +- 不做客户自助搭屏。 +- 不做通用低代码平台。 + +## 3. 技术路线 + +基础技术栈: + +- React +- TypeScript +- Vite +- ECharts +- pnpm workspace + +推荐部署方式: + +- 静态构建产物部署到 Nginx、对象存储或客户服务器。 +- 数据接口由客户系统、轻量代理服务或项目后端提供。 +- 高频实时数据按项目需要接 WebSocket、SSE 或 MQTT。 + +## 4. 项目结构 + +```txt +apps/ + demo-screen/ 示例大屏项目 +packages/ + screen-core/ 屏幕适配、舞台、基础面板、指标卡 + charts/ ECharts 容器和通用图表默认配置 + data/ 请求、轮询、mock、数据转换 + debug/ 开发调试浮层 +templates/ + project-basic/ 新客户项目模板 +scripts/ + create-project.mjs 新建项目脚本 +doc/ + project-plan.md + framework.md + delivery-workflow.md +``` + +## 5. 第一阶段 + +目标:建立可复用基础框架和示例大屏。 + +交付内容: + +- `ScreenStage`:负责设计稿尺寸和屏幕适配。 +- `Panel`:常规大屏面板容器。 +- `MetricCard`:常见指标卡。 +- `EChart`:ECharts 自动初始化、销毁和 resize。 +- `usePollingData`:基础轮询数据 hook。 +- `DebugBadge`:开发环境调试浮层。 +- `demo-screen`:示例大屏项目。 +- `project-basic`:新客户项目模板。 +- `pnpm new [title]`:新建项目命令。 + +## 6. 第二阶段 + +目标:提升项目交付效率。 + +计划内容: + +- 增加 `ChartPanel` 组合组件。 +- 增加常用图表 option 工厂: + - 折线图 + - 柱状图 + - 饼图 + - 排名列表 +- 增加 mock/real 数据切换约定。 +- 增加 `.env` 示例。 +- 增加 Dockerfile 和 Nginx 静态部署模板。 + +## 7. 第三阶段 + +目标:沉淀项目经验和可复制交付流程。 + +计划内容: + +- 建立客户项目目录规范。 +- 建立视觉主题模板。 +- 建立数据接口适配规范。 +- 建立截图验收清单。 +- 建立大屏上线检查清单。 + +## 8. 成功标准 + +- 新项目能通过模板快速创建。 +- 示例大屏可运行、可构建。 +- 1920x1080 设计稿能适配不同屏幕。 +- 图表容器能自动 resize。 +- 项目开发时能清楚看到调试信息。 +- 每个客户项目可以自由写代码,不受设计器配置限制。 diff --git a/package.json b/package.json new file mode 100644 index 0000000..d07fa0e --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ +{ + "name": "dev-screen-starter", + "version": "0.1.0", + "private": true, + "type": "module", + "scripts": { + "dev": "pnpm --filter @dev-screen-starter/demo-screen dev", + "build": "pnpm -r build", + "typecheck": "pnpm -r typecheck", + "new": "node scripts/create-project.mjs" + }, + "devDependencies": { + "typescript": "^5.9.2" + }, + "pnpm": { + "onlyBuiltDependencies": [ + "esbuild" + ] + } +} diff --git a/packages/charts/package.json b/packages/charts/package.json new file mode 100644 index 0000000..66222dd --- /dev/null +++ b/packages/charts/package.json @@ -0,0 +1,21 @@ +{ + "name": "@dev-screen-starter/charts", + "version": "0.1.0", + "private": true, + "type": "module", + "exports": { + ".": "./src/index.ts" + }, + "scripts": { + "build": "tsc --noEmit", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "echarts": "^6.0.0", + "react": "^19.1.1" + }, + "devDependencies": { + "@types/react": "^19.1.16", + "typescript": "^5.9.2" + } +} diff --git a/packages/charts/src/EChart.tsx b/packages/charts/src/EChart.tsx new file mode 100644 index 0000000..09f3a44 --- /dev/null +++ b/packages/charts/src/EChart.tsx @@ -0,0 +1,44 @@ +import * as echarts from 'echarts' +import { useEffect, useRef } from 'react' + +type EChartProps = { + option: echarts.EChartsOption + loading?: boolean + className?: string +} + +export function EChart({ option, loading = false, className = '' }: EChartProps) { + const hostRef = useRef(null) + const chartRef = useRef(null) + + useEffect(() => { + if (!hostRef.current) { + return + } + + chartRef.current = echarts.init(hostRef.current) + const observer = new ResizeObserver(() => chartRef.current?.resize()) + observer.observe(hostRef.current) + + return () => { + observer.disconnect() + chartRef.current?.dispose() + chartRef.current = null + } + }, []) + + useEffect(() => { + chartRef.current?.setOption(option, true) + }, [option]) + + useEffect(() => { + if (loading) { + chartRef.current?.showLoading() + return + } + + chartRef.current?.hideLoading() + }, [loading]) + + return
+} diff --git a/packages/charts/src/chartTheme.ts b/packages/charts/src/chartTheme.ts new file mode 100644 index 0000000..7d0e15c --- /dev/null +++ b/packages/charts/src/chartTheme.ts @@ -0,0 +1,26 @@ +import type { EChartsOption } from 'echarts' + +export const baseChartTextStyle = { + color: '#d7e4f2', + fontFamily: 'Inter, ui-sans-serif, system-ui' +} + +export const withChartDefaults = (option: EChartsOption): EChartsOption => ({ + textStyle: baseChartTextStyle, + grid: { + top: 32, + right: 24, + bottom: 32, + left: 48, + containLabel: true + }, + tooltip: { + trigger: 'axis', + backgroundColor: '#101722', + borderColor: '#314154', + textStyle: { + color: '#d7e4f2' + } + }, + ...option +}) diff --git a/packages/charts/src/index.ts b/packages/charts/src/index.ts new file mode 100644 index 0000000..41d1146 --- /dev/null +++ b/packages/charts/src/index.ts @@ -0,0 +1,3 @@ +export * from './EChart' +export * from './chartTheme' +export * from './optionFactories' diff --git a/packages/charts/src/optionFactories.ts b/packages/charts/src/optionFactories.ts new file mode 100644 index 0000000..3e9ecf3 --- /dev/null +++ b/packages/charts/src/optionFactories.ts @@ -0,0 +1,263 @@ +import type { EChartsOption } from 'echarts' +import { withChartDefaults } from './chartTheme' + +type DataPoint = { + name: string + value: number +} + +type AxisChartInput = { + categories: string[] + values: number[] + name?: string + color?: string +} + +type MultiSeriesInput = { + categories: string[] + series: Array<{ + name: string + values: number[] + color?: string + }> +} + +type PieChartInput = { + data: DataPoint[] + radius?: string | [string, string] +} + +type GaugeChartInput = { + name?: string + value: number + min?: number + max?: number + unit?: string + color?: string +} + +type RadarChartInput = { + indicators: Array<{ + name: string + max: number + }> + values: number[] + name?: string + color?: string +} + +const axisLine = { lineStyle: { color: '#35506c' } } +const axisLabel = { color: '#9fb4cc' } +const splitLine = { lineStyle: { color: '#173047' } } + +export function createLineOption(input: AxisChartInput | MultiSeriesInput): EChartsOption { + const series = 'series' in input + ? input.series.map((item) => ({ + name: item.name, + type: 'line' as const, + smooth: true, + data: item.values, + areaStyle: { color: `${item.color ?? '#63a4ff'}22` }, + lineStyle: { color: item.color ?? '#63a4ff', width: 3 }, + symbolSize: 8 + })) + : [ + { + name: input.name, + type: 'line' as const, + smooth: true, + data: input.values, + areaStyle: { color: `${input.color ?? '#63a4ff'}22` }, + lineStyle: { color: input.color ?? '#63a4ff', width: 3 }, + symbolSize: 8 + } + ] + + return withChartDefaults({ + legend: 'series' in input ? { top: 0, textStyle: axisLabel } : undefined, + xAxis: { + type: 'category', + data: input.categories, + axisLine, + axisLabel + }, + yAxis: { + type: 'value', + splitLine, + axisLabel + }, + series + }) +} + +export function createBarOption(input: AxisChartInput | MultiSeriesInput): EChartsOption { + const series = 'series' in input + ? input.series.map((item) => ({ + name: item.name, + type: 'bar' as const, + data: item.values, + barMaxWidth: 28, + itemStyle: { color: item.color ?? '#63a4ff', borderRadius: [4, 4, 0, 0] } + })) + : [ + { + name: input.name, + type: 'bar' as const, + data: input.values, + barMaxWidth: 32, + itemStyle: { color: input.color ?? '#63a4ff', borderRadius: [4, 4, 0, 0] } + } + ] + + return withChartDefaults({ + legend: 'series' in input ? { top: 0, textStyle: axisLabel } : undefined, + xAxis: { + type: 'category', + data: input.categories, + axisLine, + axisLabel + }, + yAxis: { + type: 'value', + splitLine, + axisLabel + }, + series + }) +} + +export function createRankBarOption(input: AxisChartInput): EChartsOption { + return withChartDefaults({ + grid: { + top: 16, + right: 24, + bottom: 16, + left: 80, + containLabel: true + }, + xAxis: { + type: 'value', + splitLine, + axisLabel + }, + yAxis: { + type: 'category', + data: input.categories, + inverse: true, + axisLine: { show: false }, + axisTick: { show: false }, + axisLabel + }, + series: [ + { + name: input.name, + type: 'bar', + data: input.values, + barMaxWidth: 18, + label: { + show: true, + position: 'right', + color: '#d7e4f2' + }, + itemStyle: { color: input.color ?? '#63a4ff', borderRadius: [0, 4, 4, 0] } + } + ] + }) +} + +export function createPieOption(input: PieChartInput): EChartsOption { + return withChartDefaults({ + tooltip: { + trigger: 'item', + backgroundColor: '#101722', + borderColor: '#314154', + textStyle: { color: '#d7e4f2' } + }, + legend: { + bottom: 0, + textStyle: axisLabel + }, + series: [ + { + type: 'pie', + radius: input.radius ?? ['46%', '68%'], + center: ['50%', '45%'], + avoidLabelOverlap: true, + label: { color: '#d7e4f2' }, + data: input.data + } + ] + }) +} + +export function createGaugeOption(input: GaugeChartInput): EChartsOption { + const max = input.max ?? 100 + + return { + tooltip: { + formatter: `{b}: {c}${input.unit ?? ''}` + }, + series: [ + { + name: input.name, + type: 'gauge', + min: input.min ?? 0, + max, + progress: { + show: true, + width: 14, + itemStyle: { color: input.color ?? '#63a4ff' } + }, + axisLine: { + lineStyle: { + width: 14, + color: [[1, '#173047']] + } + }, + axisTick: { show: false }, + splitLine: { length: 8, lineStyle: { color: '#466886' } }, + axisLabel: { color: '#9fb4cc' }, + pointer: { width: 4 }, + detail: { + formatter: `{value}${input.unit ?? ''}`, + color: '#f0f7ff', + fontSize: 32 + }, + data: [{ name: input.name, value: input.value }] + } + ] + } +} + +export function createRadarOption(input: RadarChartInput): EChartsOption { + return withChartDefaults({ + tooltip: { + trigger: 'item', + backgroundColor: '#101722', + borderColor: '#314154', + textStyle: { color: '#d7e4f2' } + }, + radar: { + indicator: input.indicators, + axisName: { color: '#9fb4cc' }, + splitLine: { lineStyle: { color: '#24425e' } }, + splitArea: { areaStyle: { color: ['rgba(36, 66, 94, 0.16)', 'rgba(36, 66, 94, 0.05)'] } }, + axisLine: { lineStyle: { color: '#24425e' } } + }, + series: [ + { + name: input.name, + type: 'radar', + data: [ + { + name: input.name, + value: input.values, + areaStyle: { color: `${input.color ?? '#63a4ff'}33` }, + lineStyle: { color: input.color ?? '#63a4ff', width: 2 }, + itemStyle: { color: input.color ?? '#63a4ff' } + } + ] + } + ] + }) +} diff --git a/packages/charts/tsconfig.json b/packages/charts/tsconfig.json new file mode 100644 index 0000000..d0b8519 --- /dev/null +++ b/packages/charts/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "jsx": "react-jsx" + }, + "include": ["src"] +} diff --git a/packages/debug/package.json b/packages/debug/package.json new file mode 100644 index 0000000..f3bbb16 --- /dev/null +++ b/packages/debug/package.json @@ -0,0 +1,20 @@ +{ + "name": "@dev-screen-starter/debug", + "version": "0.1.0", + "private": true, + "type": "module", + "exports": { + ".": "./src/index.ts" + }, + "scripts": { + "build": "tsc --noEmit", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "react": "^19.1.1" + }, + "devDependencies": { + "@types/react": "^19.1.16", + "typescript": "^5.9.2" + } +} diff --git a/packages/debug/src/DebugBadge.tsx b/packages/debug/src/DebugBadge.tsx new file mode 100644 index 0000000..629b192 --- /dev/null +++ b/packages/debug/src/DebugBadge.tsx @@ -0,0 +1,20 @@ +type DebugBadgeProps = { + enabled?: boolean + scale?: number + updatedAt?: string +} + +const defaultEnabled = typeof location !== 'undefined' && location.hostname === 'localhost' + +export function DebugBadge({ enabled = defaultEnabled, scale, updatedAt }: DebugBadgeProps) { + if (!enabled) { + return null + } + + return ( + + ) +} diff --git a/packages/debug/src/index.ts b/packages/debug/src/index.ts new file mode 100644 index 0000000..992c884 --- /dev/null +++ b/packages/debug/src/index.ts @@ -0,0 +1 @@ +export * from './DebugBadge' diff --git a/packages/debug/tsconfig.json b/packages/debug/tsconfig.json new file mode 100644 index 0000000..d0b8519 --- /dev/null +++ b/packages/debug/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "jsx": "react-jsx" + }, + "include": ["src"] +} diff --git a/packages/screen-core/package.json b/packages/screen-core/package.json new file mode 100644 index 0000000..82d5dfe --- /dev/null +++ b/packages/screen-core/package.json @@ -0,0 +1,20 @@ +{ + "name": "@dev-screen-starter/screen-core", + "version": "0.1.0", + "private": true, + "type": "module", + "exports": { + ".": "./src/index.ts" + }, + "scripts": { + "build": "tsc --noEmit", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "react": "^19.1.1" + }, + "devDependencies": { + "@types/react": "^19.1.16", + "typescript": "^5.9.2" + } +} diff --git a/packages/screen-core/src/MetricCard.tsx b/packages/screen-core/src/MetricCard.tsx new file mode 100644 index 0000000..849aa4e --- /dev/null +++ b/packages/screen-core/src/MetricCard.tsx @@ -0,0 +1,18 @@ +type MetricCardProps = { + label: string + value: string | number + unit?: string + tone?: 'blue' | 'green' | 'amber' +} + +export function MetricCard({ label, value, unit, tone = 'blue' }: MetricCardProps) { + return ( +
+ {label} + + {value} + {unit ? {unit} : null} + +
+ ) +} diff --git a/packages/screen-core/src/Panel.tsx b/packages/screen-core/src/Panel.tsx new file mode 100644 index 0000000..ce73249 --- /dev/null +++ b/packages/screen-core/src/Panel.tsx @@ -0,0 +1,16 @@ +import type { ReactNode } from 'react' + +type PanelProps = { + title?: string + className?: string + children: ReactNode +} + +export function Panel({ title, className = '', children }: PanelProps) { + return ( +
+ {title ?
{title}
: null} +
{children}
+
+ ) +} diff --git a/packages/screen-core/src/ScreenStage.tsx b/packages/screen-core/src/ScreenStage.tsx new file mode 100644 index 0000000..276c36a --- /dev/null +++ b/packages/screen-core/src/ScreenStage.tsx @@ -0,0 +1,37 @@ +import { type CSSProperties, type ReactNode, useEffect, useMemo, useState } from 'react' +import { calculateStageScale, type ScaleMode } from './scale' + +type ScreenStageProps = { + width?: number + height?: number + scaleMode?: ScaleMode + background?: string + children: ReactNode +} + +export function ScreenStage({ width = 1920, height = 1080, scaleMode = 'fit', background = '#061826', children }: ScreenStageProps) { + const [viewport, setViewport] = useState({ width: window.innerWidth, height: window.innerHeight }) + + useEffect(() => { + const onResize = () => setViewport({ width: window.innerWidth, height: window.innerHeight }) + window.addEventListener('resize', onResize) + return () => window.removeEventListener('resize', onResize) + }, []) + + const scale = useMemo(() => calculateStageScale({ width, height, scaleMode }, viewport.width, viewport.height), [height, scaleMode, viewport.height, viewport.width, width]) + + const stageStyle: CSSProperties = { + width, + height, + background, + transform: `translate(-50%, -50%) scale(${scale.scaleX}, ${scale.scaleY})` + } + + return ( +
+
+ {children} +
+
+ ) +} diff --git a/packages/screen-core/src/index.ts b/packages/screen-core/src/index.ts new file mode 100644 index 0000000..5e3ad23 --- /dev/null +++ b/packages/screen-core/src/index.ts @@ -0,0 +1,4 @@ +export * from './scale' +export * from './ScreenStage' +export * from './Panel' +export * from './MetricCard' diff --git a/packages/screen-core/src/scale.ts b/packages/screen-core/src/scale.ts new file mode 100644 index 0000000..3a4787e --- /dev/null +++ b/packages/screen-core/src/scale.ts @@ -0,0 +1,30 @@ +export type ScaleMode = 'fit' | 'fill' | 'stretch' | 'none' + +export type ScreenSize = { + width: number + height: number + scaleMode?: ScaleMode +} + +export type StageScale = { + scaleX: number + scaleY: number +} + +export function calculateStageScale(screen: ScreenSize, viewportWidth: number, viewportHeight: number): StageScale { + const scaleMode = screen.scaleMode ?? 'fit' + + if (scaleMode === 'none') { + return { scaleX: 1, scaleY: 1 } + } + + const scaleX = viewportWidth / screen.width + const scaleY = viewportHeight / screen.height + + if (scaleMode === 'stretch') { + return { scaleX, scaleY } + } + + const scale = scaleMode === 'fill' ? Math.max(scaleX, scaleY) : Math.min(scaleX, scaleY) + return { scaleX: scale, scaleY: scale } +} diff --git a/packages/screen-core/tsconfig.json b/packages/screen-core/tsconfig.json new file mode 100644 index 0000000..d0b8519 --- /dev/null +++ b/packages/screen-core/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "jsx": "react-jsx" + }, + "include": ["src"] +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..46ca8a4 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,1310 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + typescript: + specifier: ^5.9.2 + version: 5.9.3 + + apps/customer-demo: + dependencies: + '@dev-screen-starter/charts': + specifier: workspace:* + version: link:../../packages/charts + '@dev-screen-starter/data': + specifier: workspace:* + version: link:../../packages/data + '@dev-screen-starter/debug': + specifier: workspace:* + version: link:../../packages/debug + '@dev-screen-starter/screen-core': + specifier: workspace:* + version: link:../../packages/screen-core + '@vitejs/plugin-react': + specifier: ^5.0.4 + version: 5.2.0(vite@7.3.3) + echarts: + specifier: ^6.0.0 + version: 6.1.0 + react: + specifier: ^19.1.1 + version: 19.2.6 + react-dom: + specifier: ^19.1.1 + version: 19.2.6(react@19.2.6) + vite: + specifier: ^7.1.7 + version: 7.3.3 + devDependencies: + '@types/react': + specifier: ^19.1.16 + version: 19.2.15 + '@types/react-dom': + specifier: ^19.1.9 + version: 19.2.3(@types/react@19.2.15) + typescript: + specifier: ^5.9.2 + version: 5.9.3 + + apps/demo-screen: + dependencies: + '@dev-screen-starter/charts': + specifier: workspace:* + version: link:../../packages/charts + '@dev-screen-starter/data': + specifier: workspace:* + version: link:../../packages/data + '@dev-screen-starter/debug': + specifier: workspace:* + version: link:../../packages/debug + '@dev-screen-starter/screen-core': + specifier: workspace:* + version: link:../../packages/screen-core + '@vitejs/plugin-react': + specifier: ^5.0.4 + version: 5.2.0(vite@7.3.3) + echarts: + specifier: ^6.0.0 + version: 6.1.0 + react: + specifier: ^19.1.1 + version: 19.2.6 + react-dom: + specifier: ^19.1.1 + version: 19.2.6(react@19.2.6) + vite: + specifier: ^7.1.7 + version: 7.3.3 + devDependencies: + '@types/react': + specifier: ^19.1.16 + version: 19.2.15 + '@types/react-dom': + specifier: ^19.1.9 + version: 19.2.3(@types/react@19.2.15) + typescript: + specifier: ^5.9.2 + version: 5.9.3 + + packages/charts: + dependencies: + echarts: + specifier: ^6.0.0 + version: 6.1.0 + react: + specifier: ^19.1.1 + version: 19.2.6 + devDependencies: + '@types/react': + specifier: ^19.1.16 + version: 19.2.15 + typescript: + specifier: ^5.9.2 + version: 5.9.3 + + packages/data: + dependencies: + react: + specifier: ^19.1.1 + version: 19.2.6 + devDependencies: + '@types/react': + specifier: ^19.1.16 + version: 19.2.15 + typescript: + specifier: ^5.9.2 + version: 5.9.3 + + packages/debug: + dependencies: + react: + specifier: ^19.1.1 + version: 19.2.6 + devDependencies: + '@types/react': + specifier: ^19.1.16 + version: 19.2.15 + typescript: + specifier: ^5.9.2 + version: 5.9.3 + + packages/screen-core: + dependencies: + react: + specifier: ^19.1.1 + version: 19.2.6 + devDependencies: + '@types/react': + specifier: ^19.1.16 + version: 19.2.15 + typescript: + specifier: ^5.9.2 + version: 5.9.3 + + templates/project-basic: + dependencies: + '@dev-screen-starter/charts': + specifier: workspace:* + version: link:../../packages/charts + '@dev-screen-starter/data': + specifier: workspace:* + version: link:../../packages/data + '@dev-screen-starter/debug': + specifier: workspace:* + version: link:../../packages/debug + '@dev-screen-starter/screen-core': + specifier: workspace:* + version: link:../../packages/screen-core + '@vitejs/plugin-react': + specifier: ^5.0.4 + version: 5.2.0(vite@7.3.3) + echarts: + specifier: ^6.0.0 + version: 6.1.0 + react: + specifier: ^19.1.1 + version: 19.2.6 + react-dom: + specifier: ^19.1.1 + version: 19.2.6(react@19.2.6) + vite: + specifier: ^7.1.7 + version: 7.3.3 + devDependencies: + '@types/react': + specifier: ^19.1.16 + version: 19.2.15 + '@types/react-dom': + specifier: ^19.1.9 + version: 19.2.3(@types/react@19.2.15) + typescript: + specifier: ^5.9.2 + version: 5.9.3 + +packages: + + '@babel/code-frame@7.29.7': + resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} + engines: {node: '>=6.9.0'} + + '@babel/compat-data@7.29.7': + resolution: {integrity: sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==} + engines: {node: '>=6.9.0'} + + '@babel/core@7.29.7': + resolution: {integrity: sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==} + engines: {node: '>=6.9.0'} + + '@babel/generator@7.29.7': + resolution: {integrity: sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==} + engines: {node: '>=6.9.0'} + + '@babel/helper-compilation-targets@7.29.7': + resolution: {integrity: sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==} + engines: {node: '>=6.9.0'} + + '@babel/helper-globals@7.29.7': + resolution: {integrity: sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-imports@7.29.7': + resolution: {integrity: sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-transforms@7.29.7': + resolution: {integrity: sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + + '@babel/helper-plugin-utils@7.29.7': + resolution: {integrity: sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-string-parser@7.29.7': + resolution: {integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.29.7': + resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-option@7.29.7': + resolution: {integrity: sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==} + engines: {node: '>=6.9.0'} + + '@babel/helpers@7.29.7': + resolution: {integrity: sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.29.7': + resolution: {integrity: sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/plugin-transform-react-jsx-self@7.29.7': + resolution: {integrity: sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-transform-react-jsx-source@7.29.7': + resolution: {integrity: sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/template@7.29.7': + resolution: {integrity: sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==} + engines: {node: '>=6.9.0'} + + '@babel/traverse@7.29.7': + resolution: {integrity: sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==} + engines: {node: '>=6.9.0'} + + '@babel/types@7.29.7': + resolution: {integrity: sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==} + engines: {node: '>=6.9.0'} + + '@esbuild/aix-ppc64@0.27.7': + resolution: {integrity: sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.27.7': + resolution: {integrity: sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.27.7': + resolution: {integrity: sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.27.7': + resolution: {integrity: sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.27.7': + resolution: {integrity: sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.27.7': + resolution: {integrity: sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.27.7': + resolution: {integrity: sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.27.7': + resolution: {integrity: sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.27.7': + resolution: {integrity: sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.27.7': + resolution: {integrity: sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.27.7': + resolution: {integrity: sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.27.7': + resolution: {integrity: sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.27.7': + resolution: {integrity: sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.27.7': + resolution: {integrity: sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.27.7': + resolution: {integrity: sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.27.7': + resolution: {integrity: sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.27.7': + resolution: {integrity: sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.27.7': + resolution: {integrity: sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.27.7': + resolution: {integrity: sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.27.7': + resolution: {integrity: sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.27.7': + resolution: {integrity: sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openharmony-arm64@0.27.7': + resolution: {integrity: sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/sunos-x64@0.27.7': + resolution: {integrity: sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.27.7': + resolution: {integrity: sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.27.7': + resolution: {integrity: sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.27.7': + resolution: {integrity: sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@jridgewell/gen-mapping@0.3.13': + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + + '@jridgewell/remapping@2.3.5': + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.5': + resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + + '@rolldown/pluginutils@1.0.0-rc.3': + resolution: {integrity: sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==} + + '@rollup/rollup-android-arm-eabi@4.60.4': + resolution: {integrity: sha512-F5QXMSiFebS9hKZj02XhWLLnRpJ3B3AROP0tWbFBSj+6kCbg5m9j5JoHKd4mmSVy5mS/IMQloYgYxCuJC0fxEQ==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.60.4': + resolution: {integrity: sha512-GxxTKApUpzRhof7poWvCJHRF51C67u1R7D6DiluBE8wKU1u5GWE8t+v81JvJYtbawoBFX1hLv5Ei4eVjkWokaw==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.60.4': + resolution: {integrity: sha512-tua0TaJxMOB1R0V0RS1jFZ/RpURFDJIOR2A6jWwQeawuFyS4gBW+rntLRaQd0EQ4bd6Vp44Z2rXW+YYDBsj6IA==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.60.4': + resolution: {integrity: sha512-CSKq7MsP+5PFIcydhAiR1K0UhEI1A2jWXVKHPCBZ151yOutENwvnPocgVHkivu2kviURtCEB6zUQw0vs8RrhMg==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.60.4': + resolution: {integrity: sha512-+O8OkVdyvXMtJEciu2wS/pzm1IxntEEQx3z5TAVy4l32G0etZn+RsA48ARRrFm6Ri8fvqPQfgrvNxSjKAbnd3g==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.60.4': + resolution: {integrity: sha512-Iw3oMskH3AfNuhU0MSN7vNbdi4me/NiYo2azqPz/Le16zHSa+3RRmliCMWWQmh4lcndccU40xcJuTYJZxNo/lw==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.60.4': + resolution: {integrity: sha512-EIPRXTVQpHyF8WOo219AD2yEltPehLTcTMz2fn6JsatLYSzQf00hj3rulF+yauOlF9/FtM2WpkT/hJh/KJFGhA==} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm-musleabihf@4.60.4': + resolution: {integrity: sha512-J3Yh9PzzF1Ovah2At+lHiGQdsYgArxBbXv/zHfSyaiFQEqvNv7DcW98pCrmdjCZBrqBiKrKKe2V+aaSGWuBe/w==} + cpu: [arm] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-arm64-gnu@4.60.4': + resolution: {integrity: sha512-BFDEZMYfUvLn37ONE1yMBojPxnMlTFsdyNoqncT0qFq1mAfllL+ATMMJd8TeuVMiX84s1KbcxcZbXInmcO2mRg==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm64-musl@4.60.4': + resolution: {integrity: sha512-pc9EYOSlOgdQ2uPl1o9PF6/kLSgaUosia7gOuS8mB69IxJvlclko1MECXysjs5ryez1/5zjYqx3+xYU0TU6R1A==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-loong64-gnu@4.60.4': + resolution: {integrity: sha512-NxnomyxYerDh5n4iLrNa+sH+Z+U4BMEE46V2PgQ/hoB909i8gV1M5wPojWg9fk1jWpO3IQnOs20K4wyZuFLEFQ==} + cpu: [loong64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-loong64-musl@4.60.4': + resolution: {integrity: sha512-nbJnQ8a3z1mtmrwImCYhc6BGpThAyYVRQxw9uKSKG4wR6aAYno9sVjJ0zaZcW9BPJX1GbrDPf+SvdWjgTuDmnw==} + cpu: [loong64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-ppc64-gnu@4.60.4': + resolution: {integrity: sha512-2EU6acNrQLd8tYvo/LXW535wupT3m6fo7HKo6lr7ktQoItxTyOL1ZCR/GfGCuXl2vR+zmfI6eRXkSemafv+iVg==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-ppc64-musl@4.60.4': + resolution: {integrity: sha512-WeBtoMuaMxiiIrO2IYP3xs6GMWkJP2C0EoT8beTLkUPmzV1i/UcOSVw1d5r9KBODtHKilG5yFxsGRnBbK3wJ4A==} + cpu: [ppc64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-riscv64-gnu@4.60.4': + resolution: {integrity: sha512-FJHFfqpKUI3A10WrWKiFbBZ7yVbGT4q4B5o1qKFFojqpaYoh9LrQgqWCmmcxQzVSXYtyB5bzkXrYzlHTs21MYA==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-riscv64-musl@4.60.4': + resolution: {integrity: sha512-mcEl6CUT5IAUmQf1m9FYSmVqCJlpQ8r8eyftFUHG8i9OhY7BkBXSUdnLH5DOf0wCOjcP9v/QO93zpmF1SptCCw==} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-s390x-gnu@4.60.4': + resolution: {integrity: sha512-ynt3JxVd2w2buzoKDWIyiV1pJW93xlQic1THVLXilz429oijRpSHivZAgp65KBu+cMcgf1eVVjdnTLvPxgCuoQ==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-gnu@4.60.4': + resolution: {integrity: sha512-Boiz5+MsaROEWDf+GGEwF8VMHGhlUoQMtIPjOgA5fv4osupqTVnJteQNKJwUcnUog2G55jYXH7KZFFiJe0TEzQ==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-musl@4.60.4': + resolution: {integrity: sha512-+qfSY27qIrFfI/Hom04KYFw3GKZSGU4lXus51wsb5EuySfFlWRwjkKWoE9emgRw/ukoT4Udsj4W/+xxG8VbPKg==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rollup/rollup-openbsd-x64@4.60.4': + resolution: {integrity: sha512-VpTfOPHgVXEBeeR8hZ2O0F3aSso+JDWqTWmTmzcQKted54IAdUVbxE+j/MVxUsKa8L20HJhv3vUezVPoquqWjA==} + cpu: [x64] + os: [openbsd] + + '@rollup/rollup-openharmony-arm64@4.60.4': + resolution: {integrity: sha512-IPOsh5aRYuLv/nkU51X10Bf75Bsf6+gZdx1X+QP5QM6lIJFHHqbHLG0uJn/hWthzo13UAc2umiUorqZy3axoZg==} + cpu: [arm64] + os: [openharmony] + + '@rollup/rollup-win32-arm64-msvc@4.60.4': + resolution: {integrity: sha512-4QzE9E81OohJ/HKzHhsqU+zcYYojVOXlFMs1DdyMT6qXl/niOH7AVElmmEdUNHHS/oRkc++d5k6Vy85zFs0DEw==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.60.4': + resolution: {integrity: sha512-zTPgT1YuHHcd+Tmx7h8aml0FWFVelV5N54oHow9SLj+GfoDy/huQ+UV396N/C7KpMDMiPspRktzM1/0r1usYEA==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-gnu@4.60.4': + resolution: {integrity: sha512-DRS4G7mi9lJxqEDezIkKCaUIKCrLUUDCUaCsTPCi/rtqaC6D/jjwslMQyiDU50Ka0JKpeXeRBFBAXwArY52vBw==} + cpu: [x64] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.60.4': + resolution: {integrity: sha512-QVTUovf40zgTqlFVrKA1uXMVvU2QWEFWfAH8Wdc48IxLvrJMQVMBRjuQyUpzZCDkakImib9eVazbWlC6ksWtJw==} + cpu: [x64] + os: [win32] + + '@types/babel__core@7.20.5': + resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} + + '@types/babel__generator@7.27.0': + resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==} + + '@types/babel__template@7.4.4': + resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==} + + '@types/babel__traverse@7.28.0': + resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==} + + '@types/estree@1.0.8': + resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} + + '@types/react-dom@19.2.3': + resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==} + peerDependencies: + '@types/react': ^19.2.0 + + '@types/react@19.2.15': + resolution: {integrity: sha512-eRwcGNHve+E8qtEQSSRl6urh+rFop4v8gm6O8rGv25CodbvFdLjA1vVQ1KkiFE0w0UPOnb8tDiFKL5lp0rtY5Q==} + + '@vitejs/plugin-react@5.2.0': + resolution: {integrity: sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 + + baseline-browser-mapping@2.10.32: + resolution: {integrity: sha512-wbPvpyjJPC0zdfdKXxqEL3Ea+bOMD/87X4lftiJkkaBiuG6ALQy1SLmEd7BSmVCuwCQsBrCamgBoLyfFDD1EPg==} + engines: {node: '>=6.0.0'} + hasBin: true + + browserslist@4.28.2: + resolution: {integrity: sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + + caniuse-lite@1.0.30001793: + resolution: {integrity: sha512-iwSsYWaCOoh26cV8NwNRViHlrfUvYsHDfRVcbtmw0Kg6PJIZZXwMkj1442FYLBGkeUf1juAsU3DTfxW579mrPA==} + + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + + csstype@3.2.3: + resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + echarts@6.1.0: + resolution: {integrity: sha512-q0yaFPggC9FUdsWH4blavRWFmxdrIodbkoKNAjJudAI6CA9gNPxHtV2RcZNEepZVlk4yvBYkOkbk6HIVpIyHZA==} + + electron-to-chromium@1.5.363: + resolution: {integrity: sha512-VjUKPyWzGnT1fujlkEGC/BvN70Hh70KXtAqcmniXviYlJC/ivcT+BWGPyxWVbJZLfvtKR6dqg1L7T7pgAMBtWA==} + + esbuild@0.27.7: + resolution: {integrity: sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==} + engines: {node: '>=18'} + hasBin: true + + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + gensync@1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + jsesc@3.1.0: + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} + hasBin: true + + json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} + engines: {node: '>=6'} + hasBin: true + + lru-cache@5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + nanoid@3.3.12: + resolution: {integrity: sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + node-releases@2.0.46: + resolution: {integrity: sha512-GYVXHE2KnrzAfsAjl4uP++evGFCrAU1jta4ubEjIG7YWt/64Gqv66a30yKwWczVjA6j3bM4nBwH7Pk1JmDHaxQ==} + engines: {node: '>=18'} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.4: + resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==} + engines: {node: '>=12'} + + postcss@8.5.15: + resolution: {integrity: sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==} + engines: {node: ^10 || ^12 || >=14} + + react-dom@19.2.6: + resolution: {integrity: sha512-0prMI+hvBbPjsWnxDLxlCGyM8PN6UuWjEUCYmZhO67xIV9Xasa/r/vDnq+Xyq4Lo27g8QSbO5YzARu0D1Sps3g==} + peerDependencies: + react: ^19.2.6 + + react-refresh@0.18.0: + resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==} + engines: {node: '>=0.10.0'} + + react@19.2.6: + resolution: {integrity: sha512-sfWGGfavi0xr8Pg0sVsyHMAOziVYKgPLNrS7ig+ivMNb3wbCBw3KxtflsGBAwD3gYQlE/AEZsTLgToRrSCjb0Q==} + engines: {node: '>=0.10.0'} + + rollup@4.60.4: + resolution: {integrity: sha512-WHeFSbZYsPu3+bLoNRUuAO+wavNlocOPf3wSHTP7hcFKVnJeWsYlCDbr3mTS14FCizf9ccIxXA8sGL8zKeQN3g==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + scheduler@0.27.0: + resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==} + + semver@6.3.1: + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} + hasBin: true + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + tinyglobby@0.2.16: + resolution: {integrity: sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==} + engines: {node: '>=12.0.0'} + + tslib@2.3.0: + resolution: {integrity: sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==} + + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} + hasBin: true + + update-browserslist-db@1.2.3: + resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + + vite@7.3.3: + resolution: {integrity: sha512-/4XH147Ui7OGTjg3HbdWe5arnZQSbfuRzdr9Ec7TQi5I7R+ir0Rlc9GIvD4v0XZurELqA035KVXJXpR61xhiTA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + jiti: '>=1.21.0' + less: ^4.0.0 + lightningcss: ^1.21.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + + zrender@6.1.0: + resolution: {integrity: sha512-oEGMDB6pOP2S6OwRR4PdVv610zrjnA3Bh+JnSG12fYJlBKjtNAoEb5fSUoCOOINlH96I2fU38/A2UpRKs67xYQ==} + +snapshots: + + '@babel/code-frame@7.29.7': + dependencies: + '@babel/helper-validator-identifier': 7.29.7 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/compat-data@7.29.7': {} + + '@babel/core@7.29.7': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/generator': 7.29.7 + '@babel/helper-compilation-targets': 7.29.7 + '@babel/helper-module-transforms': 7.29.7(@babel/core@7.29.7) + '@babel/helpers': 7.29.7 + '@babel/parser': 7.29.7 + '@babel/template': 7.29.7 + '@babel/traverse': 7.29.7 + '@babel/types': 7.29.7 + '@jridgewell/remapping': 2.3.5 + convert-source-map: 2.0.0 + debug: 4.4.3 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + '@babel/generator@7.29.7': + dependencies: + '@babel/parser': 7.29.7 + '@babel/types': 7.29.7 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + jsesc: 3.1.0 + + '@babel/helper-compilation-targets@7.29.7': + dependencies: + '@babel/compat-data': 7.29.7 + '@babel/helper-validator-option': 7.29.7 + browserslist: 4.28.2 + lru-cache: 5.1.1 + semver: 6.3.1 + + '@babel/helper-globals@7.29.7': {} + + '@babel/helper-module-imports@7.29.7': + dependencies: + '@babel/traverse': 7.29.7 + '@babel/types': 7.29.7 + transitivePeerDependencies: + - supports-color + + '@babel/helper-module-transforms@7.29.7(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-module-imports': 7.29.7 + '@babel/helper-validator-identifier': 7.29.7 + '@babel/traverse': 7.29.7 + transitivePeerDependencies: + - supports-color + + '@babel/helper-plugin-utils@7.29.7': {} + + '@babel/helper-string-parser@7.29.7': {} + + '@babel/helper-validator-identifier@7.29.7': {} + + '@babel/helper-validator-option@7.29.7': {} + + '@babel/helpers@7.29.7': + dependencies: + '@babel/template': 7.29.7 + '@babel/types': 7.29.7 + + '@babel/parser@7.29.7': + dependencies: + '@babel/types': 7.29.7 + + '@babel/plugin-transform-react-jsx-self@7.29.7(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-transform-react-jsx-source@7.29.7(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/template@7.29.7': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/parser': 7.29.7 + '@babel/types': 7.29.7 + + '@babel/traverse@7.29.7': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/generator': 7.29.7 + '@babel/helper-globals': 7.29.7 + '@babel/parser': 7.29.7 + '@babel/template': 7.29.7 + '@babel/types': 7.29.7 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + '@babel/types@7.29.7': + dependencies: + '@babel/helper-string-parser': 7.29.7 + '@babel/helper-validator-identifier': 7.29.7 + + '@esbuild/aix-ppc64@0.27.7': + optional: true + + '@esbuild/android-arm64@0.27.7': + optional: true + + '@esbuild/android-arm@0.27.7': + optional: true + + '@esbuild/android-x64@0.27.7': + optional: true + + '@esbuild/darwin-arm64@0.27.7': + optional: true + + '@esbuild/darwin-x64@0.27.7': + optional: true + + '@esbuild/freebsd-arm64@0.27.7': + optional: true + + '@esbuild/freebsd-x64@0.27.7': + optional: true + + '@esbuild/linux-arm64@0.27.7': + optional: true + + '@esbuild/linux-arm@0.27.7': + optional: true + + '@esbuild/linux-ia32@0.27.7': + optional: true + + '@esbuild/linux-loong64@0.27.7': + optional: true + + '@esbuild/linux-mips64el@0.27.7': + optional: true + + '@esbuild/linux-ppc64@0.27.7': + optional: true + + '@esbuild/linux-riscv64@0.27.7': + optional: true + + '@esbuild/linux-s390x@0.27.7': + optional: true + + '@esbuild/linux-x64@0.27.7': + optional: true + + '@esbuild/netbsd-arm64@0.27.7': + optional: true + + '@esbuild/netbsd-x64@0.27.7': + optional: true + + '@esbuild/openbsd-arm64@0.27.7': + optional: true + + '@esbuild/openbsd-x64@0.27.7': + optional: true + + '@esbuild/openharmony-arm64@0.27.7': + optional: true + + '@esbuild/sunos-x64@0.27.7': + optional: true + + '@esbuild/win32-arm64@0.27.7': + optional: true + + '@esbuild/win32-ia32@0.27.7': + optional: true + + '@esbuild/win32-x64@0.27.7': + optional: true + + '@jridgewell/gen-mapping@0.3.13': + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/remapping@2.3.5': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/sourcemap-codec@1.5.5': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.5 + + '@rolldown/pluginutils@1.0.0-rc.3': {} + + '@rollup/rollup-android-arm-eabi@4.60.4': + optional: true + + '@rollup/rollup-android-arm64@4.60.4': + optional: true + + '@rollup/rollup-darwin-arm64@4.60.4': + optional: true + + '@rollup/rollup-darwin-x64@4.60.4': + optional: true + + '@rollup/rollup-freebsd-arm64@4.60.4': + optional: true + + '@rollup/rollup-freebsd-x64@4.60.4': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.60.4': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.60.4': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.60.4': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.60.4': + optional: true + + '@rollup/rollup-linux-loong64-gnu@4.60.4': + optional: true + + '@rollup/rollup-linux-loong64-musl@4.60.4': + optional: true + + '@rollup/rollup-linux-ppc64-gnu@4.60.4': + optional: true + + '@rollup/rollup-linux-ppc64-musl@4.60.4': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.60.4': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.60.4': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.60.4': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.60.4': + optional: true + + '@rollup/rollup-linux-x64-musl@4.60.4': + optional: true + + '@rollup/rollup-openbsd-x64@4.60.4': + optional: true + + '@rollup/rollup-openharmony-arm64@4.60.4': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.60.4': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.60.4': + optional: true + + '@rollup/rollup-win32-x64-gnu@4.60.4': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.60.4': + optional: true + + '@types/babel__core@7.20.5': + dependencies: + '@babel/parser': 7.29.7 + '@babel/types': 7.29.7 + '@types/babel__generator': 7.27.0 + '@types/babel__template': 7.4.4 + '@types/babel__traverse': 7.28.0 + + '@types/babel__generator@7.27.0': + dependencies: + '@babel/types': 7.29.7 + + '@types/babel__template@7.4.4': + dependencies: + '@babel/parser': 7.29.7 + '@babel/types': 7.29.7 + + '@types/babel__traverse@7.28.0': + dependencies: + '@babel/types': 7.29.7 + + '@types/estree@1.0.8': {} + + '@types/react-dom@19.2.3(@types/react@19.2.15)': + dependencies: + '@types/react': 19.2.15 + + '@types/react@19.2.15': + dependencies: + csstype: 3.2.3 + + '@vitejs/plugin-react@5.2.0(vite@7.3.3)': + dependencies: + '@babel/core': 7.29.7 + '@babel/plugin-transform-react-jsx-self': 7.29.7(@babel/core@7.29.7) + '@babel/plugin-transform-react-jsx-source': 7.29.7(@babel/core@7.29.7) + '@rolldown/pluginutils': 1.0.0-rc.3 + '@types/babel__core': 7.20.5 + react-refresh: 0.18.0 + vite: 7.3.3 + transitivePeerDependencies: + - supports-color + + baseline-browser-mapping@2.10.32: {} + + browserslist@4.28.2: + dependencies: + baseline-browser-mapping: 2.10.32 + caniuse-lite: 1.0.30001793 + electron-to-chromium: 1.5.363 + node-releases: 2.0.46 + update-browserslist-db: 1.2.3(browserslist@4.28.2) + + caniuse-lite@1.0.30001793: {} + + convert-source-map@2.0.0: {} + + csstype@3.2.3: {} + + debug@4.4.3: + dependencies: + ms: 2.1.3 + + echarts@6.1.0: + dependencies: + tslib: 2.3.0 + zrender: 6.1.0 + + electron-to-chromium@1.5.363: {} + + esbuild@0.27.7: + optionalDependencies: + '@esbuild/aix-ppc64': 0.27.7 + '@esbuild/android-arm': 0.27.7 + '@esbuild/android-arm64': 0.27.7 + '@esbuild/android-x64': 0.27.7 + '@esbuild/darwin-arm64': 0.27.7 + '@esbuild/darwin-x64': 0.27.7 + '@esbuild/freebsd-arm64': 0.27.7 + '@esbuild/freebsd-x64': 0.27.7 + '@esbuild/linux-arm': 0.27.7 + '@esbuild/linux-arm64': 0.27.7 + '@esbuild/linux-ia32': 0.27.7 + '@esbuild/linux-loong64': 0.27.7 + '@esbuild/linux-mips64el': 0.27.7 + '@esbuild/linux-ppc64': 0.27.7 + '@esbuild/linux-riscv64': 0.27.7 + '@esbuild/linux-s390x': 0.27.7 + '@esbuild/linux-x64': 0.27.7 + '@esbuild/netbsd-arm64': 0.27.7 + '@esbuild/netbsd-x64': 0.27.7 + '@esbuild/openbsd-arm64': 0.27.7 + '@esbuild/openbsd-x64': 0.27.7 + '@esbuild/openharmony-arm64': 0.27.7 + '@esbuild/sunos-x64': 0.27.7 + '@esbuild/win32-arm64': 0.27.7 + '@esbuild/win32-ia32': 0.27.7 + '@esbuild/win32-x64': 0.27.7 + + escalade@3.2.0: {} + + fdir@6.5.0(picomatch@4.0.4): + optionalDependencies: + picomatch: 4.0.4 + + fsevents@2.3.3: + optional: true + + gensync@1.0.0-beta.2: {} + + js-tokens@4.0.0: {} + + jsesc@3.1.0: {} + + json5@2.2.3: {} + + lru-cache@5.1.1: + dependencies: + yallist: 3.1.1 + + ms@2.1.3: {} + + nanoid@3.3.12: {} + + node-releases@2.0.46: {} + + picocolors@1.1.1: {} + + picomatch@4.0.4: {} + + postcss@8.5.15: + dependencies: + nanoid: 3.3.12 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + react-dom@19.2.6(react@19.2.6): + dependencies: + react: 19.2.6 + scheduler: 0.27.0 + + react-refresh@0.18.0: {} + + react@19.2.6: {} + + rollup@4.60.4: + dependencies: + '@types/estree': 1.0.8 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.60.4 + '@rollup/rollup-android-arm64': 4.60.4 + '@rollup/rollup-darwin-arm64': 4.60.4 + '@rollup/rollup-darwin-x64': 4.60.4 + '@rollup/rollup-freebsd-arm64': 4.60.4 + '@rollup/rollup-freebsd-x64': 4.60.4 + '@rollup/rollup-linux-arm-gnueabihf': 4.60.4 + '@rollup/rollup-linux-arm-musleabihf': 4.60.4 + '@rollup/rollup-linux-arm64-gnu': 4.60.4 + '@rollup/rollup-linux-arm64-musl': 4.60.4 + '@rollup/rollup-linux-loong64-gnu': 4.60.4 + '@rollup/rollup-linux-loong64-musl': 4.60.4 + '@rollup/rollup-linux-ppc64-gnu': 4.60.4 + '@rollup/rollup-linux-ppc64-musl': 4.60.4 + '@rollup/rollup-linux-riscv64-gnu': 4.60.4 + '@rollup/rollup-linux-riscv64-musl': 4.60.4 + '@rollup/rollup-linux-s390x-gnu': 4.60.4 + '@rollup/rollup-linux-x64-gnu': 4.60.4 + '@rollup/rollup-linux-x64-musl': 4.60.4 + '@rollup/rollup-openbsd-x64': 4.60.4 + '@rollup/rollup-openharmony-arm64': 4.60.4 + '@rollup/rollup-win32-arm64-msvc': 4.60.4 + '@rollup/rollup-win32-ia32-msvc': 4.60.4 + '@rollup/rollup-win32-x64-gnu': 4.60.4 + '@rollup/rollup-win32-x64-msvc': 4.60.4 + fsevents: 2.3.3 + + scheduler@0.27.0: {} + + semver@6.3.1: {} + + source-map-js@1.2.1: {} + + tinyglobby@0.2.16: + dependencies: + fdir: 6.5.0(picomatch@4.0.4) + picomatch: 4.0.4 + + tslib@2.3.0: {} + + typescript@5.9.3: {} + + update-browserslist-db@1.2.3(browserslist@4.28.2): + dependencies: + browserslist: 4.28.2 + escalade: 3.2.0 + picocolors: 1.1.1 + + vite@7.3.3: + dependencies: + esbuild: 0.27.7 + fdir: 6.5.0(picomatch@4.0.4) + picomatch: 4.0.4 + postcss: 8.5.15 + rollup: 4.60.4 + tinyglobby: 0.2.16 + optionalDependencies: + fsevents: 2.3.3 + + yallist@3.1.1: {} + + zrender@6.1.0: + dependencies: + tslib: 2.3.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..f2f78fa --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,4 @@ +packages: + - apps/* + - packages/* + - templates/* diff --git a/scripts/create-project.mjs b/scripts/create-project.mjs new file mode 100644 index 0000000..988c0cc --- /dev/null +++ b/scripts/create-project.mjs @@ -0,0 +1,41 @@ +import { cp, mkdir, readFile, writeFile } from 'node:fs/promises' +import { existsSync } from 'node:fs' +import { resolve } from 'node:path' + +const name = process.argv[2] +const title = process.argv.slice(3).join(' ') || name + +if (!name) { + console.error('Usage: pnpm new [project title]') + process.exit(1) +} + +const root = resolve(import.meta.dirname, '..') +const templateDir = resolve(root, 'templates/project-basic') +const targetDir = resolve(root, `apps/${name}`) + +if (existsSync(targetDir)) { + console.error(`Project already exists: apps/${name}`) + process.exit(1) +} + +await mkdir(resolve(root, 'apps'), { recursive: true }) +await cp(templateDir, targetDir, { recursive: true }) + +const replacements = new Map([ + ['__PROJECT_NAME__', `@dev-screen-starter/${name}`], + ['__PROJECT_TITLE__', title] +]) + +const files = ['package.json', 'index.html', 'src/ProjectScreen.tsx'] + +for (const file of files) { + const path = resolve(targetDir, file) + let content = await readFile(path, 'utf-8') + for (const [from, to] of replacements) { + content = content.replaceAll(from, to) + } + await writeFile(path, content) +} + +console.log(`Created apps/${name}`) diff --git a/templates/project-basic/index.html b/templates/project-basic/index.html new file mode 100644 index 0000000..bc64adf --- /dev/null +++ b/templates/project-basic/index.html @@ -0,0 +1,12 @@ + + + + + + __PROJECT_TITLE__ + + +
+ + + diff --git a/templates/project-basic/package.json b/templates/project-basic/package.json new file mode 100644 index 0000000..48f0517 --- /dev/null +++ b/templates/project-basic/package.json @@ -0,0 +1,27 @@ +{ + "name": "__PROJECT_NAME__", + "version": "0.1.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --host 0.0.0.0", + "build": "tsc --noEmit && vite build", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@dev-screen-starter/charts": "workspace:*", + "@dev-screen-starter/data": "workspace:*", + "@dev-screen-starter/debug": "workspace:*", + "@dev-screen-starter/screen-core": "workspace:*", + "@vitejs/plugin-react": "^5.0.4", + "echarts": "^6.0.0", + "react": "^19.1.1", + "react-dom": "^19.1.1", + "vite": "^7.1.7" + }, + "devDependencies": { + "@types/react": "^19.1.16", + "@types/react-dom": "^19.1.9", + "typescript": "^5.9.2" + } +} diff --git a/templates/project-basic/src/ProjectScreen.tsx b/templates/project-basic/src/ProjectScreen.tsx new file mode 100644 index 0000000..2a0e287 --- /dev/null +++ b/templates/project-basic/src/ProjectScreen.tsx @@ -0,0 +1,18 @@ +import { MetricCard, ScreenStage } from '@dev-screen-starter/screen-core' + +export function ProjectScreen() { + return ( + +
+ __PROJECT_TITLE__ + 大屏总览 +
+ +
+ + + +
+
+ ) +} diff --git a/templates/project-basic/src/main.tsx b/templates/project-basic/src/main.tsx new file mode 100644 index 0000000..0395884 --- /dev/null +++ b/templates/project-basic/src/main.tsx @@ -0,0 +1,5 @@ +import { createRoot } from 'react-dom/client' +import { ProjectScreen } from './ProjectScreen' +import './screen.css' + +createRoot(document.getElementById('root')!).render() diff --git a/templates/project-basic/src/screen.css b/templates/project-basic/src/screen.css new file mode 100644 index 0000000..744569d --- /dev/null +++ b/templates/project-basic/src/screen.css @@ -0,0 +1,82 @@ +* { + box-sizing: border-box; +} + +body { + margin: 0; + background: #05090d; + color: #dce8f5; + font-family: + Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; +} + +.screen-viewport { + background: #05090d; + height: 100vh; + overflow: hidden; + position: relative; + width: 100vw; +} + +.screen-stage { + left: 50%; + overflow: hidden; + position: absolute; + top: 50%; + transform-origin: center center; +} + +.screen-title { + left: 56px; + position: absolute; + top: 42px; +} + +.screen-title span { + color: #88a1bd; + display: block; + font-size: 16px; + margin-bottom: 8px; +} + +.screen-title strong { + color: #f1f7ff; + font-size: 42px; +} + +.metric-row { + display: grid; + gap: 24px; + grid-template-columns: repeat(3, 1fr); + left: 56px; + position: absolute; + right: 56px; + top: 150px; +} + +.metric-card { + background: rgb(9 26 42 / 88%); + border: 1px solid rgb(88 130 171 / 42%); + border-radius: 8px; + min-height: 148px; + padding: 22px 24px; +} + +.metric-card span { + color: #9fb4cc; + display: block; + font-size: 16px; + margin-bottom: 18px; +} + +.metric-card strong { + color: #f0f7ff; + font-size: 48px; + line-height: 1; +} + +.metric-card small { + color: #9fb4cc; + font-size: 18px; + margin-left: 8px; +} diff --git a/templates/project-basic/tsconfig.json b/templates/project-basic/tsconfig.json new file mode 100644 index 0000000..3bc1e46 --- /dev/null +++ b/templates/project-basic/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "jsx": "react-jsx", + "types": ["vite/client"] + }, + "include": ["src", "vite.config.ts"] +} diff --git a/templates/project-basic/vite.config.ts b/templates/project-basic/vite.config.ts new file mode 100644 index 0000000..12f7f53 --- /dev/null +++ b/templates/project-basic/vite.config.ts @@ -0,0 +1,6 @@ +import react from '@vitejs/plugin-react' +import { defineConfig } from 'vite' + +export default defineConfig({ + plugins: [react()] +}) diff --git a/tsconfig.base.json b/tsconfig.base.json new file mode 100644 index 0000000..346a772 --- /dev/null +++ b/tsconfig.base.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "ES2022", + "useDefineForClassFields": true, + "module": "ESNext", + "moduleResolution": "Bundler", + "strict": true, + "skipLibCheck": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "isolatedModules": true + } +}