UNPKG

ohayolibs

Version:

Ohayo is a set of essential modules for ohayojp.

90 lines (83 loc) 2.95 kB
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { RouterModule } from '@angular/router'; import { OhayoACLModule } from '@ohayo/acl'; import { OhayoCacheModule } from '@ohayo/cache'; import { OhayoFormModule } from '@ohayo/form'; import { OhayoThemeModule } from '@ohayo/theme'; import { TranslateModule } from '@ngx-translate/core'; import { GithubButtonModule } from 'ng-github-button'; import { ColorSketchModule } from 'ngx-color/sketch'; import { HighlightJsModule } from 'ngx-highlight-js'; import { SimplemdeModule } from 'ngx-simplemde'; import { NgxTinymceModule } from 'ngx-tinymce'; import { UEditorModule } from 'ngx-ueditor'; import { SHARED_OHAYO_MODULES } from './shared-ohayo.module'; import { SHARED_ZORRO_MODULES } from './shared-zorro.module'; import { CodeBoxComponent } from './components/code-box/code-box.component'; import { ContentComponent } from './components/content/content.component'; import { DemoDrawerComponent } from './components/dialog/drawer.component'; import { DemoModalComponent } from './components/dialog/modal.component'; import { DocsComponent } from './components/docs/docs.component'; import { EditButtonComponent } from './components/edit-button/edit-button.component'; import { FooterComponent } from './components/footer/footer.component'; import { IconComponent } from './components/icon/icon.component'; import { MainMenuComponent } from './components/main-menu/main-menu.component'; import { MatchRouterDirective } from './components/match-router/match-router.directive'; import { RouteTransferDirective } from './components/route-transfer/route-transfer.directive'; import { ThemeBtnComponent } from './components/theme-btn/theme-btn.component'; const DIALOG_COMPONENTS = [DemoModalComponent, DemoDrawerComponent, IconComponent]; const COMPONENTS = [ FooterComponent, MainMenuComponent, ContentComponent, EditButtonComponent, DocsComponent, CodeBoxComponent, RouteTransferDirective, MatchRouterDirective, ThemeBtnComponent, ...DIALOG_COMPONENTS, ]; const THIRDS = [ HighlightJsModule, TranslateModule, GithubButtonModule, NgxTinymceModule, UEditorModule, SimplemdeModule, ColorSketchModule, ]; @NgModule({ imports: [ CommonModule, FormsModule, RouterModule, ReactiveFormsModule, OhayoThemeModule.forChild(), OhayoACLModule, OhayoFormModule, OhayoCacheModule, ...SHARED_OHAYO_MODULES, ...SHARED_ZORRO_MODULES, ...THIRDS, ], declarations: COMPONENTS, entryComponents: DIALOG_COMPONENTS, exports: [ CommonModule, FormsModule, ReactiveFormsModule, RouterModule, OhayoThemeModule, OhayoACLModule, OhayoFormModule, OhayoCacheModule, ...SHARED_OHAYO_MODULES, ...SHARED_ZORRO_MODULES, ...THIRDS, ...COMPONENTS, ], }) export class SharedModule { }