Skip to content

Commit

Permalink
Upgrade Clarity and Angular to latest stable version (#15887)
Browse files Browse the repository at this point in the history
Signed-off-by: AllForNothing <[email protected]>
  • Loading branch information
AllForNothing authored Oct 28, 2021
1 parent 7b75a45 commit ec1c8c9
Show file tree
Hide file tree
Showing 11 changed files with 20,281 additions and 30,246 deletions.
126 changes: 126 additions & 0 deletions src/portal/PACKAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
```text
{
"name": "harbor",
"version": "2.5.0",
"description": "Harbor UI with Clarity",
"angular-cli": {},
"scripts": {
// triggered after running "npm install"
"postinstall": "node scripts/convert-yaml-to-json.js && ng-swagger-gen -i ng-swagger-gen/swagger.json -o ng-swagger-gen && node scripts/delete-swagger-json.js",
// For developing
"start": "node --max_old_space_size=2048 ./node_modules/@angular/cli/bin/ng serve --ssl true --host 0.0.0.0 --proxy-config proxy.config.json",
"start:prod": "node --max_old_space_size=2048 ./node_modules/@angular/cli/bin/ng serve --ssl true --host 0.0.0.0 --proxy-config proxy.config.json --configuration production",
// For code grammar checking
"lint": "tslint \"src/**/*.ts\"",
"lint_fix": "tslint --fix \"src/**/*.ts\"",
// For unit test
"test": "node --max_old_space_size=2048 ./node_modules/@angular/cli/bin/ng test --code-coverage",
"test:watch": "ng test --code-coverage --watch",
"test:debug": "ng test --code-coverage --source-map false",
"test:chrome": "ng test --code-coverage --browsers Chrome",
"test:headless": "ng test --watch=false --no-progress --code-coverage --browsers=ChromeNoSandboxHeadless",
"test:chrome-debug": "ng test --code-coverage --browsers Chrome --watch",
// E2e related. Currently not used
"pree2e": "webdriver-manager update",
"e2e": "protractor",
"build": "ng build --aot",
"release": "ng build --configuration production",
"build-mock-api-server": "tsc -p server",
// to run a mocked node express api server
"mock-api-server": "npm run build-mock-api-server && node server/dist/server/src/mock-api.js",
// Run this command before the production building. It will set the current timestamp to "buildTimestamp" property in "environment.prod.ts" file
// And "buildTimestamp" will be used as a query parameter to avoid browser cache after upgrading Harbor UI
"generate-build-timestamp": "node scripts/generate-build-timestamp.js"
},
"private": true,
"dependencies": {
// Angular framework. Required
"@angular/animations": "~12.2.11",
"@angular/common": "~12.2.11",
"@angular/compiler": "~12.2.11",
"@angular/core": "~12.2.11",
"@angular/forms": "~12.2.11",
"@angular/localize": "~12.2.11",
"@angular/platform-browser": "~12.2.11",
"@angular/platform-browser-dynamic": "~12.2.11",
"@angular/router": "~12.2.11",
"rxjs": "^6.6.7",
"tslib": "^2.2.0",
"zone.js": "~0.11.4",
// Clarity UI. Required
"@cds/core": "~5.5.8",
"@clr/angular": "~12.0.6",
"@clr/icons": "~12.0.6",
"@clr/ui": "~12.0.6",
// For Harbor i18n functionality. Required
"@ngx-translate/core": "^13.0.0",
"@ngx-translate/http-loader": "^6.0.0",
// For cron string checking. Required
"cron-validator": "^1.2.1",
// Used by CopyInputComponent to copy pull command to clipboard. Required
"ngx-clipboard": "^12.3.1",
// For Harbor cookie service. Required
"ngx-cookie": "^5.0.2",
// To render markdown data. Required
"ngx-markdown": "~12.0.1",
// For swagger API center. Required
"swagger-ui": "^3.52.5",
"buffer": "^6.0.3",
// To convert yaml to json. Required
"js-yaml": "^4.1.0"
},
"devDependencies": {
// Angular framework. Required
"@angular-devkit/build-angular": "~12.2.11",
"@angular/cli": "~12.2.11",
"@angular/compiler-cli": "~12.2.11",
"@types/jasmine": "~3.10.1",
"@types/node": "^16.11.6",
"typescript": "~4.3.5",
// For unit test. Required
"jasmine-core": "^3.7.1",
"jasmine-spec-reporter": "~7.0.0",
"karma": "^6.3.3",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "^2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
// To run a local mocked API server. Required
"@types/express": "^4.17.12",
"express": "^4.17.1",
// To generate models and Angular services based on swagger.yaml. Required
"ng-swagger-gen": "^2.3.1",
// For e2e test. Required
"protractor": "^7.0.0",
// For code grammar checking. Optional
"eslint": "8.1.0",
// For code checking. Optional
"codelyzer": "^6.0.2",
}
}
```
4 changes: 0 additions & 4 deletions src/portal/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
}
],
"scripts": [
"node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js",
"node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js",
"node_modules/@clr/icons/clr-icons.min.js",
"node_modules/marked/lib/marked.js",
"node_modules/prismjs/prism.js",
Expand Down Expand Up @@ -109,8 +107,6 @@
"polyfills": "src/polyfills.ts",
"karmaConfig": "karma.conf.js",
"scripts": [
"node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js",
"node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js",
"node_modules/@clr/icons/clr-icons.min.js"
],
"styles": [
Expand Down
Loading

0 comments on commit ec1c8c9

Please sign in to comment.