Skip to content

Commit 956f092

Browse files
committed
Update solution to ASP.NET 8.0, Angular v17
1 parent 2ccea97 commit 956f092

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+9040
-15535
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# JWT Auth Demo (Angular + ASP.NET Core / ASP.NET 5+)
1+
# JWT Auth Demo (Angular + ASP.NET Core / ASP.NET 8)
22

33
<a href='https://ko-fi.com/changhuixu' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi3.png?v=2' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
44

angular/.browserslistrc

Lines changed: 0 additions & 16 deletions
This file was deleted.

angular/.vscode/launch.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,10 @@
44
"configurations": [
55
{
66
"name": "ng serve",
7-
"type": "pwa-chrome",
7+
"type": "chrome",
88
"request": "launch",
99
"preLaunchTask": "npm: start",
1010
"url": "http://localhost:4200/"
11-
},
12-
{
13-
"name": "ng test",
14-
"type": "chrome",
15-
"request": "launch",
16-
"preLaunchTask": "npm: test",
17-
"url": "http://localhost:9876/debug.html"
1811
}
1912
]
2013
}

angular/.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"cSpell.words": [
3+
"devkit",
4+
"signin",
5+
"wwwroot"
6+
]
7+
}

angular/.vscode/tasks.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,6 @@
1919
}
2020
}
2121
}
22-
},
23-
{
24-
"type": "npm",
25-
"script": "test",
26-
"isBackground": true,
27-
"problemMatcher": {
28-
"owner": "typescript",
29-
"pattern": "$tsc",
30-
"background": {
31-
"activeOnStart": true,
32-
"beginsPattern": {
33-
"regexp": "(.*?)"
34-
},
35-
"endsPattern": {
36-
"regexp": "bundle generation complete"
37-
}
38-
}
39-
}
4022
}
4123
]
4224
}

angular/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FROM nginx:alpine
1313

1414
## Replace the default nginx index page with our Angular app
1515
RUN rm -rf /usr/share/nginx/html/*
16-
COPY --from=builder /dist /usr/share/nginx/html
16+
COPY --from=builder /dist/browser /usr/share/nginx/html
1717

1818
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
1919
COPY ./nginx/gzip.conf /etc/nginx/gzip.conf

angular/angular.json

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
"projectType": "application",
88
"schematics": {
99
"@schematics/angular:component": {
10-
"skipTests": true
10+
"skipTests": true,
11+
"standalone": false
1112
},
1213
"@schematics/angular:class": {
1314
"skipTests": true
1415
},
1516
"@schematics/angular:directive": {
16-
"skipTests": true
17+
"skipTests": true,
18+
"standalone": false
1719
},
1820
"@schematics/angular:guard": {
1921
"skipTests": true
@@ -22,29 +24,29 @@
2224
"skipTests": true
2325
},
2426
"@schematics/angular:pipe": {
25-
"skipTests": true
27+
"skipTests": true,
28+
"standalone": false
2629
},
2730
"@schematics/angular:resolver": {
2831
"skipTests": true
2932
},
3033
"@schematics/angular:service": {
3134
"skipTests": true
32-
},
33-
"@schematics/angular:application": {
34-
"strict": true
3535
}
3636
},
3737
"root": "",
3838
"sourceRoot": "src",
3939
"prefix": "app",
4040
"architect": {
4141
"build": {
42-
"builder": "@angular-devkit/build-angular:browser",
42+
"builder": "@angular-devkit/build-angular:application",
4343
"options": {
4444
"outputPath": "dist/angular",
4545
"index": "src/index.html",
46-
"main": "src/main.ts",
47-
"polyfills": "src/polyfills.ts",
46+
"browser": "src/main.ts",
47+
"polyfills": [
48+
"zone.js"
49+
],
4850
"tsConfig": "tsconfig.app.json",
4951
"assets": [
5052
"src/favicon.ico",
@@ -69,21 +71,18 @@
6971
"maximumError": "4kb"
7072
}
7173
],
72-
"fileReplacements": [
73-
{
74-
"replace": "src/environments/environment.ts",
75-
"with": "src/environments/environment.prod.ts"
76-
}
77-
],
7874
"outputHashing": "all"
7975
},
8076
"development": {
81-
"buildOptimizer": false,
8277
"optimization": false,
83-
"vendorChunk": true,
8478
"extractLicenses": false,
8579
"sourceMap": true,
86-
"namedChunks": true
80+
"fileReplacements": [
81+
{
82+
"replace": "src/environments/environment.ts",
83+
"with": "src/environments/environment.development.ts"
84+
}
85+
]
8786
}
8887
},
8988
"defaultConfiguration": "production"
@@ -92,24 +91,23 @@
9291
"builder": "@angular-devkit/build-angular:dev-server",
9392
"configurations": {
9493
"production": {
95-
"browserTarget": "angular:build:production"
94+
"buildTarget": "angular:build:production"
9695
},
9796
"development": {
98-
"browserTarget": "angular:build:development"
97+
"buildTarget": "angular:build:development"
9998
}
10099
},
101100
"defaultConfiguration": "development"
102101
},
103102
"extract-i18n": {
104103
"builder": "@angular-devkit/build-angular:extract-i18n",
105104
"options": {
106-
"browserTarget": "angular:build"
105+
"buildTarget": "angular:build"
107106
}
108107
}
109108
}
110109
}
111110
},
112-
"defaultProject": "angular",
113111
"cli": {
114112
"analytics": "a7d8b924-2f4c-4728-82b9-a0d4d6592366"
115113
}

0 commit comments

Comments
 (0)