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.
88 lines
2.8 KiB
88 lines
2.8 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, RuleMustExistGuard, SqxFrameworkModule, SqxSharedModule } from '@app/shared';
|
|
import { AssetChangedTriggerComponent, CommentTriggerComponent, ContentChangedTriggerComponent, GenericActionComponent, RuleComponent, RuleElementComponent, RuleEventsPageComponent, RuleIconComponent, RuleSimulatorPageComponent, RulesPageComponent, RuleTransitionComponent, SchemaChangedTriggerComponent, UsageTriggerComponent } from './declarations';
|
|
import { RuleEventComponent } from './pages/events/rule-event.component';
|
|
import { RulePageComponent } from './pages/rule/rule-page.component';
|
|
import { SimulatedRuleEventComponent } from './pages/simulator/simulated-rule-event.component';
|
|
import { FormattableInputComponent } from './shared/actions/formattable-input.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: RulesPageComponent,
|
|
children: [
|
|
{
|
|
path: 'events',
|
|
component: RuleEventsPageComponent,
|
|
},
|
|
{
|
|
path: 'simulator',
|
|
component: RuleSimulatorPageComponent,
|
|
},
|
|
{
|
|
path: 'help',
|
|
component: HelpComponent,
|
|
data: {
|
|
helpPage: '05-integrated/rules',
|
|
},
|
|
},
|
|
],
|
|
}, {
|
|
path: ':ruleId',
|
|
component: RulePageComponent,
|
|
canActivate: [RuleMustExistGuard],
|
|
children: [
|
|
{
|
|
path: 'events',
|
|
component: RuleEventsPageComponent,
|
|
},
|
|
{
|
|
path: 'simulator',
|
|
component: RuleSimulatorPageComponent,
|
|
},
|
|
{
|
|
path: 'help',
|
|
component: HelpComponent,
|
|
data: {
|
|
helpPage: '05-integrated/rules',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forChild(routes),
|
|
SqxFrameworkModule,
|
|
SqxSharedModule,
|
|
],
|
|
declarations: [
|
|
AssetChangedTriggerComponent,
|
|
CommentTriggerComponent,
|
|
ContentChangedTriggerComponent,
|
|
FormattableInputComponent,
|
|
GenericActionComponent,
|
|
RuleComponent,
|
|
RuleElementComponent,
|
|
RuleEventComponent,
|
|
RuleEventsPageComponent,
|
|
RuleIconComponent,
|
|
RulePageComponent,
|
|
RuleSimulatorPageComponent,
|
|
RuleTransitionComponent,
|
|
RulesPageComponent,
|
|
SchemaChangedTriggerComponent,
|
|
SimulatedRuleEventComponent,
|
|
UsageTriggerComponent,
|
|
],
|
|
})
|
|
export class SqxFeatureRulesModule {}
|
|
|