
czertainly/czertainly-frontend-administrator本镜像属于商业开源项目CZERTAINLY的一部分。更多项目信息请参见CZERTAINLY仓库,包括贡献指南。
Administrator User Interface(简称Admin UI)是管理员Web界面,管理员可通过该界面在平台上执行各种管理任务。
页面链接和布局设计便于导航,用户可点击对象名称直接跳转至详情页查看对象详情。
为便于理解和使用,图标均配有工具提示,帮助用户了解其提供的操作功能。
大多数对象支持从列表页执行批量操作。对于单个对象(如连接器)的操作,用户可在列表页或详情页进行。
更多信息请参考CZERTAINLY文档。
适用于平台管理员执行日常管理任务,包括但不限于:
本节提供从OpenAPI规范生成DTO和API的TypeScript类的指南,包括必要的自定义步骤。
使用以下命令从OpenAPI规范生成TypeScript DTOs,该命令会生成类型并使用Prettier格式化文件:
shnpm run generate-types
生成的代码可能出现类型错误,例如:
shType 'PaginationRequestDto' is not assignable to type 'string | number | boolean | (string | number | boolean)[]'.ts(2322) (property) 'paginationRequestDto': PaginationRequestDto
原始生成代码:
shconst query: HttpQuery = { // 必需参数已通过throwIfNullOrUndefined检查,因此直接使用 'paginationRequestDto': paginationRequestDto, };
修复类型错误的更新代码:
shconst query: HttpQuery = {}; if (paginationRequestDto != null) { Object.assign(query, paginationRequestDto); }
此修改确保仅当paginationRequestDto不为null或undefined时才分配给query,避免类型错误。
从OpenAPI模型类型生成时,BaseAttributeContentDto会从DataAttribute接口中移除(因内部库生成层级类型问题)。按以下方式更新接口:
shinterface DataAttribute { # 向DataAttribute接口添加以下属性 /** * 属性内容 * @type {Array<BaseAttributeContentDto>} * @memberof DataAttribute */ content?: Array<BaseAttributeContentDto>; }
确保生成类型后手动添加content属性,并导入BaseAttributeContentDto:
shimport type { AttributeCallback, AttributeContentType, AttributeType, BaseAttributeConstraint, # 添加此导入 DataAttributeProperties, } from './';
Admin Web Interface通过以下环境变量配置,镜像拉取命令:docker pull czertainly/czertainly-frontend-administrator:tagname
| 变量名 | 描述 | 是否必填 | 默认值 |
|---|---|---|---|
BASE_URL | 前端应用的URL路径 | 否 | /administrator |
API_URL | CZERTAINLY API的URL路径 | 否 | /api |
LOGIN_URL | 登录页面的URL路径 | 否 | /login |
LOGOUT_URL | 登出页面的URL路径 | 否 | /logout |
shdocker run -d \ -e BASE_URL=/admin \ -e API_URL=/czertainly-api \ -p 8080:80 \ czertainly/czertainly-frontend-administrator:tagname
创建docker-compose.yml文件:
yamlversion: '3' services: czertainly-admin-ui: image: czertainly/czertainly-frontend-administrator:tagname environment: - BASE_URL=/admin - API_URL=/czertainly-api - LOGIN_URL=/admin/login - LOGOUT_URL=/admin/logout ports: - "8080:80"
启动容器:docker-compose up -d


manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务