Skip to content

Commit

Permalink
Merge pull request #449 from udsm-dhis2-lab/feature/update-angular-ve…
Browse files Browse the repository at this point in the history
…rsion

Feature/update angular version
  • Loading branch information
josephatJ authored Sep 20, 2024
2 parents 763b428 + 8d3d764 commit 0e617df
Show file tree
Hide file tree
Showing 177 changed files with 26,765 additions and 21,607 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ public void loggedInOrOut(User user, Event event, Status status) {
AuditLog auditLog = new AuditLog(User.class, "LOGGED OUT", user, new Date());
iCareService.saveAuditLog(auditLog);
}

}
}
6 changes: 0 additions & 6 deletions package-lock.json

This file was deleted.

38 changes: 19 additions & 19 deletions ui/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"assets": ["src/favicon.ico", "src/assets"],
"assets": [
"src/favicon.ico",
"src/assets",
"src/manifest.webmanifest",
"src/manifest.webmanifest"
],
"styles": [
"./src/theme.scss",
"src/styles.scss",
Expand All @@ -36,7 +41,9 @@
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"namedChunks": true,
"serviceWorker": true,
"ngswConfigPath": "ngsw-config.json"
},
"configurations": {
"production": {
Expand Down Expand Up @@ -72,19 +79,19 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "icare-ui:build",
"proxyConfig": "proxy-config.json"
"proxyConfig": "proxy-config.json",
"buildTarget": "icare-ui:build"
},
"configurations": {
"production": {
"browserTarget": "icare-ui:build:production"
"buildTarget": "icare-ui:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "icare-ui:build"
"buildTarget": "icare-ui:build"
}
},
"test": {
Expand All @@ -94,22 +101,16 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": ["src/favicon.ico", "src/assets"],
"assets": [
"src/favicon.ico",
"src/assets",
"src/manifest.webmanifest",
"src/manifest.webmanifest"
],
"styles": ["src/styles.scss"],
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"exclude": ["**/node_modules/**"]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
Expand All @@ -125,7 +126,6 @@
}
}
},
"defaultProject": "icare-ui",
"cli": {
"analytics": "5c599b07-2246-4c48-b1af-c2064c384d98"
}
Expand Down
30 changes: 30 additions & 0 deletions ui/ngsw-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
"index": "/index.html",
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html",
"/manifest.webmanifest",
"/*.css",
"/*.js"
]
}
},
{
"name": "assets",
"installMode": "lazy",
"updateMode": "prefetch",
"resources": {
"files": [
"/assets/**",
"/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
]
}
}
]
}
Loading

0 comments on commit 0e617df

Please sign in to comment.