Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

188 lines
7.2 KiB

/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
// tslint:disable: max-line-length
import { DragDropModule } from '@angular/cdk/drag-drop';
import { HTTP_INTERCEPTORS } from '@angular/common/http';
import { ModuleWithProviders, NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { SqxFrameworkModule } from '@app/framework';
import { MentionModule } from 'angular-mentions';
import { AppFormComponent, AppLanguagesService, AppMustExistGuard, AppsService, AppsState, AssetComponent, AssetDialogComponent, AssetFolderComponent, AssetFolderDialogComponent, AssetHistoryComponent, AssetPathComponent, AssetPreviewUrlPipe, AssetsDialogState, AssetsListComponent, AssetsSelectorComponent, AssetsService, AssetsState, AssetUploaderComponent, AssetUploaderState, AssetUrlPipe, AuthInterceptor, AuthService, AutoSaveService, BackupsService, BackupsState, ClientsService, ClientsState, CommentComponent, CommentsComponent, CommentsService, ContentMustExistGuard, ContentsService, ContentsState, ContributorsService, ContributorsState, FileIconPipe, FilterComparisonComponent, FilterLogicalComponent, FilterNodeComponent, GeolocationEditorComponent, GraphQlService, HelpComponent, HelpMarkdownPipe, HelpService, HistoryComponent, HistoryListComponent, HistoryMessagePipe, HistoryService, ImageCropperComponent, ImageFocusPointComponent, LanguageSelectorComponent, LanguagesService, LanguagesState, LoadAppsGuard, LoadLanguagesGuard, MarkdownEditorComponent, MustBeAuthenticatedGuard, MustBeNotAuthenticatedGuard, NewsService, PatternsService, PatternsState, PlansService, PlansState, QueryComponent, QueryListComponent, QueryPathComponent, ReferencesCheckboxesComponent, ReferencesDropdownComponent, ReferencesTagsComponent, RichEditorComponent, RolesService, RolesState, RuleEventsState, RulesService, RulesState, SavedQueriesComponent, SchemaCategoryComponent, SchemaMustExistGuard, SchemaMustExistPublishedGuard, SchemaMustNotBeSingletonGuard, SchemasService, SchemasState, SchemaTagSource, SearchFormComponent, SortingComponent, StockPhotoService, TableHeaderComponent, TranslationsService, UIService, UIState, UnsetAppGuard, UnsetContentGuard, UsagesService, UserDtoPicture, UserIdPicturePipe, UserNamePipe, UserNameRefPipe, UserPicturePipe, UserPictureRefPipe, UsersProviderService, UsersService, WorkflowsService, WorkflowsState } from './declarations';
import { SearchService } from './services/search.service';
@NgModule({
imports: [
DragDropModule,
MentionModule,
RouterModule,
SqxFrameworkModule
],
declarations: [
AppFormComponent,
AssetComponent,
AssetDialogComponent,
AssetFolderComponent,
AssetFolderDialogComponent,
AssetHistoryComponent,
AssetPathComponent,
AssetPreviewUrlPipe,
AssetsListComponent,
AssetsSelectorComponent,
AssetUploaderComponent,
AssetUrlPipe,
CommentComponent,
CommentsComponent,
FileIconPipe,
FilterComparisonComponent,
FilterLogicalComponent,
FilterNodeComponent,
GeolocationEditorComponent,
HelpComponent,
HelpMarkdownPipe,
HistoryComponent,
HistoryListComponent,
HistoryMessagePipe,
ImageCropperComponent,
ImageFocusPointComponent,
LanguageSelectorComponent,
MarkdownEditorComponent,
QueryComponent,
QueryListComponent,
QueryPathComponent,
ReferencesCheckboxesComponent,
ReferencesDropdownComponent,
ReferencesTagsComponent,
RichEditorComponent,
SavedQueriesComponent,
SchemaCategoryComponent,
SearchFormComponent,
SortingComponent,
TableHeaderComponent,
UserDtoPicture,
UserIdPicturePipe,
UserNamePipe,
UserNameRefPipe,
UserPicturePipe,
UserPictureRefPipe
],
exports: [
AppFormComponent,
AssetComponent,
AssetDialogComponent,
AssetFolderComponent,
AssetFolderDialogComponent,
AssetPathComponent,
AssetPreviewUrlPipe,
AssetsListComponent,
AssetsSelectorComponent,
AssetUploaderComponent,
AssetUrlPipe,
CommentComponent,
CommentsComponent,
DragDropModule,
FileIconPipe,
GeolocationEditorComponent,
HelpComponent,
HelpMarkdownPipe,
HistoryComponent,
HistoryListComponent,
HistoryMessagePipe,
LanguageSelectorComponent,
MarkdownEditorComponent,
QueryListComponent,
ReferencesCheckboxesComponent,
ReferencesDropdownComponent,
ReferencesTagsComponent,
RichEditorComponent,
RouterModule,
SavedQueriesComponent,
SchemaCategoryComponent,
SearchFormComponent,
TableHeaderComponent,
UserDtoPicture,
UserIdPicturePipe,
UserNamePipe,
UserNameRefPipe,
UserPicturePipe,
UserPictureRefPipe
],
providers: [
AssetsDialogState
]
})
export class SqxSharedModule {
public static forRoot(): ModuleWithProviders {
return {
ngModule: SqxSharedModule,
providers: [
AppLanguagesService,
AppMustExistGuard,
AppsService,
AppsState,
AssetsService,
AssetsState,
AssetUploaderState,
AuthService,
AutoSaveService,
BackupsService,
BackupsState,
ClientsService,
ClientsState,
CommentsService,
ContentMustExistGuard,
ContentsService,
ContentsState,
ContributorsService,
ContributorsState,
GraphQlService,
HelpService,
HistoryService,
LanguagesService,
LanguagesState,
LoadAppsGuard,
LoadLanguagesGuard,
MustBeAuthenticatedGuard,
MustBeNotAuthenticatedGuard,
NewsService,
PatternsService,
PatternsState,
PlansService,
PlansState,
RolesService,
RolesState,
RuleEventsState,
RulesService,
RulesState,
SearchService,
SchemaMustExistGuard,
SchemaMustExistPublishedGuard,
SchemaMustNotBeSingletonGuard,
SchemasService,
SchemasState,
SchemaTagSource,
StockPhotoService,
TranslationsService,
UIService,
UIState,
UnsetAppGuard,
UnsetContentGuard,
UsagesService,
UsersProviderService,
UsersService,
WorkflowsService,
WorkflowsState,
{
provide: HTTP_INTERCEPTORS,
useClass: AuthInterceptor,
multi: true
}
]
};
}
}