diff --git a/ui/angular.json b/ui/angular.json index f3ade9fbd..d9e6c11c0 100644 --- a/ui/angular.json +++ b/ui/angular.json @@ -3,7 +3,7 @@ "version": 1, "newProjectRoot": "projects", "projects": { - "gateway": { + "ui": { "projectType": "application", "schematics": { "@schematics/angular:component": { @@ -17,7 +17,7 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "outputPath": "dist/gateway", + "outputPath": "dist/ui", "index": "src/index.html", "main": "src/main.ts", "polyfills": "src/polyfills.ts", @@ -63,15 +63,15 @@ "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { - "browserTarget": "gateway:build", + "browserTarget": "ui:build", "proxyConfig": "src/proxy.conf.json" }, "configurations": { "production": { - "browserTarget": "gateway:build:production" + "browserTarget": "ui:build:production" }, "development": { - "browserTarget": "gateway:build:development" + "browserTarget": "ui:build:development" } }, "defaultConfiguration": "development" @@ -79,7 +79,7 @@ "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "gateway:build" + "browserTarget": "ui:build" } }, "test": { diff --git a/ui/karma.conf.js b/ui/karma.conf.js index 089680626..ba125baa7 100644 --- a/ui/karma.conf.js +++ b/ui/karma.conf.js @@ -25,9 +25,12 @@ module.exports = function (config) { suppressAll: true, // removes the duplicated traces }, coverageReporter: { - dir: require("path").join(__dirname, "./coverage/gateway"), - subdir: ".", - reporters: [{ type: "html" }, { type: "text-summary" }], + dir: require('path').join(__dirname, './coverage/ui'), + subdir: '.', + reporters: [ + { type: 'html' }, + { type: 'text-summary' } + ] }, reporters: ["progress", "kjhtml"], port: 9876, diff --git a/ui/package-lock.json b/ui/package-lock.json index 1c09167b3..3f05d5d24 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -1,11 +1,11 @@ { - "name": "gateway", + "name": "ui", "version": "0.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "gateway", + "name": "ui", "version": "0.0.0", "dependencies": { "@angular/animations": "^16.2.9", diff --git a/ui/package.json b/ui/package.json index 880d362e0..1aa605da5 100644 --- a/ui/package.json +++ b/ui/package.json @@ -1,12 +1,12 @@ { - "name": "gateway", + "name": "ui", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve --disable-host-check --host 0.0.0.0", "start_ssl": "ng serve --disable-host-check --host 0.0.0.0 --ssl", - "build": "ng build --base-href ./", - "watch": "ng build --base-href ./ --watch --configuration development", + "build": "ng build --base-href='/ui/'", + "watch": "ng build --base-href='/ui/' --watch --configuration development", "test": "ng test", "lint": "ng lint", "format:cli": "ng lint && npx prettier .", diff --git a/ui/src/app/app.component.spec.ts b/ui/src/app/app.component.spec.ts index bda37ac2e..d84f08c36 100644 --- a/ui/src/app/app.component.spec.ts +++ b/ui/src/app/app.component.spec.ts @@ -17,9 +17,10 @@ describe('AppComponent', () => { expect(app).toBeTruthy() }) - it(`should have as title 'gateway'`, () => { - const fixture = TestBed.createComponent(AppComponent) - const app = fixture.componentInstance - expect(app.title).toEqual('gateway') - }) -}) + it(`should have as title 'ui'`, () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.componentInstance; + expect(app.title).toEqual('ui'); + }); + +}); diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts index ada089b47..d30ceb763 100644 --- a/ui/src/app/app.component.ts +++ b/ui/src/app/app.component.ts @@ -7,7 +7,6 @@ import { HttpClient } from '@angular/common/http' styleUrls: ['./app.component.scss'], }) export class AppComponent { - title = 'gateway' - + title = 'ui'; constructor(private http: HttpClient) {} }