diff --git a/code-payload.js b/code-payload.js
index a3db940..1b33fca 100644
--- a/code-payload.js
+++ b/code-payload.js
@@ -37,7 +37,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
// initialize azure component and region variables
var componentArray = ["api", "auth", "compute", "jobs", "odbc", "webapp", "sql"];
- var regionArray = ["canadacentral", "canadaeast", "centralindia", "southindia", "westindia", "switzerlandnorth", "norwayeast", "westus2",
+ var regionArray = ["canadacentral", "canadaeast", "centralindia", "southindia", "westindia", "switzerlandnorth", "norwayeast", "germanywestcentral", "westus2",
"westus", "southcentralus", "westeurope", "northeurope", "ukwest", "uksouth", "southafricanorth", "uaenorth", "australiaeast",
"australiacentral", "australiacentral2", "australiasoutheast", "japaneast", "japanwest", "koreacentral", "southeastasia",
"eastasia", "brazilsouth", "eastus2", "eastus","centralus", "northcentralus", "francecentral", "chinanorth2", "chinaeast2",
@@ -109,6 +109,10 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
toggleRegion("norwayeast");
toggleButtonColor("norwayeastButton");
};
+ function germanywestcentralButtonClickAction(zEvent) {
+ toggleRegion("germanywestcentral");
+ toggleButtonColor("germanywestcentralButton");
+ };
function westusButtonClickAction(zEvent) {
toggleRegion("westus");
toggleButtonColor("westusButton");
@@ -269,6 +273,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
toggleRegion("westindia");
toggleRegion("switzerlandnorth");
toggleRegion("norwayeast");
+ toggleRegion("germanywestcentral")
toggleButtonColor("stage1Button");
};
function stage1point5ButtonClickAction(zEvent) {
@@ -352,7 +357,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
function loadDataplanes() {
currentMode = "dataplane";
console.log("Loading Azure dataplanes profile");
- var dataplaneHTML = '
';
+ var dataplaneHTML = '
';
zNode.innerHTML = profilesHTML + '
' + dataplaneHTML + '
' + componentsHTML +
auxHTML;
if (debugFlag == true) {
@@ -361,7 +366,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
// array of active buttons
buttonArray = ["canadacentral", "canadaeast", "centralindia", "southindia", "westindia",
- "switzerlandnorth", "norwayeast", "westus2", "westus", "southcentralus",
+ "switzerlandnorth", "norwayeast", "germanywestcentral", "westus2", "westus", "southcentralus",
"westeurope", "northeurope", "ukwest", "uksouth", "southafricanorth",
"uaenorth", "australiaeast", "australiacentral", "australiacentral2",
"australiasoutheast", "japaneast", "japanwest", "koreacentral",
@@ -377,6 +382,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
document.getElementById("westindiaButton").addEventListener("click", westindiaButtonClickAction, false);
document.getElementById("switzerlandnorthButton").addEventListener("click", switzerlandnorthButtonClickAction, false);
document.getElementById("norwayeastButton").addEventListener("click", norwayeastButtonClickAction, false);
+ document.getElementById("germanywestcentralButton").addEventListener("click", germanywestcentralButtonClickAction, false);
document.getElementById("westusButton").addEventListener("click", westusButtonClickAction, false);
document.getElementById("westus2Button").addEventListener("click", westus2ButtonClickAction, false);
document.getElementById("southcentralusButton").addEventListener("click", southcentralusButtonClickAction, false);
@@ -430,14 +436,14 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
function loadControlplanes() {
currentMode = "controlplane";
console.log("Loading Azure controlplanes profile");
- var controlplaneHTML = '';
+ var controlplaneHTML = '';
zNode.innerHTML = profilesHTML + '
' + controlplaneHTML + '
' + componentsHTML + auxHTML;
if (debugFlag == true) {
toggleButtonColor("debugButton");
};
// array of active buttons
- buttonArray = ["canadacentral", "centralindia", "switzerlandnorth", "norwayeast", "westus", "westeurope","ukwest", "southafricanorth",
+ buttonArray = ["canadacentral", "centralindia", "switzerlandnorth", "norwayeast", "germanywestcentral", "westus", "westeurope","ukwest", "southafricanorth",
"uaenorth", "australiaeast", "japaneast", "koreacentral", "southeastasia", "brazilsouth", "eastus2", "francecentral",
"chinanorth2", "chinaeast2", "usgovvirginia", "usgovarizona"];
@@ -447,8 +453,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
// regional listeners
document.getElementById("canadacentralButton").addEventListener("click", canadacentralCPButtonClickAction, false);
document.getElementById("switzerlandnorthButton").addEventListener("click", switzerlandnorthButtonClickAction, false);
- document.getElementById("norwayeastButton").addEventListener("click", norwayeastButtonClickAction, false);
document.getElementById("centralindiaButton").addEventListener("click", centralindiaCPButtonClickAction, false);
+ document.getElementById("norwayeastButton").addEventListener("click", norwayeastButtonClickAction, false);
+ document.getElementById("germanywestcentralButton").addEventListener("click", germanywestcentralButtonClickAction, false);
document.getElementById("westusButton").addEventListener("click", westusCPButtonClickAction, false);
document.getElementById("westeuropeButton").addEventListener("click", westeuropeCPButtonClickAction, false);
document.getElementById("ukwestButton").addEventListener("click", ukwestCPButtonClickAction, false);
diff --git a/statusio-selector.user.js b/statusio-selector.user.js
index f9cec62..f0ef3a0 100644
--- a/statusio-selector.user.js
+++ b/statusio-selector.user.js
@@ -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.2
+// @version 0.0.3
// @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$/
@@ -73,7 +73,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
// initialize azure component and region variables
var componentArray = ["api", "auth", "compute", "jobs", "odbc", "webapp", "sql"];
- var regionArray = ["canadacentral", "canadaeast", "centralindia", "southindia", "westindia", "switzerlandnorth", "norwayeast", "westus2",
+ var regionArray = ["canadacentral", "canadaeast", "centralindia", "southindia", "westindia", "switzerlandnorth", "norwayeast", "germanywestcentral", "westus2",
"westus", "southcentralus", "westeurope", "northeurope", "ukwest", "uksouth", "southafricanorth", "uaenorth", "australiaeast",
"australiacentral", "australiacentral2", "australiasoutheast", "japaneast", "japanwest", "koreacentral", "southeastasia",
"eastasia", "brazilsouth", "eastus2", "eastus","centralus", "northcentralus", "francecentral", "chinanorth2", "chinaeast2",
@@ -145,6 +145,10 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
toggleRegion("norwayeast");
toggleButtonColor("norwayeastButton");
};
+ function germanywestcentralButtonClickAction(zEvent) {
+ toggleRegion("germanywestcentral");
+ toggleButtonColor("germanywestcentralButton");
+ };
function westusButtonClickAction(zEvent) {
toggleRegion("westus");
toggleButtonColor("westusButton");
@@ -305,6 +309,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
toggleRegion("westindia");
toggleRegion("switzerlandnorth");
toggleRegion("norwayeast");
+ toggleRegion("germanywestcentral")
toggleButtonColor("stage1Button");
};
function stage1point5ButtonClickAction(zEvent) {
@@ -388,7 +393,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
function loadDataplanes() {
currentMode = "dataplane";
console.log("Loading Azure dataplanes profile");
- var dataplaneHTML = '
';
+ var dataplaneHTML = '
';
zNode.innerHTML = profilesHTML + '
' + dataplaneHTML + '
' + componentsHTML +
auxHTML;
if (debugFlag == true) {
@@ -397,7 +402,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
// array of active buttons
buttonArray = ["canadacentral", "canadaeast", "centralindia", "southindia", "westindia",
- "switzerlandnorth", "norwayeast", "westus2", "westus", "southcentralus",
+ "switzerlandnorth", "norwayeast", "germanywestcentral", "westus2", "westus", "southcentralus",
"westeurope", "northeurope", "ukwest", "uksouth", "southafricanorth",
"uaenorth", "australiaeast", "australiacentral", "australiacentral2",
"australiasoutheast", "japaneast", "japanwest", "koreacentral",
@@ -413,6 +418,7 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
document.getElementById("westindiaButton").addEventListener("click", westindiaButtonClickAction, false);
document.getElementById("switzerlandnorthButton").addEventListener("click", switzerlandnorthButtonClickAction, false);
document.getElementById("norwayeastButton").addEventListener("click", norwayeastButtonClickAction, false);
+ document.getElementById("germanywestcentralButton").addEventListener("click", germanywestcentralButtonClickAction, false);
document.getElementById("westusButton").addEventListener("click", westusButtonClickAction, false);
document.getElementById("westus2Button").addEventListener("click", westus2ButtonClickAction, false);
document.getElementById("southcentralusButton").addEventListener("click", southcentralusButtonClickAction, false);
@@ -466,14 +472,14 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
function loadControlplanes() {
currentMode = "controlplane";
console.log("Loading Azure controlplanes profile");
- var controlplaneHTML = '';
+ var controlplaneHTML = '';
zNode.innerHTML = profilesHTML + '
' + controlplaneHTML + '
' + componentsHTML + auxHTML;
if (debugFlag == true) {
toggleButtonColor("debugButton");
};
// array of active buttons
- buttonArray = ["canadacentral", "centralindia", "switzerlandnorth", "norwayeast", "westus", "westeurope","ukwest", "southafricanorth",
+ buttonArray = ["canadacentral", "centralindia", "switzerlandnorth", "norwayeast", "germanywestcentral", "westus", "westeurope","ukwest", "southafricanorth",
"uaenorth", "australiaeast", "japaneast", "koreacentral", "southeastasia", "brazilsouth", "eastus2", "francecentral",
"chinanorth2", "chinaeast2", "usgovvirginia", "usgovarizona"];
@@ -483,8 +489,9 @@ if (window.location.href.indexOf("5d49ec10226b9e13cb6a422e") > -1) {
// regional listeners
document.getElementById("canadacentralButton").addEventListener("click", canadacentralCPButtonClickAction, false);
document.getElementById("switzerlandnorthButton").addEventListener("click", switzerlandnorthButtonClickAction, false);
- document.getElementById("norwayeastButton").addEventListener("click", norwayeastButtonClickAction, false);
document.getElementById("centralindiaButton").addEventListener("click", centralindiaCPButtonClickAction, false);
+ document.getElementById("norwayeastButton").addEventListener("click", norwayeastButtonClickAction, false);
+ document.getElementById("germanywestcentralButton").addEventListener("click", germanywestcentralButtonClickAction, false);
document.getElementById("westusButton").addEventListener("click", westusCPButtonClickAction, false);
document.getElementById("westeuropeButton").addEventListener("click", westeuropeCPButtonClickAction, false);
document.getElementById("ukwestButton").addEventListener("click", ukwestCPButtonClickAction, false);