matrix-dimension/web/app/app.routing.ts

47 lines
1.8 KiB
TypeScript
Raw Normal View History

import { RouterModule, Routes } from "@angular/router";
import { HomeComponent } from "./home/home.component";
import { RiotComponent } from "./riot/riot.component";
import { GenericWidgetWrapperComponent } from "./widget_wrappers/generic/generic.component";
import { VideoWidgetWrapperComponent } from "./widget_wrappers/video/video.component";
import { JitsiWidgetWrapperComponent } from "./widget_wrappers/jitsi/jitsi.component";
import { GCalWidgetWrapperComponent } from "./widget_wrappers/gcal/gcal.component";
import { RiotHomeComponent } from "./riot/riot-home/home.component";
2017-12-22 23:33:37 -05:00
import { CustomWidgetConfigComponent } from "./configs/widget/custom/custom.widget.component";
const routes: Routes = [
2017-08-27 01:26:00 -04:00
{path: "", component: HomeComponent},
2017-12-22 23:08:10 -05:00
{path: "riot", pathMatch: "full", redirectTo: "riot-app"},
{
path: "riot-app",
component: RiotComponent,
2017-12-22 23:08:10 -05:00
data: {breadcrumb: "Home", name: "Dimension"},
children: [
{
2017-12-22 23:08:10 -05:00
path: "",
component: RiotHomeComponent,
2017-12-22 23:08:10 -05:00
},
{
path: "widget",
2017-12-22 23:33:37 -05:00
children: [
{
path: "custom",
component: CustomWidgetConfigComponent,
data: {breadcrumb: "Custom Widgets", name: "Custom Widgets"}
},
],
},
],
},
2017-12-15 01:52:36 -05:00
{
path: "widgets",
children: [
{path: "generic", component: GenericWidgetWrapperComponent},
{path: "video", component: VideoWidgetWrapperComponent},
{path: "jitsi", component: JitsiWidgetWrapperComponent},
{path: "gcal", component: GCalWidgetWrapperComponent},
]
},
];
export const routing = RouterModule.forRoot(routes);