ccx / frontend
CLAUDE.md4k starsChanged 2 months agoMITView on GitHub
Vue 3 + Vuetify 3 Web 管理界面:渠道配置、能力测试、模型列表查询、拖拽排序、监控面板、主题切换。 src/services/api.ts 封装后端交互,涵盖: 编辑 src/plugins/vuetify.ts 中的 lightTheme 和 darkTheme。 项目使用 按需导入 方案,手动注册使用的 Vuetify 组件和指令,显著减小打包体积(首屏 JS 减少约 60%)。 配置文件: src/plugins/vuetify.ts 新增组件步骤: 1. 从 vuetify/components/V<Component> 添加导入 2. 在 createVuetify({ components: { ... } }) 中注册 常见组件路径: - 布局: VApp, VMain, VContainer, VRow, VCol 等 - 表单: VTextField, VSelect, VSwitch, VBtn 等 - 反馈: VAlert, VSnackbar, VDialog, VTooltip 等 注意: 如果模板中使用了未注册的组件,运行时会报 Unknown custom element 错误。 项目使用 SVG 按需导入 方案,从 @mdi/js 导入单个图标 path,而非完整字体文件,显著减小打包体积。 配置文件: src/plugins/vuetify.ts 新增图标步骤: 1. 从…
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about BenedictKing/ccx
- Soju06/codex-lb“bug: compaction fails”GitHub · Jun 13, 2026 · 2 reactions
- AppImage/appimage.github.io“Add -_CCX”GitHub · Sep 27, 2026
- Phala-Network/phala-cloud“feat: add ccx template”GitHub · May 30, 2026
The biggest 3 of 3 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- backend-go/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- desktop/CLAUDE.mdCLAUDE.md
- github-releaseSkill
- model-updateSkill
- store-updateSkill
- upstream-checkSkill
- version-bumpSkill
The file
Files
frontend 模块文档
← 根目录
模块职责
Vue 3 + Vuetify 3 Web 管理界面:渠道配置、能力测试、模型列表查询、拖拽排序、监控面板、主题切换。
启动命令
bun run dev # 开发服务器
bun run build # 生产构建
bun run preview # 预览构建核心组件
| 组件 | 职责 |
App.vue | 根组件,认证、布局、主题、能力测试入口 |
ChannelOrchestration.vue | 渠道编排主界面 |
ChannelCard.vue | 渠道卡片(状态、密钥、指标) |
AddChannelModal.vue | 添加/编辑渠道对话框(模型映射、高级选项、模型过滤等) |
CapabilityTestDialog.vue | 渠道能力测试结果对话框 |
API 服务
src/services/api.ts 封装后端交互,涵盖:
- 渠道 CRUD、排序、状态切换
- 单渠道模型列表查询
- 渠道能力测试
- Dashboard / 指标 / 历史数据查询
- 认证相关请求头管理
主题配置
编辑 src/plugins/vuetify.ts 中的 lightTheme 和 darkTheme。
Vuetify 组件系统
项目使用 按需导入 方案,手动注册使用的 Vuetify 组件和指令,显著减小打包体积(首屏 JS 减少约 60%)。
配置文件: src/plugins/vuetify.ts
新增组件步骤:
- 从
vuetify/components/V<Component>添加导入 - 在
createVuetify({ components: { ... } })中注册
// 1. 导入
import { VBadge } from 'vuetify/components/VBadge'
// 2. 注册
export default createVuetify({
components: {
// ... 现有组件
VBadge, // 新增
},
// ...
})常见组件路径:
- 布局:
VApp,VMain,VContainer,VRow,VCol等 - 表单:
VTextField,VSelect,VSwitch,VBtn等 - 反馈:
VAlert,VSnackbar,VDialog,VTooltip等
注意: 如果模板中使用了未注册的组件,运行时会报 Unknown custom element 错误。
图标系统
项目使用 SVG 按需导入 方案,从 @mdi/js 导入单个图标 path,而非完整字体文件,显著减小打包体积。
配置文件: src/plugins/vuetify.ts
重要规则(必须遵守)
- 在模板里写了
<v-icon>mdi-xxx</v-icon>并不代表可直接使用 - 每新增一个图标,必须同时完成两步,缺一不可:
- 从
@mdi/js添加导入(驼峰命名) - 在
iconMap中添加映射(kebab-case)
- 从
- 只写模板、不补
iconMap,运行时会走到src/plugins/vuetify.ts的未找到图标分支,开发环境会报警告,界面可能显示占位文本而不是图标 - 修改前端图标相关代码时,应顺手检查新增的
mdi-xxx是否已在iconMap中注册
新增图标步骤:
- 从
@mdi/js添加导入(驼峰命名) - 在
iconMap中添加映射(kebab-case)
// 1. 导入
import { mdiNewIcon } from '@mdi/js'
// 2. 映射
const iconMap = {
'new-icon': mdiNewIcon,
}使用方式: 模板中使用 mdi-xxx 格式
<v-icon>mdi-new-icon</v-icon>图标查找: https://pictogrammers.com/library/mdi/
依赖与安全检查
前端以 Bun 为主包管理器,bun.lock 是依赖锁文件的权威来源。不要为了运行 npm audit 重新生成 package-lock.json,否则会引入重复锁文件并可能产生误报。
bun install # 安装依赖并触发 Socket 安全扫描器
bun audit --registry=https://registry.npmjs.org # 使用 npm 官方 registry 执行漏洞审计说明:如果本地 registry 指向 npmmirror,直接运行 bun audit 可能因镜像源不支持 audit 接口而返回 404;审计时显式指定 npm 官方 registry。
pnpm install 可作为兼容性验证,但新增或升级依赖优先使用 bun add / bun update。
构建产物
生产构建输出到 dist/,会被嵌入到 Go 后端二进制文件中(embed.FS)。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

