18 Star 80 Fork 6

腾讯云云开发 / cloudbase-extension-cms

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sam-ui.yml 3.96 KB
一键复制 编辑 原始数据 按行查看 历史
cwuyiqing 提交于 2020-12-29 21:01 . fix: fix username regexp rule
Form:
Attributes:
- class: "tea-form tea-form-s"
- data: 1
- isForm: true
Children:
- Label:
Value: 管理员账号
Attributes:
- class: "tea-form-item"
Input:
Name: ADMIN
Attributes:
- type: text
- placeHolder: "管理员账号,字母和数字的组合,不能为纯数字,长度范围是 1 ~ 32"
- class: "tea-input tea-input-s"
- size: l
Validation:
Type: Attribute
Rule: ${STRING(value)}.$match(\\D+,g).$match(^[a-zA-Z0-9]+[a-zA-Z0-9_-]*[a-zA-Z0-9]+$,g)
ErrorMessage: "字母和数字的组合,不能为纯数字,长度范围是 1 ~ 32"
ValueFor: ${Resources.InitFunction.Properties.Environment.Variables.CMS_ADMIN_USER_NAME}
- Label:
Value: 管理员密码
Attributes:
- class: "tea-form-item"
Input:
Name: ADMIN_PASSWORD
Attributes:
- type: text
- placeHolder: "管理员密码,长度必需大于 8 位,不能由纯数字或纯字母组成"
- class: "tea-input tea-input-s"
- size: l
Validation:
Type: Attribute
Rule: ${STRING(value)}.$match(\\D+,g).$match([^a-zA-Z]).$match(.{8,32})
ErrorMessage: "长度必需大于 8 位,不能由纯数字或纯字母组成"
ValueFor: ${Resources.InitFunction.Properties.Environment.Variables.CMS_ADMIN_PASS_WORD}
- Label:
Value: 运营者账号(选填)
Attributes:
- class: "tea-form-item"
Input:
Required: false
Attributes:
- type: text
- placeHolder: "运营者账号(字母和数字的组合,不能为纯数字,长度范围是 1 ~ 32,不能和管理员账号相同)"
- class: "tea-input tea-input-s"
- size: l
Validation:
Type: Attribute
Rule: ${STRING(value)}.$match(\\D+,g).$match(^[a-zA-Z0-9]+[a-zA-Z0-9_-]*[a-zA-Z0-9]+$,g)
ErrorMessage: "字母和数字的组合,不能为纯数字,长度范围是 1 ~ 32"
CasCadeRule:
Master: ADMIN
Type: VALIDATOR
Rule: NOTEQUAL
ErrorMessage: "不能和管理员账号相同"
ValueFor: ${Resources.InitFunction.Properties.Environment.Variables.CMS_OPERATOR_USER_NAME}
- Label:
Value: 运营者密码(选填)
Attributes:
- class: "tea-form-item"
Input:
Required: false
Attributes:
- type: text
- placeHolder: "运营者密码,长度必需大于 8 位,不能由纯数字或纯字母组成"
- class: "tea-input tea-input-s"
- size: l
Validation:
Type: Attribute
Rule: ${STRING(value)}.$match(\\D+,g).$match([^a-zA-Z]).$match(.{8,32})
ErrorMessage: "长度必需大于 8 位,不能由纯数字或纯字母组成"
CasCadeRule:
Master: ADMIN_PASSWORD
Type: VALIDATOR
Rule: NOTEQUAL
ErrorMessage: "不能和管理员密码相同"
ValueFor: ${Resources.InitFunction.Properties.Environment.Variables.CMS_OPERATOR_PASS_WORD}
- Label:
Value: 部署路径(选填)
Attributes:
- class: "tea-form-item"
Input:
Required: false
Attributes:
- type: text
- defaultValue: "/tcb-cms/"
- placeHolder: "请设置部署路径"
- class: "tea-input tea-input-s"
- size: l
ValueFor: ${Resources.InitFunction.Properties.Environment.Variables.CMS_DEPLOY_PATH}
- Label:
Value: HTTP 访问服务域名(选填)
Attributes:
- class: "tea-form-item"
Input:
Required: false
Attributes:
- type: text
- placeHolder: "CMS 自定义 HTTP 访问服务域名,如 api.cloudbase.net"
- class: "tea-input tea-input-s"
- size: l
ValueFor: ${Resources.InitFunction.Properties.Environment.Variables.ACCESS_DOMAIN}
TypeScript
1
https://gitee.com/TencentCloudBase/cloudbase-extension-cms.git
git@gitee.com:TencentCloudBase/cloudbase-extension-cms.git
TencentCloudBase
cloudbase-extension-cms
cloudbase-extension-cms
master

搜索帮助