前端
Casdoor 网页 UI 位于**/web**目录中:https://github.com/casdoor/casdoor/tree/master/web。 这是一个Create React App (CRA)项目,采用此布局:
| 文件/目录 | 描述 |
|---|---|
public | 根HTML与静态资源 |
src | 根HTML与静态资源 |
craco.config.js | Craco config (e.g. theme; default primary is blue) |
crowdin.yml | Crowdin i18n配置 |
package.json | NPM/Yarn dependencies |
yarn.lock | 锁定文件 |
在**/src**:
| 文件/目录 | 描述 |
|---|---|
account | 已登录用户的“我的个人资料”页面 |
auth | 身份验证流程:OAuth、SAML、注册、登录、忘记密码 |
backend | Go API 客户端(所有``fetch调用) |
基本 | 仪表板(首页)和卡片小部件 |
通用 | 共享UI组件 |
本地 | i18n JSON(与Crowdin) |
App.js | 根与路由 |
Setting.js | 共享助手 |
*ListPage.js / *EditPage.js | 按资源列出和编辑页面(例如OrganizationListPage.js, OrganizationEditPage.js) |