mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Update webapp to match naming angular naming conventions
This commit is contained in:
parent
5d00c72972
commit
0d520a763f
@ -1,6 +1,6 @@
|
|||||||
import { Component } from "@angular/core";
|
import { Component } from "@angular/core";
|
||||||
import { AdminApiService } from "../../shared/services/admin/admin-api.service";
|
import { AdminApiService } from "../../shared/services/admin/admin-api.service";
|
||||||
import { FE_DimensionConfig } from "../../shared/models/admin_responses";
|
import { FE_DimensionConfig } from "../../shared/models/admin-responses";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "./home.component.html",
|
templateUrl: "./home.component.html",
|
||||||
|
@ -11,8 +11,8 @@ import {
|
|||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "./add_selfhosted.component.html",
|
templateUrl: "./add-selfhosted.component.html",
|
||||||
styleUrls: ["./add_selfhosted.component.scss"],
|
styleUrls: ["./add-selfhosted.component.scss"],
|
||||||
})
|
})
|
||||||
export class AdminAddSelfhostedNebComponent {
|
export class AdminAddSelfhostedNebComponent {
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
import { Component } from "@angular/core";
|
import { Component } from "@angular/core";
|
||||||
import { ToasterService } from "angular2-toaster";
|
import { ToasterService } from "angular2-toaster";
|
||||||
import { DialogRef, ModalComponent } from "ngx-modialog";
|
import { DialogRef, ModalComponent } from "ngx-modialog";
|
||||||
import { FE_Appservice, FE_NebConfiguration } from "../../../shared/models/admin_responses";
|
import { FE_Appservice, FE_NebConfiguration } from "../../../shared/models/admin-responses";
|
||||||
import { AdminAppserviceApiService } from "../../../shared/services/admin/admin-appservice-api.service";
|
import { AdminAppserviceApiService } from "../../../shared/services/admin/admin-appservice-api.service";
|
||||||
import { BSModalContext } from "ngx-modialog/plugins/bootstrap";
|
import { BSModalContext } from "ngx-modialog/plugins/bootstrap";
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnDestroy, OnInit } from "@angular/core";
|
import { Component, OnDestroy, OnInit } from "@angular/core";
|
||||||
import { FE_NebConfiguration } from "../../../shared/models/admin_responses";
|
import { FE_NebConfiguration } from "../../../shared/models/admin-responses";
|
||||||
import { AdminNebApiService } from "../../../shared/services/admin/admin-neb-api.service";
|
import { AdminNebApiService } from "../../../shared/services/admin/admin-neb-api.service";
|
||||||
import { ActivatedRoute } from "@angular/router";
|
import { ActivatedRoute } from "@angular/router";
|
||||||
import { ToasterService } from "angular2-toaster";
|
import { ToasterService } from "angular2-toaster";
|
||||||
|
@ -3,7 +3,7 @@ import { ToasterService } from "angular2-toaster";
|
|||||||
import { AdminNebApiService } from "../../shared/services/admin/admin-neb-api.service";
|
import { AdminNebApiService } from "../../shared/services/admin/admin-neb-api.service";
|
||||||
import { AdminUpstreamApiService } from "../../shared/services/admin/admin-upstream-api.service";
|
import { AdminUpstreamApiService } from "../../shared/services/admin/admin-upstream-api.service";
|
||||||
import { AdminAppserviceApiService } from "../../shared/services/admin/admin-appservice-api.service";
|
import { AdminAppserviceApiService } from "../../shared/services/admin/admin-appservice-api.service";
|
||||||
import { FE_Appservice, FE_NebConfiguration, FE_Upstream } from "../../shared/models/admin_responses";
|
import { FE_Appservice, FE_NebConfiguration, FE_Upstream } from "../../shared/models/admin-responses";
|
||||||
import { ActivatedRoute, Router } from "@angular/router";
|
import { ActivatedRoute, Router } from "@angular/router";
|
||||||
import {
|
import {
|
||||||
AdminNebAppserviceConfigComponent,
|
AdminNebAppserviceConfigComponent,
|
||||||
|
@ -15,12 +15,12 @@ import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
|
|||||||
import { ScalarCloseComponent } from "./riot/scalar-close/scalar-close.component";
|
import { ScalarCloseComponent } from "./riot/scalar-close/scalar-close.component";
|
||||||
import { BootstrapModalModule } from "ngx-modialog/plugins/bootstrap";
|
import { BootstrapModalModule } from "ngx-modialog/plugins/bootstrap";
|
||||||
import { ModalModule } from "ngx-modialog";
|
import { ModalModule } from "ngx-modialog";
|
||||||
import { GenericWidgetWrapperComponent } from "./widget_wrappers/generic/generic.component";
|
import { GenericWidgetWrapperComponent } from "./widget-wrappers/generic/generic.component";
|
||||||
import { ToggleFullscreenDirective } from "./shared/directives/toggle-fullscreen.directive";
|
import { ToggleFullscreenDirective } from "./shared/directives/toggle-fullscreen.directive";
|
||||||
import { FullscreenButtonComponent } from "./elements/fullscreen-button/fullscreen-button.component";
|
import { FullscreenButtonComponent } from "./elements/fullscreen-button/fullscreen-button.component";
|
||||||
import { VideoWidgetWrapperComponent } from "./widget_wrappers/video/video.component";
|
import { VideoWidgetWrapperComponent } from "./widget-wrappers/video/video.component";
|
||||||
import { JitsiWidgetWrapperComponent } from "./widget_wrappers/jitsi/jitsi.component";
|
import { JitsiWidgetWrapperComponent } from "./widget-wrappers/jitsi/jitsi.component";
|
||||||
import { GCalWidgetWrapperComponent } from "./widget_wrappers/gcal/gcal.component";
|
import { GCalWidgetWrapperComponent } from "./widget-wrappers/gcal/gcal.component";
|
||||||
import { PageHeaderComponent } from "./page-header/page-header.component";
|
import { PageHeaderComponent } from "./page-header/page-header.component";
|
||||||
import { SpinnerComponent } from "./elements/spinner/spinner.component";
|
import { SpinnerComponent } from "./elements/spinner/spinner.component";
|
||||||
import { BreadcrumbsModule } from "ng2-breadcrumbs";
|
import { BreadcrumbsModule } from "ng2-breadcrumbs";
|
||||||
@ -28,14 +28,14 @@ import { RiotHomeComponent } from "./riot/riot-home/home.component";
|
|||||||
import { IntegrationBagComponent } from "./integration-bag/integration-bag.component";
|
import { IntegrationBagComponent } from "./integration-bag/integration-bag.component";
|
||||||
import { ScalarServerApiService } from "./shared/services/scalar/scalar-server-api.service";
|
import { ScalarServerApiService } from "./shared/services/scalar/scalar-server-api.service";
|
||||||
import { AdminApiService } from "./shared/services/admin/admin-api.service";
|
import { AdminApiService } from "./shared/services/admin/admin-api.service";
|
||||||
import { ServiceLocator } from "./shared/registry/ServiceLocator";
|
import { ServiceLocator } from "./shared/registry/locator.service";
|
||||||
import { IboxComponent } from "./elements/ibox/ibox.component";
|
import { IboxComponent } from "./elements/ibox/ibox.component";
|
||||||
import { CustomWidgetConfigComponent } from "./configs/widget/custom/custom.widget.component";
|
import { CustomWidgetConfigComponent } from "./configs/widget/custom/custom.widget.component";
|
||||||
import { ConfigScreenWidgetComponent } from "./configs/widget/config_screen/config_screen.widget.component";
|
import { ConfigScreenWidgetComponent } from "./configs/widget/config-screen/config-screen.widget.component";
|
||||||
import { EtherpadWidgetConfigComponent } from "./configs/widget/etherpad/etherpad.widget.component";
|
import { EtherpadWidgetConfigComponent } from "./configs/widget/etherpad/etherpad.widget.component";
|
||||||
import { NameService } from "./shared/services/name.service";
|
import { NameService } from "./shared/services/name.service";
|
||||||
import { GoogleCalendarWidgetConfigComponent } from "./configs/widget/google_calendar/gcal.widget.component";
|
import { GoogleCalendarWidgetConfigComponent } from "./configs/widget/google-calendar/gcal.widget.component";
|
||||||
import { GoogleDocsWidgetConfigComponent } from "./configs/widget/google_docs/gdoc.widget.component";
|
import { GoogleDocsWidgetConfigComponent } from "./configs/widget/google-docs/gdoc.widget.component";
|
||||||
import { JitsiWidgetConfigComponent } from "./configs/widget/jitsi/jitsi.widget.component";
|
import { JitsiWidgetConfigComponent } from "./configs/widget/jitsi/jitsi.widget.component";
|
||||||
import { TwitchWidgetConfigComponent } from "./configs/widget/twitch/twitch.widget.component";
|
import { TwitchWidgetConfigComponent } from "./configs/widget/twitch/twitch.widget.component";
|
||||||
import { YoutubeWidgetConfigComponent } from "./configs/widget/youtube/youtube.widget.component";
|
import { YoutubeWidgetConfigComponent } from "./configs/widget/youtube/youtube.widget.component";
|
||||||
@ -52,7 +52,7 @@ import { AdminNebApiService } from "./shared/services/admin/admin-neb-api.servic
|
|||||||
import { AdminUpstreamApiService } from "./shared/services/admin/admin-upstream-api.service";
|
import { AdminUpstreamApiService } from "./shared/services/admin/admin-upstream-api.service";
|
||||||
import { AdminNebComponent } from "./admin/neb/neb.component";
|
import { AdminNebComponent } from "./admin/neb/neb.component";
|
||||||
import { AdminEditNebComponent } from "./admin/neb/edit/edit.component";
|
import { AdminEditNebComponent } from "./admin/neb/edit/edit.component";
|
||||||
import { AdminAddSelfhostedNebComponent } from "./admin/neb/add_selfhosted/add_selfhosted.component";
|
import { AdminAddSelfhostedNebComponent } from "./admin/neb/add-selfhosted/add-selfhosted.component";
|
||||||
import { AdminNebAppserviceConfigComponent } from "./admin/neb/appservice-config/appservice-config.component";
|
import { AdminNebAppserviceConfigComponent } from "./admin/neb/appservice-config/appservice-config.component";
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
import { RouterModule, Routes } from "@angular/router";
|
import { RouterModule, Routes } from "@angular/router";
|
||||||
import { HomeComponent } from "./home/home.component";
|
import { HomeComponent } from "./home/home.component";
|
||||||
import { RiotComponent } from "./riot/riot.component";
|
import { RiotComponent } from "./riot/riot.component";
|
||||||
import { GenericWidgetWrapperComponent } from "./widget_wrappers/generic/generic.component";
|
import { GenericWidgetWrapperComponent } from "./widget-wrappers/generic/generic.component";
|
||||||
import { VideoWidgetWrapperComponent } from "./widget_wrappers/video/video.component";
|
import { VideoWidgetWrapperComponent } from "./widget-wrappers/video/video.component";
|
||||||
import { JitsiWidgetWrapperComponent } from "./widget_wrappers/jitsi/jitsi.component";
|
import { JitsiWidgetWrapperComponent } from "./widget-wrappers/jitsi/jitsi.component";
|
||||||
import { GCalWidgetWrapperComponent } from "./widget_wrappers/gcal/gcal.component";
|
import { GCalWidgetWrapperComponent } from "./widget-wrappers/gcal/gcal.component";
|
||||||
import { RiotHomeComponent } from "./riot/riot-home/home.component";
|
import { RiotHomeComponent } from "./riot/riot-home/home.component";
|
||||||
import { CustomWidgetConfigComponent } from "./configs/widget/custom/custom.widget.component";
|
import { CustomWidgetConfigComponent } from "./configs/widget/custom/custom.widget.component";
|
||||||
import { EtherpadWidgetConfigComponent } from "./configs/widget/etherpad/etherpad.widget.component";
|
import { EtherpadWidgetConfigComponent } from "./configs/widget/etherpad/etherpad.widget.component";
|
||||||
import { GoogleCalendarWidgetConfigComponent } from "./configs/widget/google_calendar/gcal.widget.component";
|
import { GoogleCalendarWidgetConfigComponent } from "./configs/widget/google-calendar/gcal.widget.component";
|
||||||
import { GoogleDocsWidgetConfigComponent } from "./configs/widget/google_docs/gdoc.widget.component";
|
import { GoogleDocsWidgetConfigComponent } from "./configs/widget/google-docs/gdoc.widget.component";
|
||||||
import { JitsiWidgetConfigComponent } from "./configs/widget/jitsi/jitsi.widget.component";
|
import { JitsiWidgetConfigComponent } from "./configs/widget/jitsi/jitsi.widget.component";
|
||||||
import { TwitchWidgetConfigComponent } from "./configs/widget/twitch/twitch.widget.component";
|
import { TwitchWidgetConfigComponent } from "./configs/widget/twitch/twitch.widget.component";
|
||||||
import { YoutubeWidgetConfigComponent } from "./configs/widget/youtube/youtube.widget.component";
|
import { YoutubeWidgetConfigComponent } from "./configs/widget/youtube/youtube.widget.component";
|
||||||
@ -18,7 +18,7 @@ import { AdminHomeComponent } from "./admin/home/home.component";
|
|||||||
import { AdminWidgetsComponent } from "./admin/widgets/widgets.component";
|
import { AdminWidgetsComponent } from "./admin/widgets/widgets.component";
|
||||||
import { AdminNebComponent } from "./admin/neb/neb.component";
|
import { AdminNebComponent } from "./admin/neb/neb.component";
|
||||||
import { AdminEditNebComponent } from "./admin/neb/edit/edit.component";
|
import { AdminEditNebComponent } from "./admin/neb/edit/edit.component";
|
||||||
import { AdminAddSelfhostedNebComponent } from "./admin/neb/add_selfhosted/add_selfhosted.component";
|
import { AdminAddSelfhostedNebComponent } from "./admin/neb/add-selfhosted/add-selfhosted.component";
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{path: "", component: HomeComponent},
|
{path: "", component: HomeComponent},
|
||||||
|
@ -3,8 +3,8 @@ import { Component, ContentChild, Input, TemplateRef } from "@angular/core";
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "my-widget-config",
|
selector: "my-widget-config",
|
||||||
templateUrl: "config_screen.component.html",
|
templateUrl: "config-screen.component.html",
|
||||||
styleUrls: ["config_screen.widget.component.scss"],
|
styleUrls: ["config-screen.widget.component.scss"],
|
||||||
})
|
})
|
||||||
export class ConfigScreenWidgetComponent {
|
export class ConfigScreenWidgetComponent {
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
import { convertScalarWidgetsToDtos, EditableWidget } from "../../shared/models/widget";
|
import { convertScalarWidgetsToDtos, EditableWidget } from "../../shared/models/widget";
|
||||||
import { ToasterService } from "angular2-toaster";
|
import { ToasterService } from "angular2-toaster";
|
||||||
import { ScalarClientApiService } from "../../shared/services/scalar/scalar-client-api.service";
|
import { ScalarClientApiService } from "../../shared/services/scalar/scalar-client-api.service";
|
||||||
import { ServiceLocator } from "../../shared/registry/ServiceLocator";
|
import { ServiceLocator } from "../../shared/registry/locator.service";
|
||||||
import { SessionStorage } from "../../shared/SessionStorage";
|
import { SessionStorage } from "../../shared/SessionStorage";
|
||||||
import { OnInit } from "@angular/core";
|
import { OnInit } from "@angular/core";
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { WidgetsResponse } from "./scalar_client_responses";
|
import { WidgetsResponse } from "./server-client-responses";
|
||||||
|
|
||||||
export const WIDGET_CUSTOM = ["customwidget", "dimension-customwidget"];
|
export const WIDGET_CUSTOM = ["customwidget", "dimension-customwidget"];
|
||||||
export const WIDGET_ETHERPAD = ["etherpad", "dimension-etherpad"];
|
export const WIDGET_ETHERPAD = ["etherpad", "dimension-etherpad"];
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Injectable } from "@angular/core";
|
import { Injectable } from "@angular/core";
|
||||||
import { Http } from "@angular/http";
|
import { Http } from "@angular/http";
|
||||||
import { AuthedApi } from "../AuthedApi";
|
import { AuthedApi } from "../authed-api";
|
||||||
import { FE_DimensionConfig, FE_DimensionVersion } from "../../models/admin_responses";
|
import { FE_DimensionConfig, FE_DimensionVersion } from "../../models/admin-responses";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AdminApiService extends AuthedApi {
|
export class AdminApiService extends AuthedApi {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Injectable } from "@angular/core";
|
import { Injectable } from "@angular/core";
|
||||||
import { Http } from "@angular/http";
|
import { Http } from "@angular/http";
|
||||||
import { AuthedApi } from "../AuthedApi";
|
import { AuthedApi } from "../authed-api";
|
||||||
import { FE_Appservice } from "../../models/admin_responses";
|
import { FE_Appservice } from "../../models/admin-responses";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AdminAppserviceApiService extends AuthedApi {
|
export class AdminAppserviceApiService extends AuthedApi {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Injectable } from "@angular/core";
|
import { Injectable } from "@angular/core";
|
||||||
import { Http } from "@angular/http";
|
import { Http } from "@angular/http";
|
||||||
import { AuthedApi } from "../AuthedApi";
|
import { AuthedApi } from "../authed-api";
|
||||||
import { FE_IntegrationsResponse } from "../../models/dimension_responses";
|
import { FE_IntegrationsResponse } from "../../models/dimension-responses";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AdminIntegrationsApiService extends AuthedApi {
|
export class AdminIntegrationsApiService extends AuthedApi {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Injectable } from "@angular/core";
|
import { Injectable } from "@angular/core";
|
||||||
import { Http } from "@angular/http";
|
import { Http } from "@angular/http";
|
||||||
import { AuthedApi } from "../AuthedApi";
|
import { AuthedApi } from "../authed-api";
|
||||||
import { FE_Appservice, FE_NebConfiguration, FE_Upstream } from "../../models/admin_responses";
|
import { FE_Appservice, FE_NebConfiguration, FE_Upstream } from "../../models/admin-responses";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AdminNebApiService extends AuthedApi {
|
export class AdminNebApiService extends AuthedApi {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Injectable } from "@angular/core";
|
import { Injectable } from "@angular/core";
|
||||||
import { Http } from "@angular/http";
|
import { Http } from "@angular/http";
|
||||||
import { AuthedApi } from "../AuthedApi";
|
import { AuthedApi } from "../authed-api";
|
||||||
import { FE_Upstream } from "../../models/admin_responses";
|
import { FE_Upstream } from "../../models/admin-responses";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AdminUpstreamApiService extends AuthedApi {
|
export class AdminUpstreamApiService extends AuthedApi {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Injectable } from "@angular/core";
|
import { Injectable } from "@angular/core";
|
||||||
import { Http } from "@angular/http";
|
import { Http } from "@angular/http";
|
||||||
import { AuthedApi } from "../AuthedApi";
|
import { AuthedApi } from "../authed-api";
|
||||||
import { FE_IntegrationsResponse } from "../../models/dimension_responses";
|
import { FE_IntegrationsResponse } from "../../models/dimension-responses";
|
||||||
import { FE_Integration, FE_Widget } from "../../models/integration";
|
import { FE_Integration, FE_Widget } from "../../models/integration";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from "@angular/core";
|
import { Injectable } from "@angular/core";
|
||||||
import { Http } from "@angular/http";
|
import { Http } from "@angular/http";
|
||||||
import { AuthedApi } from "../AuthedApi";
|
import { AuthedApi } from "../authed-api";
|
||||||
import { FE_Widget } from "../../models/integration";
|
import { FE_Widget } from "../../models/integration";
|
||||||
import { IntegrationsApiService } from "./integrations-api.service";
|
import { IntegrationsApiService } from "./integrations-api.service";
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
MembershipStateResponse, RoomEncryptionStatusResponse,
|
MembershipStateResponse, RoomEncryptionStatusResponse,
|
||||||
ScalarSuccessResponse,
|
ScalarSuccessResponse,
|
||||||
WidgetsResponse
|
WidgetsResponse
|
||||||
} from "../../models/scalar_client_responses";
|
} from "../../models/server-client-responses";
|
||||||
import { EditableWidget } from "../../models/widget";
|
import { EditableWidget } from "../../models/widget";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Injectable } from "@angular/core";
|
import { Injectable } from "@angular/core";
|
||||||
import { Http } from "@angular/http";
|
import { Http } from "@angular/http";
|
||||||
import { FE_ScalarAccountResponse } from "../../models/scalar_server_responses";
|
import { FE_ScalarAccountResponse } from "../../models/scalar-server-responses";
|
||||||
import { AuthedApi } from "../AuthedApi";
|
import { AuthedApi } from "../authed-api";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class ScalarServerApiService extends AuthedApi {
|
export class ScalarServerApiService extends AuthedApi {
|
||||||
|
Loading…
Reference in New Issue
Block a user