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-12-22 23:33:37 -05:00
|
|
|
import { CustomWidgetConfigComponent } from "./configs/widget/custom/custom.widget.component";
|
2017-12-23 15:16:05 -05:00
|
|
|
import { EtherpadWidgetConfigComponent } from "./configs/widget/etherpad/etherpad.widget.component";
|
2017-12-23 15:32:07 -05:00
|
|
|
import { GoogleCalendarWidgetConfigComponent } from "./configs/widget/google_calendar/gcal.widget.component";
|
2017-12-23 15:44:19 -05:00
|
|
|
import { GoogleDocsWidgetConfigComponent } from "./configs/widget/google_docs/gdoc.widget.component";
|
2017-12-23 16:16:22 -05:00
|
|
|
import { JitsiWidgetConfigComponent } from "./configs/widget/jitsi/jitsi.widget.component";
|
2017-12-23 17:03:24 -05:00
|
|
|
import { TwitchWidgetConfigComponent } from "./configs/widget/twitch/twitch.widget.component";
|
2017-12-23 17:28:42 -05:00
|
|
|
import { YoutubeWidgetConfigComponent } from "./configs/widget/youtube/youtube.widget.component";
|
2017-12-23 20:47:41 -05:00
|
|
|
import { AdminComponent } from "./admin/admin.component";
|
|
|
|
import { AdminHomeComponent } from "./admin/home/home.component";
|
2017-12-23 23:40:01 -05:00
|
|
|
import { AdminWidgetsComponent } from "./admin/widgets/widgets.component";
|
2017-12-28 20:22:50 -05:00
|
|
|
import { AdminNebComponent } from "./admin/neb/neb.component";
|
|
|
|
import { AdminEditNebComponent } from "./admin/neb/edit/edit.component";
|
2018-01-31 18:30:08 -05:00
|
|
|
import { AdminAddSelfhostedNebComponent } from "./admin/neb/add_selfhosted/add_selfhosted.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-22 23:08:10 -05:00
|
|
|
{path: "riot", pathMatch: "full", redirectTo: "riot-app"},
|
2017-12-14 23:25:15 -05:00
|
|
|
{
|
2017-12-15 01:41:56 -05:00
|
|
|
path: "riot-app",
|
|
|
|
component: RiotComponent,
|
2017-12-22 23:08:10 -05:00
|
|
|
data: {breadcrumb: "Home", name: "Dimension"},
|
2017-12-15 01:41:56 -05:00
|
|
|
children: [
|
|
|
|
{
|
2017-12-22 23:08:10 -05:00
|
|
|
path: "",
|
2017-12-15 01:41:56 -05:00
|
|
|
component: RiotHomeComponent,
|
2017-12-22 23:08:10 -05:00
|
|
|
},
|
2017-12-23 20:47:41 -05:00
|
|
|
{
|
|
|
|
path: "admin",
|
|
|
|
component: AdminComponent,
|
2017-12-23 21:45:34 -05:00
|
|
|
data: {breadcrumb: "Admin", name: "Settings"},
|
2017-12-23 20:47:41 -05:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "",
|
|
|
|
component: AdminHomeComponent,
|
|
|
|
},
|
2017-12-23 23:40:01 -05:00
|
|
|
{
|
|
|
|
path: "widgets",
|
|
|
|
component: AdminWidgetsComponent,
|
|
|
|
data: {breadcrumb: "Widgets", name: "Widgets"},
|
|
|
|
},
|
2017-12-28 20:22:50 -05:00
|
|
|
{
|
|
|
|
path: "neb",
|
|
|
|
data: {breadcrumb: "go-neb", name: "go-neb configuration"},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "",
|
|
|
|
component: AdminNebComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ":nebId/edit",
|
|
|
|
component: AdminEditNebComponent,
|
|
|
|
data: {breadcrumb: "Edit go-neb", name: "Edit go-neb"},
|
2018-01-31 18:30:08 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "new/selfhosted",
|
|
|
|
component: AdminAddSelfhostedNebComponent,
|
|
|
|
data: {breadcrumb: "Add self-hosted go-neb", name: "Add self-hosted go-neb"},
|
2017-12-28 20:22:50 -05:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-12-23 20:47:41 -05:00
|
|
|
],
|
|
|
|
},
|
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-23 15:16:05 -05:00
|
|
|
{
|
|
|
|
path: "etherpad",
|
|
|
|
component: EtherpadWidgetConfigComponent,
|
|
|
|
data: {breadcrumb: "Etherpad Widgets", name: "Etherpad Widgets"}
|
|
|
|
},
|
2017-12-23 15:32:07 -05:00
|
|
|
{
|
|
|
|
path: "googlecalendar",
|
|
|
|
component: GoogleCalendarWidgetConfigComponent,
|
|
|
|
data: {breadcrumb: "Google Calendar Widgets", name: "Google Calendar Widgets"}
|
|
|
|
},
|
2017-12-23 15:44:19 -05:00
|
|
|
{
|
|
|
|
path: "googledocs",
|
|
|
|
component: GoogleDocsWidgetConfigComponent,
|
|
|
|
data: {breadcrumb: "Google Doc Widgets", name: "Google Doc Widgets"}
|
|
|
|
},
|
2017-12-23 16:16:22 -05:00
|
|
|
{
|
|
|
|
path: "jitsi",
|
|
|
|
component: JitsiWidgetConfigComponent,
|
|
|
|
data: {breadcrumb: "Jitsi Widgets", name: "Jitsi Widgets"}
|
|
|
|
},
|
2017-12-23 17:03:24 -05:00
|
|
|
{
|
|
|
|
path: "twitch",
|
|
|
|
component: TwitchWidgetConfigComponent,
|
|
|
|
data: {breadcrumb: "Twitch Livestream Widgets", name: "Twitch Livestream Widgets"}
|
|
|
|
},
|
2017-12-23 17:28:42 -05:00
|
|
|
{
|
|
|
|
path: "youtube",
|
|
|
|
component: YoutubeWidgetConfigComponent,
|
|
|
|
data: {breadcrumb: "Youtube Video Widgets", name: "Youtube Video Widgets"}
|
|
|
|
},
|
2017-12-22 23:33:37 -05:00
|
|
|
],
|
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);
|