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.
192 lines
4.7 KiB
192 lines
4.7 KiB
/*
|
|
* Squidex Headless CMS
|
|
*
|
|
* @license
|
|
* Copyright (c) Sebastian Stehle. All rights reserved
|
|
*/
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
import { ModuleWithProviders, NgModule } from '@angular/core';
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
import {
|
|
AutocompleteComponent,
|
|
CanDeactivateGuard,
|
|
ClipboardService,
|
|
ControlErrorsComponent,
|
|
CopyDirective,
|
|
DateTimeEditorComponent,
|
|
DayOfWeekPipe,
|
|
DayPipe,
|
|
DisplayNamePipe,
|
|
DropdownComponent,
|
|
DurationPipe,
|
|
FileDropDirective,
|
|
FileSizePipe,
|
|
FocusOnInitDirective,
|
|
FromNowPipe,
|
|
GeolocationEditorComponent,
|
|
ImageSourceDirective,
|
|
IndeterminateValueDirective,
|
|
JsonEditorComponent,
|
|
KNumberPipe,
|
|
LocalStoreService,
|
|
LowerCaseInputDirective,
|
|
MarkdownEditorComponent,
|
|
MessageBus,
|
|
ModalTargetDirective,
|
|
ModalViewDirective,
|
|
MoneyPipe,
|
|
MonthPipe,
|
|
NotificationService,
|
|
PanelContainerDirective,
|
|
PanelComponent,
|
|
ParentLinkDirective,
|
|
PopupLinkDirective,
|
|
ProgressBarComponent,
|
|
ResourceLoaderService,
|
|
RichEditorComponent,
|
|
RootViewDirective,
|
|
RootViewService,
|
|
RoutingCache,
|
|
ScrollActiveDirective,
|
|
ShortcutComponent,
|
|
ShortcutService,
|
|
ShortDatePipe,
|
|
ShortTimePipe,
|
|
SliderComponent,
|
|
SortedDirective,
|
|
StarsComponent,
|
|
TagEditorComponent,
|
|
TemplateWrapperDirective,
|
|
TitleService,
|
|
TitleComponent,
|
|
ToggleComponent,
|
|
UserReportComponent
|
|
} from './declarations';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
HttpClientModule,
|
|
FormsModule,
|
|
CommonModule,
|
|
RouterModule,
|
|
ReactiveFormsModule
|
|
],
|
|
declarations: [
|
|
AutocompleteComponent,
|
|
ControlErrorsComponent,
|
|
CopyDirective,
|
|
DateTimeEditorComponent,
|
|
DayOfWeekPipe,
|
|
DayPipe,
|
|
DisplayNamePipe,
|
|
DropdownComponent,
|
|
DurationPipe,
|
|
FileDropDirective,
|
|
FileSizePipe,
|
|
FocusOnInitDirective,
|
|
FromNowPipe,
|
|
GeolocationEditorComponent,
|
|
ImageSourceDirective,
|
|
IndeterminateValueDirective,
|
|
JsonEditorComponent,
|
|
KNumberPipe,
|
|
LowerCaseInputDirective,
|
|
MarkdownEditorComponent,
|
|
ModalTargetDirective,
|
|
ModalViewDirective,
|
|
MoneyPipe,
|
|
MonthPipe,
|
|
PanelContainerDirective,
|
|
PanelComponent,
|
|
ParentLinkDirective,
|
|
PopupLinkDirective,
|
|
ProgressBarComponent,
|
|
RichEditorComponent,
|
|
RootViewDirective,
|
|
ScrollActiveDirective,
|
|
ShortcutComponent,
|
|
ShortDatePipe,
|
|
ShortTimePipe,
|
|
SliderComponent,
|
|
SortedDirective,
|
|
StarsComponent,
|
|
TagEditorComponent,
|
|
TemplateWrapperDirective,
|
|
TitleComponent,
|
|
ToggleComponent,
|
|
UserReportComponent
|
|
],
|
|
exports: [
|
|
AutocompleteComponent,
|
|
ControlErrorsComponent,
|
|
CopyDirective,
|
|
DateTimeEditorComponent,
|
|
DayOfWeekPipe,
|
|
DayPipe,
|
|
DisplayNamePipe,
|
|
DropdownComponent,
|
|
DurationPipe,
|
|
FileDropDirective,
|
|
FileSizePipe,
|
|
FocusOnInitDirective,
|
|
FromNowPipe,
|
|
GeolocationEditorComponent,
|
|
ImageSourceDirective,
|
|
IndeterminateValueDirective,
|
|
JsonEditorComponent,
|
|
KNumberPipe,
|
|
LowerCaseInputDirective,
|
|
MarkdownEditorComponent,
|
|
ModalTargetDirective,
|
|
ModalViewDirective,
|
|
MoneyPipe,
|
|
MonthPipe,
|
|
PanelContainerDirective,
|
|
PanelComponent,
|
|
ParentLinkDirective,
|
|
PopupLinkDirective,
|
|
ProgressBarComponent,
|
|
RichEditorComponent,
|
|
RootViewDirective,
|
|
ScrollActiveDirective,
|
|
ShortcutComponent,
|
|
ShortDatePipe,
|
|
ShortTimePipe,
|
|
SliderComponent,
|
|
SortedDirective,
|
|
StarsComponent,
|
|
TagEditorComponent,
|
|
TemplateWrapperDirective,
|
|
TitleComponent,
|
|
ToggleComponent,
|
|
UserReportComponent,
|
|
HttpClientModule,
|
|
FormsModule,
|
|
CommonModule,
|
|
RouterModule,
|
|
ReactiveFormsModule
|
|
]
|
|
})
|
|
export class SqxFrameworkModule {
|
|
public static forRoot(): ModuleWithProviders {
|
|
return {
|
|
ngModule: SqxFrameworkModule,
|
|
providers: [
|
|
CanDeactivateGuard,
|
|
ClipboardService,
|
|
LocalStoreService,
|
|
MessageBus,
|
|
NotificationService,
|
|
ResourceLoaderService,
|
|
RootViewService,
|
|
RoutingCache,
|
|
ShortcutService,
|
|
TitleService
|
|
]
|
|
};
|
|
}
|
|
}
|