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.
 
 
 
 
 

91 lines
2.2 KiB

/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Sebastian Stehle. All rights reserved
*/
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {
HelpComponent,
HistoryComponent,
ResolveSchemaGuard,
SqxFrameworkModule,
SqxSharedModule
} from 'shared';
import {
FieldComponent,
BooleanUIComponent,
BooleanValidationComponent,
DateTimeUIComponent,
DateTimeValidationComponent,
NumberUIComponent,
NumberValidationComponent,
SchemaEditFormComponent,
SchemaFormComponent,
SchemaPageComponent,
SchemasPageComponent,
StringUIComponent,
StringValidationComponent
} from './declarations';
const routes: Routes = [
{
path: '',
component: SchemasPageComponent,
children: [
{
path: ''
},
{
path: ':schemaName',
component: SchemaPageComponent,
resolve: {
schema: ResolveSchemaGuard
},
children: [
{
path: 'history',
component: HistoryComponent,
data: {
channel: 'schemas.{schemaName}'
}
},
{
path: 'help',
component: HelpComponent,
data: {
helpPage: '04-guides/schemas'
}
}
]
}]
}
];
@NgModule({
imports: [
SqxFrameworkModule,
SqxSharedModule,
RouterModule.forChild(routes)
],
declarations: [
FieldComponent,
BooleanUIComponent,
BooleanValidationComponent,
DateTimeUIComponent,
DateTimeValidationComponent,
NumberUIComponent,
NumberValidationComponent,
SchemaEditFormComponent,
SchemaFormComponent,
SchemaPageComponent,
SchemasPageComponent,
StringUIComponent,
StringValidationComponent
]
})
export class SqxFeatureSchemasModule { }