

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1234567# Admin(Vue 3 + Vite)89## 栈与别名1011- **Vue 3** + **Vite** + **Pinia** + **Vue Router** + **Element Plus** + **VXE Table**;样式可用 **UnoCSS**、SCSS(全局主题见 `vite.config` 中 `additionalData`)。12- 路径别名:`@/` → `src/`,`#/` → `types/`(API 类型、全局声明)。13- 构建脚本区分 Web(`bs:*`)与 Tauri 桌面端(`cs:*`);改构建逻辑前确认目标形态。壳工程在 `src-tauri/`。14- 环境:`.env.development` / `.env.production`;勿提交密钥。1516## API 层1718- HTTP 封装:`src/utils/request`(默认导出 `$http`)。19- 接口函数放在 `src/api/**`,返回 **`$http.request<Req, Res>({ url, method, params/data })`**,类型从 `#/api/**` 或 `types/api/**/*.d.ts` 引入。20- 新增后端接口后,优先生成类型,再手写薄封装;url 与 server 路径一致(如 `/system/user/list`)。2122## 状态与路由2324- Pinia store:`src/store/modules/`(如 `auth`、`permission`、`tagsView`);登录与 token 与 `@/utils/auth` 配合。25- 动态路由:`store/modules/permission.ts` 与 `router/guard.ts` 联动;勿绕开守卫硬编码跳转。2627## 权限2829- 按钮级权限:**`v-auth`** 指令 + `hasPermission`(`directives/modules/permission.ts`)。30- 权限码来自当前路由 `meta.perms`;超级管理员 `userId === 1` 跳过校验。31- 列表操作栏用 `ToolButtons`,内部已配合 `hasPermission`。3233## 列表页模式3435- **VXE Table** + **`FormView/SearchForm`** 查询表单 + **`ToolButtons`** 操作栏。36- 响应式布局可用 **`Grid`** / **`GridItem`**;字典展示用 **`DictTag`**;富文本用 **`WangEditor`**。3738## Vue 组件3940- 优先 **Composition API**(`<script setup>`),与现有页面风格一致。41- 图表用 ECharts(见 `views/charts`)。4243## 共享库4445- 可从 **`@llcz/common`** 引入纯工具(如 `isArray` 用于权限判断);勿在 common 中引入 Vue/UI。4647## 注释约定4849遵循全仓 **`comment-standards.mdc`**。Admin 侧额外强调:5051- **`src/api/**`**:接口函数 JSDoc 写清业务语义与特殊参数(分页字段名、导出格式);url 与 server 一致,差异处注释原因。52- **`src/store/modules/`**:permission、auth 等核心模块的 action 注释**状态变更意图**(如「清空 tagsView 再注入动态路由」),避免误改守卫链路。53- **列表页**(VXE Table + SearchForm):查询条件与后端 DTO 的映射、默认排序/分页、导出列与权限码,在 `setup` 或 composable 顶部用块注释说明。54- **权限**:`v-auth` 旁非显而易见的权限码、超级管理员例外逻辑,注释对应菜单/按钮的业务含义。55- **动态路由**:`permission.ts` / `router/guard.ts` 中绕开常规流程的分支(白名单、外链、404 回退)必须注释「为什么」。56- **复杂组件**(`FormView`、`ToolButtons`、图表页):props 默认值或 hack(如表格高度、resize 监听)注释平台/布局原因。57- **勿注释**:Element Plus / VXE 常规用法、已有类型的 API 入参字段名复述。58
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| cz6c/ll-admin.cursor/rules/comment-standards.mdc · 0 | Cursor rules | docs | 50/100 | 14 days ago | |
| cz6c/ll-admin.cursor/rules/monorepo-core.mdc · 0 | Cursor rules | gitmonorepoagent-behaviour | 64/100 | 14 days ago | |
| cz6c/ll-admin.cursor/rules/nestjs-server.mdc · 0 | Cursor rules | lint-formatdatabasedocs | 74/100 | 14 days ago | |
| cz6c/ll-admin.cursor/rules/shared-common.mdc · 0 | Cursor rules | no sections | 41/100 | 14 days ago | |
| cz6c/ll-admin.cursor/rules/vitepress-docs.mdc · 0 | Cursor rules | docs | 29/100 | 14 days ago | |
| cz6c/ll-admin.cursor/rules/vue-uni.mdc · 0 | Cursor rules | typesapiuimonorepo+1 | 71/100 | 14 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 14 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 46 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 14 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 14 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 14 days ago | |
| bybren-llc/safe-agentic-workflow.cursor/rules/10-backend-python.mdc · 399 | Cursor rules | testlint-formatstylegit+4 | 97/100 | today |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/cz6c-ll-admin-cursor-rules-vue-admin)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.