add asia-southeast1 + stage3am to gcp
This commit is contained in:
parent
9adf186a4f
commit
aec65f619e
|
|
@ -1233,6 +1233,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
];
|
||||
var regionArray = [
|
||||
"australia-southeast1",
|
||||
"asia-southeast1",
|
||||
"europe-west1",
|
||||
"europe-west2",
|
||||
"us-central1",
|
||||
|
|
@ -1283,6 +1284,11 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
toggleRegion("australia-southeast1");
|
||||
toggleButtonColor("australiasoutheast1Button");
|
||||
};
|
||||
function asiasoutheast1ButtonClickAction(zEvent) {
|
||||
toggleRegion("asia-southeast1");
|
||||
toggleButtonColor("asiasoutheast1Button");
|
||||
};
|
||||
|
||||
function europewest1ButtonClickAction(zEvent) {
|
||||
toggleRegion("europe-west1");
|
||||
toggleButtonColor("europewest1Button");
|
||||
|
|
@ -1312,7 +1318,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
toggleButtonColor("uswest4Button");
|
||||
};
|
||||
function stage1ButtonClickAction(zEvent) {
|
||||
toggleRegion("australia-southeast1");
|
||||
toggleRegion("europe-west1");
|
||||
toggleButtonColor("stage1Button");
|
||||
};
|
||||
|
|
@ -1324,10 +1329,11 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
toggleRegion("us-west1");
|
||||
toggleButtonColor("stage2Button");
|
||||
};
|
||||
// function stage3amButtonClickAction(zEvent) {
|
||||
// toggleRegion("asia-southeast1");
|
||||
// toggleButtonColor("stage3amButton");
|
||||
// };
|
||||
function stage3amButtonClickAction(zEvent) {
|
||||
toggleRegion("asia-southeast1");
|
||||
toggleRegion("australia-southeast1");
|
||||
toggleButtonColor("stage3amButton");
|
||||
};
|
||||
function stage3pmButtonClickAction(zEvent) {
|
||||
toggleRegion("us-west4");
|
||||
toggleButtonColor("stage3pmButton");
|
||||
|
|
@ -1367,8 +1373,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
currentMode = "controlplane";
|
||||
console.log("Loading GCP controlplanes profile");
|
||||
var controlplaneHTML = '<center>' +
|
||||
'<button id="australiasoutheast1Button" style="width:234px" type="button">Australia-Southeast1</button>' +
|
||||
'<button id="europewest1Button" style="width:234px" type="button">Europe-West1</button>' +
|
||||
'<button id="europewest1Button" style="width:468px" type="button">Europe-West1</button>' +
|
||||
'</br></br>' +
|
||||
'<button id="europewest2Button" style="width:234px" type="button">EU-West2</button>' +
|
||||
'<button id="uscentral1Button" style="width:234px" type="button">US-Central1</button>' +
|
||||
|
|
@ -1377,6 +1382,9 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
'<button id="useast4Button" style="width:156px" type="button">US-East4</button>' +
|
||||
'<button id="uswest1Button" style="width:156px" type="button">US-West1</button>' +
|
||||
'</br></br>' +
|
||||
'<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:468px" type="button">US-West4</button>' +
|
||||
'</br></center>'
|
||||
;
|
||||
|
|
@ -1405,6 +1413,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
|
||||
// regional listeners
|
||||
document.getElementById("australiasoutheast1Button").addEventListener("click", australiasoutheast1ButtonClickAction, false);
|
||||
document.getElementById("asiasoutheast1Button").addEventListener("click", asiasoutheast1ButtonClickAction, false);
|
||||
document.getElementById("europewest1Button").addEventListener("click", europewest1ButtonClickAction, false);
|
||||
document.getElementById("europewest2Button").addEventListener("click", europewest2ButtonClickAction, false);
|
||||
document.getElementById("uscentral1Button").addEventListener("click", uscentral1ButtonClickAction, false);
|
||||
|
|
@ -1437,9 +1446,10 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
currentMode = "stage";
|
||||
console.log("Loading GCP stages profile");
|
||||
var stagesHTML = '<center>' +
|
||||
'<button id="stage1Button" style="width:156px" type="button">Stage-1</button>' +
|
||||
'<button id="stage2Button" style="width:156px" type="button">Stage-2</button>' +
|
||||
'<button id="stage3pmButton" style="width:156px" type="button">Stage-3PM</button>' +
|
||||
'<button id="stage1Button" style="width:117px" type="button">Stage-1</button>' +
|
||||
'<button id="stage2Button" style="width:117px" type="button">Stage-2</button>' +
|
||||
'<button id="stage3amButton" style="width:117px" type="button">Stage-3AM</button>' +
|
||||
'<button id="stage3pmButton" style="width:117px" type="button">Stage-3PM</button>' +
|
||||
'</center>';
|
||||
|
||||
zNode.innerHTML = profilesHTML + '<hr class="solid">' + stagesHTML + '<hr class="solid">' + componentsHTML + auxHTML;
|
||||
|
|
@ -1451,6 +1461,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
buttonArray = [
|
||||
"stage1",
|
||||
"stage2",
|
||||
"stage3am"
|
||||
"stage3pm"
|
||||
];
|
||||
|
||||
|
|
@ -1460,6 +1471,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
// regional listeners
|
||||
document.getElementById("stage1Button").addEventListener("click", stage1ButtonClickAction, false);
|
||||
document.getElementById("stage2Button").addEventListener("click", stage2ButtonClickAction, false);
|
||||
document.getElementById("stage3amButton").addEventListener("click", stage3amButtonClickAction, false);
|
||||
document.getElementById("stage3pmButton").addEventListener("click", stage3pmButtonClickAction, false);
|
||||
|
||||
// profile listeners
|
||||
|
|
|
|||
|
|
@ -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.4
|
||||
// @version 0.0.5
|
||||
// @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$/
|
||||
|
|
@ -1269,6 +1269,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
];
|
||||
var regionArray = [
|
||||
"australia-southeast1",
|
||||
"asia-southeast1",
|
||||
"europe-west1",
|
||||
"europe-west2",
|
||||
"us-central1",
|
||||
|
|
@ -1319,6 +1320,11 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
toggleRegion("australia-southeast1");
|
||||
toggleButtonColor("australiasoutheast1Button");
|
||||
};
|
||||
function asiasoutheast1ButtonClickAction(zEvent) {
|
||||
toggleRegion("asia-southeast1");
|
||||
toggleButtonColor("asiasoutheast1Button");
|
||||
};
|
||||
|
||||
function europewest1ButtonClickAction(zEvent) {
|
||||
toggleRegion("europe-west1");
|
||||
toggleButtonColor("europewest1Button");
|
||||
|
|
@ -1348,7 +1354,6 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
toggleButtonColor("uswest4Button");
|
||||
};
|
||||
function stage1ButtonClickAction(zEvent) {
|
||||
toggleRegion("australia-southeast1");
|
||||
toggleRegion("europe-west1");
|
||||
toggleButtonColor("stage1Button");
|
||||
};
|
||||
|
|
@ -1360,10 +1365,11 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
toggleRegion("us-west1");
|
||||
toggleButtonColor("stage2Button");
|
||||
};
|
||||
// function stage3amButtonClickAction(zEvent) {
|
||||
// toggleRegion("asia-southeast1");
|
||||
// toggleButtonColor("stage3amButton");
|
||||
// };
|
||||
function stage3amButtonClickAction(zEvent) {
|
||||
toggleRegion("asia-southeast1");
|
||||
toggleRegion("australia-southeast1");
|
||||
toggleButtonColor("stage3amButton");
|
||||
};
|
||||
function stage3pmButtonClickAction(zEvent) {
|
||||
toggleRegion("us-west4");
|
||||
toggleButtonColor("stage3pmButton");
|
||||
|
|
@ -1403,8 +1409,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
currentMode = "controlplane";
|
||||
console.log("Loading GCP controlplanes profile");
|
||||
var controlplaneHTML = '<center>' +
|
||||
'<button id="australiasoutheast1Button" style="width:234px" type="button">Australia-Southeast1</button>' +
|
||||
'<button id="europewest1Button" style="width:234px" type="button">Europe-West1</button>' +
|
||||
'<button id="europewest1Button" style="width:468px" type="button">Europe-West1</button>' +
|
||||
'</br></br>' +
|
||||
'<button id="europewest2Button" style="width:234px" type="button">EU-West2</button>' +
|
||||
'<button id="uscentral1Button" style="width:234px" type="button">US-Central1</button>' +
|
||||
|
|
@ -1413,6 +1418,9 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
'<button id="useast4Button" style="width:156px" type="button">US-East4</button>' +
|
||||
'<button id="uswest1Button" style="width:156px" type="button">US-West1</button>' +
|
||||
'</br></br>' +
|
||||
'<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:468px" type="button">US-West4</button>' +
|
||||
'</br></center>'
|
||||
;
|
||||
|
|
@ -1441,6 +1449,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
|
||||
// regional listeners
|
||||
document.getElementById("australiasoutheast1Button").addEventListener("click", australiasoutheast1ButtonClickAction, false);
|
||||
document.getElementById("asiasoutheast1Button").addEventListener("click", asiasoutheast1ButtonClickAction, false);
|
||||
document.getElementById("europewest1Button").addEventListener("click", europewest1ButtonClickAction, false);
|
||||
document.getElementById("europewest2Button").addEventListener("click", europewest2ButtonClickAction, false);
|
||||
document.getElementById("uscentral1Button").addEventListener("click", uscentral1ButtonClickAction, false);
|
||||
|
|
@ -1473,9 +1482,10 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
currentMode = "stage";
|
||||
console.log("Loading GCP stages profile");
|
||||
var stagesHTML = '<center>' +
|
||||
'<button id="stage1Button" style="width:156px" type="button">Stage-1</button>' +
|
||||
'<button id="stage2Button" style="width:156px" type="button">Stage-2</button>' +
|
||||
'<button id="stage3pmButton" style="width:156px" type="button">Stage-3PM</button>' +
|
||||
'<button id="stage1Button" style="width:117px" type="button">Stage-1</button>' +
|
||||
'<button id="stage2Button" style="width:117px" type="button">Stage-2</button>' +
|
||||
'<button id="stage3amButton" style="width:117px" type="button">Stage-3AM</button>' +
|
||||
'<button id="stage3pmButton" style="width:117px" type="button">Stage-3PM</button>' +
|
||||
'</center>';
|
||||
|
||||
zNode.innerHTML = profilesHTML + '<hr class="solid">' + stagesHTML + '<hr class="solid">' + componentsHTML + auxHTML;
|
||||
|
|
@ -1487,6 +1497,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
buttonArray = [
|
||||
"stage1",
|
||||
"stage2",
|
||||
"stage3am"
|
||||
"stage3pm"
|
||||
];
|
||||
|
||||
|
|
@ -1496,6 +1507,7 @@ if (window.location.href.indexOf("60087ab5608daf0535dc8e23") > -1) {
|
|||
// regional listeners
|
||||
document.getElementById("stage1Button").addEventListener("click", stage1ButtonClickAction, false);
|
||||
document.getElementById("stage2Button").addEventListener("click", stage2ButtonClickAction, false);
|
||||
document.getElementById("stage3amButton").addEventListener("click", stage3amButtonClickAction, false);
|
||||
document.getElementById("stage3pmButton").addEventListener("click", stage3pmButtonClickAction, false);
|
||||
|
||||
// profile listeners
|
||||
|
|
|
|||
Loading…
Reference in New Issue