2017-12-22 23:08:10 -05:00
|
|
|
import { ApplicationRef, Injector, NgModule } from "@angular/core";
|
2021-08-11 17:41:29 -04:00
|
|
|
import { BreadcrumbModule } from "xng-breadcrumb";
|
2019-06-29 02:40:24 -04:00
|
|
|
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
|
2021-08-11 17:41:29 -04:00
|
|
|
import { UiSwitchModule } from "ngx-ui-switch";
|
2019-06-29 02:40:24 -04:00
|
|
|
import { NgbModule } from "@ng-bootstrap/ng-bootstrap";
|
|
|
|
import { routing } from "./app.routing";
|
2017-05-26 23:51:48 -04:00
|
|
|
import { FormsModule } from "@angular/forms";
|
2020-10-23 07:30:20 -04:00
|
|
|
import { HttpClient, HttpClientModule } from "@angular/common/http";
|
2019-06-29 02:40:24 -04:00
|
|
|
import { BrowserModule } from "@angular/platform-browser";
|
2017-05-26 23:51:48 -04:00
|
|
|
import { AppComponent } from "./app.component";
|
|
|
|
import { HomeComponent } from "./home/home.component";
|
2017-12-09 18:34:59 -05:00
|
|
|
import { createNewHosts, removeNgStyles } from "@angularclass/hmr";
|
2021-12-01 14:43:22 -05:00
|
|
|
import { ElementComponent } from "./element/element.component";
|
2017-12-24 04:02:57 -05:00
|
|
|
import { ScalarClientApiService } from "./shared/services/scalar/scalar-client-api.service";
|
2019-04-13 16:37:56 -04:00
|
|
|
import { ToasterModule, ToasterService } from "angular2-toaster";
|
2021-12-01 14:43:22 -05:00
|
|
|
import { ScalarCloseComponent } from "./element/scalar-close/scalar-close.component";
|
2018-03-24 19:16:52 -04:00
|
|
|
import { GenericWidgetWrapperComponent } from "./widget-wrappers/generic/generic.component";
|
2017-12-15 01:46:17 -05:00
|
|
|
import { ToggleFullscreenDirective } from "./shared/directives/toggle-fullscreen.directive";
|
2017-12-22 23:08:10 -05:00
|
|
|
import { FullscreenButtonComponent } from "./elements/fullscreen-button/fullscreen-button.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-14 23:25:15 -05:00
|
|
|
import { PageHeaderComponent } from "./page-header/page-header.component";
|
2017-12-22 23:08:10 -05:00
|
|
|
import { SpinnerComponent } from "./elements/spinner/spinner.component";
|
2021-12-01 14:43:22 -05:00
|
|
|
import { ElementHomeComponent } from "./element/element-home/home.component";
|
2017-12-15 23:22:34 -05:00
|
|
|
import { IntegrationBagComponent } from "./integration-bag/integration-bag.component";
|
2017-12-24 04:02:57 -05:00
|
|
|
import { ScalarServerApiService } from "./shared/services/scalar/scalar-server-api.service";
|
|
|
|
import { AdminApiService } from "./shared/services/admin/admin-api.service";
|
2018-03-24 19:16:52 -04:00
|
|
|
import { ServiceLocator } from "./shared/registry/locator.service";
|
2017-12-22 23:08:10 -05:00
|
|
|
import { IboxComponent } from "./elements/ibox/ibox.component";
|
2017-12-22 23:33:37 -05:00
|
|
|
import { CustomWidgetConfigComponent } from "./configs/widget/custom/custom.widget.component";
|
2018-03-24 19:16:52 -04:00
|
|
|
import { ConfigScreenWidgetComponent } from "./configs/widget/config-screen/config-screen.widget.component";
|
2017-12-23 15:16:05 -05:00
|
|
|
import { EtherpadWidgetConfigComponent } from "./configs/widget/etherpad/etherpad.widget.component";
|
|
|
|
import { NameService } from "./shared/services/name.service";
|
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";
|
|
|
|
import { AdminWidgetEtherpadConfigComponent } from "./admin/widgets/etherpad/etherpad.component";
|
|
|
|
import { AdminWidgetJitsiConfigComponent } from "./admin/widgets/jitsi/jitsi.component";
|
2017-12-24 04:02:57 -05:00
|
|
|
import { AdminIntegrationsApiService } from "./shared/services/admin/admin-integrations-api.service";
|
|
|
|
import { IntegrationsApiService } from "./shared/services/integrations/integrations-api.service";
|
|
|
|
import { WidgetApiService } from "./shared/services/integrations/widget-api.service";
|
2017-12-28 20:22:50 -05:00
|
|
|
import { AdminAppserviceApiService } from "./shared/services/admin/admin-appservice-api.service";
|
|
|
|
import { AdminNebApiService } from "./shared/services/admin/admin-neb-api.service";
|
|
|
|
import { AdminUpstreamApiService } from "./shared/services/admin/admin-upstream-api.service";
|
|
|
|
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-24 14:18:38 -04:00
|
|
|
import { AdminNebAppserviceConfigComponent } from "./admin/neb/appservice-config/appservice-config.component";
|
2018-03-24 23:17:44 -04:00
|
|
|
import { AdminNebGiphyConfigComponent } from "./admin/neb/config/giphy/giphy.component";
|
2018-03-24 23:44:05 -04:00
|
|
|
import { AdminNebGuggyConfigComponent } from "./admin/neb/config/guggy/guggy.component";
|
2018-03-24 23:50:30 -04:00
|
|
|
import { AdminNebGoogleConfigComponent } from "./admin/neb/config/google/google.component";
|
2018-03-24 23:55:35 -04:00
|
|
|
import { AdminNebImgurConfigComponent } from "./admin/neb/config/imgur/imgur.component";
|
2018-03-25 21:17:09 -04:00
|
|
|
import { ConfigSimpleBotComponent } from "./configs/simple-bot/simple-bot.component";
|
2021-11-30 21:27:37 -05:00
|
|
|
import {
|
|
|
|
ConfigScreenComplexBotComponent
|
|
|
|
} from "./configs/complex-bot/config-screen/config-screen.complex-bot.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 { ConfigScreenBridgeComponent } from "./configs/bridge/config-screen/config-screen.bridge.component";
|
|
|
|
import { AdminBridgesComponent } from "./admin/bridges/bridges.component";
|
|
|
|
import { AdminIrcBridgeComponent } from "./admin/bridges/irc/irc.component";
|
2018-03-31 01:12:31 -04:00
|
|
|
import { AdminIrcApiService } from "./shared/services/admin/admin-irc-api.service";
|
2018-03-31 13:26:00 -04:00
|
|
|
import { AdminIrcBridgeNetworksComponent } from "./admin/bridges/irc/networks/networks.component";
|
2018-03-31 13:45:19 -04:00
|
|
|
import { AdminIrcBridgeAddSelfhostedComponent } from "./admin/bridges/irc/add-selfhosted/add-selfhosted.component";
|
2018-03-31 16:37:36 -04:00
|
|
|
import { IrcBridgeConfigComponent } from "./configs/bridge/irc/irc.bridge.component";
|
|
|
|
import { IrcApiService } from "./shared/services/integrations/irc-api.service";
|
2018-05-11 23:58:10 -04:00
|
|
|
import { ScreenshotCapableDirective } from "./shared/directives/screenshot-capable.directive";
|
2018-05-12 23:55:02 -04:00
|
|
|
import { AdminStickersApiService } from "./shared/services/admin/admin-stickers-api-service";
|
|
|
|
import { AdminStickerPacksComponent } from "./admin/sticker-packs/sticker-packs.component";
|
|
|
|
import { AdminStickerPackPreviewComponent } from "./admin/sticker-packs/preview/preview.component";
|
|
|
|
import { MediaService } from "./shared/services/media.service";
|
2018-05-13 01:51:31 -04:00
|
|
|
import { StickerApiService } from "./shared/services/integrations/sticker-api.service";
|
|
|
|
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 { AdminTelegramApiService } from "./shared/services/admin/admin-telegram-api.service";
|
|
|
|
import { AdminTelegramBridgeComponent } from "./admin/bridges/telegram/telegram.component";
|
2021-11-30 21:27:37 -05:00
|
|
|
import {
|
|
|
|
AdminTelegramBridgeManageSelfhostedComponent
|
|
|
|
} from "./admin/bridges/telegram/manage-selfhosted/manage-selfhosted.component";
|
2018-10-17 23:09:19 -04:00
|
|
|
import { TelegramApiService } from "./shared/services/integrations/telegram-api.service";
|
|
|
|
import { TelegramBridgeConfigComponent } from "./configs/bridge/telegram/telegram.bridge.component";
|
2018-10-17 23:37:29 -04:00
|
|
|
import { TelegramAskUnbridgeComponent } from "./configs/bridge/telegram/ask-unbridge/ask-unbridge.component";
|
|
|
|
import { TelegramCannotUnbridgeComponent } from "./configs/bridge/telegram/cannot-unbridge/cannot-unbridge.component";
|
2021-11-30 21:27:37 -05:00
|
|
|
import {
|
|
|
|
AdminWebhooksBridgeManageSelfhostedComponent
|
|
|
|
} from "./admin/bridges/webhooks/manage-selfhosted/manage-selfhosted.component";
|
2018-10-20 16:07:30 -04:00
|
|
|
import { AdminWebhooksBridgeComponent } from "./admin/bridges/webhooks/webhooks.component";
|
|
|
|
import { AdminWebhooksApiService } from "./shared/services/admin/admin-webhooks-api.service";
|
2018-10-20 20:33:01 -04:00
|
|
|
import { WebhooksApiService } from "./shared/services/integrations/webhooks-api.service";
|
|
|
|
import { WebhooksBridgeConfigComponent } from "./configs/bridge/webhooks/webhooks.bridge.component";
|
2021-11-30 21:27:37 -05:00
|
|
|
import {
|
|
|
|
GenericFullscreenWidgetWrapperComponent
|
|
|
|
} from "./widget-wrappers/generic-fullscreen/generic-fullscreen.component";
|
2018-10-21 17:17:21 -04:00
|
|
|
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 { AdminCustomSimpleBotsApiService } from "./shared/services/admin/admin-custom-simple-bots-api.service";
|
|
|
|
import { AdminCustomBotsComponent } from "./admin/custom-bots/custom-bots.component";
|
|
|
|
import { AdminAddCustomBotComponent } from "./admin/custom-bots/add/add.component";
|
2018-10-25 00:49:29 -04:00
|
|
|
import { SlackApiService } from "./shared/services/integrations/slack-api.service";
|
|
|
|
import { SlackBridgeConfigComponent } from "./configs/bridge/slack/slack.bridge.component";
|
2021-11-30 21:27:37 -05:00
|
|
|
import {
|
|
|
|
AdminSlackBridgeManageSelfhostedComponent
|
|
|
|
} from "./admin/bridges/slack/manage-selfhosted/manage-selfhosted.component";
|
2018-10-24 22:56:38 -04:00
|
|
|
import { AdminSlackBridgeComponent } from "./admin/bridges/slack/slack.component";
|
|
|
|
import { AdminSlackApiService } from "./shared/services/admin/admin-slack-api.service";
|
2019-03-12 21:08:12 -04:00
|
|
|
import { AdminLogoutConfirmationDialogComponent } from "./admin/home/logout-confirmation/logout-confirmation.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 { AdminTermsApiService } from "./shared/services/admin/admin-terms-api.service";
|
|
|
|
import { AdminTermsComponent } from "./admin/terms/terms.component";
|
2019-07-01 22:49:44 -04:00
|
|
|
import { CKEditorModule } from "@ckeditor/ckeditor5-angular";
|
2019-07-06 17:19:27 -04:00
|
|
|
import { AdminNewEditTermsComponent } from "./admin/terms/new-edit/new-edit.component";
|
|
|
|
import { AdminTermsNewEditPublishDialogComponent } from "./admin/terms/new-edit/publish/publish.component";
|
2019-07-06 17:40:32 -04:00
|
|
|
import { TermsWidgetWrapperComponent } from "./widget-wrappers/terms/terms.component";
|
2020-07-23 16:59:48 -04:00
|
|
|
import { BigBlueButtonConfigComponent } from "./configs/widget/bigbluebutton/bigbluebutton.widget.component";
|
2020-07-23 17:10:27 -04:00
|
|
|
import { BigBlueButtonWidgetWrapperComponent } from "./widget-wrappers/bigbluebutton/bigbluebutton.component";
|
2020-07-23 17:03:32 -04:00
|
|
|
import { BigBlueButtonApiService } from "./shared/services/integrations/bigbluebutton-api.service";
|
2020-09-02 03:50:39 -04:00
|
|
|
import { WhiteboardWidgetComponent } from "./configs/widget/whiteboard/whiteboard.widget.component";
|
2020-12-04 11:47:45 -05:00
|
|
|
import { AdminWidgetWhiteboardConfigComponent } from "./admin/widgets/whiteboard/whiteboard.component";
|
2020-10-23 07:30:20 -04:00
|
|
|
import { TranslateLoader, TranslateModule } from "@ngx-translate/core";
|
|
|
|
import { TranslateHttpLoader } from "@ngx-translate/http-loader";
|
2021-08-11 17:41:29 -04:00
|
|
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
2021-11-25 18:24:36 -05:00
|
|
|
import { AdminHookshotGithubBridgeComponent } from "./admin/bridges/hookshot-github/hookshot-github.component";
|
2021-11-30 21:27:37 -05:00
|
|
|
import {
|
|
|
|
AdminHookshotGithubBridgeManageSelfhostedComponent
|
|
|
|
} from "./admin/bridges/hookshot-github/manage-selfhosted/manage-selfhosted.component";
|
2021-11-25 18:24:36 -05:00
|
|
|
import { AdminHookshotGithubApiService } from "./shared/services/admin/admin-hookshot-github-api.service";
|
|
|
|
import { HookshotGithubApiService } from "./shared/services/integrations/hookshot-github-api.service";
|
|
|
|
import { HookshotGithubBridgeConfigComponent } from "./configs/bridge/hookshot-github/hookshot-github.bridge.component";
|
2021-11-30 21:25:35 -05:00
|
|
|
import { AdminHookshotJiraBridgeComponent } from "./admin/bridges/hookshot-jira/hookshot-jira.component";
|
|
|
|
import {
|
|
|
|
AdminHookshotJiraBridgeManageSelfhostedComponent
|
|
|
|
} from "./admin/bridges/hookshot-jira/manage-selfhosted/manage-selfhosted.component";
|
|
|
|
import { AdminHookshotJiraApiService } from "./shared/services/admin/admin-hookshot-jira-api.service";
|
|
|
|
import { HookshotJiraApiService } from "./shared/services/integrations/hookshot-jira-api.service";
|
|
|
|
import { HookshotJiraBridgeConfigComponent } from "./configs/bridge/hookshot-jira/hookshot-jira.bridge.component";
|
2021-12-02 21:07:22 -05:00
|
|
|
import { AdminHookshotWebhookBridgeComponent } from "./admin/bridges/hookshot-webhook/hookshot-webhook.component";
|
|
|
|
import {
|
|
|
|
AdminHookshotWebhookBridgeManageSelfhostedComponent
|
|
|
|
} from "./admin/bridges/hookshot-webhook/manage-selfhosted/manage-selfhosted.component";
|
|
|
|
import { AdminHookshotWebhookApiService } from "./shared/services/admin/admin-hookshot-webhook-api.service";
|
|
|
|
import { HookshotWebhookApiService } from "./shared/services/integrations/hookshot-webhook-api.service";
|
|
|
|
import {
|
|
|
|
HookshotWebhookBridgeConfigComponent
|
|
|
|
} from "./configs/bridge/hookshot-webhook/hookshot-webhook.bridge.component";
|
2021-12-08 01:59:28 -05:00
|
|
|
import { FieldComponent } from "./elements/field/field.component";
|
2020-10-23 07:30:20 -04:00
|
|
|
|
|
|
|
// AoT requires an exported function for factories
|
|
|
|
export function HttpLoaderFactory(http: HttpClient) {
|
2021-09-01 19:01:01 -04:00
|
|
|
return new TranslateHttpLoader(http);
|
2020-10-23 07:30:20 -04:00
|
|
|
}
|
2017-12-10 04:35:24 -05:00
|
|
|
|
2017-05-26 23:51:48 -04:00
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
2019-06-29 02:21:56 -04:00
|
|
|
HttpClientModule,
|
2017-05-26 23:51:48 -04:00
|
|
|
FormsModule,
|
|
|
|
routing,
|
2019-04-13 16:37:56 -04:00
|
|
|
NgbModule,
|
2017-05-27 03:27:36 -04:00
|
|
|
UiSwitchModule,
|
2021-09-06 18:19:02 -04:00
|
|
|
ToasterModule.forRoot(),
|
2017-05-27 19:45:07 -04:00
|
|
|
BrowserAnimationsModule,
|
2021-08-16 18:00:59 -04:00
|
|
|
BreadcrumbModule,
|
2019-07-01 22:49:44 -04:00
|
|
|
CKEditorModule,
|
2021-08-11 17:41:29 -04:00
|
|
|
FontAwesomeModule,
|
2020-10-23 07:30:20 -04:00
|
|
|
TranslateModule.forRoot({
|
|
|
|
loader: {
|
|
|
|
provide: TranslateLoader,
|
|
|
|
useFactory: HttpLoaderFactory,
|
|
|
|
deps: [HttpClient]
|
|
|
|
}
|
|
|
|
})
|
2017-05-26 23:51:48 -04:00
|
|
|
],
|
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
2017-05-27 03:27:36 -04:00
|
|
|
HomeComponent,
|
2021-12-01 14:43:22 -05:00
|
|
|
ElementComponent,
|
2017-12-15 23:22:34 -05:00
|
|
|
IntegrationBagComponent,
|
2017-12-14 23:25:15 -05:00
|
|
|
PageHeaderComponent,
|
|
|
|
SpinnerComponent,
|
2017-05-28 02:53:12 -04:00
|
|
|
ScalarCloseComponent,
|
2017-10-09 22:49:26 -04:00
|
|
|
GenericWidgetWrapperComponent,
|
2017-10-09 23:24:12 -04:00
|
|
|
ToggleFullscreenDirective,
|
|
|
|
FullscreenButtonComponent,
|
2017-10-10 22:44:09 -04:00
|
|
|
VideoWidgetWrapperComponent,
|
2017-12-10 02:59:36 -05:00
|
|
|
JitsiWidgetWrapperComponent,
|
2020-07-23 17:10:27 -04:00
|
|
|
BigBlueButtonWidgetWrapperComponent,
|
2017-12-11 19:29:57 -05:00
|
|
|
GCalWidgetWrapperComponent,
|
2020-07-23 16:59:48 -04:00
|
|
|
BigBlueButtonConfigComponent,
|
2021-12-01 14:43:22 -05:00
|
|
|
ElementHomeComponent,
|
2017-12-22 23:08:10 -05:00
|
|
|
IboxComponent,
|
2017-12-23 01:30:42 -05:00
|
|
|
ConfigScreenWidgetComponent,
|
2017-12-22 23:33:37 -05:00
|
|
|
CustomWidgetConfigComponent,
|
2017-12-23 15:16:05 -05:00
|
|
|
EtherpadWidgetConfigComponent,
|
2017-12-23 15:32:07 -05:00
|
|
|
GoogleCalendarWidgetConfigComponent,
|
2017-12-23 15:44:19 -05:00
|
|
|
GoogleDocsWidgetConfigComponent,
|
2017-12-23 16:16:22 -05:00
|
|
|
JitsiWidgetConfigComponent,
|
2017-12-23 17:03:24 -05:00
|
|
|
TwitchWidgetConfigComponent,
|
2017-12-23 17:28:42 -05:00
|
|
|
YoutubeWidgetConfigComponent,
|
2017-12-23 20:47:41 -05:00
|
|
|
AdminComponent,
|
|
|
|
AdminHomeComponent,
|
2017-12-23 23:40:01 -05:00
|
|
|
AdminWidgetsComponent,
|
|
|
|
AdminWidgetEtherpadConfigComponent,
|
|
|
|
AdminWidgetJitsiConfigComponent,
|
2017-12-28 20:22:50 -05:00
|
|
|
AdminNebComponent,
|
|
|
|
AdminEditNebComponent,
|
2018-01-31 18:30:08 -05:00
|
|
|
AdminAddSelfhostedNebComponent,
|
2018-03-24 14:18:38 -04:00
|
|
|
AdminNebAppserviceConfigComponent,
|
2018-03-24 23:17:44 -04:00
|
|
|
AdminNebGiphyConfigComponent,
|
2018-03-24 23:44:05 -04:00
|
|
|
AdminNebGuggyConfigComponent,
|
2018-03-24 23:50:30 -04:00
|
|
|
AdminNebGoogleConfigComponent,
|
2018-03-24 23:55:35 -04:00
|
|
|
AdminNebImgurConfigComponent,
|
2018-03-25 21:17:09 -04:00
|
|
|
ConfigSimpleBotComponent,
|
2018-03-25 23:01:05 -04:00
|
|
|
ConfigScreenComplexBotComponent,
|
|
|
|
RssComplexBotConfigComponent,
|
2018-03-29 00:18:33 -04:00
|
|
|
TravisCiComplexBotConfigComponent,
|
2018-03-30 21:22:15 -04:00
|
|
|
ConfigScreenBridgeComponent,
|
|
|
|
AdminBridgesComponent,
|
|
|
|
AdminIrcBridgeComponent,
|
2018-03-31 13:26:00 -04:00
|
|
|
AdminIrcBridgeNetworksComponent,
|
2018-03-31 13:45:19 -04:00
|
|
|
AdminIrcBridgeAddSelfhostedComponent,
|
2018-03-31 16:37:36 -04:00
|
|
|
IrcBridgeConfigComponent,
|
2018-05-11 23:58:10 -04:00
|
|
|
ScreenshotCapableDirective,
|
2018-05-12 23:55:02 -04:00
|
|
|
AdminStickerPacksComponent,
|
|
|
|
AdminStickerPackPreviewComponent,
|
2018-05-13 01:51:31 -04:00
|
|
|
StickerpickerComponent,
|
2018-05-14 00:32:13 -04:00
|
|
|
StickerPickerWidgetWrapperComponent,
|
2018-09-16 04:26:10 -04:00
|
|
|
AdminTelegramBridgeComponent,
|
|
|
|
AdminTelegramBridgeManageSelfhostedComponent,
|
2018-10-17 23:09:19 -04:00
|
|
|
TelegramBridgeConfigComponent,
|
2018-10-17 23:37:29 -04:00
|
|
|
TelegramAskUnbridgeComponent,
|
|
|
|
TelegramCannotUnbridgeComponent,
|
2018-10-20 16:07:30 -04:00
|
|
|
AdminWebhooksBridgeManageSelfhostedComponent,
|
|
|
|
AdminWebhooksBridgeComponent,
|
2018-10-20 20:33:01 -04:00
|
|
|
WebhooksBridgeConfigComponent,
|
2018-10-21 17:17:21 -04:00
|
|
|
GenericFullscreenWidgetWrapperComponent,
|
|
|
|
GrafanaWidgetConfigComponent,
|
2018-10-21 18:19:36 -04:00
|
|
|
TradingViewWidgetConfigComponent,
|
|
|
|
TradingViewWidgetWrapperComponent,
|
2018-10-21 19:00:10 -04:00
|
|
|
SpotifyWidgetConfigComponent,
|
|
|
|
SpotifyWidgetWrapperComponent,
|
2018-10-23 00:10:28 -04:00
|
|
|
AdminCustomBotsComponent,
|
|
|
|
AdminAddCustomBotComponent,
|
2018-10-25 00:49:29 -04:00
|
|
|
SlackBridgeConfigComponent,
|
2018-10-24 22:56:38 -04:00
|
|
|
AdminSlackBridgeManageSelfhostedComponent,
|
|
|
|
AdminSlackBridgeComponent,
|
2019-03-12 21:08:12 -04:00
|
|
|
AdminLogoutConfirmationDialogComponent,
|
2019-03-13 02:28:12 -04:00
|
|
|
ReauthExampleWidgetWrapperComponent,
|
2019-03-24 16:37:51 -04:00
|
|
|
ManagerTestWidgetWrapperComponent,
|
2019-07-01 01:05:33 -04:00
|
|
|
AdminTermsComponent,
|
2019-07-06 17:19:27 -04:00
|
|
|
AdminNewEditTermsComponent,
|
|
|
|
AdminTermsNewEditPublishDialogComponent,
|
2019-07-06 17:40:32 -04:00
|
|
|
TermsWidgetWrapperComponent,
|
2020-12-04 11:47:45 -05:00
|
|
|
WhiteboardWidgetComponent,
|
2021-11-25 18:24:36 -05:00
|
|
|
AdminWidgetWhiteboardConfigComponent,
|
|
|
|
AdminHookshotGithubBridgeComponent,
|
|
|
|
AdminHookshotGithubBridgeManageSelfhostedComponent,
|
|
|
|
HookshotGithubBridgeConfigComponent,
|
2021-11-30 21:25:35 -05:00
|
|
|
AdminHookshotJiraBridgeComponent,
|
|
|
|
AdminHookshotJiraBridgeManageSelfhostedComponent,
|
|
|
|
HookshotJiraBridgeConfigComponent,
|
2021-12-02 21:07:22 -05:00
|
|
|
AdminHookshotWebhookBridgeComponent,
|
|
|
|
AdminHookshotWebhookBridgeManageSelfhostedComponent,
|
|
|
|
HookshotWebhookBridgeConfigComponent,
|
2021-12-08 01:59:28 -05:00
|
|
|
FieldComponent,
|
2017-12-23 20:47:41 -05:00
|
|
|
|
2017-05-27 03:27:36 -04:00
|
|
|
// Vendor
|
2017-05-26 23:51:48 -04:00
|
|
|
],
|
|
|
|
providers: [
|
2017-12-24 04:02:57 -05:00
|
|
|
AdminApiService,
|
|
|
|
AdminIntegrationsApiService,
|
|
|
|
IntegrationsApiService,
|
|
|
|
WidgetApiService,
|
2017-12-20 23:28:43 -05:00
|
|
|
ScalarClientApiService,
|
|
|
|
ScalarServerApiService,
|
2017-12-23 15:16:05 -05:00
|
|
|
NameService,
|
2017-12-28 20:22:50 -05:00
|
|
|
AdminAppserviceApiService,
|
|
|
|
AdminNebApiService,
|
|
|
|
AdminUpstreamApiService,
|
2018-03-31 01:12:31 -04:00
|
|
|
AdminIrcApiService,
|
2018-03-31 16:37:36 -04:00
|
|
|
IrcApiService,
|
2018-05-12 23:55:02 -04:00
|
|
|
AdminStickersApiService,
|
|
|
|
MediaService,
|
2018-05-13 01:51:31 -04:00
|
|
|
StickerApiService,
|
2020-07-23 17:03:32 -04:00
|
|
|
BigBlueButtonApiService,
|
2018-09-16 04:26:10 -04:00
|
|
|
AdminTelegramApiService,
|
2018-10-17 23:09:19 -04:00
|
|
|
TelegramApiService,
|
2018-10-20 16:07:30 -04:00
|
|
|
AdminWebhooksApiService,
|
2018-10-20 20:33:01 -04:00
|
|
|
WebhooksApiService,
|
2018-10-23 00:10:28 -04:00
|
|
|
AdminCustomSimpleBotsApiService,
|
2018-10-25 00:49:29 -04:00
|
|
|
SlackApiService,
|
2018-10-24 22:56:38 -04:00
|
|
|
AdminSlackApiService,
|
2019-04-13 16:37:56 -04:00
|
|
|
ToasterService,
|
2019-07-01 01:05:33 -04:00
|
|
|
AdminTermsApiService,
|
2021-11-25 18:24:36 -05:00
|
|
|
AdminHookshotGithubApiService,
|
|
|
|
HookshotGithubApiService,
|
2021-11-30 21:25:35 -05:00
|
|
|
AdminHookshotJiraApiService,
|
|
|
|
HookshotJiraApiService,
|
2021-12-02 21:07:22 -05:00
|
|
|
AdminHookshotWebhookApiService,
|
|
|
|
HookshotWebhookApiService,
|
2017-10-09 22:26:46 -04:00
|
|
|
{provide: Window, useValue: window},
|
2017-05-27 03:27:36 -04:00
|
|
|
|
|
|
|
// Vendor
|
2017-05-26 23:51:48 -04:00
|
|
|
],
|
|
|
|
bootstrap: [AppComponent],
|
2017-12-23 23:40:01 -05:00
|
|
|
entryComponents: [
|
|
|
|
AdminWidgetEtherpadConfigComponent,
|
|
|
|
AdminWidgetJitsiConfigComponent,
|
2018-03-24 14:18:38 -04:00
|
|
|
AdminNebAppserviceConfigComponent,
|
2018-03-24 23:17:44 -04:00
|
|
|
AdminNebGiphyConfigComponent,
|
2018-03-24 23:44:05 -04:00
|
|
|
AdminNebGuggyConfigComponent,
|
2018-03-24 23:50:30 -04:00
|
|
|
AdminNebGoogleConfigComponent,
|
2018-03-24 23:55:35 -04:00
|
|
|
AdminNebImgurConfigComponent,
|
2018-03-25 21:17:09 -04:00
|
|
|
ConfigSimpleBotComponent,
|
2018-03-31 13:26:00 -04:00
|
|
|
AdminIrcBridgeNetworksComponent,
|
2018-03-31 13:45:19 -04:00
|
|
|
AdminIrcBridgeAddSelfhostedComponent,
|
2018-05-12 23:55:02 -04:00
|
|
|
AdminStickerPackPreviewComponent,
|
2018-09-16 04:26:10 -04:00
|
|
|
AdminTelegramBridgeManageSelfhostedComponent,
|
2018-10-17 23:37:29 -04:00
|
|
|
TelegramAskUnbridgeComponent,
|
|
|
|
TelegramCannotUnbridgeComponent,
|
2018-10-20 16:07:30 -04:00
|
|
|
AdminWebhooksBridgeManageSelfhostedComponent,
|
2018-10-23 00:10:28 -04:00
|
|
|
AdminAddCustomBotComponent,
|
2018-10-24 22:56:38 -04:00
|
|
|
AdminSlackBridgeManageSelfhostedComponent,
|
2019-03-12 21:08:12 -04:00
|
|
|
AdminLogoutConfirmationDialogComponent,
|
2019-07-06 17:19:27 -04:00
|
|
|
AdminTermsNewEditPublishDialogComponent,
|
2021-11-30 21:25:35 -05:00
|
|
|
AdminWidgetWhiteboardConfigComponent,
|
2017-12-23 23:40:01 -05:00
|
|
|
]
|
2017-05-26 23:51:48 -04:00
|
|
|
})
|
|
|
|
export class AppModule {
|
2021-09-01 19:01:01 -04:00
|
|
|
constructor(public appRef: ApplicationRef, injector: Injector) {
|
|
|
|
ServiceLocator.injector = injector;
|
|
|
|
}
|
2017-05-26 23:51:48 -04:00
|
|
|
|
2021-09-01 19:01:01 -04:00
|
|
|
hmrOnInit(store) {
|
2021-12-06 23:21:43 -05:00
|
|
|
console.log("Dimension HMR store", store);
|
2021-09-01 19:01:01 -04:00
|
|
|
}
|
2017-05-26 23:51:48 -04:00
|
|
|
|
2021-09-01 19:01:01 -04:00
|
|
|
hmrOnDestroy(store) {
|
|
|
|
const cmpLocation = this.appRef.components.map(
|
|
|
|
(cmp) => cmp.location.nativeElement
|
|
|
|
);
|
|
|
|
// recreate elements
|
|
|
|
store.disposeOldHosts = createNewHosts(cmpLocation);
|
|
|
|
// remove styles
|
|
|
|
removeNgStyles();
|
|
|
|
}
|
2017-05-26 23:51:48 -04:00
|
|
|
|
2021-09-01 19:01:01 -04:00
|
|
|
hmrAfterDestroy(store) {
|
2021-08-11 17:41:29 -04:00
|
|
|
// display new elements
|
2021-09-01 19:01:01 -04:00
|
|
|
store.disposeOldHosts();
|
|
|
|
delete store.disposeOldHosts;
|
|
|
|
}
|
2017-05-26 23:51:48 -04:00
|
|
|
}
|