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.
91 lines
3.6 KiB
91 lines
3.6 KiB
/*
|
|
* Squidex Headless CMS
|
|
*
|
|
* @license
|
|
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
|
|
*/
|
|
|
|
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { HelpComponent, LoadSchemasGuard, SchemaMustExistGuard, SqxFrameworkModule, SqxSharedModule } from '@app/shared';
|
|
import { ArrayValidationComponent, AssetsUIComponent, AssetsValidationComponent, BooleanUIComponent, BooleanValidationComponent, ComponentsUIComponent, ComponentsValidationComponent, DateTimeUIComponent, DateTimeValidationComponent, FieldComponent, FieldFormCommonComponent, FieldFormComponent, FieldFormUIComponent, FieldFormValidationComponent, FieldListComponent, FieldWizardComponent, GeolocationUIComponent, GeolocationValidationComponent, JsonUIComponent, JsonValidationComponent, NumberUIComponent, NumberValidationComponent, ReferencesUIComponent, ReferencesValidationComponent, SchemaEditFormComponent, SchemaExportFormComponent, SchemaFieldRulesFormComponent, SchemaFieldsComponent, SchemaFormComponent, SchemaPageComponent, SchemaPreviewUrlsFormComponent, SchemaScriptsFormComponent, SchemasPageComponent, SchemaUIFormComponent, StringUIComponent, StringValidationComponent, TagsUIComponent, TagsValidationComponent } from './declarations';
|
|
import { ComponentUIComponent } from './pages/schema/fields/types/component-ui.component';
|
|
import { ComponentValidationComponent } from './pages/schema/fields/types/component-validation.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: SchemasPageComponent,
|
|
canActivate: [LoadSchemasGuard],
|
|
children: [
|
|
{
|
|
path: ':schemaName',
|
|
component: SchemaPageComponent,
|
|
canActivate: [SchemaMustExistGuard],
|
|
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,
|
|
ComponentUIComponent,
|
|
ComponentValidationComponent,
|
|
ComponentsUIComponent,
|
|
ComponentsValidationComponent,
|
|
DateTimeUIComponent,
|
|
DateTimeValidationComponent,
|
|
FieldComponent,
|
|
FieldFormCommonComponent,
|
|
FieldFormComponent,
|
|
FieldFormUIComponent,
|
|
FieldFormValidationComponent,
|
|
FieldListComponent,
|
|
FieldWizardComponent,
|
|
GeolocationUIComponent,
|
|
GeolocationValidationComponent,
|
|
JsonUIComponent,
|
|
JsonValidationComponent,
|
|
NumberUIComponent,
|
|
NumberValidationComponent,
|
|
ReferencesUIComponent,
|
|
ReferencesValidationComponent,
|
|
SchemaEditFormComponent,
|
|
SchemaExportFormComponent,
|
|
SchemaFieldRulesFormComponent,
|
|
SchemaFieldsComponent,
|
|
SchemaFormComponent,
|
|
SchemaPageComponent,
|
|
SchemaPreviewUrlsFormComponent,
|
|
SchemaScriptsFormComponent,
|
|
SchemasPageComponent,
|
|
SchemaUIFormComponent,
|
|
StringUIComponent,
|
|
StringValidationComponent,
|
|
TagsUIComponent,
|
|
TagsValidationComponent,
|
|
],
|
|
})
|
|
export class SqxFeatureSchemasModule {}
|
|
|