MCPcopy Index your code
hub / github.com/VienLi/CcView

github.com/VienLi/CcView @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
280 symbols 636 edges 109 files 9 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

CcView

版权

仅限于个人学习使用,不可用于商业用途
商用需联系作者购买授权
软著登记号:2023SR1434342

核心库

组件库以及编辑器使用git subModule的方式集成

低代码组件库

白露 https://github.com/Cc-Edit/CcBailu

后台服务

CcServer https://github.com/Cc-Edit/CcServer

本地运行

$ git clone --recurse-submodules https://github.com/Cc-Edit/CcView.git

$ git clone https://github.com/Cc-Edit/CcView.git
$ git submodule update --init

更新所有子模块

$ git submodule update --remote

本地运行:

$ yarn install
$ yarn dev

设计原则

数据驱动

整个应用的核心就是数据驱动,将所有可被抽象的逻辑全部抽象为 jsonSchema
整个应用遵守配置化、描述化原则

JSON to Form 表单描述

表单的创建与校验,全部集中到配置文件中 form
登录表单: LoginForm.ts
form-login.png

应用创建弹窗: CreateApp.ts form1.png

表单回显(用于数据更新): form-echo.png

表单模板(所有基础表单元素示例) TemplateForm.ts form.png

预览

登录页面

视频透明背景播放

登录页面-表单校验

登录页面-全局提示

首页

应用列表

applist.png applist1.png applist3.png applist2.png

编辑器

design.png design-w.png design-b.png design-p.png design-data.png

404页面

500页面

维护页面

工具类库

插画与图标 https://igoutu.cn/

Icons by icons8: icons8.com

画板标尺 (基于 react18 翻新 mb-sketch-ruler ): mb-sketch-ruler

头像、默认模板背景图:千图网个人商用授权

Extension points exported contracts — how you extend this code

LoginData (Interface)
(no doc)
src/types/form.d.ts
Query (Interface)
(no doc)
src/components/MuiTable/index.tsx
TemplateItemProp (Interface)
(no doc)
src/pages/store/TemplateItem.tsx
GlobalState (Interface)
(no doc)
src/store/slice/Global/index.ts
ApplicationCreate (Interface)
(no doc)
src/types/form.d.ts
TableFactoryProp (Interface)
(no doc)
src/components/MuiTable/index.tsx
PriceItemProp (Interface)
(no doc)
src/pages/sale/PriceItem.tsx
CounterState (Interface)
(no doc)
src/store/slice/Counter/index.ts

Core symbols most depended-on inside this repo

useAppDispatch
called by 7
src/store/index.ts
delay
called by 6
src/utils/common.ts
clickEventHandler
called by 5
src/components/MoreIcon/index.tsx
formatNumber
called by 5
src/utils/common.ts
dateFormat
called by 5
src/utils/common.ts
getFolder
called by 5
src/api/application.ts
updateStatue
called by 4
src/components/MuiTable/temp/UserOptions.tsx
getStorage
called by 4
src/utils/common.ts

Shape

Function 218
Interface 57
Class 2
Method 2
Enum 1

Languages

TypeScript100%

Modules by API surface

src/types/index.d.ts15 symbols
src/store/slice/Design/index.ts14 symbols
src/utils/common.ts10 symbols
src/components/Application/AppContainer.tsx10 symbols
src/api/application.ts9 symbols
src/components/Banner/index.tsx7 symbols
src/pages/sale/PriceItem.tsx6 symbols
src/components/MuiTable/temp/UserOptions.tsx6 symbols
src/api/template.ts6 symbols
src/utils/lib/AlphaVideoMaterial.ts5 symbols
src/types/form.d.ts5 symbols
src/store/slice/Global/index.ts5 symbols

For agents

$ claude mcp add CcView \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact