2017-05-26 23:51:48 -04:00
|
|
|
import { RouterModule, Routes } from "@angular/router";
|
|
|
|
import { HomeComponent } from "./home/home.component";
|
2017-05-27 03:27:36 -04:00
|
|
|
import { RiotComponent } from "./riot/riot.component";
|
2017-10-09 22:49:26 -04:00
|
|
|
import { GenericWidgetWrapperComponent } from "./widget_wrappers/generic/generic.component";
|
2017-10-10 22:44:09 -04:00
|
|
|
import { VideoWidgetWrapperComponent } from "./widget_wrappers/video/video.component";
|
2017-12-10 02:59:36 -05:00
|
|
|
import { JitsiWidgetWrapperComponent } from "./widget_wrappers/jitsi/jitsi.component";
|
2017-12-11 19:29:57 -05:00
|
|
|
import { GCalWidgetWrapperComponent } from "./widget_wrappers/gcal/gcal.component";
|
2017-12-15 01:41:56 -05:00
|
|
|
import { RiotHomeComponent } from "./riot/riot-home/home.component";
|
2017-05-26 23:51:48 -04:00
|
|
|
|
|
|
|
const routes: Routes = [
|
2017-08-27 01:26:00 -04:00
|
|
|
{path: "", component: HomeComponent},
|
2017-12-15 01:41:56 -05:00
|
|
|
{path: "riot", pathMatch: "full", redirectTo: "riot-app/home"},
|
2017-12-14 23:25:15 -05:00
|
|
|
{
|
2017-12-15 01:41:56 -05:00
|
|
|
path: "riot-app",
|
|
|
|
component: RiotComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "home",
|
|
|
|
component: RiotHomeComponent,
|
2017-12-15 02:33:32 -05:00
|
|
|
data: {breadcrumb: "Home", name: "Dimension"},
|
2017-12-15 01:41:56 -05:00
|
|
|
},
|
|
|
|
],
|
2017-12-14 23:25:15 -05:00
|
|
|
},
|
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},
|
|
|
|
]
|
|
|
|
},
|
2017-05-26 23:51:48 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
export const routing = RouterModule.forRoot(routes);
|