add deploy.yaml
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Marko
2022-07-19 15:39:38 +02:00
parent 5302e6ca99
commit b0f7f04ba6
6 changed files with 38 additions and 44 deletions

View File

@@ -1,22 +1,18 @@
'use strict';
window.onload = function () {
window.onload = function() {
manageWebbyDisplay();
new MutationObserver(function (mutations, self) {
const op = document.getElementById(`operations-${data.shortName}-${data.operationId}`);
if (!op) {
return;
}
if (!op) return;
self.disconnect();
op.querySelector('.opblock-summary').click();
const tryOutObserver = new MutationObserver(function (mutations, self) {
const tryOut = op.querySelector('.try-out__btn');
if (!tryOut) {
return;
}
if (!tryOut) return;
self.disconnect();
@@ -35,7 +31,7 @@ window.onload = function () {
}
// Wait input values to be populated before executing the query
setTimeout(function () {
setTimeout(function(){
op.querySelector('.execute').click();
op.scrollIntoView();
}, 500);
@@ -75,12 +71,10 @@ window.onload = function () {
// Adapted from https://github.com/vitalyq/react-trigger-change/blob/master/lib/change.js
// Copyright (c) 2017 Vitaly Kuznetsov
// MIT License
function reactTriggerChange(node)
{
function reactTriggerChange(node) {
// Do not try to delete non-configurable properties.
// Value and checked properties on DOM elements are non-configurable in PhantomJS.
function deletePropertySafe(elem, prop)
{
function deletePropertySafe(elem, prop) {
const desc = Object.getOwnPropertyDescriptor(elem, prop);
if (desc && desc.configurable) {
delete elem[prop];
@@ -135,12 +129,9 @@ window.onload = function () {
}
}
function manageWebbyDisplay()
{
function manageWebbyDisplay() {
const webby = document.getElementsByClassName('webby')[0];
if (!webby) {
return;
}
if (!webby) return;
const web = document.getElementsByClassName('web')[0];
webby.classList.add('calm');