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.
 
 
 
 
 

85 lines
3.1 KiB

/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
// tslint:disable: max-line-length
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HelpComponent, SchemaMustExistGuard, SqxFrameworkModule, SqxSharedModule } from '@app/shared';
import { ArrayValidationComponent, AssetsUIComponent, AssetsValidationComponent, BooleanUIComponent, BooleanValidationComponent, DateTimeUIComponent, DateTimeValidationComponent, FieldComponent, FieldFormCommonComponent, FieldFormComponent, FieldFormUIComponent, FieldFormValidationComponent, FieldListComponent, FieldWizardComponent, GeolocationUIComponent, GeolocationValidationComponent, JsonUIComponent, JsonValidationComponent, NumberUIComponent, NumberValidationComponent, ReferencesUIComponent, ReferencesValidationComponent, SchemaEditFormComponent, SchemaExportFormComponent, SchemaFieldsComponent, SchemaFormComponent, SchemaPageComponent, SchemaPreviewUrlsFormComponent, SchemaScriptsFormComponent, SchemasPageComponent, SchemaUIFormComponent, StringUIComponent, StringValidationComponent, TagsUIComponent, TagsValidationComponent } from './declarations';
const routes: Routes = [
{
path: '',
component: SchemasPageComponent,
children: [
{
path: ':schemaName',
canActivate: [SchemaMustExistGuard],
component: SchemaPageComponent,
children: [
{
path: 'help',
component: HelpComponent,
data: {
helpPage: '05-integrated/schemas'
}
}
]
}
]
}
];
@NgModule({
imports: [
RouterModule.forChild(routes),
SqxFrameworkModule,
SqxSharedModule
],
providers: [
SchemaMustExistGuard
],
declarations: [
ArrayValidationComponent,
AssetsUIComponent,
AssetsValidationComponent,
BooleanUIComponent,
BooleanValidationComponent,
DateTimeUIComponent,
DateTimeValidationComponent,
FieldComponent,
FieldFormCommonComponent,
FieldFormComponent,
FieldFormUIComponent,
FieldFormValidationComponent,
FieldListComponent,
FieldWizardComponent,
GeolocationUIComponent,
GeolocationValidationComponent,
JsonUIComponent,
JsonValidationComponent,
NumberUIComponent,
NumberValidationComponent,
ReferencesUIComponent,
ReferencesValidationComponent,
SchemaEditFormComponent,
SchemaExportFormComponent,
SchemaFieldsComponent,
SchemaFormComponent,
SchemaPageComponent,
SchemaPreviewUrlsFormComponent,
SchemaScriptsFormComponent,
SchemasPageComponent,
SchemaUIFormComponent,
StringUIComponent,
StringValidationComponent,
TagsUIComponent,
TagsValidationComponent
]
})
export class SqxFeatureSchemasModule {}