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";
|
2018-03-24 19:16:52 -04:00
|
|
|
import { GenericWidgetWrapperComponent } from "./widget-wrappers/generic/generic.component";
|
2020-07-23 17:10:27 -04:00
|
|
|
import { BigBlueButtonWidgetWrapperComponent } from "./widget-wrappers/bigbluebutton/bigbluebutton.component";
|
2020-07-23 16:59:48 -04:00
|
|
|
import { BigBlueButtonConfigComponent } from "./configs/widget/bigbluebutton/bigbluebutton.widget.component";
|
2018-03-24 19:16:52 -04:00
|
|
|
import { VideoWidgetWrapperComponent } from "./widget-wrappers/video/video.component";
|
|
|
|
import { JitsiWidgetWrapperComponent } from "./widget-wrappers/jitsi/jitsi.component";
|
|
|
|
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";
|
2018-03-24 19:16:52 -04:00
|
|
|
import { GoogleCalendarWidgetConfigComponent } from "./configs/widget/google-calendar/gcal.widget.component";
|
|
|
|
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-03-24 19:16:52 -04:00
|
|
|
import { AdminAddSelfhostedNebComponent } from "./admin/neb/add-selfhosted/add-selfhosted.component";
|
2018-03-25 23:01:05 -04:00
|
|
|
import { RssComplexBotConfigComponent } from "./configs/complex-bot/rss/rss.complex-bot.component";
|
2018-03-29 00:18:33 -04:00
|
|
|
import { TravisCiComplexBotConfigComponent } from "./configs/complex-bot/travisci/travisci.complex-bot.component";
|
2018-03-30 21:22:15 -04:00
|
|
|
import { AdminBridgesComponent } from "./admin/bridges/bridges.component";
|
|
|
|
import { AdminIrcBridgeComponent } from "./admin/bridges/irc/irc.component";
|
2018-03-31 16:37:36 -04:00
|
|
|
import { IrcBridgeConfigComponent } from "./configs/bridge/irc/irc.bridge.component";
|
2018-05-12 23:55:02 -04:00
|
|
|
import { AdminStickerPacksComponent } from "./admin/sticker-packs/sticker-packs.component";
|
2018-05-13 01:51:31 -04:00
|
|
|
import { StickerpickerComponent } from "./configs/stickerpicker/stickerpicker.component";
|
2018-05-14 00:32:13 -04:00
|
|
|
import { StickerPickerWidgetWrapperComponent } from "./widget-wrappers/sticker-picker/sticker-picker.component";
|
2018-09-16 04:26:10 -04:00
|
|
|
import { AdminTelegramBridgeComponent } from "./admin/bridges/telegram/telegram.component";
|
2018-10-17 23:09:19 -04:00
|
|
|
import { TelegramBridgeConfigComponent } from "./configs/bridge/telegram/telegram.bridge.component";
|
2018-10-20 16:07:30 -04:00
|
|
|
import { AdminWebhooksBridgeComponent } from "./admin/bridges/webhooks/webhooks.component";
|
2018-10-20 20:33:01 -04:00
|
|
|
import { WebhooksBridgeConfigComponent } from "./configs/bridge/webhooks/webhooks.bridge.component";
|
2018-10-21 17:17:21 -04:00
|
|
|
import { GenericFullscreenWidgetWrapperComponent } from "./widget-wrappers/generic-fullscreen/generic-fullscreen.component";
|
|
|
|
import { GrafanaWidgetConfigComponent } from "./configs/widget/grafana/grafana.widget.component";
|
2018-10-21 18:19:36 -04:00
|
|
|
import { TradingViewWidgetConfigComponent } from "./configs/widget/tradingview/tradingview.widget.component";
|
|
|
|
import { TradingViewWidgetWrapperComponent } from "./widget-wrappers/tradingview/tradingview.component";
|
2018-10-21 19:00:10 -04:00
|
|
|
import { SpotifyWidgetConfigComponent } from "./configs/widget/spotify/spotify.widget.component";
|
|
|
|
import { SpotifyWidgetWrapperComponent } from "./widget-wrappers/spotify/spotify.component";
|
2018-10-23 00:10:28 -04:00
|
|
|
import { AdminCustomBotsComponent } from "./admin/custom-bots/custom-bots.component";
|
2018-10-24 22:56:38 -04:00
|
|
|
import { AdminSlackBridgeComponent } from "./admin/bridges/slack/slack.component";
|
2018-10-25 00:49:29 -04:00
|
|
|
import { SlackBridgeConfigComponent } from "./configs/bridge/slack/slack.bridge.component";
|
2019-03-13 02:28:12 -04:00
|
|
|
import { ReauthExampleWidgetWrapperComponent } from "./widget-wrappers/reauth-example/reauth-example.component";
|
2019-03-24 16:37:51 -04:00
|
|
|
import { ManagerTestWidgetWrapperComponent } from "./widget-wrappers/manager-test/manager-test.component";
|
2019-07-01 01:05:33 -04:00
|
|
|
import { AdminTermsComponent } from "./admin/terms/terms.component";
|
2019-07-06 17:19:27 -04:00
|
|
|
import { AdminNewEditTermsComponent } from "./admin/terms/new-edit/new-edit.component";
|
2019-07-06 17:40:32 -04:00
|
|
|
import { TermsWidgetWrapperComponent } from "./widget-wrappers/terms/terms.component";
|
2020-09-02 03:50:39 -04:00
|
|
|
import { WhiteboardWidgetComponent } from "./configs/widget/whiteboard/whiteboard.widget.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"},
|
2020-07-15 20:24:23 -04:00
|
|
|
{path: "element", 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"},
|
2018-03-29 00:18:33 -04:00
|
|
|
},
|
2017-12-28 20:22:50 -05:00
|
|
|
]
|
|
|
|
},
|
2018-10-23 00:10:28 -04:00
|
|
|
{
|
|
|
|
path: "custom-bots",
|
|
|
|
data: {breadcrumb: "Custom bots", name: "Custom bots"},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "",
|
|
|
|
component: AdminCustomBotsComponent,
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-03-30 21:22:15 -04:00
|
|
|
{
|
|
|
|
path: "bridges",
|
|
|
|
data: {breadcrumb: "Bridges", name: "Bridges"},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "",
|
|
|
|
component: AdminBridgesComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "irc",
|
|
|
|
component: AdminIrcBridgeComponent,
|
|
|
|
data: {breadcrumb: "IRC Bridge", name: "IRC Bridge"},
|
|
|
|
},
|
2018-09-16 04:26:10 -04:00
|
|
|
{
|
|
|
|
path: "telegram",
|
|
|
|
component: AdminTelegramBridgeComponent,
|
|
|
|
data: {breadcrumb: "Telegram Bridge", name: "Telegram Bridge"},
|
|
|
|
},
|
2018-10-20 16:07:30 -04:00
|
|
|
{
|
|
|
|
path: "webhooks",
|
|
|
|
component: AdminWebhooksBridgeComponent,
|
|
|
|
data: {breadcrumb: "Webhook Bridge", name: "Webhook Bridge"},
|
|
|
|
},
|
2018-10-24 22:56:38 -04:00
|
|
|
{
|
|
|
|
path: "slack",
|
|
|
|
component: AdminSlackBridgeComponent,
|
|
|
|
data: {breadcrumb: "Slack Bridge", name: "Slack Bridge"},
|
|
|
|
},
|
2018-03-30 21:22:15 -04:00
|
|
|
],
|
|
|
|
},
|
2018-05-12 23:55:02 -04:00
|
|
|
{
|
|
|
|
path: "stickerpacks",
|
|
|
|
data: {breadcrumb: "Sticker Packs", name: "Sticker Packs"},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "",
|
|
|
|
component: AdminStickerPacksComponent,
|
|
|
|
},
|
|
|
|
],
|
2019-07-01 01:05:33 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "terms",
|
|
|
|
data: {breadcrumb: "Terms of Service", name: "Terms of Service"},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "",
|
|
|
|
component: AdminTermsComponent,
|
|
|
|
},
|
2019-07-01 22:49:44 -04:00
|
|
|
{
|
|
|
|
path: "new",
|
2019-07-06 17:19:27 -04:00
|
|
|
component: AdminNewEditTermsComponent,
|
2019-07-01 22:49:44 -04:00
|
|
|
data: {breadcrumb: "New policy", name: "New policy"},
|
|
|
|
},
|
2019-07-06 17:19:27 -04:00
|
|
|
{
|
|
|
|
path: "edit/:shortcode",
|
|
|
|
component: AdminNewEditTermsComponent,
|
|
|
|
data: {breadcrumb: "Edit policy", name: "Edit policy"},
|
|
|
|
},
|
2019-07-01 01:05:33 -04:00
|
|
|
],
|
|
|
|
},
|
2017-12-23 20:47:41 -05:00
|
|
|
],
|
|
|
|
},
|
2017-12-22 23:08:10 -05:00
|
|
|
{
|
|
|
|
path: "widget",
|
2021-08-16 18:07:56 -04:00
|
|
|
data: {breadcrumb: {skip: true}},
|
2017-12-22 23:33:37 -05:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "custom",
|
|
|
|
component: CustomWidgetConfigComponent,
|
2018-03-29 00:18:33 -04:00
|
|
|
data: {breadcrumb: "Custom Widgets", name: "Custom Widgets"},
|
2017-12-22 23:33:37 -05:00
|
|
|
},
|
2020-07-23 16:59:48 -04:00
|
|
|
{
|
|
|
|
path: "bigbluebutton",
|
|
|
|
component: BigBlueButtonConfigComponent,
|
|
|
|
data: {breadcrumb: "BigBlueButton Widgets", name: "BigBlueButton Widgets"},
|
|
|
|
},
|
2017-12-23 15:16:05 -05:00
|
|
|
{
|
|
|
|
path: "etherpad",
|
|
|
|
component: EtherpadWidgetConfigComponent,
|
2020-10-23 07:30:20 -04:00
|
|
|
data: {breadcrumb: "Notes Widgets", name: "Notes Widgets"},
|
2017-12-23 15:16:05 -05:00
|
|
|
},
|
2017-12-23 15:32:07 -05:00
|
|
|
{
|
|
|
|
path: "googlecalendar",
|
|
|
|
component: GoogleCalendarWidgetConfigComponent,
|
2018-03-29 00:18:33 -04:00
|
|
|
data: {breadcrumb: "Google Calendar Widgets", name: "Google Calendar Widgets"},
|
2017-12-23 15:32:07 -05:00
|
|
|
},
|
2017-12-23 15:44:19 -05:00
|
|
|
{
|
|
|
|
path: "googledocs",
|
|
|
|
component: GoogleDocsWidgetConfigComponent,
|
2018-03-29 00:18:33 -04:00
|
|
|
data: {breadcrumb: "Google Doc Widgets", name: "Google Doc Widgets"},
|
2017-12-23 15:44:19 -05:00
|
|
|
},
|
2017-12-23 16:16:22 -05:00
|
|
|
{
|
|
|
|
path: "jitsi",
|
|
|
|
component: JitsiWidgetConfigComponent,
|
2018-03-29 00:18:33 -04:00
|
|
|
data: {breadcrumb: "Jitsi Widgets", name: "Jitsi Widgets"},
|
2017-12-23 16:16:22 -05:00
|
|
|
},
|
2017-12-23 17:03:24 -05:00
|
|
|
{
|
|
|
|
path: "twitch",
|
|
|
|
component: TwitchWidgetConfigComponent,
|
2018-03-29 00:18:33 -04:00
|
|
|
data: {breadcrumb: "Twitch Livestream Widgets", name: "Twitch Livestream Widgets"},
|
2017-12-23 17:03:24 -05:00
|
|
|
},
|
2017-12-23 17:28:42 -05:00
|
|
|
{
|
|
|
|
path: "youtube",
|
|
|
|
component: YoutubeWidgetConfigComponent,
|
2018-03-29 00:18:33 -04:00
|
|
|
data: {breadcrumb: "Youtube Video Widgets", name: "Youtube Video Widgets"},
|
2017-12-23 17:28:42 -05:00
|
|
|
},
|
2018-10-21 17:17:21 -04:00
|
|
|
{
|
|
|
|
path: "grafana",
|
|
|
|
component: GrafanaWidgetConfigComponent,
|
|
|
|
data: {breadcrumb: "Grafana Widgets", name: "Grafana Widgets"},
|
|
|
|
},
|
2018-10-21 18:19:36 -04:00
|
|
|
{
|
|
|
|
path: "tradingview",
|
|
|
|
component: TradingViewWidgetConfigComponent,
|
|
|
|
data: {breadcrumb: "TradingView Widgets", name: "TradingView Widgets"},
|
|
|
|
},
|
2018-10-21 19:00:10 -04:00
|
|
|
{
|
|
|
|
path: "spotify",
|
|
|
|
component: SpotifyWidgetConfigComponent,
|
|
|
|
data: {breadcrumb: "Spotify Widgets", name: "Spotify Widgets"},
|
|
|
|
},
|
2020-09-02 03:50:39 -04:00
|
|
|
{
|
|
|
|
path: "whiteboard",
|
|
|
|
component: WhiteboardWidgetComponent,
|
|
|
|
data: {breadcrumb: "Whiteboard Widgets", name: "Whiteboard Widgets"},
|
|
|
|
},
|
2017-12-22 23:33:37 -05:00
|
|
|
],
|
2017-12-15 01:41:56 -05:00
|
|
|
},
|
2018-03-25 23:01:05 -04:00
|
|
|
{
|
|
|
|
path: "complex-bot",
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "rss",
|
|
|
|
component: RssComplexBotConfigComponent,
|
2018-03-29 00:18:33 -04:00
|
|
|
data: {breadcrumb: "RSS Bot Configuration", name: "RSS Bot Configuration"},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "travisci",
|
|
|
|
component: TravisCiComplexBotConfigComponent,
|
|
|
|
data: {breadcrumb: "Travis CI Configuration", name: "Travis CI Configuration"},
|
2018-03-25 23:01:05 -04:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2018-03-31 16:37:36 -04:00
|
|
|
{
|
|
|
|
path: "bridge",
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "irc",
|
|
|
|
component: IrcBridgeConfigComponent,
|
|
|
|
data: {breadcrumb: "IRC Bridge Configuration", name: "IRC Bridge Configuration"},
|
|
|
|
},
|
2018-10-17 23:09:19 -04:00
|
|
|
{
|
|
|
|
path: "telegram",
|
|
|
|
component: TelegramBridgeConfigComponent,
|
|
|
|
data: {breadcrumb: "Telegram Bridge Configuration", name: "Telegram Bridge Configuration"},
|
|
|
|
},
|
2018-10-20 20:33:01 -04:00
|
|
|
{
|
|
|
|
path: "webhooks",
|
|
|
|
component: WebhooksBridgeConfigComponent,
|
|
|
|
data: {breadcrumb: "Webhook Bridge Configuration", name: "Webhook Bridge Configuration"},
|
|
|
|
},
|
2018-10-25 00:49:29 -04:00
|
|
|
{
|
|
|
|
path: "slack",
|
|
|
|
component: SlackBridgeConfigComponent,
|
|
|
|
data: {breadcrumb: "Slack Bridge Configuration", name: "Slack Bridge Configuration"},
|
2018-10-21 16:20:37 -04:00
|
|
|
},
|
2018-03-31 16:37:36 -04:00
|
|
|
],
|
|
|
|
},
|
2018-05-13 01:51:31 -04:00
|
|
|
{
|
|
|
|
path: "stickerpicker",
|
|
|
|
component: StickerpickerComponent,
|
|
|
|
data: {breadcrumb: "Your Sticker Packs", name: "Your Sticker Packs"},
|
|
|
|
},
|
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: [
|
2019-07-06 17:40:32 -04:00
|
|
|
{path: "terms/:shortcode/:lang/:version", component: TermsWidgetWrapperComponent},
|
2017-12-15 01:52:36 -05:00
|
|
|
{path: "generic", component: GenericWidgetWrapperComponent},
|
|
|
|
{path: "video", component: VideoWidgetWrapperComponent},
|
|
|
|
{path: "jitsi", component: JitsiWidgetWrapperComponent},
|
2020-07-23 17:10:27 -04:00
|
|
|
{path: "bigbluebutton", component: BigBlueButtonWidgetWrapperComponent},
|
2017-12-15 01:52:36 -05:00
|
|
|
{path: "gcal", component: GCalWidgetWrapperComponent},
|
2018-05-14 00:32:13 -04:00
|
|
|
{path: "stickerpicker", component: StickerPickerWidgetWrapperComponent},
|
2018-10-21 17:17:21 -04:00
|
|
|
{path: "generic-fullscreen", component: GenericFullscreenWidgetWrapperComponent},
|
2018-10-21 18:19:36 -04:00
|
|
|
{path: "tradingview", component: TradingViewWidgetWrapperComponent},
|
2018-10-21 19:00:10 -04:00
|
|
|
{path: "spotify", component: SpotifyWidgetWrapperComponent},
|
2019-03-13 02:28:12 -04:00
|
|
|
{path: "reauth", component: ReauthExampleWidgetWrapperComponent},
|
2019-03-24 16:37:51 -04:00
|
|
|
{path: "manager-test", component: ManagerTestWidgetWrapperComponent},
|
2017-12-15 01:52:36 -05:00
|
|
|
]
|
|
|
|
},
|
2017-05-26 23:51:48 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
export const routing = RouterModule.forRoot(routes);
|