removed landingpage

This commit is contained in:
Srinath Narayanan
2020-12-21 03:44:46 -08:00
parent a2022fbbac
commit b298caf9ff
4 changed files with 1 additions and 55 deletions

View File

@@ -1,3 +0,0 @@
.selfServeComponentContainer {
margin: 10;
}

View File

@@ -1,33 +0,0 @@
import "bootstrap/dist/css/bootstrap.css";
import { initializeIcons } from "office-ui-fabric-react/lib/Icons";
import React from "react";
import * as ReactDOM from "react-dom";
import { initializeConfiguration } from "../ConfigContext";
import { Descriptor, SmartUiComponent } from "../Explorer/Controls/SmartUi/SmartUiComponent";
import { getSelfServeType, SelfServeTypes } from "./SelfServeUtils";
import { SqlX } from "./SqlX/SqlX";
const getDescriptor = (selfServeType : SelfServeTypes) : Descriptor => {
switch (selfServeType) {
case SelfServeTypes.sqlx:
return SqlX.toSmartUiDescriptor()
default:
return undefined;
}
}
const render = async () => {
initializeIcons();
await initializeConfiguration();
const selfServeType = getSelfServeType(window.location.search)
const smartUiDescriptor = getDescriptor(selfServeType)
const element = smartUiDescriptor ?
<SmartUiComponent descriptor={smartUiDescriptor} /> :
<h1>Invalid self serve type!</h1>
ReactDOM.render(element, document.getElementById("selfServeContent"));
};
// Entry point
window.addEventListener("load", render);

View File

@@ -1,12 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="height=device-height, width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="images/CosmosDB_rgb_ui_lighttheme.ico" type="image/x-icon" />
</head>
<body>
<div class="selfServeComponentContainer" id="selfServeContent"></div>
</body>
</html>