Skip to content

Commit

Permalink
fix: use pia lib v4 and code refactoring (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG authored Jan 31, 2024
1 parent 021ac41 commit eb3e0cf
Show file tree
Hide file tree
Showing 69 changed files with 276 additions and 489 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dist/**",
"helm/**",
"node_modules/**",
"src/app/generated/**",
"src/app/shared/generated/**",
"src/app/api/*",
"src/app/model/*",
"src/**/*.ico",
Expand Down Expand Up @@ -39,15 +39,15 @@
"error",
{
"type": "attribute",
"prefix": "hm",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"warn",
{
"type": "element",
"prefix": "hm",
"prefix": "app",
"style": "kebab-case"
}
],
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ README.md
Dockerfile
*.log
*.sh
src/app/generated/**
src/app/shared/generated/**
src/app/api/*
src/app/model/*
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY dist/onecx-help-ui/ $DIR_HTML

# Application environments default values
ENV BFF_URL http://onecx-help-bff:8080/
ENV APP_BASE_HREF /help/
ENV APP_BASE_HREF /

RUN chmod 775 -R $DIR_HTML/assets
USER 1001
9 changes: 2 additions & 7 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"schematics": {},
"root": "",
"sourceRoot": "src",
"prefix": "hm",
"prefix": "app",
"architect": {
"build": {
"builder": "ngx-build-plus:browser",
Expand Down Expand Up @@ -109,12 +109,7 @@
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": [],
"codeCoverageExclude": [
"**/*.module.ts",
"src/app/test/**",
"src/app/environments/**",
"src/app/generated/**"
]
"codeCoverageExclude": ["**/*.module.ts", "src/app/environments/**", "src/app/shared/generated/**"]
}
},
"lint": {
Expand Down
21 changes: 0 additions & 21 deletions helm/microfrontend.json

This file was deleted.

5 changes: 0 additions & 5 deletions helm/permissions.csv

This file was deleted.

14 changes: 0 additions & 14 deletions helm/templates/apm-csv.cm.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions helm/templates/mf-config.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion nginx/locations.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
location @@APP_BASE_HREF {
location @@APP_BASE_HREFbff {
proxy_pass @@BFF_URL;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
Expand Down
56 changes: 28 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"config": {
"openapiYaml": "src/assets/api/help-bff-api.yaml",
"openapiOutput": "src/app/generated"
"openapiOutput": "src/app/shared/generated"
},
"scripts": {
"build": "ng build",
Expand Down Expand Up @@ -49,11 +49,11 @@
"@ngneat/falso": "^6.4.0",
"@ngx-translate/core": "^14.0.0",
"@ngx-translate/http-loader": "^7.0.0",
"@onecx/accelerator": "^3.7.1",
"@onecx/integration-interface": "^3.7.1",
"@onecx/keycloak-auth": "^3.7.1",
"@onecx/portal-integration-angular": "^3.7.1",
"@onecx/portal-layout-styles": "^3.7.1",
"@onecx/accelerator": "^4.1.2",
"@onecx/integration-interface": "^4.1.2",
"@onecx/keycloak-auth": "^4.1.2",
"@onecx/portal-integration-angular": "^4.1.2",
"@onecx/portal-layout-styles": "^4.1.2",
"file-saver": "^2.0.5",
"i18n-iso-countries": "^7.6.0",
"ngx-color": "^8.0.3",
Expand Down
4 changes: 2 additions & 2 deletions proxy.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ const bypassFn = function (req, res) {
}

const PROXY_CONFIG = {
'/help-bff': {
'/bff': {
target: 'http://onecx-help-bff',
secure: false,
pathRewrite: {
'^.*/help-bff': ''
'^.*/bff': ''
},
changeOrigin: true,
logLevel: 'debug',
Expand Down
2 changes: 1 addition & 1 deletion sonar-local-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sonar.testExecutionReportPaths=reports/sonarqube_report.xml
sonar.sourceEncoding=UTF-8
#sonar.sources=src/app
#sonar.working.directory=dist/sonar
sonar.coverage.exclusions=*.ts,*.js,src/*.ts,src/**/*.module.ts,src/environments/*,src/assets/**/*,src/app/generated/**/*,src/test/*
sonar.coverage.exclusions=*.ts,*.js,src/*.ts,src/**/*.module.ts,src/environments/*,src/assets/**/*,src/app/shared/generated/**/*
#sonar.exclusions=src/app/generated/**/*
#sonar.cpd.exclusions=
#sonar.tests=src/app
Expand Down
Empty file removed src/app/app.component.scss
Empty file.
4 changes: 2 additions & 2 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ describe('AppComponent', () => {
expect(app).toBeTruthy()
})

it(`should have as title 'help-mgmt'`, () => {
it(`should have as title 'onecx-help-ui'`, () => {
const fixture = TestBed.createComponent(AppComponent)
const app = fixture.componentInstance
expect(app.title).toEqual('help-mgmt')
expect(app.title).toEqual('onecx-help-ui')
})

/*
Expand Down
7 changes: 3 additions & 4 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { Component } from '@angular/core'

@Component({
selector: 'hm-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
title = 'help-mgmt'
title = 'onecx-help-ui'
}
Loading

0 comments on commit eb3e0cf

Please sign in to comment.