mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
23 lines
689 B
TypeScript
23 lines
689 B
TypeScript
import { Component } from "@angular/core";
|
|
|
|
@Component({
|
|
selector: "my-home",
|
|
templateUrl: "./home.component.html",
|
|
styleUrls: ["./home.component.scss"],
|
|
})
|
|
export class HomeComponent {
|
|
public hostname: string = window.location.origin;
|
|
public showPromoPage = this.hostname === "https://dimension.t2bot.io";
|
|
|
|
public integrationsConfig =
|
|
`` +
|
|
`"integrations_ui_url": "${this.hostname}/element",\n` +
|
|
`"integrations_rest_url": "${this.hostname}/api/v1/scalar",\n` +
|
|
`"integrations_widgets_urls": ["${this.hostname}/widgets"],\n` +
|
|
`"integrations_jitsi_widget_url": "${this.hostname}/widgets/jitsi",\n`;
|
|
|
|
constructor() {
|
|
// Do stuff
|
|
}
|
|
}
|