1
0
mirror of https://github.com/dkmstr/openuds-gui.git synced 2025-01-03 05:17:36 +03:00

Upgraded angular version

This commit is contained in:
Adolfo Gómez García 2022-03-05 09:11:18 +01:00
parent 877bf99d9a
commit 4337c80ce1
6 changed files with 62 additions and 74 deletions

1
.gitignore vendored
View File

@ -27,6 +27,7 @@ yarn.lock
!.vscode/extensions.json !.vscode/extensions.json
# misc # misc
/.angular/cache
/.sass-cache /.sass-cache
/connect.lock /connect.lock
/coverage /coverage

View File

@ -15,42 +15,41 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^12.2.4", "@angular/animations": "^13.2.5",
"@angular/cdk": "^12.2.4", "@angular/cdk": "^13.2.5",
"@angular/common": "^12.2.4", "@angular/common": "^13.2.5",
"@angular/compiler": "^12.2.4", "@angular/compiler": "^13.2.5",
"@angular/core": "^12.2.4", "@angular/core": "^13.2.5",
"@angular/forms": "^12.2.4", "@angular/forms": "^13.2.5",
"@angular/material": "^12.2.4", "@angular/material": "^13.2.5",
"@angular/platform-browser": "^12.2.4", "@angular/platform-browser": "^13.2.5",
"@angular/platform-browser-dynamic": "^12.2.4", "@angular/platform-browser-dynamic": "^13.2.5",
"@angular/router": "^12.2.4", "@angular/router": "^13.2.5",
"cookieconsent": "^3.1.1", "cookieconsent": "^3.1.1",
"core-js": "^3.2.1", "core-js": "^3.2.1",
"rxjs": "^6.6.3", "rxjs": "^6.6.3",
"tslib": "^2.0.0", "tslib": "^2.0.0",
"web-animations-js": "^2.3.2",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~12.2.4", "@angular-devkit/build-angular": "~13.2.5",
"@angular-eslint/builder": "^12.0.0", "@angular-eslint/builder": "^13.1.0",
"@angular-eslint/eslint-plugin": "^12.0.0", "@angular-eslint/eslint-plugin": "^13.1.0",
"@angular-eslint/eslint-plugin-template": "^12.0.0", "@angular-eslint/eslint-plugin-template": "^13.1.0",
"@angular-eslint/schematics": "12.3.1", "@angular-eslint/schematics": "13.1.0",
"@angular-eslint/template-parser": "^12.0.0", "@angular-eslint/template-parser": "^13.1.0",
"@angular/cli": "^12.2.4", "@angular/cli": "^13.2.5",
"@angular/compiler-cli": "^12.2.4", "@angular/compiler-cli": "^13.2.5",
"@angular/language-service": "^12.2.4", "@angular/language-service": "^13.2.5",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.6", "@types/jasminewd2": "~2.0.6",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"@typescript-eslint/eslint-plugin": "4.23.0", "@typescript-eslint/eslint-plugin": "5.3.0",
"@typescript-eslint/parser": "4.23.0", "@typescript-eslint/parser": "5.3.0",
"codelyzer": "^6.0.0", "codelyzer": "^6.0.0",
"eslint": "^7.26.0", "eslint": "^8.2.0",
"eslint-config-prettier": "^8.1.0", "eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "2.22.1", "eslint-plugin-import": "2.25.2",
"eslint-plugin-jsdoc": "30.7.6", "eslint-plugin-jsdoc": "30.7.6",
"eslint-plugin-prefer-arrow": "1.2.2", "eslint-plugin-prefer-arrow": "1.2.2",
"eslint-plugin-prettier": "^3.3.1", "eslint-plugin-prettier": "^3.3.1",
@ -65,6 +64,6 @@
"prettier-eslint": "^12.0.0", "prettier-eslint": "^12.0.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~8.4.1", "ts-node": "~8.4.1",
"typescript": "~4.3.4" "typescript": "~4.5.5"
} }
} }

View File

@ -72,9 +72,6 @@ import { FilterComponent } from './gui/components/filter/filter.component';
UDSApiService, UDSApiService,
UDSGuiService, UDSGuiService,
], ],
bootstrap: [AppComponent], bootstrap: [AppComponent]
entryComponents: [
ModalComponent
]
}) })
export class AppModule { } export class AppModule { }

View File

@ -18,19 +18,8 @@
* BROWSER POLYFILLS * BROWSER POLYFILLS
*/ */
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/** IE10 and IE11 requires the following for the Reflect API. */ /** IE10 and IE11 requires the following for the Reflect API. */
import 'core-js/es/reflect'; import 'core-js/es/reflect'; // Run `npm install --save web-animations-js`.
/**
* Required to support Web Animations `@angular/platform-browser/animations`.
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
**/
import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/** /**
* By default, zone.js will patch all possible macroTask and DomEvents * By default, zone.js will patch all possible macroTask and DomEvents

View File

@ -1,6 +1,6 @@
/* You can add global styles to this file, and also import other style files */ /* You can add global styles to this file, and also import other style files */
/* Materials */ /* Materials */
@import '~@angular/material/prebuilt-themes/indigo-pink.css'; @import '@angular/material/prebuilt-themes/indigo-pink.css';
/* Cookie consent */ /* Cookie consent */
@import "~cookieconsent/build/cookieconsent.min.css"; @import "~cookieconsent/build/cookieconsent.min.css";

View File

@ -12,7 +12,9 @@ declare const require: any;
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);