diff --git a/Dockerfile b/Dockerfile index d1d8506..f4451ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ COPY dist/onecx-theme-ui/ $DIR_HTML # Application environments default values ENV BFF_URL http://onecx-theme-bff:8080/ -ENV APP_BASE_HREF /theme/ +ENV APP_BASE_HREF / RUN chmod 775 -R $DIR_HTML/assets USER 1001 diff --git a/helm/values.yaml b/helm/values.yaml index 73879bf..cf9b0a4 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -4,16 +4,16 @@ app: repository: 'onecx/onecx-theme-ui' routing: enabled: true - path: /ui/mfe/theme/ + path: /mfe/theme/ operator: # Microfrontend microfrontend: enabled: true spec: - exposedModule: "./ThemeMgmtModule" - description: "Theme Mgmt module" - note: "Theme Mgmt UI module auto import via MF operator" + exposedModule: "./OneCXThemeModule" + description: "OneCX Theme Module" + note: "OneCX Theme UI module auto import via MF operator" # Permission permission: enabled: true @@ -33,7 +33,7 @@ app: enabled: true client: |- { - "clientId": "theme-mgmt-ui", + "clientId": "onecx-theme-ui", "enabled": true, "description": "Keycloak client for theme-mgmt-ui", "redirectUris": ["*"], diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index c2fe1a5..406a5e2 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -18,9 +18,9 @@ describe('AppComponent', () => { expect(app).toBeTruthy() }) - it(`should have as title 'theme-mgmt'`, () => { + it(`should have as title 'onecx-theme-ui'`, () => { const fixture = TestBed.createComponent(AppComponent) const app = fixture.componentInstance - expect(app.title).toEqual('theme-mgmt') + expect(app.title).toEqual('onecx-theme-ui') }) }) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 92b1342..34caa4c 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -4,5 +4,5 @@ import { Component } from '@angular/core' templateUrl: './app.component.html' }) export class AppComponent { - title = 'theme-mgmt' + title = 'onecx-theme-ui' } diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 35a66a8..214fb59 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -24,7 +24,7 @@ function initializer(translate: TranslateService): () => Observable { @NgModule({ bootstrap: [AppComponent], declarations: [AppComponent], - imports: [BrowserModule, KeycloakAuthModule, BrowserAnimationsModule, PortalCoreModule.forRoot('theme-mgmt-ui')], + imports: [BrowserModule, KeycloakAuthModule, BrowserAnimationsModule, PortalCoreModule.forRoot('onecx-theme-ui')], providers: [ DialogService, { provide: APP_CONFIG, useValue: environment }, diff --git a/src/app/theme-mgmt-remote.module.ts b/src/app/onecx-theme-remote.module.ts similarity index 85% rename from src/app/theme-mgmt-remote.module.ts rename to src/app/onecx-theme-remote.module.ts index ec377f7..67a75b9 100644 --- a/src/app/theme-mgmt-remote.module.ts +++ b/src/app/onecx-theme-remote.module.ts @@ -15,8 +15,8 @@ const routes: Routes = [ providers: [], schemas: [] }) -export class ThemeMgmtModule { +export class OneCXThemeModule { constructor(@Inject(MFE_INFO) mfeInfo?: MfeInfo) { - console.info('Theme Mgmt Module constructor', mfeInfo) + console.info('OneCX Theme Module constructor', mfeInfo) } } diff --git a/src/index.html b/src/index.html index cf7d910..d1ccf33 100644 --- a/src/index.html +++ b/src/index.html @@ -2,7 +2,7 @@ - ThemeMgmt + OneCX Theme diff --git a/tsconfig.app.json b/tsconfig.app.json index f7cdde6..adc32c1 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -7,7 +7,7 @@ "inlineSources": true, "target": "ES2022" }, - "files": ["src/main.ts", "src/polyfills.ts", "src/app/theme-mgmt-remote.module.ts"], + "files": ["src/main.ts", "src/polyfills.ts", "src/app/onecx-theme-remote.module.ts"], "include": ["src/**/*.ts", "src/**/*.d.ts"], "exclude": [ "src/test.ts", diff --git a/webpack.config.js b/webpack.config.js index 3c8aaae..74a3d5e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,7 +5,7 @@ const config = withModuleFederationPlugin({ name: 'onecx-theme-ui', filename: 'remoteEntry.js', exposes: { - './ThemeMgmtModule': 'src/app/theme-mgmt-remote.module.ts' + './OneCXThemeModule': 'src/app/onecx-theme-remote.module.ts' }, shared: share({ '@angular/core': { singleton: true, strictVersion: true, requiredVersion: 'auto' },