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.
 
 
 
 
 

195 lines
4.9 KiB

/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { HTTP_INTERCEPTORS } from '@angular/common/http';
import { ModuleWithProviders, NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { DndModule } from 'ng2-dnd';
import { SqxFrameworkModule } from '@app/framework';
import {
AppClientsService,
AppContributorsService,
AppFormComponent,
AppLanguagesService,
AppMustExistGuard,
AppPatternsService,
AppsService,
AppsState,
AssetComponent,
AssetPreviewUrlPipe,
AssetsDialogState,
AssetsListComponent,
AssetsSelectorComponent,
AssetsService,
AssetsState,
AssetUrlPipe,
AuthInterceptor,
AuthService,
BackupsService,
BackupsState,
ClientsState,
ContentMustExistGuard,
ContentsService,
ContentsState,
ContributorsState,
FileIconPipe,
GeolocationEditorComponent,
GraphQlService,
HelpComponent,
HelpService,
HistoryComponent,
HistoryListComponent,
HistoryService,
LanguageSelectorComponent,
LanguagesService,
LanguagesState,
LoadAppsGuard,
LoadLanguagesGuard,
MarkdownEditorComponent,
MustBeAuthenticatedGuard,
MustBeNotAuthenticatedGuard,
PatternsState,
PlansService,
PlansState,
RichEditorComponent,
RuleEventsState,
RulesService,
RulesState,
SchemaCategoryComponent,
SchemaMustExistGuard,
SchemaMustExistPublishedGuard,
SchemasService,
SchemasState,
UIService,
UnsetAppGuard,
UnsetContentGuard,
UsagesService,
UserDtoPicture,
UserIdPicturePipe,
UserNamePipe,
UserNameRefPipe,
UserPicturePipe,
UserPictureRefPipe,
UsersProviderService,
UsersService
} from './declarations';
@NgModule({
imports: [
DndModule,
RouterModule,
SqxFrameworkModule
],
declarations: [
AppFormComponent,
AssetComponent,
AssetPreviewUrlPipe,
AssetUrlPipe,
AssetsListComponent,
AssetsSelectorComponent,
FileIconPipe,
GeolocationEditorComponent,
HelpComponent,
HistoryComponent,
HistoryListComponent,
LanguageSelectorComponent,
MarkdownEditorComponent,
SchemaCategoryComponent,
UserDtoPicture,
UserIdPicturePipe,
UserNamePipe,
UserNameRefPipe,
UserPicturePipe,
UserPictureRefPipe,
RichEditorComponent
],
exports: [
AppFormComponent,
AssetComponent,
AssetPreviewUrlPipe,
AssetUrlPipe,
AssetsListComponent,
AssetsSelectorComponent,
FileIconPipe,
GeolocationEditorComponent,
HelpComponent,
HistoryComponent,
HistoryListComponent,
LanguageSelectorComponent,
MarkdownEditorComponent,
RouterModule,
SchemaCategoryComponent,
UserDtoPicture,
UserIdPicturePipe,
UserNamePipe,
UserNameRefPipe,
UserPicturePipe,
UserPictureRefPipe,
RichEditorComponent
],
providers: [
AssetsDialogState
]
})
export class SqxSharedModule {
public static forRoot(): ModuleWithProviders {
return {
ngModule: SqxSharedModule,
providers: [
AppClientsService,
AppContributorsService,
AppLanguagesService,
AppMustExistGuard,
AppPatternsService,
AppsService,
AppsState,
AssetsState,
AssetsService,
AuthService,
BackupsService,
BackupsState,
ClientsState,
ContentMustExistGuard,
ContentsService,
ContentsState,
ContributorsState,
GraphQlService,
HelpService,
HistoryService,
LanguagesService,
LanguagesState,
LoadAppsGuard,
LoadLanguagesGuard,
MustBeAuthenticatedGuard,
MustBeNotAuthenticatedGuard,
PatternsState,
PlansService,
PlansState,
RuleEventsState,
RulesService,
RulesState,
SchemaMustExistGuard,
SchemaMustExistPublishedGuard,
SchemasService,
SchemasState,
UIService,
UnsetAppGuard,
UnsetContentGuard,
UsagesService,
UsersProviderService,
UsersService,
{
provide: HTTP_INTERCEPTORS,
useClass: AuthInterceptor,
multi: true
}
]
};
}
}