Skip to content

Commit

Permalink
upgrading to bootstrap 5
Browse files Browse the repository at this point in the history
  • Loading branch information
bpatrik committed Apr 14, 2022
1 parent 864209d commit 8d13af4
Show file tree
Hide file tree
Showing 362 changed files with 14,953 additions and 7,720 deletions.
1 change: 0 additions & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
43 changes: 43 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended"
],
"overrides": [
{
"files": [
"*.component.ts"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./src/frontend/tsconfig.app.json",
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"@angular-eslint/template"
],
"processor": "@angular-eslint/template/extract-inline-html"
},
{
"files": [
"*.component.html"
],
"parser": "@angular-eslint/template-parser",
"parserOptions": {
"project": "./src/frontend/tsconfig.app.json",
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"@angular-eslint/template"
]
}
]
}
56 changes: 15 additions & 41 deletions angular.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": {
"defaultCollection": "@angular-eslint/schematics"
},
"version": 1,
"newProjectRoot": "projects",
"projects": {
"pigallery2": {
"root": "",
"sourceRoot": "src/frontend",
"projectType": "application",
"schematics": {},
"schematics": {
"@schematics/angular:application": {
"strict": true
}
},
"prefix": "app",
"i18n": {
"sourceLocale": {
"code": "en",
"baseHref": ""
},
"locales": {
"cn": {
"zh": {
"baseHref": "",
"translation": "src/frontend/translate/messages.cn.xlf"
},
Expand Down Expand Up @@ -185,49 +192,16 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": []
}
}
}
},
"pigallery2-e2e": {
"root": "",
"sourceRoot": "",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "./protractor.conf.js",
"devServerTarget": "pigallery2:serve"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"test/e2e/tsconfig.e2e.json"
],
"exclude": []
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
}
},
"defaultProject": "pigallery2",
"schematics": {
"@schematics/angular:component": {
"prefix": "app",
"styleext": "css"
},
"@schematics/angular:directive": {
"prefix": "app"
}
}
"defaultProject": "pigallery2"
}
37 changes: 18 additions & 19 deletions benchmark/BMConfig.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
/* tslint:disable:no-inferrable-types */
/* eslint-disable @typescript-eslint/no-inferrable-types */
import * as path from 'path';
import {ConfigClass, ConfigClassBuilder} from 'typeconfig/node';
import {ConfigProperty, SubConfigClass} from 'typeconfig/common';
import {JobTrigger, JobTriggerType} from '../src/common/entities/job/JobScheduleDTO';
import {ServerVideoConfig} from '../src/common/config/private/PrivateConfig';


import { ConfigClass, ConfigClassBuilder } from 'typeconfig/node';
import { ConfigProperty, SubConfigClass } from 'typeconfig/common';

@SubConfigClass()
export class BenchmarksConfig {
export class BenchmarksConfig {
@ConfigProperty()
bmScanDirectory: boolean = true;
@ConfigProperty()
Expand Down Expand Up @@ -39,25 +35,28 @@ export class BenchmarksConfig {
rewriteENVConfig: true,
enumsAsString: true,
saveIfNotExist: true,
exitOnConfig: true
exitOnConfig: true,
},
defaults: {
enabled: true
}
}
enabled: true,
},
},
})
export class PrivateConfigClass {
@ConfigProperty({description: 'Images are loaded from this folder (read permission required)'})
@ConfigProperty({
description:
'Images are loaded from this folder (read permission required)',
})
path: string = '/app/data/images';
@ConfigProperty({description: 'Describe your system setup'})
@ConfigProperty({ description: 'Describe your system setup' })
system: string = '';
@ConfigProperty({description: 'Number of times to run the benchmark'})
@ConfigProperty({ description: 'Number of times to run the benchmark' })
RUNS: number = 50;
@ConfigProperty({description: 'Enables / disables benchmarks'})
@ConfigProperty({ description: 'Enables / disables benchmarks' })
Benchmarks: BenchmarksConfig = new BenchmarksConfig();


}

export const BMConfig = ConfigClassBuilder.attachInterface(new PrivateConfigClass());
export const BMConfig = ConfigClassBuilder.attachInterface(
new PrivateConfigClass()
);
BMConfig.loadSync();
Loading

0 comments on commit 8d13af4

Please sign in to comment.