Skip to content

Commit

Permalink
IKC-423 Update frontend dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Belke authored and Piotr Belke committed Oct 24, 2024
1 parent 34f8e28 commit 6214065
Show file tree
Hide file tree
Showing 69 changed files with 6,268 additions and 5,458 deletions.
9 changes: 4 additions & 5 deletions kouncil-frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
Expand All @@ -23,13 +23,12 @@
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript",
"@consdata/eslint-config"],
"extends": ["plugin:@nx/typescript", "@consdata/eslint-config"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
}
]
Expand Down
1 change: 1 addition & 0 deletions kouncil-frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ testem.log
Thumbs.db

.angular
.nx/cache
23 changes: 0 additions & 23 deletions kouncil-frontend/angular.json

This file was deleted.

4 changes: 2 additions & 2 deletions kouncil-frontend/apps/kouncil/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"files": ["*.ts"],
"extends": [
"plugin:@nrwl/nx/angular",
"plugin:@nx/angular",
"plugin:@angular-eslint/template/process-inline-templates",
"@consdata/eslint-config"
],
Expand All @@ -31,7 +31,7 @@
},
{
"files": ["*.html"],
"extends": ["plugin:@nrwl/nx/angular-template"],
"extends": ["plugin:@nx/angular-template"],
"rules": {}
}
]
Expand Down
17 changes: 9 additions & 8 deletions kouncil-frontend/apps/kouncil/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@ export default {
displayName: 'kouncil',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
},
},
globals: {},
coverageDirectory: '../../coverage/apps/kouncil',
transform: {
'^.+\\.(ts|mjs|js|html)$': 'jest-preset-angular',
'^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular',
{
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
},
],
},
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
snapshotSerializers: [
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
testEnvironment: "jsdom"
testEnvironment: 'jsdom',
};
16 changes: 6 additions & 10 deletions kouncil-frontend/apps/kouncil/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
"prefix": "app",
"targets": {
"build": {
"executor": "@nrwl/angular:webpack-browser",
"outputs": [
"{options.outputPath}"
],
"executor": "@nx/angular:webpack-browser",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/kouncil",
"index": "apps/kouncil/src/index.html",
Expand Down Expand Up @@ -121,7 +119,7 @@
"defaultConfiguration": "production"
},
"serve": {
"executor": "@nrwl/angular:webpack-dev-server",
"executor": "@nx/angular:webpack-dev-server",
"configurations": {
"production": {
"browserTarget": "kouncil:build:production"
Expand All @@ -142,7 +140,7 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"options": {
"lintFilePatterns": [
"apps/kouncil/src/**/*.ts",
Expand All @@ -151,10 +149,8 @@
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": [
"{workspaceRoot}/coverage/apps/kouncil"
],
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/apps/kouncil"],
"options": {
"jestConfig": "apps/kouncil/jest.config.ts",
"passWithNoTests": true
Expand Down
12 changes: 6 additions & 6 deletions kouncil-frontend/apps/kouncil/src/app/routing/auth.guard.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {Injectable} from '@angular/core';
import {ActivatedRouteSnapshot, CanActivate, Router} from '@angular/router';
import {AuthService, SystemFunctionName} from '@app/common-auth';
import {map} from 'rxjs/operators';
import {Observable} from 'rxjs';
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, Router } from '@angular/router';
import { AuthService, SystemFunctionName } from '@app/common-auth';
import { map } from 'rxjs/operators';
import { Observable } from 'rxjs';

@Injectable({
providedIn: 'root'
})
export class AuthGuard implements CanActivate {
export class AuthGuard {

constructor(public router: Router, private authService: AuthService) {
}
Expand Down
11 changes: 5 additions & 6 deletions kouncil-frontend/apps/kouncil/src/app/routing/config-resolver.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import {Injectable} from '@angular/core';
import {Resolve} from '@angular/router';
import {Observable} from 'rxjs';
import {ServersService} from '@app/common-servers';
import {configProviderFactory} from '../app.module';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { ServersService } from '@app/common-servers';
import { configProviderFactory } from '../app.module';

@Injectable({providedIn: 'root'})
export class ConfigResolver implements Resolve<boolean> {
export class ConfigResolver {

constructor(private service: ServersService) {
}
Expand Down
Loading

0 comments on commit 6214065

Please sign in to comment.