Compare commits

..
10 Commits
Author SHA1 Message Date
zhiqiang feng 0a156513af add yarn 2023-03-30 12:48:41 +08:00
zhiqiang feng 789600e779 remove mount 2022-10-17 15:21:11 +08:00
zhiqiang feng 8aa962391c mount node_modules 2022-10-17 15:13:44 +08:00
zhiqiang feng 2d7c32ae20 update password validator 2022-09-26 16:37:34 +08:00
zhiqiang feng 34ef610449 add docker publish 2022-09-26 16:04:50 +08:00
zhiqiang feng 0613456166 add rebuild 2022-09-26 15:50:12 +08:00
zhiqiang feng 7f28dc007d update cache 2022-09-26 15:47:41 +08:00
zhiqiang feng 5c1c584e4c add lock 2022-09-26 15:32:04 +08:00
zhiqiang feng a67be35a93 fix 2022-09-26 15:28:54 +08:00
zhiqiang feng 91b414e89d format 2022-09-26 15:13:10 +08:00
6 changed files with 19616 additions and 37 deletions
+30 -22
View File
@@ -7,10 +7,6 @@ platform:
os: linux
arch: amd64
clone:
image: reg.int.it2000.com.cn/devops/git
tags: true
@@ -19,42 +15,54 @@ clone:
steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- ./node_modules
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- ./node_modules
- name: build
image: reg.int.it2000.com.cn/library/node:14.20-bullseye
commands:
- node -v
- npm -v
- yarn --version
- yarn install
- yarn
- yarn build
- 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:
- name: cache
host:
path: /opt/node/cache
path: /opt/node/cache/node_modules
- name: certs
host:
path: /etc/ssl/certs
- name: docker
host:
path: /var/run/docker.sock
volumes:
+2 -2
View File
@@ -38,5 +38,5 @@ testem.log
.DS_Store
Thumbs.db
yarn.lock
package-lock.json
# yarn.lock
# package-lock.json
+11473
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -28,6 +28,7 @@
"ng-zorro-antd": "^1.8.0",
"ngx-color-picker": "^7.0.1",
"rxjs": "6.0.0",
"yarn": "^1.22.19",
"zone.js": "^0.8.26",
"ztree": "^3.5.24"
},
+5 -13
View File
@@ -57,19 +57,11 @@ export class LoginComponent implements OnInit {
}
checkPattern(pw: string): boolean {
if (pw.length < 8) {
return false;
}
if (!/\d/.test(pw)) {
return false;
}
if (!/[A-Z]/.test(pw)) {
return false;
}
if (!/[a-z]/.test(pw)) {
return false;
}
if (!/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(pw)) {
if (pw.length < 8 ||
!/\d/.test(pw) ||
!/[A-Z]/.test(pw) ||
!/[a-z]/.test(pw) ||
!/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(pw)) {
return false;
}
return true;
+8105
View File
File diff suppressed because it is too large Load Diff