Initial Move from Azure DevOps to GitHub

This commit is contained in:
Steve Faulkner
2020-05-25 21:30:55 -05:00
commit 36581fb6d9
986 changed files with 195242 additions and 0 deletions

33
src/Index.ts Normal file
View File

@@ -0,0 +1,33 @@
import "../less/index.less";
import "./Libs/jquery";
import * as ko from "knockout";
import { CorrelationBackend } from "./Common/Constants";
import Ajax from "./Shared/Ajax";
class Index {
public navigationSelection: ko.Observable<string>;
public correlationSrc: ko.Observable<string>;
constructor() {
this.navigationSelection = ko.observable("quickstart");
this.correlationSrc = ko.observable("");
Ajax.get("/_explorer/installation_id.txt").then(result => {
// TODO: Detect correct URL for each environment automatically.
const url: string = `${CorrelationBackend.Url}?emulator_id=${result}`;
this.correlationSrc(url);
});
}
public quickstart_click() {
this.navigationSelection("quickstart");
}
public explorer_click() {
this.navigationSelection("explorer");
}
}
var index = new Index();
ko.applyBindings(index);