diff --git a/web/app/app.module.ts b/web/app/app.module.ts index 04eeb30..cf3afbe 100644 --- a/web/app/app.module.ts +++ b/web/app/app.module.ts @@ -1,11 +1,11 @@ -import { NgModule, ApplicationRef } from "@angular/core"; +import { ApplicationRef, NgModule } from "@angular/core"; import { BrowserModule } from "@angular/platform-browser"; import { HttpModule } from "@angular/http"; import { FormsModule } from "@angular/forms"; import { AppComponent } from "./app.component"; import { HomeComponent } from "./home/home.component"; import { routing } from "./app.routing"; -import { removeNgStyles, createNewHosts } from "@angularclass/hmr"; +import { createNewHosts, removeNgStyles } from "@angularclass/hmr"; import { NgbModule } from "@ng-bootstrap/ng-bootstrap"; import { RiotComponent } from "./riot/riot.component"; import { ApiService } from "./shared/api.service"; diff --git a/web/app/configs/widget/custom_widget/custom_widget-config.component.ts b/web/app/configs/widget/custom_widget/custom_widget-config.component.ts index 3e4cf2c..78e0ca6 100644 --- a/web/app/configs/widget/custom_widget/custom_widget-config.component.ts +++ b/web/app/configs/widget/custom_widget/custom_widget-config.component.ts @@ -1,5 +1,5 @@ import { Component } from "@angular/core"; -import { ModalComponent, DialogRef } from "ngx-modialog"; +import { DialogRef, ModalComponent } from "ngx-modialog"; import { WidgetComponent } from "../widget.component"; import { ScalarService } from "../../../shared/scalar.service"; import { ConfigModalContext } from "../../../integration/integration.component"; diff --git a/web/app/configs/widget/etherpad/etherpad-config.component.html b/web/app/configs/widget/etherpad/etherpad-config.component.html index 7caf900..d57a899 100644 --- a/web/app/configs/widget/etherpad/etherpad-config.component.html +++ b/web/app/configs/widget/etherpad/etherpad-config.component.html @@ -52,7 +52,8 @@ [(ngModel)]="widget.newUrl" name="widget-url-{{widget.id}}" [disabled]="isUpdating"> - \ No newline at end of file diff --git a/web/app/home/home.component.html b/web/app/home/home.component.html index 501adc5..0d08561 100644 --- a/web/app/home/home.component.html +++ b/web/app/home/home.component.html @@ -16,6 +16,7 @@

-

Learn more on Github. Talk about it in #dimension:t2l.io

+

Learn more on Github. Talk about it in #dimension:t2l.io

