Skip to content

Commit a331007

Browse files
committed
bump to 16, most frontend working
1 parent d2f2a43 commit a331007

61 files changed

Lines changed: 13423 additions & 12427 deletions

Some content is hidden

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

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,4 +355,5 @@ dist/
355355

356356
**/log*.txt
357357
*db-shm
358-
*db-wal
358+
*db-wal
359+
OpenAlprWebhookProcessor/ClientApp/.angular/*

OpenAlprWebhookProcessor/ClientApp/angular.json

Lines changed: 49 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -3,131 +3,110 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"ClientApp": {
6+
"angularapp": {
77
"projectType": "application",
8-
"schematics": {
9-
"@schematics/angular:component": {
10-
"style": "less"
11-
}
12-
},
8+
"schematics": {},
139
"root": "",
1410
"sourceRoot": "src",
1511
"prefix": "app",
1612
"architect": {
1713
"build": {
1814
"builder": "@angular-devkit/build-angular:browser",
1915
"options": {
20-
"outputPath": "dist/",
16+
"outputPath": "dist/angularapp",
2117
"index": "src/index.html",
2218
"main": "src/main.ts",
23-
"polyfills": "src/polyfills.ts",
19+
"polyfills": [
20+
"zone.js"
21+
],
2422
"tsConfig": "tsconfig.app.json",
25-
"aot": true,
2623
"assets": [
2724
"src/favicon.ico",
2825
"src/assets"
2926
],
3027
"styles": [
3128
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
3229
"./node_modules/ngx-lightbox/lightbox.css",
33-
"./node_modules/highlight.js/styles/dracula.css",
30+
"./node_modules/highlight.js/styles/dark.css",
3431
"src/styles.less"
3532
],
3633
"scripts": []
3734
},
3835
"configurations": {
3936
"production": {
40-
"fileReplacements": [
41-
{
42-
"replace": "src/environments/environment.ts",
43-
"with": "src/environments/environment.prod.ts"
44-
}
45-
],
46-
"optimization": true,
47-
"outputHashing": "all",
48-
"sourceMap": false,
49-
"namedChunks": false,
50-
"extractLicenses": true,
51-
"vendorChunk": false,
52-
"buildOptimizer": true,
5337
"budgets": [
5438
{
5539
"type": "initial",
56-
"maximumWarning": "2mb",
57-
"maximumError": "5mb"
40+
"maximumWarning": "500kb",
41+
"maximumError": "1mb"
5842
},
5943
{
6044
"type": "anyComponentStyle",
61-
"maximumWarning": "6kb",
62-
"maximumError": "10kb"
45+
"maximumWarning": "2kb",
46+
"maximumError": "4kb"
6347
}
64-
]
48+
],
49+
"fileReplacements": [
50+
{
51+
"replace": "src/environments/environment.ts",
52+
"with": "src/environments/environment.prod.ts"
53+
}
54+
],
55+
"outputHashing": "all"
56+
},
57+
"development": {
58+
"buildOptimizer": false,
59+
"optimization": false,
60+
"vendorChunk": true,
61+
"extractLicenses": false,
62+
"sourceMap": true,
63+
"namedChunks": true
6564
}
66-
}
65+
},
66+
"defaultConfiguration": "production"
6767
},
6868
"serve": {
6969
"builder": "@angular-devkit/build-angular:dev-server",
70-
"options": {
71-
"browserTarget": "ClientApp:build"
72-
},
7370
"configurations": {
7471
"production": {
75-
"browserTarget": "ClientApp:build:production"
72+
"browserTarget": "angularapp:build:production"
73+
},
74+
"development": {
75+
"browserTarget": "angularapp:build:development"
7676
}
77+
},
78+
"defaultConfiguration": "development",
79+
"options": {
80+
"proxyConfig": "src/proxy.conf.js"
7781
}
7882
},
7983
"extract-i18n": {
8084
"builder": "@angular-devkit/build-angular:extract-i18n",
8185
"options": {
82-
"browserTarget": "ClientApp:build"
86+
"browserTarget": "angularapp:build"
8387
}
8488
},
8589
"test": {
8690
"builder": "@angular-devkit/build-angular:karma",
8791
"options": {
88-
"main": "src/test.ts",
89-
"polyfills": "src/polyfills.ts",
92+
"polyfills": [
93+
"zone.js",
94+
"zone.js/testing"
95+
],
9096
"tsConfig": "tsconfig.spec.json",
91-
"karmaConfig": "karma.conf.js",
9297
"assets": [
9398
"src/favicon.ico",
9499
"src/assets"
95100
],
96101
"styles": [
97-
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
98-
"./node_modules/ngx-lightbox/lightbox.css",
99-
"./node_modules/highlight.js/styles/dracula.css",
100-
"src/styles.less"
101-
],
102-
"scripts": []
103-
}
104-
},
105-
"lint": {
106-
"builder": "@angular-devkit/build-angular:tslint",
107-
"options": {
108-
"tsConfig": [
109-
"tsconfig.app.json",
110-
"tsconfig.spec.json",
111-
"e2e/tsconfig.json"
102+
"@angular/material/prebuilt-themes/purple-green.css",
103+
"src/styles.css"
112104
],
113-
"exclude": [
114-
"**/node_modules/**"
115-
]
116-
}
117-
},
118-
"e2e": {
119-
"builder": "@angular-devkit/build-angular:protractor",
120-
"options": {
121-
"protractorConfig": "e2e/protractor.conf.js",
122-
"devServerTarget": "ClientApp:serve"
123-
},
124-
"configurations": {
125-
"production": {
126-
"devServerTarget": "ClientApp:serve:production"
127-
}
105+
"scripts": [],
106+
"karmaConfig": "karma.conf.js"
128107
}
129108
}
130109
}
131-
}},
132-
"defaultProject": "ClientApp"
133-
}
110+
}
111+
}
112+
}
Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Karma configuration file, see link for more information
2-
// https://karma-runner.github.io/1.0/config/configuration-file.html
3-
41
module.exports = function (config) {
52
config.set({
63
basePath: '',
@@ -9,16 +6,28 @@ module.exports = function (config) {
96
require('karma-jasmine'),
107
require('karma-chrome-launcher'),
118
require('karma-jasmine-html-reporter'),
12-
require('karma-coverage-istanbul-reporter'),
9+
require('karma-coverage'),
1310
require('@angular-devkit/build-angular/plugins/karma')
1411
],
1512
client: {
13+
jasmine: {
14+
// you can add configuration options for Jasmine here
15+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
16+
// for example, you can disable the random execution with `random: false`
17+
// or set a specific seed with `seed: 4321`
18+
},
1619
clearContext: false // leave Jasmine Spec Runner output visible in browser
1720
},
18-
coverageIstanbulReporter: {
19-
dir: require('path').join(__dirname, './coverage/openalprwebhookprocessor'),
20-
reports: ['html', 'lcovonly', 'text-summary'],
21-
fixWebpackSourcePaths: true
21+
jasmineHtmlReporter: {
22+
suppressAll: true // removes the duplicated traces
23+
},
24+
coverageReporter: {
25+
dir: require('path').join(__dirname, './coverage/'),
26+
subdir: '.',
27+
reporters: [
28+
{ type: 'html' },
29+
{ type: 'text-summary' }
30+
]
2231
},
2332
reporters: ['progress', 'kjhtml'],
2433
port: 9876,
@@ -27,6 +36,9 @@ module.exports = function (config) {
2736
autoWatch: true,
2837
browsers: ['Chrome'],
2938
singleRun: false,
30-
restartOnFileChange: true
39+
restartOnFileChange: true,
40+
listenAddress: 'localhost',
41+
hostname: 'localhost'
3142
});
3243
};
44+

0 commit comments

Comments
 (0)