2017-05-27 03:51:48 +00:00
|
|
|
import { Component } from "@angular/core";
|
|
|
|
|
|
|
|
@Component({
|
2017-08-27 05:26:00 +00:00
|
|
|
selector: "my-home",
|
|
|
|
templateUrl: "./home.component.html",
|
|
|
|
styleUrls: ["./home.component.scss"],
|
2017-05-27 03:51:48 +00:00
|
|
|
})
|
|
|
|
export class HomeComponent {
|
|
|
|
|
2017-12-23 23:20:59 +00:00
|
|
|
public hostname: string = window.location.origin;
|
2017-12-24 02:45:34 +00:00
|
|
|
public integrationsConfig = `
|
2017-12-23 23:20:59 +00:00
|
|
|
"integrations_ui_url": "${this.hostname}/riot",
|
|
|
|
"integrations_rest_url": "${this.hostname}/api/v1/scalar",
|
|
|
|
"integrations_widgets_urls": ["${this.hostname}/widgets"],
|
|
|
|
`;
|
|
|
|
|
2017-05-27 03:51:48 +00:00
|
|
|
constructor() {
|
|
|
|
// Do stuff
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|