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>

View File

@ -165,11 +165,6 @@ module.exports = function(env = {}, argv = {}) {
template: "src/connectToGitHub.html",
chunks: ["connectToGitHub"]
}),
new HtmlWebpackPlugin({
filename: "selfServe.html",
template: "src/SelfServe/selfServe.html",
chunks: ["selfServe"]
}),
new MonacoWebpackPlugin(),
new CopyWebpackPlugin({
patterns: [{ from: "DataExplorer.nuspec" }, { from: "web.config" }, { from: "quickstart/*.zip" }]
@ -193,8 +188,7 @@ module.exports = function(env = {}, argv = {}) {
terminal: "./src/Terminal/index.ts",
notebookViewer: "./src/NotebookViewer/NotebookViewer.tsx",
galleryViewer: "./src/GalleryViewer/GalleryViewer.tsx",
connectToGitHub: "./src/GitHub/GitHubConnector.ts",
selfServe: "./src/SelfServe/SelfServe.tsx"
connectToGitHub: "./src/GitHub/GitHubConnector.ts"
},
node: {
util: true,