diff --git a/viewer/src/app/app.component.ts b/viewer/src/app/app.component.ts index 04d7bdc..13cf04f 100644 --- a/viewer/src/app/app.component.ts +++ b/viewer/src/app/app.component.ts @@ -1,5 +1,7 @@ import { Component, OnInit } from '@angular/core'; import { AppService } from './app.service'; +import { MatDialog } from '@angular/material/dialog'; +import { MovedComponent } from './moved/moved.component'; @Component({ selector: 'app-root', @@ -9,10 +11,13 @@ import { AppService } from './app.service'; export class AppComponent implements OnInit { tabs: string[] = []; - constructor(private appService: AppService) {} + constructor(private appService: AppService, private dialog: MatDialog) {} ngOnInit(): void { this.appService.getElements(); + + this.dialog.open(MovedComponent); + this.tabs = Object.keys(this.appService.getElements()).filter( (key) => key !== 'Credential Profile' && key !== 'defs' ); diff --git a/viewer/src/app/app.module.ts b/viewer/src/app/app.module.ts index cae0889..e65d619 100644 --- a/viewer/src/app/app.module.ts +++ b/viewer/src/app/app.module.ts @@ -1,5 +1,8 @@ import { NgModule } from '@angular/core'; -import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'; +import { + provideHttpClient, + withInterceptorsFromDi, +} from '@angular/common/http'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; @@ -42,55 +45,63 @@ import { CredentialProfileShowComponent } from './credential-profile/credential- import { MarkdownModule } from 'ngx-markdown'; import { DefinitionComponent } from './definition/definition.component'; import { ResourcesShowComponent } from './resources/resources-show/resources-show.component'; +import { MovedComponent } from './moved/moved.component'; const appearance: MatFormFieldDefaultOptions = { appearance: 'outline', }; -@NgModule({ declarations: [ - AppComponent, - ResourcesListComponent, - CredentialProfileListComponent, - CredentialProfileShowComponent, - FormatPipe, - AutoSelectComponent, - FilterComponent, - ProfileConfigComponent, - DefinitionComponent, - ResourcesShowComponent, - ], - bootstrap: [AppComponent], imports: [CommonModule, - BrowserModule, - BrowserAnimationsModule, - ReactiveFormsModule, - MatInputModule, - FlexLayoutModule, - AppRoutingModule, - MatToolbarModule, - MatTableModule, - MatSnackBarModule, - MatTooltipModule, - MatSelectModule, - MatDialogModule, - MatIconModule, - MatButtonModule, - MatTabsModule, - MatSortModule, - MatListModule, - MatCheckboxModule, - MatChipsModule, - MatFormFieldModule, - MatAutocompleteModule, - MatPaginatorModule, - ClipboardModule, - MatMenuModule, - MatCardModule, - MatExpansionModule, - MarkdownModule.forRoot()], providers: [ - FormatPipe, - { - provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, - useValue: appearance, - }, - provideHttpClient(withInterceptorsFromDi()), - ] }) +@NgModule({ + declarations: [ + AppComponent, + ResourcesListComponent, + CredentialProfileListComponent, + CredentialProfileShowComponent, + FormatPipe, + AutoSelectComponent, + FilterComponent, + ProfileConfigComponent, + DefinitionComponent, + ResourcesShowComponent, + MovedComponent, + ], + bootstrap: [AppComponent], + imports: [ + CommonModule, + BrowserModule, + BrowserAnimationsModule, + ReactiveFormsModule, + MatInputModule, + FlexLayoutModule, + AppRoutingModule, + MatToolbarModule, + MatTableModule, + MatSnackBarModule, + MatTooltipModule, + MatSelectModule, + MatDialogModule, + MatIconModule, + MatButtonModule, + MatTabsModule, + MatSortModule, + MatListModule, + MatCheckboxModule, + MatChipsModule, + MatFormFieldModule, + MatAutocompleteModule, + MatPaginatorModule, + ClipboardModule, + MatMenuModule, + MatCardModule, + MatExpansionModule, + MarkdownModule.forRoot(), + ], + providers: [ + FormatPipe, + { + provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, + useValue: appearance, + }, + provideHttpClient(withInterceptorsFromDi()), + ], +}) export class AppModule {} diff --git a/viewer/src/app/moved/moved.component.html b/viewer/src/app/moved/moved.component.html new file mode 100644 index 0000000..a3c2773 --- /dev/null +++ b/viewer/src/app/moved/moved.component.html @@ -0,0 +1,14 @@ +
+ The project was merged with the Wallet and Agent overview and moved to a new + location. Please update your bookmarks. +
+