-
Notifications
You must be signed in to change notification settings - Fork 100
/
sam-ui.yml
105 lines (105 loc) · 3.96 KB
/
sam-ui.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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}