2017-05-27 03:51:48 +00:00
|
|
|
import { RouterModule, Routes } from "@angular/router";
|
|
|
|
import { HomeComponent } from "./home/home.component";
|
2017-05-27 07:27:36 +00:00
|
|
|
import { RiotComponent } from "./riot/riot.component";
|
2017-10-10 02:49:26 +00:00
|
|
|
import { GenericWidgetWrapperComponent } from "./widget_wrappers/generic/generic.component";
|
2017-10-11 02:44:09 +00:00
|
|
|
import { VideoWidgetWrapperComponent } from "./widget_wrappers/video/video.component";
|
2017-12-10 07:59:36 +00:00
|
|
|
import { JitsiWidgetWrapperComponent } from "./widget_wrappers/jitsi/jitsi.component";
|
2017-12-12 00:29:57 +00:00
|
|
|
import { GCalWidgetWrapperComponent } from "./widget_wrappers/gcal/gcal.component";
|
2017-12-15 06:41:56 +00:00
|
|
|
import { RiotHomeComponent } from "./riot/riot-home/home.component";
|
2017-12-23 04:33:37 +00:00
|
|
|
import { CustomWidgetConfigComponent } from "./configs/widget/custom/custom.widget.component";
|
2017-12-23 20:16:05 +00:00
|
|
|
import { EtherpadWidgetConfigComponent } from "./configs/widget/etherpad/etherpad.widget.component";
|
2017-12-23 20:32:07 +00:00
|
|
|
import { GoogleCalendarWidgetConfigComponent } from "./configs/widget/google_calendar/gcal.widget.component";
|
2017-12-23 20:44:19 +00:00
|
|
|
import { GoogleDocsWidgetConfigComponent } from "./configs/widget/google_docs/gdoc.widget.component";
|
2017-05-27 03:51:48 +00:00
|
|
|
|
|
|
|
const routes: Routes = [
|
2017-08-27 05:26:00 +00:00
|
|
|
{path: "", component: HomeComponent},
|
2017-12-23 04:08:10 +00:00
|
|
|
{path: "riot", pathMatch: "full", redirectTo: "riot-app"},
|
2017-12-15 04:25:15 +00:00
|
|
|
{
|
2017-12-15 06:41:56 +00:00
|
|
|
path: "riot-app",
|
|
|
|
component: RiotComponent,
|
2017-12-23 04:08:10 +00:00
|
|
|
data: {breadcrumb: "Home", name: "Dimension"},
|
2017-12-15 06:41:56 +00:00
|
|
|
children: [
|
|
|
|
{
|
2017-12-23 04:08:10 +00:00
|
|
|
path: "",
|
2017-12-15 06:41:56 +00:00
|
|
|
component: RiotHomeComponent,
|
2017-12-23 04:08:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "widget",
|
2017-12-23 04:33:37 +00:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "custom",
|
|
|
|
component: CustomWidgetConfigComponent,
|
|
|
|
data: {breadcrumb: "Custom Widgets", name: "Custom Widgets"}
|
|
|
|
},
|
2017-12-23 20:16:05 +00:00
|
|
|
{
|
|
|
|
path: "etherpad",
|
|
|
|
component: EtherpadWidgetConfigComponent,
|
|
|
|
data: {breadcrumb: "Etherpad Widgets", name: "Etherpad Widgets"}
|
|
|
|
},
|
2017-12-23 20:32:07 +00:00
|
|
|
{
|
|
|
|
path: "googlecalendar",
|
|
|
|
component: GoogleCalendarWidgetConfigComponent,
|
|
|
|
data: {breadcrumb: "Google Calendar Widgets", name: "Google Calendar Widgets"}
|
|
|
|
},
|
2017-12-23 20:44:19 +00:00
|
|
|
{
|
|
|
|
path: "googledocs",
|
|
|
|
component: GoogleDocsWidgetConfigComponent,
|
|
|
|
data: {breadcrumb: "Google Doc Widgets", name: "Google Doc Widgets"}
|
|
|
|
},
|
2017-12-23 04:33:37 +00:00
|
|
|
],
|
2017-12-15 06:41:56 +00:00
|
|
|
},
|
|
|
|
],
|
2017-12-15 04:25:15 +00:00
|
|
|
},
|
2017-12-15 06:52:36 +00:00
|
|
|
{
|
|
|
|
path: "widgets",
|
|
|
|
children: [
|
|
|
|
{path: "generic", component: GenericWidgetWrapperComponent},
|
|
|
|
{path: "video", component: VideoWidgetWrapperComponent},
|
|
|
|
{path: "jitsi", component: JitsiWidgetWrapperComponent},
|
|
|
|
{path: "gcal", component: GCalWidgetWrapperComponent},
|
|
|
|
]
|
|
|
|
},
|
2017-05-27 03:51:48 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
export const routing = RouterModule.forRoot(routes);
|