Skip to content

Commit

Permalink
refactor: move list and dialog into nx libraries (#1649)
Browse files Browse the repository at this point in the history
  • Loading branch information
derschnee68 authored Jun 14, 2024
1 parent 27e4939 commit ad0cfb6
Show file tree
Hide file tree
Showing 61 changed files with 544 additions and 461 deletions.
3 changes: 1 addition & 2 deletions apps/dsp-app/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { RouteConstants } from '@dasch-swiss/vre/shared/app-config';
import { CreateListInfoPageComponent, ListComponent } from '@dasch-swiss/vre/shared/app-list';
import {
ResourceComponent,
ResourcePage2Component,
Expand All @@ -18,8 +19,6 @@ import { DataModelsComponent } from './project/data-models/data-models.component
import { DescriptionComponent } from './project/description/description.component';
import { EditProjectFormPageComponent } from './project/edit-project-form-page/edit-project-form-page.component';
import { ImageSettingsComponent } from './project/image-settings/image-settings.component';
import { ListComponent } from './project/list/list.component';
import { CreateListInfoPageComponent } from './project/list/reusable-list-info-form/create-list-info-page.component';
import { OntologyFormComponent } from './project/ontology/ontology-form/ontology-form.component';
import { OntologyComponent } from './project/ontology/ontology.component';
import { OntologyClassInstanceComponent } from './project/ontology-classes/ontology-class-instance/ontology-class-instance.component';
Expand Down
30 changes: 8 additions & 22 deletions apps/dsp-app/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ import {
} from '@dasch-swiss/vre/shared/app-config';
import { AppDatePickerComponent } from '@dasch-swiss/vre/shared/app-date-picker';
import { AppErrorHandler } from '@dasch-swiss/vre/shared/app-error-handler';
import {
CreateListInfoPageComponent,
ReusableListInfoFormComponent,
ListComponents,
} from '@dasch-swiss/vre/shared/app-list';
import { NotificationService } from '@dasch-swiss/vre/shared/app-notification';
import {
AppProgressIndicatorComponent,
Expand All @@ -39,6 +44,7 @@ import {
MultiLanguageTextareaComponent,
MutiLanguageInputComponent,
} from '@dasch-swiss/vre/shared/app-string-literal';
import { UiComponents } from '@dasch-swiss/vre/shared/app-ui';
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
import * as Sentry from '@sentry/angular-ivy';
Expand All @@ -49,7 +55,6 @@ import { ColorPickerModule } from 'ngx-color-picker';
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ConfirmDialogComponent } from './main/action/confirm-dialog/confirm-dialog.component';
import { HintComponent } from './main/action/hint/hint.component';
import { LoginFormComponent } from './main/action/login-form/login-form.component';
import { SelectedResourcesComponent } from './main/action/selected-resources/selected-resources.component';
Expand Down Expand Up @@ -87,17 +92,6 @@ import { EditProjectFormPageComponent } from './project/edit-project-form-page/e
import { ImageDisplayAbsoluteComponent } from './project/image-settings/image-display-absolute.component';
import { ImageDisplayRatioComponent } from './project/image-settings/image-display-ratio.component';
import { ImageSettingsComponent } from './project/image-settings/image-settings.component';
import { ActionBubbleComponent } from './project/list/action-bubble/action-bubble.component';
import { ListItemComponent } from './project/list/list-item/list-item.component';
import { ListItemElementComponent } from './project/list/list-item-element/list-item-element.component';
import { CreateListItemDialogComponent } from './project/list/list-item-form/edit-list-item/create-list-item-dialog.component';
import { EditListItemDialogComponent } from './project/list/list-item-form/edit-list-item/edit-list-item-dialog.component';
import { ListItemFormComponent } from './project/list/list-item-form/list-item-form.component';
import { ReusableListItemFormComponent } from './project/list/list-item-form/reusable-list-item-form.component';
import { ListComponent } from './project/list/list.component';
import { CreateListInfoPageComponent } from './project/list/reusable-list-info-form/create-list-info-page.component';
import { EditListInfoDialogComponent } from './project/list/reusable-list-info-form/edit-list-info-dialog.component';
import { ReusableListInfoFormComponent } from './project/list/reusable-list-info-form/reusable-list-info-form.component';
import { CreateResourceClassDialogComponent } from './project/ontology/create-resource-class-dialog/create-resource-class-dialog.component';
import { EditResourceClassDialogComponent } from './project/ontology/edit-resource-class-dialog/edit-resource-class-dialog.component';
import { OntologyFormComponent } from './project/ontology/ontology-form/ontology-form.component';
Expand Down Expand Up @@ -163,8 +157,9 @@ export function httpLoaderFactory(httpClient: HttpClient) {
...ResourcePageComponents,
...RepresentationsComponents,
...CommonToMoveComponents,
...ListComponents,
...UiComponents,
AccountComponent,
ActionBubbleComponent,
AddUserComponent,
AdminImageDirective,
AdvancedSearchContainerComponent,
Expand All @@ -176,7 +171,6 @@ export function httpLoaderFactory(httpClient: HttpClient) {
ColorPickerComponent,
CommonInputComponent,
ComparisonComponent,
ConfirmDialogComponent,
CookiePolicyComponent,
CreateUserDialogComponent,
CreateResourceClassDialogComponent,
Expand All @@ -201,15 +195,8 @@ export function httpLoaderFactory(httpClient: HttpClient) {
KnoraDatePipe,
LoadingButtonDirective,
LinkifyPipe,
ListComponent,
EditListInfoDialogComponent,
EditListItemDialogComponent,
CreateListInfoPageComponent,
ReusableListInfoFormComponent,
ReusableListItemFormComponent,
ListItemComponent,
ListItemElementComponent,
ListItemFormComponent,
ListViewComponent,
LoginFormComponent,
MembershipComponent,
Expand Down Expand Up @@ -261,7 +248,6 @@ export function httpLoaderFactory(httpClient: HttpClient) {
ProjectTileComponent,
DataModelsComponent,
IsFalsyPipe,
CreateListItemDialogComponent,
ImageDisplayAbsoluteComponent,
MultipleViewerComponent,
],
Expand Down
Loading

0 comments on commit ad0cfb6

Please sign in to comment.