mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-22 20:17:13 +00:00
removed landingpage
This commit is contained in:
parent
a2022fbbac
commit
b298caf9ff
@ -1,3 +0,0 @@
|
||||
.selfServeComponentContainer {
|
||||
margin: 10;
|
||||
}
|
@ -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);
|
@ -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>
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user