Compare commits
No commits in common. "main" and "score" have entirely different histories.
143
code-payload.js
143
code-payload.js
|
|
@ -6,7 +6,7 @@
|
|||
// @require http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js
|
||||
// @grant GM_addStyle
|
||||
// @grant GM_setClipboard
|
||||
// @version 0.0.13
|
||||
// @version 0.0.6
|
||||
// ==/UserScript==
|
||||
|
||||
// draw frame
|
||||
|
|
@ -56,11 +56,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
"auth",
|
||||
"compute",
|
||||
"jobs",
|
||||
"dlt",
|
||||
"odbc",
|
||||
"sql",
|
||||
"webapp",
|
||||
"accountConsole"
|
||||
"webapp"
|
||||
];
|
||||
|
||||
var regionArray = [
|
||||
|
|
@ -90,7 +88,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
"southcentralus",
|
||||
"southeastasia",
|
||||
"southindia",
|
||||
"swedencentral",
|
||||
"switzerlandnorth",
|
||||
"switzerlandwest",
|
||||
"uaenorth",
|
||||
|
|
@ -120,12 +117,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
var authGroup = $("div.form-group").filter(":contains('Authentication')");
|
||||
var computeGroup = $("div.form-group").filter(":contains('Compute Service')");
|
||||
var jobsGroup = $("div.form-group").filter(":contains('Jobs Service')");
|
||||
var dltGroup = $("div.form-group").filter(":contains('Delta Live Tables')");
|
||||
var odbcGroup = $("div.form-group").filter(":contains('ODBC/JDBC Service')");
|
||||
var webappGroup = $("div.form-group").filter(":contains('User Interface')");
|
||||
var sqlGroup = $("div.form-group").filter(":contains('Databricks SQL')");
|
||||
var accountConsoleGroup = $("div.form-group").filter(":contains('Account Console')");
|
||||
|
||||
|
||||
// write component HTML template
|
||||
var componentsHTML = '<center>' +
|
||||
|
|
@ -135,11 +129,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
'<button id="authButton">Auth</button>' +
|
||||
'<button id="computeButton" type="button">Compute</button>' +
|
||||
'<button id="jobsButton" type="button">Jobs</button>' +
|
||||
'<button id="dltButton" type="button">DLT</button>' +
|
||||
'<button id="odbcButton" type="button">ODBC/JDBC</button>' +
|
||||
'<button id="webappButton" type="button">Webapp</button>' +
|
||||
'<button id="sqlButton" type="button">SQL</button>' +
|
||||
'<button id="accountConsoleButton" type="button">Accounts</button>' +
|
||||
'</center></br></br>';
|
||||
|
||||
// regional functions
|
||||
|
|
@ -179,11 +171,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
var buttonRegions = ["westindia"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function swedencentralButtonClickAction(zEvent) {
|
||||
var buttonName = "swedencentralButton";
|
||||
var buttonRegions = ["swedencentral"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function switzerlandnorthButtonClickAction(zEvent) {
|
||||
var buttonName = "switzerlandnorthButton";
|
||||
var buttonRegions = ["switzerlandnorth"];
|
||||
|
|
@ -381,7 +368,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
};
|
||||
function stage1ButtonClickAction(zEvent) {
|
||||
var buttonName = "stage1Button";
|
||||
var buttonRegions = ["canadacentral", "canadaeast", "centralindia", "southindia", "westindia", "swedencentral", "switzerlandnorth", "switzerlandwest", "norwayeast", "germanywestcentral"];
|
||||
var buttonRegions = ["canadacentral", "canadaeast", "centralindia", "southindia", "westindia", "switzerlandnorth", "switzerlandwest", "norwayeast", "germanywestcentral"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function stage1point5ButtonClickAction(zEvent) {
|
||||
|
|
@ -432,10 +419,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
toggleComponent("jobs");
|
||||
toggleButtonColor("jobsButton");
|
||||
};
|
||||
function dltButtonClickAction(zEvent) {
|
||||
toggleComponent("dlt");
|
||||
toggleButtonColor("dltButton");
|
||||
};
|
||||
function odbcButtonClickAction(zEvent) {
|
||||
toggleComponent("odbc");
|
||||
toggleButtonColor("odbcButton");
|
||||
|
|
@ -448,11 +431,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
toggleComponent("sql");
|
||||
toggleButtonColor("sqlButton");
|
||||
};
|
||||
function accountConsoleButtonClickAction(zEvent) {
|
||||
toggleComponent("accountConsole");
|
||||
toggleButtonColor("accountConsoleButton");
|
||||
};
|
||||
|
||||
|
||||
// profile management functions
|
||||
function loadDataplanes() {
|
||||
|
|
@ -466,9 +444,8 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
'<button id="southindiaButton" style="width:156px" type="button">South India</button>' +
|
||||
'<button id="westindiaButton" style="width:156px" type="button">West India</button>' +
|
||||
'</br>' +
|
||||
'<button id="swedencentralButton" style="width:156px" type="button">Sweden Central</button>' +
|
||||
'<button id="switzerlandnorthButton" style="width:156px" type="button">Switzerland North</button>' +
|
||||
'<button id="switzerlandwestButton" style="width:156px" type="button">Switzerland West</button>' +
|
||||
'<button id="switzerlandnorthButton" style="width:234px" type="button">Switzerland North</button>' +
|
||||
'<button id="switzerlandwestButton" style="width:234px" type="button">Switzerland West</button>' +
|
||||
'</br>' +
|
||||
'<button id="norwayeastButton" style="width:234px" type="button">Norway East</button>' +
|
||||
'<button id="germanywestcentralButton" style="width:234px" type="button">Germany West Central</button>' +
|
||||
|
|
@ -545,7 +522,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
"southcentralus",
|
||||
"southeastasia",
|
||||
"southindia",
|
||||
"swedencentral",
|
||||
"switzerlandnorth",
|
||||
"switzerlandwest",
|
||||
"uaenorth",
|
||||
|
|
@ -567,7 +543,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
document.getElementById("centralindiaButton").addEventListener("click", centralindiaButtonClickAction, false);
|
||||
document.getElementById("southindiaButton").addEventListener("click", southindiaButtonClickAction, false);
|
||||
document.getElementById("westindiaButton").addEventListener("click", westindiaButtonClickAction, false);
|
||||
document.getElementById("swedencentralButton").addEventListener("click", swedencentralButtonClickAction, false);
|
||||
document.getElementById("switzerlandnorthButton").addEventListener("click", switzerlandnorthButtonClickAction, false);
|
||||
document.getElementById("switzerlandwestButton").addEventListener("click", switzerlandwestButtonClickAction, false);
|
||||
document.getElementById("norwayeastButton").addEventListener("click", norwayeastButtonClickAction, false);
|
||||
|
|
@ -613,11 +588,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
document.getElementById("authButton").addEventListener("click", authButtonClickAction, false);
|
||||
document.getElementById("computeButton").addEventListener("click", computeButtonClickAction, false);
|
||||
document.getElementById("jobsButton").addEventListener("click", jobsButtonClickAction, false);
|
||||
document.getElementById("dltButton").addEventListener("click", dltButtonClickAction, false);
|
||||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -631,9 +604,8 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
'<button id="canadacentralButton" style="width:234px" type="button">Canada Central</button>' +
|
||||
'<button id="centralindiaButton" style="width:234px" type="button">Central India</button>' +
|
||||
'</br>' +
|
||||
'<button id="swedencentralButton" style="width:156px" type="button">Sweden Central</button>' +
|
||||
'<button id="switzerlandnorthButton" style="width:156px" type="button">Switzerland North</button>' +
|
||||
'<button id="switzerlandwestButton" style="width:156px" type="button">Switzerland West</button>' +
|
||||
'<button id="switzerlandnorthButton" style="width:234px" type="button">Switzerland North</button>' +
|
||||
'<button id="switzerlandwestButton" style="width:234px" type="button">Switzerland West</button>' +
|
||||
'</br>' +
|
||||
'<button id="norwayeastButton" style="width:234px" type="button">Norway East</button>' +
|
||||
'<button id="germanywestcentralButton" style="width:234px" type="button">Germany West Central</button>' +
|
||||
|
|
@ -682,7 +654,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
"norwayeast",
|
||||
"southafricanorth",
|
||||
"southeastasia",
|
||||
"swedencentral",
|
||||
"switzerlandnorth",
|
||||
"switzerlandwest",
|
||||
"uaenorth",
|
||||
|
|
@ -698,7 +669,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
|
||||
// regional listeners
|
||||
document.getElementById("canadacentralButton").addEventListener("click", canadacentralCPButtonClickAction, false);
|
||||
document.getElementById("swedencentralButton").addEventListener("click", swedencentralButtonClickAction, false);
|
||||
document.getElementById("switzerlandnorthButton").addEventListener("click", switzerlandnorthButtonClickAction, false);
|
||||
document.getElementById("switzerlandwestButton").addEventListener("click", switzerlandwestButtonClickAction, false);
|
||||
document.getElementById("centralindiaButton").addEventListener("click", centralindiaCPButtonClickAction, false);
|
||||
|
|
@ -733,11 +703,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
document.getElementById("authButton").addEventListener("click", authButtonClickAction, false);
|
||||
document.getElementById("computeButton").addEventListener("click", computeButtonClickAction, false);
|
||||
document.getElementById("jobsButton").addEventListener("click", jobsButtonClickAction, false);
|
||||
document.getElementById("dltButton").addEventListener("click", dltButtonClickAction, false);
|
||||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -797,11 +765,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
document.getElementById("authButton").addEventListener("click", authButtonClickAction, false);
|
||||
document.getElementById("computeButton").addEventListener("click", computeButtonClickAction, false);
|
||||
document.getElementById("jobsButton").addEventListener("click", jobsButtonClickAction, false);
|
||||
document.getElementById("dltButton").addEventListener("click", dltButtonClickAction, false);
|
||||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -854,15 +820,12 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
"auth",
|
||||
"compute",
|
||||
"jobs",
|
||||
"dlt",
|
||||
"odbc",
|
||||
"sql",
|
||||
"webapp",
|
||||
"accountConsole"
|
||||
"webapp"
|
||||
];
|
||||
var regionArray = [
|
||||
"ap-northeast-1",
|
||||
"ap-northeast-2",
|
||||
"ap-south-1",
|
||||
"ap-southeast-1",
|
||||
"ap-southeast-2",
|
||||
|
|
@ -893,11 +856,9 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
var authGroup = $("div.form-group").filter(":contains('Authentication')");
|
||||
var computeGroup = $("div.form-group").filter(":contains('Compute Service')");
|
||||
var jobsGroup = $("div.form-group").filter(":contains('Jobs Service')");
|
||||
var dltGroup = $("div.form-group").filter(":contains('Delta Live Tables')");
|
||||
var odbcGroup = $("div.form-group").filter(":contains('ODBC/JDBC Service')");
|
||||
var webappGroup = $("div.form-group").filter(":contains('User Interface')");
|
||||
var sqlGroup = $("div.form-group").filter(":contains('Databricks SQL')");
|
||||
var accountConsoleGroup = $("div.form-group").filter(":contains('Account Console')");
|
||||
var ceGroup = $("div.form-group").filter(":contains('Community Edition')");
|
||||
|
||||
// write component HTML template
|
||||
|
|
@ -908,11 +869,9 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
'<button id="authButton">Auth</button>' +
|
||||
'<button id="computeButton" type="button">Compute</button>' +
|
||||
'<button id="jobsButton" type="button">Jobs</button>' +
|
||||
'<button id="dltButton" type="button">DLT</button>' +
|
||||
'<button id="odbcButton" type="button">ODBC/JDBC</button>' +
|
||||
'<button id="webappButton" type="button">Webapp</button>' +
|
||||
'<button id="sqlButton" type="button">SQL</button>' +
|
||||
'<button id="accountConsoleButton" type="button">Accounts</button>' +
|
||||
'</center></br>';
|
||||
|
||||
// regional functions
|
||||
|
|
@ -976,11 +935,6 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
var buttonRegions = ["ap-northeast-1"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function apnortheast2ButtonClickAction(zEvent) {
|
||||
var buttonName = "apnortheast2Button";
|
||||
var buttonRegions = ["ap-northeast-2"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function euwest1ButtonClickAction(zEvent) {
|
||||
var buttonName = "euwest1Button";
|
||||
var buttonRegions = ["eu-west-1"];
|
||||
|
|
@ -1003,7 +957,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
};
|
||||
function stage3amButtonClickAction(zEvent) {
|
||||
var buttonName = "stage3amButton";
|
||||
var buttonRegions = ["ap-south-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"];
|
||||
var buttonRegions = ["ap-south-1", "ap-southeast-2", "ap-northeast-1"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function stage3pmButtonClickAction(zEvent) {
|
||||
|
|
@ -1029,10 +983,6 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
toggleComponent("jobs");
|
||||
toggleButtonColor("jobsButton");
|
||||
};
|
||||
function dltButtonClickAction(zEvent) {
|
||||
toggleComponent("dlt");
|
||||
toggleButtonColor("dltButton");
|
||||
};
|
||||
function odbcButtonClickAction(zEvent) {
|
||||
toggleComponent("odbc");
|
||||
toggleButtonColor("odbcButton");
|
||||
|
|
@ -1045,10 +995,6 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
toggleComponent("sql");
|
||||
toggleButtonColor("sqlButton");
|
||||
};
|
||||
function accountConsoleButtonClickAction(zEvent) {
|
||||
toggleComponent("accountConsole");
|
||||
toggleButtonColor("accountConsoleButton");
|
||||
};
|
||||
|
||||
// profile management functions
|
||||
function loadDataplanes() {
|
||||
|
|
@ -1068,10 +1014,9 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
'</br>' +
|
||||
'<button id="apsoutheast1Button" style="width:468px" type="button">ap-southeast-1</button>' +
|
||||
'</br></br>' +
|
||||
'<button id="apsouth1Button" style="width:117px" type="button">ap-south-1</button>' +
|
||||
'<button id="apsoutheast2Button" style="width:117px" type="button">ap-southeast-2</button>' +
|
||||
'<button id="apnortheast1Button" style="width:117px" type="button">ap-northeast-1</button>' +
|
||||
'<button id="apnortheast2Button" style="width:117px" type="button">ap-northeast-2</button>' +
|
||||
'<button id="apsouth1Button" style="width:156px" type="button">ap-south-1</button>' +
|
||||
'<button id="apsoutheast2Button" style="width:156px" type="button">ap-southeast-2</button>' +
|
||||
'<button id="apnortheast1Button" style="width:156px" type="button">ap-northeast-1</button>' +
|
||||
'</br></br>' +
|
||||
'<button id="euwest1Button" style="width:468px" type="button">eu-west-1</button>' +
|
||||
'</center>';
|
||||
|
|
@ -1084,7 +1029,6 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
// array of active buttons
|
||||
buttonArray = [
|
||||
"apnortheast1",
|
||||
"apnortheast2",
|
||||
"apsouth1",
|
||||
"apsoutheast1",
|
||||
"apsoutheast2",
|
||||
|
|
@ -1114,7 +1058,6 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false);
|
||||
document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false);
|
||||
document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false);
|
||||
document.getElementById("apnortheast2Button").addEventListener("click", apnortheast2ButtonClickAction, false);
|
||||
document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false);
|
||||
document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false);
|
||||
|
||||
|
|
@ -1130,11 +1073,9 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
document.getElementById("authButton").addEventListener("click", authButtonClickAction, false);
|
||||
document.getElementById("computeButton").addEventListener("click", computeButtonClickAction, false);
|
||||
document.getElementById("jobsButton").addEventListener("click", jobsButtonClickAction, false);
|
||||
document.getElementById("dltButton").addEventListener("click", dltButtonClickAction, false);
|
||||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -1155,10 +1096,9 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
'<button id="useast2Button" style="width:117px" type="button">us-east-2</button>' +
|
||||
'<button id="apsoutheast1Button" style="width:117px" type="button">ap-southeast-1</button>' +
|
||||
'</br></br>' +
|
||||
'<button id="apsouth1Button" style="width:117px" type="button">ap-south-1</button>' +
|
||||
'<button id="apsoutheast2Button" style="width:117px" type="button">ap-southeast-2</button>' +
|
||||
'<button id="apnortheast1Button" style="width:117px" type="button">ap-northeast-1</button>' +
|
||||
'<button id="apnortheast2Button" style="width:117px" type="button">ap-northeast-2</button>' +
|
||||
'<button id="apsouth1Button" style="width:156px" type="button">ap-south-1</button>' +
|
||||
'<button id="apsoutheast2Button" style="width:156px" type="button">ap-southeast-2</button>' +
|
||||
'<button id="apnortheast1Button" style="width:156px" type="button">ap-northeast-1</button>' +
|
||||
'</br></br>' +
|
||||
'<button id="euwest1Button" style="width:468px" type="button">eu-west-1</button>' +
|
||||
'</center>';
|
||||
|
|
@ -1171,7 +1111,6 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
// array of active buttons
|
||||
buttonArray = [
|
||||
"apnortheast1",
|
||||
"apnortheast2",
|
||||
"apsouth1",
|
||||
"apsoutheast1",
|
||||
"apsoutheast2",
|
||||
|
|
@ -1199,7 +1138,6 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false);
|
||||
document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false);
|
||||
document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false);
|
||||
document.getElementById("apnortheast2Button").addEventListener("click", apnortheast2ButtonClickAction, false);
|
||||
document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false);
|
||||
document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false);
|
||||
|
||||
|
|
@ -1215,11 +1153,9 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
document.getElementById("authButton").addEventListener("click", authButtonClickAction, false);
|
||||
document.getElementById("computeButton").addEventListener("click", computeButtonClickAction, false);
|
||||
document.getElementById("jobsButton").addEventListener("click", jobsButtonClickAction, false);
|
||||
document.getElementById("dltButton").addEventListener("click", dltButtonClickAction, false);
|
||||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -1269,11 +1205,9 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
document.getElementById("authButton").addEventListener("click", authButtonClickAction, false);
|
||||
document.getElementById("computeButton").addEventListener("click", computeButtonClickAction, false);
|
||||
document.getElementById("jobsButton").addEventListener("click", jobsButtonClickAction, false);
|
||||
document.getElementById("dltButton").addEventListener("click", dltButtonClickAction, false);
|
||||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -1325,8 +1259,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
"jobs",
|
||||
"odbc",
|
||||
"sql",
|
||||
"webapp",
|
||||
"accountConsole"
|
||||
"webapp"
|
||||
];
|
||||
var regionArray = [
|
||||
"australia-southeast1",
|
||||
|
|
@ -1337,8 +1270,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
"us-east1",
|
||||
"us-east4",
|
||||
"us-west1",
|
||||
"us-west4",
|
||||
"europe-west3"
|
||||
"us-west4"
|
||||
];
|
||||
var buttonArray = [];
|
||||
|
||||
|
|
@ -1359,8 +1291,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
var odbcGroup = $("div.form-group").filter(":contains('ODBC/JDBC Service')");
|
||||
var webappGroup = $("div.form-group").filter(":contains('User Interface')");
|
||||
var sqlGroup = $("div.form-group").filter(":contains('Databricks SQL')");
|
||||
var accountConsoleGroup = $("div.form-group").filter(":contains('Account Console')");
|
||||
|
||||
|
||||
// write component HTML template
|
||||
var componentsHTML = '<center>' +
|
||||
|
|
@ -1373,7 +1303,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
'<button id="odbcButton" type="button">ODBC/JDBC</button>' +
|
||||
'<button id="webappButton" type="button">Webapp</button>' +
|
||||
'<button id="sqlButton" type="button">SQL</button>' +
|
||||
'<button id="accountConsoleButton" type="button">Accounts</button>' +
|
||||
'</center></br></br>';
|
||||
|
||||
// regional functions
|
||||
|
|
@ -1422,11 +1351,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
var buttonRegions = ["us-west4"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function europewest3ButtonClickAction(zEvent) {
|
||||
var buttonName = "europewest3Button";
|
||||
var buttonRegions = ["europe-west3"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function stage1ButtonClickAction(zEvent) {
|
||||
var buttonName = "stage1Button";
|
||||
var buttonRegions = ["europe-west1"];
|
||||
|
|
@ -1444,7 +1368,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
};
|
||||
function stage3pmButtonClickAction(zEvent) {
|
||||
var buttonName = "stage3pmButton";
|
||||
var buttonRegions = ["us-west4", "europe-west3"];
|
||||
var buttonRegions = ["us-west4"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
|
||||
|
|
@ -1477,10 +1401,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
toggleComponent("sql");
|
||||
toggleButtonColor("sqlButton");
|
||||
};
|
||||
function sqlButtonClickAction(zEvent) {
|
||||
toggleComponent("accountConsole");
|
||||
toggleButtonColor("accountConsoleButton");
|
||||
};
|
||||
|
||||
function loadControlplanes() {
|
||||
currentMode = "controlplane";
|
||||
|
|
@ -1498,8 +1418,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
'<button id="australiasoutheast1Button" style="width:234px" type="button">Australia-Southeast1</button>' +
|
||||
'<button id="asiasoutheast1Button" style="width:234px" type="button">Asia-Southeast1</button>' +
|
||||
'</br></br>' +
|
||||
'<button id="uswest4Button" style="width:234px" type="button">US-West4</button>' +
|
||||
'<button id="europewest3Button" style="width:234px" type="button">EU-West3</button>' +
|
||||
'<button id="uswest4Button" style="width:468px" type="button">US-West4</button>' +
|
||||
'</br></center>'
|
||||
;
|
||||
zNode.innerHTML = profilesHTML + '<hr class="solid">' + controlplaneHTML + '<hr class="solid">' + componentsHTML + auxHTML;
|
||||
|
|
@ -1517,8 +1436,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
"useast1",
|
||||
"useast4",
|
||||
"uswest1",
|
||||
"uswest4",
|
||||
"europewest3"
|
||||
"uswest4"
|
||||
];
|
||||
if (debugFlag == true) {
|
||||
console.log("buttonArray: " + buttonArray);
|
||||
|
|
@ -1537,7 +1455,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
document.getElementById("useast4Button").addEventListener("click", useast4ButtonClickAction, false);
|
||||
document.getElementById("uswest1Button").addEventListener("click", uswest1ButtonClickAction, false);
|
||||
document.getElementById("uswest4Button").addEventListener("click", uswest4ButtonClickAction, false);
|
||||
document.getElementById("europewest3Button").addEventListener("click", europewest3ButtonClickAction, false);
|
||||
|
||||
// profile listeners
|
||||
document.getElementById("controlplanesButton").addEventListener("click", controlplanesButtonClickAction, false);
|
||||
|
|
@ -1553,7 +1470,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -1606,7 +1522,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -1768,22 +1683,12 @@ function checkButtonColor(buttonName) {
|
|||
return color;
|
||||
};
|
||||
function selectCheckbox(box) {
|
||||
try {
|
||||
box.filter("A")[0].classList.add("checked");
|
||||
box.filter("INPUT")[0].checked = true;
|
||||
} catch (e) {
|
||||
console.log(box + " does not appear to exist");
|
||||
}
|
||||
|
||||
box.filter("A")[0].classList.add("checked");
|
||||
box.filter("INPUT")[0].checked = true;
|
||||
};
|
||||
function deselectCheckbox(box) {
|
||||
try {
|
||||
box.filter("A")[0].classList.remove("checked");
|
||||
box.filter("INPUT")[0].checked = false;
|
||||
} catch (e) {
|
||||
console.log(box + " does not appear to exist");
|
||||
}
|
||||
|
||||
box.filter("A")[0].classList.remove("checked");
|
||||
box.filter("INPUT")[0].checked = false;
|
||||
};
|
||||
function apply() {
|
||||
if (debugFlag == true) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
// @description Effort to simplify configuration of incidents/maintenance windows
|
||||
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
|
||||
// @require http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js
|
||||
// @version 0.0.13
|
||||
// @version 0.0.6
|
||||
// @downloadUrl https://gitea.frijole.lol/o0beaner/js-statusio-selector/raw/branch/main/statusio-selector.user.js
|
||||
// @updateURL https://gitea.frijole.lol/o0beaner/js-statusio-selector/raw/branch/main/statusio-selector.user.js
|
||||
// @include /^https?://app\.status\.io/dashboard/.*/?(maintenance|incident)/create$/
|
||||
|
|
@ -92,11 +92,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
"auth",
|
||||
"compute",
|
||||
"jobs",
|
||||
"dlt",
|
||||
"odbc",
|
||||
"sql",
|
||||
"webapp",
|
||||
"accountConsole"
|
||||
"webapp"
|
||||
];
|
||||
|
||||
var regionArray = [
|
||||
|
|
@ -126,7 +124,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
"southcentralus",
|
||||
"southeastasia",
|
||||
"southindia",
|
||||
"swedencentral",
|
||||
"switzerlandnorth",
|
||||
"switzerlandwest",
|
||||
"uaenorth",
|
||||
|
|
@ -156,12 +153,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
var authGroup = $("div.form-group").filter(":contains('Authentication')");
|
||||
var computeGroup = $("div.form-group").filter(":contains('Compute Service')");
|
||||
var jobsGroup = $("div.form-group").filter(":contains('Jobs Service')");
|
||||
var dltGroup = $("div.form-group").filter(":contains('Delta Live Tables')");
|
||||
var odbcGroup = $("div.form-group").filter(":contains('ODBC/JDBC Service')");
|
||||
var webappGroup = $("div.form-group").filter(":contains('User Interface')");
|
||||
var sqlGroup = $("div.form-group").filter(":contains('Databricks SQL')");
|
||||
var accountConsoleGroup = $("div.form-group").filter(":contains('Account Console')");
|
||||
|
||||
|
||||
// write component HTML template
|
||||
var componentsHTML = '<center>' +
|
||||
|
|
@ -171,11 +165,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
'<button id="authButton">Auth</button>' +
|
||||
'<button id="computeButton" type="button">Compute</button>' +
|
||||
'<button id="jobsButton" type="button">Jobs</button>' +
|
||||
'<button id="dltButton" type="button">DLT</button>' +
|
||||
'<button id="odbcButton" type="button">ODBC/JDBC</button>' +
|
||||
'<button id="webappButton" type="button">Webapp</button>' +
|
||||
'<button id="sqlButton" type="button">SQL</button>' +
|
||||
'<button id="accountConsoleButton" type="button">Accounts</button>' +
|
||||
'</center></br></br>';
|
||||
|
||||
// regional functions
|
||||
|
|
@ -215,11 +207,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
var buttonRegions = ["westindia"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function swedencentralButtonClickAction(zEvent) {
|
||||
var buttonName = "swedencentralButton";
|
||||
var buttonRegions = ["swedencentral"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function switzerlandnorthButtonClickAction(zEvent) {
|
||||
var buttonName = "switzerlandnorthButton";
|
||||
var buttonRegions = ["switzerlandnorth"];
|
||||
|
|
@ -417,7 +404,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
};
|
||||
function stage1ButtonClickAction(zEvent) {
|
||||
var buttonName = "stage1Button";
|
||||
var buttonRegions = ["canadacentral", "canadaeast", "centralindia", "southindia", "westindia", "swedencentral", "switzerlandnorth", "switzerlandwest", "norwayeast", "germanywestcentral"];
|
||||
var buttonRegions = ["canadacentral", "canadaeast", "centralindia", "southindia", "westindia", "switzerlandnorth", "switzerlandwest", "norwayeast", "germanywestcentral"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function stage1point5ButtonClickAction(zEvent) {
|
||||
|
|
@ -468,10 +455,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
toggleComponent("jobs");
|
||||
toggleButtonColor("jobsButton");
|
||||
};
|
||||
function dltButtonClickAction(zEvent) {
|
||||
toggleComponent("dlt");
|
||||
toggleButtonColor("dltButton");
|
||||
};
|
||||
function odbcButtonClickAction(zEvent) {
|
||||
toggleComponent("odbc");
|
||||
toggleButtonColor("odbcButton");
|
||||
|
|
@ -484,11 +467,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
toggleComponent("sql");
|
||||
toggleButtonColor("sqlButton");
|
||||
};
|
||||
function accountConsoleButtonClickAction(zEvent) {
|
||||
toggleComponent("accountConsole");
|
||||
toggleButtonColor("accountConsoleButton");
|
||||
};
|
||||
|
||||
|
||||
// profile management functions
|
||||
function loadDataplanes() {
|
||||
|
|
@ -502,9 +480,8 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
'<button id="southindiaButton" style="width:156px" type="button">South India</button>' +
|
||||
'<button id="westindiaButton" style="width:156px" type="button">West India</button>' +
|
||||
'</br>' +
|
||||
'<button id="swedencentralButton" style="width:156px" type="button">Sweden Central</button>' +
|
||||
'<button id="switzerlandnorthButton" style="width:156px" type="button">Switzerland North</button>' +
|
||||
'<button id="switzerlandwestButton" style="width:156px" type="button">Switzerland West</button>' +
|
||||
'<button id="switzerlandnorthButton" style="width:234px" type="button">Switzerland North</button>' +
|
||||
'<button id="switzerlandwestButton" style="width:234px" type="button">Switzerland West</button>' +
|
||||
'</br>' +
|
||||
'<button id="norwayeastButton" style="width:234px" type="button">Norway East</button>' +
|
||||
'<button id="germanywestcentralButton" style="width:234px" type="button">Germany West Central</button>' +
|
||||
|
|
@ -581,7 +558,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
"southcentralus",
|
||||
"southeastasia",
|
||||
"southindia",
|
||||
"swedencentral",
|
||||
"switzerlandnorth",
|
||||
"switzerlandwest",
|
||||
"uaenorth",
|
||||
|
|
@ -603,7 +579,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
document.getElementById("centralindiaButton").addEventListener("click", centralindiaButtonClickAction, false);
|
||||
document.getElementById("southindiaButton").addEventListener("click", southindiaButtonClickAction, false);
|
||||
document.getElementById("westindiaButton").addEventListener("click", westindiaButtonClickAction, false);
|
||||
document.getElementById("swedencentralButton").addEventListener("click", swedencentralButtonClickAction, false);
|
||||
document.getElementById("switzerlandnorthButton").addEventListener("click", switzerlandnorthButtonClickAction, false);
|
||||
document.getElementById("switzerlandwestButton").addEventListener("click", switzerlandwestButtonClickAction, false);
|
||||
document.getElementById("norwayeastButton").addEventListener("click", norwayeastButtonClickAction, false);
|
||||
|
|
@ -649,11 +624,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
document.getElementById("authButton").addEventListener("click", authButtonClickAction, false);
|
||||
document.getElementById("computeButton").addEventListener("click", computeButtonClickAction, false);
|
||||
document.getElementById("jobsButton").addEventListener("click", jobsButtonClickAction, false);
|
||||
document.getElementById("dltButton").addEventListener("click", dltButtonClickAction, false);
|
||||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -667,9 +640,8 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
'<button id="canadacentralButton" style="width:234px" type="button">Canada Central</button>' +
|
||||
'<button id="centralindiaButton" style="width:234px" type="button">Central India</button>' +
|
||||
'</br>' +
|
||||
'<button id="swedencentralButton" style="width:156px" type="button">Sweden Central</button>' +
|
||||
'<button id="switzerlandnorthButton" style="width:156px" type="button">Switzerland North</button>' +
|
||||
'<button id="switzerlandwestButton" style="width:156px" type="button">Switzerland West</button>' +
|
||||
'<button id="switzerlandnorthButton" style="width:234px" type="button">Switzerland North</button>' +
|
||||
'<button id="switzerlandwestButton" style="width:234px" type="button">Switzerland West</button>' +
|
||||
'</br>' +
|
||||
'<button id="norwayeastButton" style="width:234px" type="button">Norway East</button>' +
|
||||
'<button id="germanywestcentralButton" style="width:234px" type="button">Germany West Central</button>' +
|
||||
|
|
@ -718,7 +690,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
"norwayeast",
|
||||
"southafricanorth",
|
||||
"southeastasia",
|
||||
"swedencentral",
|
||||
"switzerlandnorth",
|
||||
"switzerlandwest",
|
||||
"uaenorth",
|
||||
|
|
@ -734,7 +705,6 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
|
||||
// regional listeners
|
||||
document.getElementById("canadacentralButton").addEventListener("click", canadacentralCPButtonClickAction, false);
|
||||
document.getElementById("swedencentralButton").addEventListener("click", swedencentralButtonClickAction, false);
|
||||
document.getElementById("switzerlandnorthButton").addEventListener("click", switzerlandnorthButtonClickAction, false);
|
||||
document.getElementById("switzerlandwestButton").addEventListener("click", switzerlandwestButtonClickAction, false);
|
||||
document.getElementById("centralindiaButton").addEventListener("click", centralindiaCPButtonClickAction, false);
|
||||
|
|
@ -769,11 +739,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
document.getElementById("authButton").addEventListener("click", authButtonClickAction, false);
|
||||
document.getElementById("computeButton").addEventListener("click", computeButtonClickAction, false);
|
||||
document.getElementById("jobsButton").addEventListener("click", jobsButtonClickAction, false);
|
||||
document.getElementById("dltButton").addEventListener("click", dltButtonClickAction, false);
|
||||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -833,11 +801,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
|
|||
document.getElementById("authButton").addEventListener("click", authButtonClickAction, false);
|
||||
document.getElementById("computeButton").addEventListener("click", computeButtonClickAction, false);
|
||||
document.getElementById("jobsButton").addEventListener("click", jobsButtonClickAction, false);
|
||||
document.getElementById("dltButton").addEventListener("click", dltButtonClickAction, false);
|
||||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -890,15 +856,12 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
"auth",
|
||||
"compute",
|
||||
"jobs",
|
||||
"dlt",
|
||||
"odbc",
|
||||
"sql",
|
||||
"webapp",
|
||||
"accountConsole"
|
||||
"webapp"
|
||||
];
|
||||
var regionArray = [
|
||||
"ap-northeast-1",
|
||||
"ap-northeast-2",
|
||||
"ap-south-1",
|
||||
"ap-southeast-1",
|
||||
"ap-southeast-2",
|
||||
|
|
@ -929,11 +892,9 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
var authGroup = $("div.form-group").filter(":contains('Authentication')");
|
||||
var computeGroup = $("div.form-group").filter(":contains('Compute Service')");
|
||||
var jobsGroup = $("div.form-group").filter(":contains('Jobs Service')");
|
||||
var dltGroup = $("div.form-group").filter(":contains('Delta Live Tables')");
|
||||
var odbcGroup = $("div.form-group").filter(":contains('ODBC/JDBC Service')");
|
||||
var webappGroup = $("div.form-group").filter(":contains('User Interface')");
|
||||
var sqlGroup = $("div.form-group").filter(":contains('Databricks SQL')");
|
||||
var accountConsoleGroup = $("div.form-group").filter(":contains('Account Console')");
|
||||
var ceGroup = $("div.form-group").filter(":contains('Community Edition')");
|
||||
|
||||
// write component HTML template
|
||||
|
|
@ -944,11 +905,9 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
'<button id="authButton">Auth</button>' +
|
||||
'<button id="computeButton" type="button">Compute</button>' +
|
||||
'<button id="jobsButton" type="button">Jobs</button>' +
|
||||
'<button id="dltButton" type="button">DLT</button>' +
|
||||
'<button id="odbcButton" type="button">ODBC/JDBC</button>' +
|
||||
'<button id="webappButton" type="button">Webapp</button>' +
|
||||
'<button id="sqlButton" type="button">SQL</button>' +
|
||||
'<button id="accountConsoleButton" type="button">Accounts</button>' +
|
||||
'</center></br>';
|
||||
|
||||
// regional functions
|
||||
|
|
@ -1012,11 +971,6 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
var buttonRegions = ["ap-northeast-1"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function apnortheast2ButtonClickAction(zEvent) {
|
||||
var buttonName = "apnortheast2Button";
|
||||
var buttonRegions = ["ap-northeast-2"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function euwest1ButtonClickAction(zEvent) {
|
||||
var buttonName = "euwest1Button";
|
||||
var buttonRegions = ["eu-west-1"];
|
||||
|
|
@ -1039,7 +993,7 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
};
|
||||
function stage3amButtonClickAction(zEvent) {
|
||||
var buttonName = "stage3amButton";
|
||||
var buttonRegions = ["ap-south-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"];
|
||||
var buttonRegions = ["ap-south-1", "ap-southeast-2", "ap-northeast-1"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function stage3pmButtonClickAction(zEvent) {
|
||||
|
|
@ -1065,10 +1019,6 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
toggleComponent("jobs");
|
||||
toggleButtonColor("jobsButton");
|
||||
};
|
||||
function dltButtonClickAction(zEvent) {
|
||||
toggleComponent("dlt");
|
||||
toggleButtonColor("dltButton");
|
||||
};
|
||||
function odbcButtonClickAction(zEvent) {
|
||||
toggleComponent("odbc");
|
||||
toggleButtonColor("odbcButton");
|
||||
|
|
@ -1081,10 +1031,6 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
toggleComponent("sql");
|
||||
toggleButtonColor("sqlButton");
|
||||
};
|
||||
function accountConsoleButtonClickAction(zEvent) {
|
||||
toggleComponent("accountConsole");
|
||||
toggleButtonColor("accountConsoleButton");
|
||||
};
|
||||
|
||||
// profile management functions
|
||||
function loadDataplanes() {
|
||||
|
|
@ -1104,10 +1050,9 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
'</br>' +
|
||||
'<button id="apsoutheast1Button" style="width:468px" type="button">ap-southeast-1</button>' +
|
||||
'</br></br>' +
|
||||
'<button id="apsouth1Button" style="width:117px" type="button">ap-south-1</button>' +
|
||||
'<button id="apsoutheast2Button" style="width:117px" type="button">ap-southeast-2</button>' +
|
||||
'<button id="apnortheast1Button" style="width:117px" type="button">ap-northeast-1</button>' +
|
||||
'<button id="apnortheast2Button" style="width:117px" type="button">ap-northeast-2</button>' +
|
||||
'<button id="apsouth1Button" style="width:156px" type="button">ap-south-1</button>' +
|
||||
'<button id="apsoutheast2Button" style="width:156px" type="button">ap-southeast-2</button>' +
|
||||
'<button id="apnortheast1Button" style="width:156px" type="button">ap-northeast-1</button>' +
|
||||
'</br></br>' +
|
||||
'<button id="euwest1Button" style="width:468px" type="button">eu-west-1</button>' +
|
||||
'</center>';
|
||||
|
|
@ -1120,7 +1065,6 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
// array of active buttons
|
||||
buttonArray = [
|
||||
"apnortheast1",
|
||||
"apnortheast2",
|
||||
"apsouth1",
|
||||
"apsoutheast1",
|
||||
"apsoutheast2",
|
||||
|
|
@ -1150,7 +1094,6 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false);
|
||||
document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false);
|
||||
document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false);
|
||||
document.getElementById("apnortheast2Button").addEventListener("click", apnortheast2ButtonClickAction, false);
|
||||
document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false);
|
||||
document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false);
|
||||
|
||||
|
|
@ -1166,11 +1109,9 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
document.getElementById("authButton").addEventListener("click", authButtonClickAction, false);
|
||||
document.getElementById("computeButton").addEventListener("click", computeButtonClickAction, false);
|
||||
document.getElementById("jobsButton").addEventListener("click", jobsButtonClickAction, false);
|
||||
document.getElementById("dltButton").addEventListener("click", dltButtonClickAction, false);
|
||||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -1191,10 +1132,9 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
'<button id="useast2Button" style="width:117px" type="button">us-east-2</button>' +
|
||||
'<button id="apsoutheast1Button" style="width:117px" type="button">ap-southeast-1</button>' +
|
||||
'</br></br>' +
|
||||
'<button id="apsouth1Button" style="width:117px" type="button">ap-south-1</button>' +
|
||||
'<button id="apsoutheast2Button" style="width:117px" type="button">ap-southeast-2</button>' +
|
||||
'<button id="apnortheast1Button" style="width:117px" type="button">ap-northeast-1</button>' +
|
||||
'<button id="apnortheast2Button" style="width:117px" type="button">ap-northeast-2</button>' +
|
||||
'<button id="apsouth1Button" style="width:156px" type="button">ap-south-1</button>' +
|
||||
'<button id="apsoutheast2Button" style="width:156px" type="button">ap-southeast-2</button>' +
|
||||
'<button id="apnortheast1Button" style="width:156px" type="button">ap-northeast-1</button>' +
|
||||
'</br></br>' +
|
||||
'<button id="euwest1Button" style="width:468px" type="button">eu-west-1</button>' +
|
||||
'</center>';
|
||||
|
|
@ -1207,7 +1147,6 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
// array of active buttons
|
||||
buttonArray = [
|
||||
"apnortheast1",
|
||||
"apnortheast2",
|
||||
"apsouth1",
|
||||
"apsoutheast1",
|
||||
"apsoutheast2",
|
||||
|
|
@ -1235,7 +1174,6 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
document.getElementById("apsoutheast1Button").addEventListener("click", apsoutheast1ButtonClickAction, false);
|
||||
document.getElementById("apsoutheast2Button").addEventListener("click", apsoutheast2ButtonClickAction, false);
|
||||
document.getElementById("apnortheast1Button").addEventListener("click", apnortheast1ButtonClickAction, false);
|
||||
document.getElementById("apnortheast2Button").addEventListener("click", apnortheast2ButtonClickAction, false);
|
||||
document.getElementById("euwest1Button").addEventListener("click", euwest1ButtonClickAction, false);
|
||||
document.getElementById("ceButton").addEventListener("click", ceButtonClickAction, false);
|
||||
|
||||
|
|
@ -1251,11 +1189,9 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
document.getElementById("authButton").addEventListener("click", authButtonClickAction, false);
|
||||
document.getElementById("computeButton").addEventListener("click", computeButtonClickAction, false);
|
||||
document.getElementById("jobsButton").addEventListener("click", jobsButtonClickAction, false);
|
||||
document.getElementById("dltButton").addEventListener("click", dltButtonClickAction, false);
|
||||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -1305,11 +1241,9 @@ if (window.location.href.indexOf("5cf02dde58a00904bda41926") > -1) {
|
|||
document.getElementById("authButton").addEventListener("click", authButtonClickAction, false);
|
||||
document.getElementById("computeButton").addEventListener("click", computeButtonClickAction, false);
|
||||
document.getElementById("jobsButton").addEventListener("click", jobsButtonClickAction, false);
|
||||
document.getElementById("dltButton").addEventListener("click", dltButtonClickAction, false);
|
||||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -1361,8 +1295,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
"jobs",
|
||||
"odbc",
|
||||
"sql",
|
||||
"webapp",
|
||||
"accountConsole"
|
||||
"webapp"
|
||||
];
|
||||
var regionArray = [
|
||||
"australia-southeast1",
|
||||
|
|
@ -1373,8 +1306,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
"us-east1",
|
||||
"us-east4",
|
||||
"us-west1",
|
||||
"us-west4",
|
||||
"europe-west3"
|
||||
"us-west4"
|
||||
];
|
||||
var buttonArray = [];
|
||||
|
||||
|
|
@ -1395,8 +1327,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
var odbcGroup = $("div.form-group").filter(":contains('ODBC/JDBC Service')");
|
||||
var webappGroup = $("div.form-group").filter(":contains('User Interface')");
|
||||
var sqlGroup = $("div.form-group").filter(":contains('Databricks SQL')");
|
||||
var accountConsoleGroup = $("div.form-group").filter(":contains('Account Console')");
|
||||
|
||||
|
||||
// write component HTML template
|
||||
var componentsHTML = '<center>' +
|
||||
|
|
@ -1409,7 +1339,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
'<button id="odbcButton" type="button">ODBC/JDBC</button>' +
|
||||
'<button id="webappButton" type="button">Webapp</button>' +
|
||||
'<button id="sqlButton" type="button">SQL</button>' +
|
||||
'<button id="accountConsoleButton" type="button">Accounts</button>' +
|
||||
'</center></br></br>';
|
||||
|
||||
// regional functions
|
||||
|
|
@ -1458,11 +1387,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
var buttonRegions = ["us-west4"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function europewest3ButtonClickAction(zEvent) {
|
||||
var buttonName = "europewest3Button";
|
||||
var buttonRegions = ["europe-west3"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
function stage1ButtonClickAction(zEvent) {
|
||||
var buttonName = "stage1Button";
|
||||
var buttonRegions = ["europe-west1"];
|
||||
|
|
@ -1480,7 +1404,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
};
|
||||
function stage3pmButtonClickAction(zEvent) {
|
||||
var buttonName = "stage3pmButton";
|
||||
var buttonRegions = ["us-west4", "europe-west3"];
|
||||
var buttonRegions = ["us-west4"];
|
||||
toggleRegion(buttonName, buttonRegions);
|
||||
};
|
||||
|
||||
|
|
@ -1513,10 +1437,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
toggleComponent("sql");
|
||||
toggleButtonColor("sqlButton");
|
||||
};
|
||||
function sqlButtonClickAction(zEvent) {
|
||||
toggleComponent("accountConsole");
|
||||
toggleButtonColor("accountConsoleButton");
|
||||
};
|
||||
|
||||
function loadControlplanes() {
|
||||
currentMode = "controlplane";
|
||||
|
|
@ -1534,8 +1454,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
'<button id="australiasoutheast1Button" style="width:234px" type="button">Australia-Southeast1</button>' +
|
||||
'<button id="asiasoutheast1Button" style="width:234px" type="button">Asia-Southeast1</button>' +
|
||||
'</br></br>' +
|
||||
'<button id="uswest4Button" style="width:234px" type="button">US-West4</button>' +
|
||||
'<button id="europewest3Button" style="width:234px" type="button">EU-West3</button>' +
|
||||
'<button id="uswest4Button" style="width:468px" type="button">US-West4</button>' +
|
||||
'</br></center>'
|
||||
;
|
||||
zNode.innerHTML = profilesHTML + '<hr class="solid">' + controlplaneHTML + '<hr class="solid">' + componentsHTML + auxHTML;
|
||||
|
|
@ -1553,8 +1472,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
"useast1",
|
||||
"useast4",
|
||||
"uswest1",
|
||||
"uswest4",
|
||||
"europewest3"
|
||||
"uswest4"
|
||||
];
|
||||
if (debugFlag == true) {
|
||||
console.log("buttonArray: " + buttonArray);
|
||||
|
|
@ -1573,7 +1491,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
document.getElementById("useast4Button").addEventListener("click", useast4ButtonClickAction, false);
|
||||
document.getElementById("uswest1Button").addEventListener("click", uswest1ButtonClickAction, false);
|
||||
document.getElementById("uswest4Button").addEventListener("click", uswest4ButtonClickAction, false);
|
||||
document.getElementById("europewest3Button").addEventListener("click", europewest3ButtonClickAction, false);
|
||||
|
||||
// profile listeners
|
||||
document.getElementById("controlplanesButton").addEventListener("click", controlplanesButtonClickAction, false);
|
||||
|
|
@ -1589,7 +1506,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -1642,7 +1558,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
document.getElementById("odbcButton").addEventListener("click", odbcButtonClickAction, false);
|
||||
document.getElementById("webappButton").addEventListener("click", webappButtonClickAction, false);
|
||||
document.getElementById("sqlButton").addEventListener("click", sqlButtonClickAction, false);
|
||||
document.getElementById("accountConsoleButton").addEventListener("click", accountConsoleButtonClickAction, false);
|
||||
document.getElementById("allComponentsButton").addEventListener("click", allComponentsButtonClickAction, false);
|
||||
|
||||
// aux listeners
|
||||
|
|
@ -1804,22 +1719,12 @@ function checkButtonColor(buttonName) {
|
|||
return color;
|
||||
};
|
||||
function selectCheckbox(box) {
|
||||
try {
|
||||
box.filter("A")[0].classList.add("checked");
|
||||
box.filter("INPUT")[0].checked = true;
|
||||
} catch (e) {
|
||||
console.log(box + " does not appear to exist");
|
||||
}
|
||||
|
||||
box.filter("A")[0].classList.add("checked");
|
||||
box.filter("INPUT")[0].checked = true;
|
||||
};
|
||||
function deselectCheckbox(box) {
|
||||
try {
|
||||
box.filter("A")[0].classList.remove("checked");
|
||||
box.filter("INPUT")[0].checked = false;
|
||||
} catch (e) {
|
||||
console.log(box + " does not appear to exist");
|
||||
}
|
||||
|
||||
box.filter("A")[0].classList.remove("checked");
|
||||
box.filter("INPUT")[0].checked = false;
|
||||
};
|
||||
function apply() {
|
||||
if (debugFlag == true) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue