c-admin-kit 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LLMS.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # C-Admin-Kit: AI Assistant Context & Guidelines
2
2
 
3
- > This document is designed for AI Coding Assistants (Cursor, GitHub Copilot, Claude Code, Antigravity, Windsurf, etc.) to understand the architectural rules, coding standards, and golden patterns of `c-admin-kit`.
3
+ > This document is designed for AI Coding Assistants (Cursor, GitHub Copilot, Claude Code, Antigravity, Windsurf, etc.) to understand the architectural rules, coding standards, and golden patterns of `c-admin-kit`.
4
+ > 🌐 **Live Demo & Playground**: [https://admin-kit.cheatppf.xyz](https://admin-kit.cheatppf.xyz)
4
5
 
5
6
  ---
6
7
 
@@ -57,7 +58,7 @@ import {
57
58
 
58
59
  ---
59
60
 
60
- ## 🌟 The Golden Standard Pattern (Standard CRUD Page)
61
+ ## Standard CRUD Page Pattern
61
62
 
62
63
  AI should use this template as the standard blueprint for any admin list view:
63
64
 
package/README.md CHANGED
@@ -11,6 +11,7 @@
11
11
 
12
12
  `c-admin-kit` 是一套专为企业级中后台打造的高阶通用组件与 Hooks 套件。基于 **Vue 3 + Element Plus + TypeScript** 构建,提供成熟的标准 CRUD 流程封装、配置化高级表格、多条件搜索工厂、异步防重按钮、平滑拖拽分栏及常用树形数据工具函数。
13
13
 
14
+ > 🌐 **在线预览与交互演练场**:[https://admin-kit.cheatppf.xyz](https://admin-kit.cheatppf.xyz)
14
15
  > 📌 **团队规范约束**:为彻底避免多工程复用时的组件同名冲突,所有组件**统一且固定强制使用 `c-` / `C` 前缀**(如 `<c-simple-table>`、`<c-search-box>`),开箱即用,代码风格统一。
15
16
 
16
17
  ---
@@ -84,9 +85,9 @@ import 'c-admin-kit/dist/c-admin-kit.css'
84
85
 
85
86
  ---
86
87
 
87
- ## 🌟 黄金组合:10 行代码实现企业级标准 CRUD 页面
88
+ ## 典型用法:标准 CRUD 页面
88
89
 
89
- 结合 `SearchFieldFactory`、`useListPage`、`CSearchBox` 与 `CSimpleTable`,告别繁重重复模板:
90
+ 结合 `SearchFieldFactory`、`useListPage`、`CSearchBox` 与 `CSimpleTable` 快速构建后台列表页:
90
91
 
91
92
  ```vue
92
93
  <template>
@@ -304,6 +305,34 @@ const filteredTree = filterTree(tree, (node) => node.name.includes('技术部'))
304
305
 
305
306
  ---
306
307
 
308
+ ## 🎮 Playground 交互演练台
309
+
310
+ > 🔗 **线上演示地址**:[https://admin-kit.cheatppf.xyz](https://admin-kit.cheatppf.xyz)
311
+
312
+ 本项目包含同仓物理隔离的独立演练工程 `playground/`,**100% 消费并运行 NPM 官方已发布的真实 `c-admin-kit` 远端包与产物**,包含 6 大核心场景 Demo(CRUD 页面、左右拖拽容器、文本代码比对、抽屉组件、增强选择器、树算法测试台):
313
+
314
+ ```bash
315
+ # 启动本地演练场(真实加载 npm 已发布的 c-admin-kit)
316
+ pnpm run dev:playground
317
+
318
+ # 打包纯静态 SPA 站点(输出至 playground/dist/)
319
+ pnpm run build:playground
320
+
321
+ # 本地快速预览打包产物
322
+ pnpm run preview:playground
323
+ ```
324
+
325
+ ### 🚀 部署至 Cloudflare Pages 步骤:
326
+ 1. 登录 Cloudflare 控制台,进入 **Workers & Pages** -> **Create application** -> **Pages** -> **Connect to Git**;
327
+ 2. 选择本仓库,配置构建设置:
328
+ - **Root directory**: `playground`
329
+ - **Framework preset**: `Vite`
330
+ - **Build command**: `pnpm run build`
331
+ - **Build output directory**: `dist`
332
+ 3. 点击 **Save and Deploy**,即可自动从 NPM 官方拉取最新发布的 `c-admin-kit` 并部署为全球 CDN 静态网页。
333
+
334
+ ---
335
+
307
336
  ## 📄 授权协议
308
337
 
309
338
  [MIT License](file:///e:/售后项目/admin-kit/LICENSE) © 2026 [wllcyg](https://github.com/wllcyg)
package/llms.txt CHANGED
@@ -15,5 +15,5 @@
15
15
  - `useDownload`: Composable for file export with `downloading` status and filename auto-detect.
16
16
  - `treeManager`: Utilities for `listToTree` (O(n)), `treeToList`, and `findParentNodes`.
17
17
 
18
- ## Detailed Guidelines & Golden Pattern
18
+ ## Detailed Guidelines & Standard Patterns
19
19
  See [LLMS.md](./LLMS.md) for full contracts, component API, and standard CRUD blueprints.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c-admin-kit",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "基于 Vue 3 + Element Plus 的中后台企业级高阶通用组件与 Hooks 套件(强制使用 c- 前缀)",
5
5
  "type": "module",
6
6
  "main": "./dist/c-admin-kit.umd.cjs",
@@ -83,6 +83,9 @@
83
83
  },
84
84
  "scripts": {
85
85
  "build": "vue-tsc --noEmit && vite build",
86
+ "dev:playground": "npm --prefix playground run dev",
87
+ "build:playground": "npm --prefix playground run build",
88
+ "preview:playground": "npm --prefix playground run preview",
86
89
  "typecheck": "vue-tsc --noEmit"
87
90
  }
88
91
  }