@tuya-sat/sdf-main-sdk 0.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +5 -0
- package/README.md +1 -0
- package/antd.less.overwrite.js +56 -0
- package/color.js +140 -0
- package/dark-variable.less +1449 -0
- package/package.json +74 -0
- package/scripts/gen-localize-file.mjs +56 -0
- package/src/App.less +156 -0
- package/src/App.tsx +87 -0
- package/src/api/index.ts +52 -0
- package/src/api/req.ts +23 -0
- package/src/api/res.ts +29 -0
- package/src/api/urls.ts +30 -0
- package/src/api/utils.ts +41 -0
- package/src/assets/imgs/404.svg +194 -0
- package/src/assets/imgs/reLogin.png +0 -0
- package/src/components/404/index.tsx +44 -0
- package/src/components/500/index.tsx +49 -0
- package/src/components/BCustomNav/index.module.less +17 -0
- package/src/components/BCustomNav/index.tsx +108 -0
- package/src/components/BForgot/index.module.less +5 -0
- package/src/components/BForgot/index.tsx +96 -0
- package/src/components/BHeaderUser/account.png +0 -0
- package/src/components/BHeaderUser/app-scan-en.png +0 -0
- package/src/components/BHeaderUser/app-scan-zh.png +0 -0
- package/src/components/BHeaderUser/app-scan.png +0 -0
- package/src/components/BHeaderUser/components/BSwitchLang/index.module.less +6 -0
- package/src/components/BHeaderUser/components/BSwitchLang/index.tsx +56 -0
- package/src/components/BHeaderUser/components/Badge/components/Notice/Drawer/Content.tsx +199 -0
- package/src/components/BHeaderUser/components/Badge/components/Notice/Drawer/index.module.less +11 -0
- package/src/components/BHeaderUser/components/Badge/components/Notice/Drawer/index.tsx +27 -0
- package/src/components/BHeaderUser/components/Badge/components/Notice/hooks.ts +104 -0
- package/src/components/BHeaderUser/components/Badge/components/Notice/index.module.less +70 -0
- package/src/components/BHeaderUser/components/Badge/components/Notice/index.tsx +184 -0
- package/src/components/BHeaderUser/components/Badge/components/Notice/table/index.tsx +184 -0
- package/src/components/BHeaderUser/components/Badge/components/Notice/table/read.tsx +67 -0
- package/src/components/BHeaderUser/components/Badge/components/Notice/tools/index.tsx +116 -0
- package/src/components/BHeaderUser/components/Badge/index.module.less +99 -0
- package/src/components/BHeaderUser/components/Badge/index.tsx +179 -0
- package/src/components/BHeaderUser/index.module.less +105 -0
- package/src/components/BHeaderUser/index.tsx +261 -0
- package/src/components/BHeaderUser/logout.tsx +26 -0
- package/src/components/BLayout/components/Header/index.module.less +27 -0
- package/src/components/BLayout/components/Header/index.tsx +36 -0
- package/src/components/BLayout/components/Layout/empty.tsx +35 -0
- package/src/components/BLayout/components/Layout/emptyPage.png +0 -0
- package/src/components/BLayout/components/Layout/index.tsx +72 -0
- package/src/components/BLayout/components/Logo.tsx +6 -0
- package/src/components/BLayout/components/Menu/collapse.tsx +41 -0
- package/src/components/BLayout/components/Menu/image/close.tsx +26 -0
- package/src/components/BLayout/components/Menu/image/closedefault.tsx +26 -0
- package/src/components/BLayout/components/Menu/image/open.tsx +38 -0
- package/src/components/BLayout/components/Menu/image/opendefault.tsx +38 -0
- package/src/components/BLayout/components/Menu/index.module.less +125 -0
- package/src/components/BLayout/components/Menu/index.tsx +244 -0
- package/src/components/BLayout/components/MenuIcon.module.less +5 -0
- package/src/components/BLayout/components/MenuIcon.tsx +46 -0
- package/src/components/BLayout/components/MultiSider/index.module.less +104 -0
- package/src/components/BLayout/components/MultiSider/index.tsx +172 -0
- package/src/components/BLayout/components/Sider/index.less +64 -0
- package/src/components/BLayout/components/Sider/index.module.less +17 -0
- package/src/components/BLayout/components/Sider/index.tsx +34 -0
- package/src/components/BLayout/index.tsx +78 -0
- package/src/components/BLayoutLogin/index.module.less +65 -0
- package/src/components/BLayoutLogin/index.tsx +68 -0
- package/src/components/BLayoutLogin/login.jpg +0 -0
- package/src/components/BLogin/component/Clause/index.module.less +25 -0
- package/src/components/BLogin/component/Clause/index.tsx +58 -0
- package/src/components/BLogin/component/ForgotBtn/index.module.less +9 -0
- package/src/components/BLogin/component/ForgotBtn/index.tsx +18 -0
- package/src/components/BLogin/component/Password/index.tsx +39 -0
- package/src/components/BLogin/component/SubmitBtn/index.tsx +30 -0
- package/src/components/BLogin/component/TenanSpace/index.tsx +28 -0
- package/src/components/BLogin/component/Title/index.module.less +6 -0
- package/src/components/BLogin/component/Title/index.tsx +12 -0
- package/src/components/BLogin/component/UserName/index.tsx +48 -0
- package/src/components/BLogin/component/VerifyCode/index.module.less +11 -0
- package/src/components/BLogin/component/VerifyCode/index.tsx +165 -0
- package/src/components/BLogin/index.module.less +31 -0
- package/src/components/BLogin/index.tsx +210 -0
- package/src/components/BRegister/components/TenantName/index.tsx +26 -0
- package/src/components/BRegister/index.module.less +5 -0
- package/src/components/BRegister/index.tsx +71 -0
- package/src/components/Back/index.tsx +25 -0
- package/src/components/IconFont/font.js +66 -0
- package/src/components/IconFont/index.tsx +18 -0
- package/src/components/MicroComponent/Header/index.module.less +7 -0
- package/src/components/MicroComponent/Header/index.tsx +220 -0
- package/src/components/PForgot/index.tsx +10 -0
- package/src/components/PLogin/index.tsx +12 -0
- package/src/components/PRegister/index.tsx +10 -0
- package/src/components/PSetting/index.module.less +53 -0
- package/src/components/PSetting/index.tsx +420 -0
- package/src/constant/chargeStatus.ts +6 -0
- package/src/constant/imgs.ts +6 -0
- package/src/constant/index.ts +293 -0
- package/src/dark-variable.less +1449 -0
- package/src/global.d.ts +54 -0
- package/src/hooks/index.ts +133 -0
- package/src/index.css +1493 -0
- package/src/index.tsx +105 -0
- package/src/lang/en.json +266 -0
- package/src/lang/index.ts +44 -0
- package/src/lang/utils.ts +285 -0
- package/src/lang/zh.json +270 -0
- package/src/micro-script/theme/index.ts +29 -0
- package/src/micro-script/theme/theme-css/static.js +73 -0
- package/src/micro-script/theme/theme-css/subscriber.ts +201 -0
- package/src/micro-script/theme/util/index.ts +58 -0
- package/src/mqtt/index.ts +121 -0
- package/src/pages/403.tsx +18 -0
- package/src/pages/404.tsx +17 -0
- package/src/pages/expiration.tsx +23 -0
- package/src/pages/forgot.tsx +9 -0
- package/src/pages/home/index.tsx +172 -0
- package/src/pages/home/setting/index.tsx +7 -0
- package/src/pages/index.ts +50 -0
- package/src/pages/login.tsx +46 -0
- package/src/pages/register.tsx +9 -0
- package/src/pages/relogin/index.module.less +0 -0
- package/src/pages/relogin/index.tsx +54 -0
- package/src/plugins/index.ts +11 -0
- package/src/public-path.js +8 -0
- package/src/qiankun/globalState.ts +6 -0
- package/src/qiankun/index.ts +174 -0
- package/src/qiankun/utils/index.ts +69 -0
- package/src/qiankun/xhook/index.ts +193 -0
- package/src/reportWebVitals.ts +15 -0
- package/src/sentry/index.ts +33 -0
- package/src/sky/index.ts +57 -0
- package/src/theme/custom-dark.less +64 -0
- package/src/theme/custom-light.less +48 -0
- package/src/theme/index.less +327 -0
- package/src/theme/variable.less +13 -0
- package/src/utils/checkPass.ts +21 -0
- package/src/utils/common.ts +195 -0
- package/src/utils/eventBus.ts +112 -0
- package/src/utils/gt.js +293 -0
- package/src/utils/index.ts +89 -0
- package/src/utils/theme/base.ts +110 -0
- package/src/utils/theme/changeCssVariable.ts +157 -0
- package/src/utils/theme/changeMenuCssVariable.ts +176 -0
- package/src/utils/theme/index.ts +85 -0
- package/src/utils/theme/store.ts +37 -0
- package/tsconfig.json +28 -0
- package/typings.d.ts +10 -0
- package/webpack.config.js +103 -0
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
export * from './chargeStatus';
|
|
2
|
+
export * from './imgs';
|
|
3
|
+
export const COUNTRY_LIST = [
|
|
4
|
+
{ countryCode: '86', cnName: '中国', enName: 'China' },
|
|
5
|
+
{ countryCode: '1242', cnName: '巴哈马', enName: 'Bahamas' },
|
|
6
|
+
{ countryCode: '1246', cnName: '巴巴多斯', enName: 'Barbados' },
|
|
7
|
+
{ countryCode: '1264', cnName: '安圭拉', enName: 'Anguilla' },
|
|
8
|
+
{
|
|
9
|
+
countryCode: '1268',
|
|
10
|
+
cnName: '安提瓜和巴布达',
|
|
11
|
+
enName: 'Antigua and Barbuda',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
countryCode: '1284',
|
|
15
|
+
cnName: '英属维尔京群岛',
|
|
16
|
+
enName: 'British Virgin Islands',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
countryCode: '1340',
|
|
20
|
+
cnName: '美属维尔京群岛',
|
|
21
|
+
enName: 'U.S. Virgin Islands',
|
|
22
|
+
},
|
|
23
|
+
{ countryCode: '1345', cnName: '开曼群岛', enName: 'Cayman Islands' },
|
|
24
|
+
{ countryCode: '1441', cnName: '百慕大', enName: 'Bermuda' },
|
|
25
|
+
{ countryCode: '1473', cnName: '格林纳达', enName: 'Grenada' },
|
|
26
|
+
{
|
|
27
|
+
countryCode: '1649',
|
|
28
|
+
cnName: '特克斯和凯科斯群岛',
|
|
29
|
+
enName: 'Turks and Caicos Islands',
|
|
30
|
+
},
|
|
31
|
+
{ countryCode: '1664', cnName: '蒙特塞拉特', enName: 'Montserrat' },
|
|
32
|
+
{
|
|
33
|
+
countryCode: '1670',
|
|
34
|
+
cnName: 'Northern Mariana Islands',
|
|
35
|
+
enName: 'Northern Mariana Islands',
|
|
36
|
+
},
|
|
37
|
+
{ countryCode: '1671', cnName: '关岛', enName: 'Guam' },
|
|
38
|
+
{ countryCode: '1684', cnName: 'American Samoa', enName: 'American Samoa' },
|
|
39
|
+
{ countryCode: '1758', cnName: '圣卢西亚', enName: 'Saint Lucia' },
|
|
40
|
+
{ countryCode: '1767', cnName: '多米尼克', enName: 'Dominica' },
|
|
41
|
+
{
|
|
42
|
+
countryCode: '1784',
|
|
43
|
+
cnName: '圣文森特和格林纳丁斯',
|
|
44
|
+
enName: 'Saint Vincent and the Grenadines',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
countryCode: '1868',
|
|
48
|
+
cnName: '特立尼达和多巴哥',
|
|
49
|
+
enName: 'Trinidad and Tobago',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
countryCode: '1869',
|
|
53
|
+
cnName: '圣基茨和尼维斯',
|
|
54
|
+
enName: 'Saint Kitts and Nevis',
|
|
55
|
+
},
|
|
56
|
+
{ countryCode: '1876', cnName: '牙买加', enName: 'Jamaica' },
|
|
57
|
+
{ countryCode: '20', cnName: '埃及', enName: 'Egypt' },
|
|
58
|
+
{ countryCode: '212', cnName: '摩洛哥', enName: 'Morocco' },
|
|
59
|
+
{ countryCode: '213', cnName: '阿尔及利亚', enName: 'Algeria' },
|
|
60
|
+
{ countryCode: '216', cnName: '突尼斯', enName: 'Tunisia' },
|
|
61
|
+
{ countryCode: '218', cnName: '利比亚', enName: 'Libya' },
|
|
62
|
+
{ countryCode: '220', cnName: '冈比亚', enName: 'Gambia' },
|
|
63
|
+
{ countryCode: '221', cnName: '塞内加尔', enName: 'Senegal' },
|
|
64
|
+
{ countryCode: '222', cnName: '毛里塔尼亚', enName: 'Mauritania' },
|
|
65
|
+
{ countryCode: '223', cnName: '马里', enName: 'Mali' },
|
|
66
|
+
{ countryCode: '224', cnName: '几内亚', enName: 'Guinea' },
|
|
67
|
+
{ countryCode: '225', cnName: '科特迪瓦', enName: 'Ivory Coast' },
|
|
68
|
+
{ countryCode: '226', cnName: '布基纳法索', enName: 'Burkina Faso' },
|
|
69
|
+
{ countryCode: '227', cnName: '尼日尔', enName: 'Niger' },
|
|
70
|
+
{ countryCode: '228', cnName: '多哥', enName: 'Togo' },
|
|
71
|
+
{ countryCode: '229', cnName: '贝宁', enName: 'Benin' },
|
|
72
|
+
{ countryCode: '230', cnName: '毛里求斯', enName: 'Mauritius' },
|
|
73
|
+
{ countryCode: '231', cnName: '利比里亚', enName: 'Liberia' },
|
|
74
|
+
{ countryCode: '232', cnName: '塞拉利', enName: 'Sierra Leone' },
|
|
75
|
+
{ countryCode: '233', cnName: '加纳', enName: 'Ghana' },
|
|
76
|
+
{ countryCode: '234', cnName: '尼日利亚', enName: 'Nigeria' },
|
|
77
|
+
{ countryCode: '235', cnName: '乍得', enName: 'Chad' },
|
|
78
|
+
{ countryCode: '236', cnName: '中非', enName: 'Central African Republic' },
|
|
79
|
+
{ countryCode: '237', cnName: '喀麦隆', enName: 'Cameroon' },
|
|
80
|
+
{ countryCode: '238', cnName: '佛得角', enName: 'Cape Verde' },
|
|
81
|
+
{ countryCode: '240', cnName: '赤道几内亚', enName: 'Equatorial Guinea' },
|
|
82
|
+
{ countryCode: '241', cnName: '加蓬', enName: 'Gabon' },
|
|
83
|
+
{ countryCode: '242', cnName: '刚果(布)', enName: 'Republic of the Congo' },
|
|
84
|
+
{
|
|
85
|
+
countryCode: '243',
|
|
86
|
+
cnName: '刚果(金)',
|
|
87
|
+
enName: 'Democratic Republic of the Congo',
|
|
88
|
+
},
|
|
89
|
+
{ countryCode: '244', cnName: '安哥拉', enName: 'Angola' },
|
|
90
|
+
{ countryCode: '248', cnName: '塞舌尔', enName: 'Seychelles' },
|
|
91
|
+
{ countryCode: '249', cnName: '苏丹', enName: 'Sudan' },
|
|
92
|
+
{ countryCode: '250', cnName: '卢旺达', enName: 'Rwanda' },
|
|
93
|
+
{ countryCode: '251', cnName: '埃塞俄比亚', enName: 'Ethiopia' },
|
|
94
|
+
{ countryCode: '252', cnName: '索马里', enName: 'Somalia' },
|
|
95
|
+
{ countryCode: '253', cnName: '吉布提', enName: 'Djibouti' },
|
|
96
|
+
{ countryCode: '254', cnName: '肯尼亚', enName: 'Kenya' },
|
|
97
|
+
{ countryCode: '255', cnName: '坦桑尼亚', enName: 'Tanzania' },
|
|
98
|
+
{ countryCode: '256', cnName: '乌干达', enName: 'Uganda' },
|
|
99
|
+
{ countryCode: '257', cnName: '布隆迪', enName: 'Burundi' },
|
|
100
|
+
{ countryCode: '258', cnName: '莫桑比克', enName: 'Mozambique' },
|
|
101
|
+
{ countryCode: '260', cnName: '赞比亚', enName: 'Zambia' },
|
|
102
|
+
{ countryCode: '261', cnName: '马达加斯加', enName: 'Madagascar' },
|
|
103
|
+
{ countryCode: '262', cnName: '留尼汪', enName: 'Réunion' },
|
|
104
|
+
{ countryCode: '263', cnName: '津巴布韦', enName: 'Zimbabwe' },
|
|
105
|
+
{ countryCode: '264', cnName: '纳米尼亚', enName: 'Namibia' },
|
|
106
|
+
{ countryCode: '265', cnName: '马拉维', enName: 'Malawi' },
|
|
107
|
+
{ countryCode: '266', cnName: '莱索托', enName: 'Lesotho' },
|
|
108
|
+
{ countryCode: '267', cnName: '博茨瓦纳', enName: 'Botswana' },
|
|
109
|
+
{ countryCode: '268', cnName: '斯威士兰', enName: 'Swaziland' },
|
|
110
|
+
{ countryCode: '269', cnName: '马约特', enName: 'Comoros' },
|
|
111
|
+
{ countryCode: '27', cnName: '南非', enName: 'South Africa' },
|
|
112
|
+
{ countryCode: '291', cnName: '厄立特里亚', enName: 'Eritrea' },
|
|
113
|
+
{ countryCode: '297', cnName: '阿鲁巴', enName: 'Aruba' },
|
|
114
|
+
{ countryCode: '298', cnName: '法罗群岛', enName: 'Faroe Islands' },
|
|
115
|
+
{ countryCode: '299', cnName: '格陵兰', enName: 'Greenland' },
|
|
116
|
+
{ countryCode: '30', cnName: '希腊', enName: 'Greece' },
|
|
117
|
+
{ countryCode: '31', cnName: '荷兰', enName: 'Netherlands' },
|
|
118
|
+
{ countryCode: '32', cnName: '比利时', enName: 'Belgium' },
|
|
119
|
+
{ countryCode: '33', cnName: '法国', enName: 'France' },
|
|
120
|
+
{ countryCode: '34', cnName: '西班牙', enName: 'Spain' },
|
|
121
|
+
{ countryCode: '350', cnName: '直布罗陀', enName: 'Gibraltar' },
|
|
122
|
+
{ countryCode: '351', cnName: '葡萄牙', enName: 'Portugal' },
|
|
123
|
+
{ countryCode: '352', cnName: '卢森堡', enName: 'Luxembourg' },
|
|
124
|
+
{ countryCode: '353', cnName: '爱尔兰', enName: 'Ireland' },
|
|
125
|
+
{ countryCode: '354', cnName: '冰岛', enName: 'Iceland' },
|
|
126
|
+
{ countryCode: '355', cnName: '阿尔巴尼亚', enName: 'Albania' },
|
|
127
|
+
{ countryCode: '356', cnName: '马耳他', enName: 'Malta' },
|
|
128
|
+
{ countryCode: '357', cnName: '塞浦路斯', enName: 'Cyprus' },
|
|
129
|
+
{ countryCode: '358', cnName: '芬兰', enName: 'Finland' },
|
|
130
|
+
{ countryCode: '359', cnName: '保加利亚', enName: 'Bulgaria' },
|
|
131
|
+
{ countryCode: '36', cnName: '匈牙利', enName: 'Hungary' },
|
|
132
|
+
{ countryCode: '370', cnName: '立陶宛', enName: 'Lithuania' },
|
|
133
|
+
{ countryCode: '371', cnName: '拉脱维亚', enName: 'Latvia' },
|
|
134
|
+
{ countryCode: '372', cnName: '爱沙尼亚', enName: 'Estonia' },
|
|
135
|
+
{ countryCode: '373', cnName: '摩尔多瓦', enName: 'Moldova' },
|
|
136
|
+
{ countryCode: '374', cnName: '亚美尼亚', enName: 'Armenia' },
|
|
137
|
+
{ countryCode: '375', cnName: '白俄罗斯', enName: 'Belarus' },
|
|
138
|
+
{ countryCode: '376', cnName: '安道尔', enName: 'Andorra' },
|
|
139
|
+
{ countryCode: '377', cnName: '摩纳哥', enName: 'Monaco' },
|
|
140
|
+
{ countryCode: '378', cnName: '圣马力诺', enName: 'San Marino' },
|
|
141
|
+
{ countryCode: '379', cnName: '梵蒂冈', enName: 'Vatican' },
|
|
142
|
+
{ countryCode: '380', cnName: '乌克兰', enName: 'Ukraine' },
|
|
143
|
+
{ countryCode: '381', cnName: '塞尔维亚和黑山', enName: 'Serbia' },
|
|
144
|
+
{ countryCode: '382', cnName: 'Montenegro', enName: 'Montenegro' },
|
|
145
|
+
{ countryCode: '385', cnName: '克罗地亚', enName: 'Croatia' },
|
|
146
|
+
{ countryCode: '386', cnName: '斯洛文尼亚', enName: 'Slovenia' },
|
|
147
|
+
{ countryCode: '387', cnName: '波黑', enName: 'Bosnia and Herzegovina' },
|
|
148
|
+
{ countryCode: '389', cnName: '前南马其顿', enName: 'Macedonia' },
|
|
149
|
+
{ countryCode: '39', cnName: '意大利', enName: 'Italy' },
|
|
150
|
+
{ countryCode: '40', cnName: '罗马尼亚', enName: 'Romania' },
|
|
151
|
+
{ countryCode: '41', cnName: '瑞士', enName: 'Switzerland' },
|
|
152
|
+
{ countryCode: '420', cnName: '捷克', enName: 'Czech Republic' },
|
|
153
|
+
{ countryCode: '421', cnName: '斯洛伐克', enName: 'Slovakia' },
|
|
154
|
+
{ countryCode: '423', cnName: '列支敦士登', enName: 'Liechtenstein' },
|
|
155
|
+
{ countryCode: '43', cnName: '奥地利', enName: 'Austria' },
|
|
156
|
+
{ countryCode: '44', cnName: '英国', enName: 'Jersey' },
|
|
157
|
+
{ countryCode: '45', cnName: '丹麦', enName: 'Denmark' },
|
|
158
|
+
{ countryCode: '46', cnName: '瑞典', enName: 'Sweden' },
|
|
159
|
+
{ countryCode: '47', cnName: '斯瓦尔巴岛和扬马延岛', enName: 'Norway' },
|
|
160
|
+
{ countryCode: '48', cnName: '波兰', enName: 'Poland' },
|
|
161
|
+
{ countryCode: '49', cnName: '德国', enName: 'Germany' },
|
|
162
|
+
{ countryCode: '501', cnName: '伯利兹', enName: 'Belize' },
|
|
163
|
+
{ countryCode: '503', cnName: '萨尔瓦多', enName: 'El Salvador' },
|
|
164
|
+
{ countryCode: '504', cnName: '洪都拉斯', enName: 'Honduras' },
|
|
165
|
+
{ countryCode: '505', cnName: '尼加拉瓜', enName: 'Nicaragua' },
|
|
166
|
+
{ countryCode: '506', cnName: '哥斯达黎加', enName: 'Costa Rica' },
|
|
167
|
+
{ countryCode: '507', cnName: '巴拿马', enName: 'Panama' },
|
|
168
|
+
{
|
|
169
|
+
countryCode: '508',
|
|
170
|
+
cnName: '圣皮埃尔和密克隆',
|
|
171
|
+
enName: 'Saint Pierre and Miquelon',
|
|
172
|
+
},
|
|
173
|
+
{ countryCode: '509', cnName: '海地', enName: 'Haiti' },
|
|
174
|
+
{ countryCode: '590', cnName: '瓜德罗普', enName: 'Guadeloupe' },
|
|
175
|
+
{ countryCode: '592', cnName: '圭亚那', enName: 'Guyana' },
|
|
176
|
+
{ countryCode: '596', cnName: '马提尼克', enName: 'Martinique' },
|
|
177
|
+
{
|
|
178
|
+
countryCode: '61',
|
|
179
|
+
cnName: '科科斯(基林)群岛',
|
|
180
|
+
enName: 'Heard Island and McDonald Islands',
|
|
181
|
+
},
|
|
182
|
+
{ countryCode: '65', cnName: '新加坡', enName: 'Singapore' },
|
|
183
|
+
{ countryCode: '673', cnName: '文莱', enName: 'Brunei' },
|
|
184
|
+
{ countryCode: '676', cnName: '汤加', enName: 'Tonga' },
|
|
185
|
+
{ countryCode: '679', cnName: '斐济', enName: 'Fiji' },
|
|
186
|
+
{ countryCode: '680', cnName: '帕劳', enName: 'Palau' },
|
|
187
|
+
{ countryCode: '681', cnName: '瓦利斯和富图纳', enName: 'Wallis and Futuna' },
|
|
188
|
+
{ countryCode: '685', cnName: '萨摩亚', enName: 'Samoa' },
|
|
189
|
+
{ countryCode: '687', cnName: '新喀里多尼亚', enName: 'New Caledonia' },
|
|
190
|
+
{ countryCode: '688', cnName: '图瓦卢', enName: 'Tuvalu' },
|
|
191
|
+
{ countryCode: '689', cnName: '法属波利尼西亚', enName: 'French Polynesia' },
|
|
192
|
+
{ countryCode: '691', cnName: '密克罗尼西亚', enName: 'Micronesia' },
|
|
193
|
+
{ countryCode: '692', cnName: '马绍尔群岛', enName: 'Marshall Islands' },
|
|
194
|
+
{ countryCode: '7', cnName: '俄罗斯', enName: 'Russia' },
|
|
195
|
+
{ countryCode: '850', cnName: '朝鲜', enName: 'North Korea' },
|
|
196
|
+
{ countryCode: '855', cnName: '柬埔寨', enName: 'Cambodia' },
|
|
197
|
+
{ countryCode: '856', cnName: '老挝', enName: 'Laos' },
|
|
198
|
+
{ countryCode: '880', cnName: '孟加拉国', enName: 'Bangladesh' },
|
|
199
|
+
{ countryCode: '90', cnName: '土耳其', enName: 'Turkey' },
|
|
200
|
+
{ countryCode: '91', cnName: '印度', enName: 'India' },
|
|
201
|
+
{ countryCode: '92', cnName: '巴基斯坦', enName: 'Pakistan' },
|
|
202
|
+
{ countryCode: '93', cnName: '阿富汗', enName: 'Afghanistan' },
|
|
203
|
+
{ countryCode: '94', cnName: '斯里兰卡', enName: 'Sri Lanka' },
|
|
204
|
+
{ countryCode: '960', cnName: '马尔代夫', enName: 'Maldives' },
|
|
205
|
+
{ countryCode: '961', cnName: '黎巴嫩', enName: 'Lebanon' },
|
|
206
|
+
{ countryCode: '962', cnName: '约旦', enName: 'Jordan' },
|
|
207
|
+
{ countryCode: '963', cnName: '叙利亚', enName: 'Syria' },
|
|
208
|
+
{ countryCode: '964', cnName: '伊拉克', enName: 'Iraq' },
|
|
209
|
+
{ countryCode: '965', cnName: '科威特', enName: 'Kuwait' },
|
|
210
|
+
{ countryCode: '966', cnName: '沙特阿拉伯', enName: 'Saudi Arabia' },
|
|
211
|
+
{ countryCode: '967', cnName: '也门', enName: 'Yemen' },
|
|
212
|
+
{ countryCode: '968', cnName: '阿曼', enName: 'Oman' },
|
|
213
|
+
{
|
|
214
|
+
countryCode: '971',
|
|
215
|
+
cnName: '阿拉伯联合酋长国',
|
|
216
|
+
enName: 'United Arab Emirates',
|
|
217
|
+
},
|
|
218
|
+
{ countryCode: '972', cnName: '以色列', enName: 'Israel' },
|
|
219
|
+
{ countryCode: '973', cnName: '巴林', enName: 'Bahrain' },
|
|
220
|
+
{ countryCode: '974', cnName: '卡塔尔', enName: 'Qatar' },
|
|
221
|
+
{ countryCode: '975', cnName: '不丹', enName: 'Bhutan' },
|
|
222
|
+
{ countryCode: '976', cnName: '蒙古', enName: 'Mongolia' },
|
|
223
|
+
{ countryCode: '977', cnName: '尼泊尔', enName: 'Nepal' },
|
|
224
|
+
{ countryCode: '98', cnName: '伊朗', enName: 'Iran' },
|
|
225
|
+
{ countryCode: '992', cnName: '塔吉克斯坦', enName: 'Tajikistan' },
|
|
226
|
+
{ countryCode: '993', cnName: '土库曼斯坦', enName: 'Turkmenistan' },
|
|
227
|
+
{ countryCode: '994', cnName: '阿塞拜疆', enName: 'Azerbaijan' },
|
|
228
|
+
{ countryCode: '995', cnName: '格鲁吉亚', enName: 'Georgia' },
|
|
229
|
+
{ countryCode: '996', cnName: '吉尔吉斯斯坦', enName: 'Kyrgyzstan' },
|
|
230
|
+
{ countryCode: '998', cnName: '乌兹别克斯坦', enName: 'Uzbekistan' },
|
|
231
|
+
{ countryCode: '1', cnName: '美国', enName: 'United States' },
|
|
232
|
+
{ countryCode: '1787', cnName: '波多黎各', enName: 'Puerto Rico' },
|
|
233
|
+
{ countryCode: '1809', cnName: '多米尼加', enName: 'Dominica' },
|
|
234
|
+
{ countryCode: '1829', cnName: '多米尼加', enName: 'Dominica' },
|
|
235
|
+
{ countryCode: '1849', cnName: '多米尼加', enName: 'Dominica' },
|
|
236
|
+
{ countryCode: '502', cnName: '危地马拉', enName: 'Guatemala' },
|
|
237
|
+
{ countryCode: '51', cnName: '秘鲁', enName: 'Peru' },
|
|
238
|
+
{ countryCode: '52', cnName: '墨西哥', enName: 'Mexico' },
|
|
239
|
+
{ countryCode: '54', cnName: '阿根廷', enName: 'Argentina' },
|
|
240
|
+
{ countryCode: '55', cnName: '巴西', enName: 'Brazil' },
|
|
241
|
+
{ countryCode: '56', cnName: '智利', enName: 'Chile' },
|
|
242
|
+
{ countryCode: '57', cnName: '哥伦比亚', enName: 'Colombia' },
|
|
243
|
+
{ countryCode: '58', cnName: '委内瑞拉', enName: 'Venezuela' },
|
|
244
|
+
{ countryCode: '591', cnName: '玻利维亚', enName: 'Bolivia' },
|
|
245
|
+
{ countryCode: '593', cnName: '厄瓜多尔', enName: 'Ecuador' },
|
|
246
|
+
{ countryCode: '595', cnName: '巴拉圭', enName: 'Paraguay' },
|
|
247
|
+
{ countryCode: '597', cnName: '苏里南', enName: 'Suriname' },
|
|
248
|
+
{ countryCode: '598', cnName: '乌拉圭', enName: 'Uruguay' },
|
|
249
|
+
{ countryCode: '5999', cnName: '库腊索', enName: 'Curacao' },
|
|
250
|
+
{ countryCode: '60', cnName: '马来西亚', enName: 'Malaysia' },
|
|
251
|
+
{ countryCode: '62', cnName: '印度尼西亚', enName: 'Indonesia' },
|
|
252
|
+
{ countryCode: '63', cnName: '菲律宾', enName: 'Philippines' },
|
|
253
|
+
{ countryCode: '64', cnName: '新西兰', enName: 'New Zealand' },
|
|
254
|
+
{ countryCode: '66', cnName: '泰国', enName: 'Thailand' },
|
|
255
|
+
{ countryCode: '81', cnName: '日本', enName: 'Japan' },
|
|
256
|
+
{ countryCode: '82', cnName: '韩国', enName: 'South Korea' },
|
|
257
|
+
{ countryCode: '84', cnName: '越南', enName: 'Vietnam' },
|
|
258
|
+
{ countryCode: '852', cnName: '香港', enName: 'Hong Kong' },
|
|
259
|
+
{ countryCode: '853', cnName: '澳门', enName: 'Macao' },
|
|
260
|
+
{ countryCode: '886', cnName: '台湾', enName: 'Taiwan' },
|
|
261
|
+
{ countryCode: '95', cnName: '缅甸', enName: 'Myanmar [Burma]' },
|
|
262
|
+
];
|
|
263
|
+
// export const PASSWORD_REGEXP =
|
|
264
|
+
// /^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W_]+$)(?![a-z0-9]+$)(?![a-z\W_]+$)(?![0-9\W_]+$)[a-zA-Z0-9_]{8,16}$/g;
|
|
265
|
+
// export const PASSWORD_REGEXP = /^(?![a-z]{8,16}$)(?![A-Z]{8,16}$)(?!\d{8,16}$)(?![_]{8,16}$)[a-zA-Z\d_]{8,16}$/;
|
|
266
|
+
// export const EMAIL_REGEXP =
|
|
267
|
+
// /^[\w.\-]+@(?:[a-z0-9]+(?:-[a-z0-9]+)*\.)+[a-z]{2,3}$/;
|
|
268
|
+
// export const EMAIL_REGEXP =
|
|
269
|
+
// /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
270
|
+
|
|
271
|
+
export const EMAIL_REGEXP =
|
|
272
|
+
/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
|
|
273
|
+
export const TELE_REGEXP = /^1\d{10}$/;
|
|
274
|
+
export const US_TELE_REGEXP = /^\d{6,16}$/;
|
|
275
|
+
export enum LOGIN_TABS {
|
|
276
|
+
EMAIL = 'email',
|
|
277
|
+
TELE = 'tele',
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// 消息通知事件
|
|
281
|
+
export const EVENT_NOTICE = 'EVENT_NOTICE';
|
|
282
|
+
export const EVENT_USERNAME = 'EVENT_USERNAME';
|
|
283
|
+
|
|
284
|
+
export const SafePath = ['/login', '/forgot', '/register'];
|
|
285
|
+
export const WhitePathList = [
|
|
286
|
+
...SafePath,
|
|
287
|
+
'/application/relogin',
|
|
288
|
+
'/403',
|
|
289
|
+
'/404',
|
|
290
|
+
'/500',
|
|
291
|
+
];
|
|
292
|
+
|
|
293
|
+
export const TENANT_ID_REGEXP = /^[a-z][0-9A-Za-z-]{3,15}$/g;
|