\ No newline at end of file diff --git a/web/app/integration/integration.component.html b/web/app/integration/integration.component.html index 44ce08d..6731d5a 100644 --- a/web/app/integration/integration.component.html +++ b/web/app/integration/integration.component.html @@ -4,14 +4,17 @@ {{ integration.name }}
- +
- - + +
diff --git a/web/app/integration/integration.component.ts b/web/app/integration/integration.component.ts index a2248a3..5dba4df 100644 --- a/web/app/integration/integration.component.ts +++ b/web/app/integration/integration.component.ts @@ -1,7 +1,7 @@ -import { Component, Input, Output, EventEmitter } from "@angular/core"; +import { Component, EventEmitter, Input, Output } from "@angular/core"; import { Integration } from "../shared/models/integration"; import { overlayConfigFactory } from "ngx-modialog"; -import { Modal, BSModalContext } from "ngx-modialog/plugins/bootstrap"; +import { BSModalContext, Modal } from "ngx-modialog/plugins/bootstrap"; import { IntegrationService } from "../shared/integration.service"; export class ConfigModalContext extends BSModalContext { diff --git a/web/app/riot/riot.component.ts b/web/app/riot/riot.component.ts index 2094a7c..8a123ff 100644 --- a/web/app/riot/riot.component.ts +++ b/web/app/riot/riot.component.ts @@ -6,7 +6,7 @@ import { ToasterService } from "angular2-toaster"; import { Integration } from "../shared/models/integration"; import { IntegrationService } from "../shared/integration.service"; import * as _ from "lodash"; -import { WIDGET_DIM_CUSTOM, WIDGET_DIM_YOUTUBE, WIDGET_DIM_TWITCH, WIDGET_DIM_ETHERPAD } from "../shared/models/widget"; +import { WIDGET_DIM_CUSTOM, WIDGET_DIM_ETHERPAD, WIDGET_DIM_TWITCH, WIDGET_DIM_YOUTUBE } from "../shared/models/widget"; import { IntegrationComponent } from "../integration/integration.component"; @Component({ diff --git a/web/app/shared/models/integration.ts b/web/app/shared/models/integration.ts index 075de23..c1b13b3 100644 --- a/web/app/shared/models/integration.ts +++ b/web/app/shared/models/integration.ts @@ -14,18 +14,18 @@ export interface Integration { export interface RSSIntegration extends Integration { feeds: string[]; - immutableFeeds: {url: string, ownerId: string}[]; + immutableFeeds: { url: string, ownerId: string }[]; } export interface TravisCiIntegration extends Integration { - repoTemplates: {repoKey: string, template: string, newTemplate: string}[]; // newTemplate is local - immutableRepoTemplates: {repoKey: string, template: string, ownerId: string}[]; + repoTemplates: { repoKey: string, template: string, newTemplate: string }[]; // newTemplate is local + immutableRepoTemplates: { repoKey: string, template: string, ownerId: string }[]; webhookUrl: string; // immutable } export interface IRCIntegration extends Integration { - availableNetworks: {name: string, id: string}[]; - channels: {[networkId: string]: string[]}; + availableNetworks: { name: string, id: string }[]; + channels: { [networkId: string]: string[] }; } export interface EtherpadWidgetIntegration extends Integration { diff --git a/web/app/shared/models/scalar_responses.ts b/web/app/shared/models/scalar_responses.ts index cc6024a..3c15674 100644 --- a/web/app/shared/models/scalar_responses.ts +++ b/web/app/shared/models/scalar_responses.ts @@ -11,11 +11,11 @@ export interface ScalarUserResponse extends ScalarRoomResponse { } export interface ScalarErrorResponse extends ScalarResponse { - response: {error: {message: string, _error: Error}}; + response: { error: { message: string, _error: Error } }; } export interface ScalarSuccessResponse extends ScalarResponse { - response: {success: boolean}; + response: { success: boolean }; } export interface MembershipStateResponse extends ScalarUserResponse { diff --git a/web/app/shared/scalar.service.ts b/web/app/shared/scalar.service.ts index 6fc2f71..f8d908d 100644 --- a/web/app/shared/scalar.service.ts +++ b/web/app/shared/scalar.service.ts @@ -1,9 +1,9 @@ import { Injectable } from "@angular/core"; import * as randomString from "random-string"; import { + JoinRuleStateResponse, MembershipStateResponse, ScalarSuccessResponse, - JoinRuleStateResponse, WidgetsResponse } from "./models/scalar_responses"; import { Widget } from "./models/widget"; @@ -11,9 +11,9 @@ import { Widget } from "./models/widget"; @Injectable() export class ScalarService { - private static actionMap: {[key: string]: {resolve: (obj: any) => void, reject: (obj: any) => void}} = {}; + private static actionMap: { [key: string]: { resolve: (obj: any) => void, reject: (obj: any) => void } } = {}; - public static getAndRemoveActionHandler(requestKey: string): {resolve: (obj: any) => void, reject: (obj: any) => void} { + public static getAndRemoveActionHandler(requestKey: string): { resolve: (obj: any) => void, reject: (obj: any) => void } { let handler = ScalarService.actionMap[requestKey]; ScalarService.actionMap[requestKey] = null; return handler; diff --git a/web/app/shared/toggle-fullscreen.directive.ts b/web/app/shared/toggle-fullscreen.directive.ts index bc33735..ef1fb87 100644 --- a/web/app/shared/toggle-fullscreen.directive.ts +++ b/web/app/shared/toggle-fullscreen.directive.ts @@ -6,7 +6,8 @@ import * as screenfull from "screenfull"; }) export class ToggleFullscreenDirective { - @HostListener("click") onClick() { + @HostListener("click") + onClick() { // HACK: This should be behind a service in the event the library changes if (screenfull.enabled) { screenfull.toggle();