Compare commits
10
Commits
f979b1b2bc
...
0a156513af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a156513af | ||
|
|
789600e779 | ||
|
|
8aa962391c | ||
|
|
2d7c32ae20 | ||
|
|
34ef610449 | ||
|
|
0613456166 | ||
|
|
7f28dc007d | ||
|
|
5c1c584e4c | ||
|
|
a67be35a93 | ||
|
|
91b414e89d |
+30
-22
@@ -7,10 +7,6 @@ platform:
|
|||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
image: reg.int.it2000.com.cn/devops/git
|
image: reg.int.it2000.com.cn/devops/git
|
||||||
tags: true
|
tags: true
|
||||||
@@ -19,42 +15,54 @@ clone:
|
|||||||
steps:
|
steps:
|
||||||
- name: restore-cache
|
- name: restore-cache
|
||||||
image: drillster/drone-volume-cache
|
image: drillster/drone-volume-cache
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
path: /cache
|
|
||||||
settings:
|
settings:
|
||||||
restore: true
|
restore: true
|
||||||
mount:
|
mount:
|
||||||
- ./node_modules
|
- ./node_modules
|
||||||
|
|
||||||
- name: rebuild-cache
|
|
||||||
image: drillster/drone-volume-cache
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /cache
|
path: /cache
|
||||||
settings:
|
|
||||||
rebuild: true
|
|
||||||
mount:
|
|
||||||
- ./node_modules
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: reg.int.it2000.com.cn/library/node:14.20-bullseye
|
image: reg.int.it2000.com.cn/library/node:14.20-bullseye
|
||||||
commands:
|
commands:
|
||||||
- node -v
|
- yarn
|
||||||
- npm -v
|
- yarn build
|
||||||
- yarn --version
|
|
||||||
- yarn install
|
- name: publish
|
||||||
|
image: plugins/docker
|
||||||
|
volumes:
|
||||||
|
- name: certs
|
||||||
|
path: /etc/ssl/certs
|
||||||
|
- name: docker
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
settings:
|
||||||
|
repo: reg.int.it2000.com.cn/cdia/admin-web
|
||||||
|
registry: reg.int.it2000.com.cn
|
||||||
|
insecure: true
|
||||||
|
tags: [ "1.2.2" ]
|
||||||
|
username:
|
||||||
|
from_secret: registry_user
|
||||||
|
password:
|
||||||
|
from_secret: registry_pass
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
settings:
|
||||||
|
rebuild: true
|
||||||
|
mount:
|
||||||
|
- ./node_modules
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
host:
|
host:
|
||||||
path: /opt/node/cache
|
path: /opt/node/cache/node_modules
|
||||||
- name: certs
|
- name: certs
|
||||||
host:
|
host:
|
||||||
path: /etc/ssl/certs
|
path: /etc/ssl/certs
|
||||||
- name: docker
|
- name: docker
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
volumes:
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -38,5 +38,5 @@ testem.log
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|
||||||
yarn.lock
|
# yarn.lock
|
||||||
package-lock.json
|
# package-lock.json
|
||||||
|
|||||||
Generated
+11473
File diff suppressed because it is too large
Load Diff
@@ -28,6 +28,7 @@
|
|||||||
"ng-zorro-antd": "^1.8.0",
|
"ng-zorro-antd": "^1.8.0",
|
||||||
"ngx-color-picker": "^7.0.1",
|
"ngx-color-picker": "^7.0.1",
|
||||||
"rxjs": "6.0.0",
|
"rxjs": "6.0.0",
|
||||||
|
"yarn": "^1.22.19",
|
||||||
"zone.js": "^0.8.26",
|
"zone.js": "^0.8.26",
|
||||||
"ztree": "^3.5.24"
|
"ztree": "^3.5.24"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -57,19 +57,11 @@ export class LoginComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
checkPattern(pw: string): boolean {
|
checkPattern(pw: string): boolean {
|
||||||
if (pw.length < 8) {
|
if (pw.length < 8 ||
|
||||||
return false;
|
!/\d/.test(pw) ||
|
||||||
}
|
!/[A-Z]/.test(pw) ||
|
||||||
if (!/\d/.test(pw)) {
|
!/[a-z]/.test(pw) ||
|
||||||
return false;
|
!/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(pw)) {
|
||||||
}
|
|
||||||
if (!/[A-Z]/.test(pw)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!/[a-z]/.test(pw)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(pw)) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user