Compare commits

...

1 Commits

Author SHA1 Message Date
Sweatha Viswanathan
35b15a1e20 Container pool changes to plumb auth 2021-01-05 17:23:11 -08:00
6 changed files with 295 additions and 817 deletions

1092
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -6,15 +6,15 @@
"dependencies": { "dependencies": {
"@azure/arm-cosmosdb": "9.1.0", "@azure/arm-cosmosdb": "9.1.0",
"@azure/cosmos": "3.9.0", "@azure/cosmos": "3.9.0",
"@azure/identity": "1.1.0",
"@azure/cosmos-language-service": "0.0.5", "@azure/cosmos-language-service": "0.0.5",
"@azure/identity": "1.1.0",
"@jupyterlab/services": "6.0.0-rc.2", "@jupyterlab/services": "6.0.0-rc.2",
"@jupyterlab/terminal": "3.0.0-rc.2", "@jupyterlab/terminal": "3.0.0-rc.2",
"@microsoft/applicationinsights-web": "2.5.9", "@microsoft/applicationinsights-web": "2.5.9",
"@nteract/commutable": "7.3.2", "@nteract/commutable": "7.3.2",
"@nteract/connected-components": "6.8.2", "@nteract/connected-components": "6.8.2",
"@nteract/core": "15.1.0", "@nteract/core": "15.1.0",
"@nteract/data-explorer": "8.0.3", "@nteract/data-explorer": "8.2.9",
"@nteract/directory-listing": "2.0.6", "@nteract/directory-listing": "2.0.6",
"@nteract/dropdown-menu": "1.0.1", "@nteract/dropdown-menu": "1.0.1",
"@nteract/editor": "10.1.2", "@nteract/editor": "10.1.2",

View File

@@ -39,6 +39,10 @@ export class NotebookTerminalComponent extends React.Component<NotebookTerminalC
params.set(TerminalQueryParams.TerminalEndpoint, terminalEndpoint); params.set(TerminalQueryParams.TerminalEndpoint, terminalEndpoint);
} }
params.set("account","contoso-retail-mongodb");
params.set("port","10255");
//tofill
params.set("token","");
return params; return params;
} }

View File

@@ -350,7 +350,9 @@ export const launchWebSocketKernelEpic = (
} as any, } as any,
name: "", name: "",
path: content.filepath.replace(/^\/+/g, ""), path: content.filepath.replace(/^\/+/g, ""),
type: "notebook" type: "notebook",
endpoint:"https://dech-notebooks-demo-7.documents.azure.com:443/",
token:"" //to fill
}; };
return sessions.create(serverConfig, sessionPayload).pipe( return sessions.create(serverConfig, sessionPayload).pipe(

View File

@@ -23,10 +23,14 @@ const createServerSettings = (urlVars: { [key: string]: string }): ServerConnect
let headers: HeadersInit; let headers: HeadersInit;
if (urlVars.hasOwnProperty(TerminalQueryParams.TerminalEndpoint)) { if (urlVars.hasOwnProperty(TerminalQueryParams.TerminalEndpoint)) {
body = JSON.stringify({ body = JSON.stringify({
endpoint: urlVars[TerminalQueryParams.TerminalEndpoint] endpoint: urlVars[TerminalQueryParams.TerminalEndpoint],
account:"contoso-retail-mongodb",
port: "10255",
token:"" //tofill
}); });
headers = { headers = {
[HttpHeaders.contentType]: "application/json" [HttpHeaders.contentType]: "application/json"
//"Access-Control-Allow-Origin": "https://localhost:5001"
}; };
} }

View File

@@ -92,7 +92,7 @@ module.exports = function(env = {}, argv = {}) {
const rules = [fontRule, lessRule, imagesRule, cssRule, htmlRule, typescriptRule]; const rules = [fontRule, lessRule, imagesRule, cssRule, htmlRule, typescriptRule];
const envVars = { const envVars = {
GIT_SHA: gitSha, GIT_SHA: gitSha,
PORT: process.env.PORT || "1234" PORT: process.env.PORT || "2223"
}; };
if (mode === "production") { if (mode === "production") {