mirror of https://github.com/Squidex/squidex.git
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.
84 lines
2.1 KiB
84 lines
2.1 KiB
/*
|
|
* Squidex Headless CMS
|
|
*
|
|
* @license
|
|
* Copyright (c) Sebastian Stehle. All rights reserved
|
|
*/
|
|
|
|
import { ModuleWithProviders, NgModule } from '@angular/core';
|
|
|
|
import { SqxFrameworkModule } from 'framework';
|
|
|
|
import {
|
|
AppFormComponent,
|
|
AppClientsService,
|
|
AppContributorsService,
|
|
AppLanguagesService,
|
|
AppsStoreService,
|
|
AppsService,
|
|
AppMustExistGuard,
|
|
AuthService,
|
|
ContentsService,
|
|
DashboardLinkDirective,
|
|
EventConsumersService,
|
|
HistoryComponent,
|
|
HistoryService,
|
|
LanguageSelectorComponent,
|
|
LanguageService,
|
|
MustBeAuthenticatedGuard,
|
|
MustBeNotAuthenticatedGuard,
|
|
ResolveAppLanguagesGuard,
|
|
ResolveContentGuard,
|
|
ResolvePublishedSchemaGuard,
|
|
ResolveSchemaGuard,
|
|
SchemasService,
|
|
UsersProviderService,
|
|
UsersService
|
|
} from './declarations';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
SqxFrameworkModule
|
|
],
|
|
declarations: [
|
|
AppFormComponent,
|
|
DashboardLinkDirective,
|
|
HistoryComponent,
|
|
LanguageSelectorComponent
|
|
],
|
|
exports: [
|
|
AppFormComponent,
|
|
DashboardLinkDirective,
|
|
HistoryComponent,
|
|
LanguageSelectorComponent
|
|
]
|
|
})
|
|
export class SqxSharedModule {
|
|
public static forRoot(): ModuleWithProviders {
|
|
return {
|
|
ngModule: SqxSharedModule,
|
|
providers: [
|
|
AppClientsService,
|
|
AppContributorsService,
|
|
AppLanguagesService,
|
|
AppsStoreService,
|
|
AppsService,
|
|
AppMustExistGuard,
|
|
AuthService,
|
|
ContentsService,
|
|
EventConsumersService,
|
|
HistoryService,
|
|
LanguageService,
|
|
MustBeAuthenticatedGuard,
|
|
MustBeNotAuthenticatedGuard,
|
|
ResolveAppLanguagesGuard,
|
|
ResolveContentGuard,
|
|
ResolvePublishedSchemaGuard,
|
|
ResolveSchemaGuard,
|
|
SchemasService,
|
|
UsersProviderService,
|
|
UsersService
|
|
]
|
|
};
|
|
}
|
|
}
|