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 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
View File
@@ -38,5 +38,5 @@ testem.log
.DS_Store .DS_Store
Thumbs.db Thumbs.db
yarn.lock # yarn.lock
package-lock.json # 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", "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"
}, },
+5 -13
View File
@@ -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;
+8105
View File
File diff suppressed because it is too large Load Diff