-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: use pia lib v4 and move generated to shared * feat: use pia lib v4 and move generated to shared * feat: exclude search tests
- Loading branch information
Showing
81 changed files
with
311 additions
and
825 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: Create new build | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
uses: onecx/ci-common/.github/workflows/create-new-build.yml@v1 | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,6 @@ README.md | |
Dockerfile | ||
*.log | ||
*.sh | ||
src/app/generated/** | ||
src/app/shared/generated/** | ||
src/app/api/* | ||
src/app/model/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,61 @@ | ||
import { APP_INITIALIZER, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, NgModule } from '@angular/core' | ||
import { CommonModule } from '@angular/common' | ||
import { HttpClient, HttpClientModule } from '@angular/common/http' | ||
import { RouterModule, Routes } from '@angular/router' | ||
import { BrowserModule } from '@angular/platform-browser' | ||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations' | ||
import { TranslateService } from '@ngx-translate/core' | ||
import { DialogService } from 'primeng/dynamicdialog' | ||
import { Observable } from 'rxjs' | ||
import { TranslateLoader, TranslateModule, TranslateService } from '@ngx-translate/core' | ||
|
||
import { APP_CONFIG, PortalCoreModule } from '@onecx/portal-integration-angular' | ||
import { | ||
APP_CONFIG, | ||
AppStateService, | ||
createTranslateLoader, | ||
translateServiceInitializer, | ||
PortalCoreModule, | ||
UserService | ||
} from '@onecx/portal-integration-angular' | ||
import { KeycloakAuthModule } from '@onecx/keycloak-auth' | ||
|
||
import { AppComponent } from './app.component' | ||
import { environment } from '../environments/environment' | ||
|
||
// standalone app: ensure translations are loaded during app init | ||
function initializer(translate: TranslateService): () => Observable<any> { | ||
console.log('App module initializer') | ||
return () => { | ||
translate.addLangs(['en', 'de']) | ||
const browserLang = translate.getBrowserLang() | ||
return translate.use(browserLang?.match(/en|de/) ? browserLang : 'en') | ||
} | ||
} | ||
import { environment } from 'src/environments/environment' | ||
|
||
const routes: Routes = [{ path: '', pathMatch: 'full' }] | ||
@NgModule({ | ||
bootstrap: [AppComponent], | ||
declarations: [AppComponent], | ||
imports: [BrowserModule, KeycloakAuthModule, BrowserAnimationsModule, PortalCoreModule.forRoot('product-store-ui')], | ||
imports: [ | ||
CommonModule, | ||
BrowserModule, | ||
HttpClientModule, | ||
KeycloakAuthModule, | ||
BrowserAnimationsModule, | ||
RouterModule.forRoot(routes, { | ||
initialNavigation: 'enabledBlocking', | ||
enableTracing: true | ||
}), | ||
PortalCoreModule.forRoot('onecx-product-store-ui'), | ||
TranslateModule.forRoot({ | ||
isolate: true, | ||
loader: { | ||
provide: TranslateLoader, | ||
useFactory: createTranslateLoader, | ||
deps: [HttpClient, AppStateService] | ||
} | ||
}) | ||
], | ||
providers: [ | ||
DialogService, | ||
{ provide: APP_CONFIG, useValue: environment }, | ||
{ provide: APP_INITIALIZER, useFactory: initializer, multi: true, deps: [TranslateService] } | ||
{ | ||
provide: APP_INITIALIZER, | ||
useFactory: translateServiceInitializer, | ||
multi: true, | ||
deps: [UserService, TranslateService] | ||
} | ||
], | ||
schemas: [NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA] | ||
}) | ||
export class AppModule {} | ||
export class AppModule { | ||
constructor() { | ||
console.info('App Module constructor') | ||
} | ||
} |
Oops, something went wrong.