2017-05-26 23:51:48 -04:00
|
|
|
import { Component } from "@angular/core";
|
|
|
|
|
|
|
|
@Component({
|
2017-08-27 01:26:00 -04:00
|
|
|
selector: "my-home",
|
|
|
|
templateUrl: "./home.component.html",
|
|
|
|
styleUrls: ["./home.component.scss"],
|
2017-05-26 23:51:48 -04:00
|
|
|
})
|
|
|
|
export class HomeComponent {
|
|
|
|
|
2017-12-23 18:20:59 -05:00
|
|
|
public hostname: string = window.location.origin;
|
2018-03-24 21:58:01 -04:00
|
|
|
public showPromoPage = this.hostname === "https://dimension.t2bot.io";
|
|
|
|
|
|
|
|
public integrationsConfig = `` +
|
2020-07-15 20:24:23 -04:00
|
|
|
`"integrations_ui_url": "${this.hostname}/element",\n` +
|
2018-03-24 21:58:01 -04:00
|
|
|
`"integrations_rest_url": "${this.hostname}/api/v1/scalar",\n` +
|
2018-07-30 23:55:27 -04:00
|
|
|
`"integrations_widgets_urls": ["${this.hostname}/widgets"],\n` +
|
|
|
|
`"integrations_jitsi_widget_url": "${this.hostname}/widgets/jitsi",\n`;
|
2018-03-24 21:58:01 -04:00
|
|
|
|
2017-05-26 23:51:48 -04:00
|
|
|
constructor() {
|
|
|
|
// Do stuff
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|