diff --git a/README.md b/README.md index ac19daa..9ab7dec 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,11 @@ For JS development (compiled JS is currently checked in): yarn build (./node_modules/.bin/webpack | (cd docs/ && bundle exec jekyll build)) + # alternative: run webpack directly + $env:NODE_OPTIONS="--openssl-legacy-provider" # workaround for newer Node.js versions + ./node_modules/.bin/webpack + + ### Running it using Docker You need to have Docker installed. diff --git a/docs/assets/js/main-bundle.js b/docs/assets/js/main-bundle.js index f65e6dc..8fe6556 100644 --- a/docs/assets/js/main-bundle.js +++ b/docs/assets/js/main-bundle.js @@ -1,2 +1,2 @@ /*! For license information please see main-bundle.js.LICENSE.txt */ -(()=>{"use strict";function e(e){for(var t=1;t{clearTimeout(n),n=setTimeout((()=>{e.apply(this,o)}),t)}}((()=>{document.documentElement.scrollHeight*e{e.classList.toggle("active")})),document.querySelectorAll(".show-less").forEach((e=>{e.classList.toggle("active")})),document.querySelectorAll(".show-more").forEach((e=>{e.classList.toggle("active")}))}const u="acknowledged-cookies2";function m(){s(u)||(document.getElementById("cookie-info").classList.add("show"),document.getElementById("acknowledge-cookies-btn").addEventListener("click",(function(){l(u,"true",7300),document.getElementById("cookie-info").classList.remove("show"),h()})),document.getElementById("refuse-cookies-btn").addEventListener("click",(function(){l(u,"false",7300),document.getElementById("cookie-info").classList.remove("show")})),document.querySelectorAll(".show-more").forEach((e=>{e.addEventListener("click",(function(){d()}))})),document.querySelectorAll(".show-less").forEach((e=>{e.addEventListener("click",(function(){d()}))})))}function h(){var e,o,s,d;!function(){const e=window.location.search,t=new URLSearchParams(e);t.get("adgroupid")&&l("adgroupid",t.get("adgroupid"),365)}(),function(){let e=document.createElement("script");function o(){dataLayer.push(arguments)}e.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=G-CX618DRF59"),document.getElementsByTagName("head")[0].appendChild(e),window.dataLayer=window.dataLayer||[],o("consent","default",{ad_user_data:"granted",ad_personalization:"granted",ad_storage:"granted",analytics_storage:"granted"}),o("js",new Date),o("config","G-CX618DRF59",{anonymize_ip:!0,domains:["app.signpath.io","secure.avangate.com"]}),o("config","UA-119338300-1",{anonymize_ip:!0,domains:["app.signpath.io","secure.avangate.com"]}),o("config","AW-744401159",{anonymize_ip:!0,domains:["app.signpath.io","secure.avangate.com"]}),n=o,document.querySelectorAll(".btn.trial").forEach((e=>{e.addEventListener("click",(e=>{i(1)}))})),document.querySelectorAll(".btn.btn-primary.footer.buy").forEach((e=>{e.addEventListener("click",(e=>{i(2)}))})),document.querySelectorAll("#helpdesk_ticket_submit").forEach((e=>{e.addEventListener("click",(e=>{i(3)}))})),document.querySelectorAll(".btn.newsletter").forEach((e=>{e.addEventListener("click",(e=>{i(4)}))})),function(){if(t.get("sessionstart")){var e=new Date(Date.parse(t.get("sessionstart")));if(e){var n=(Date.now()-e.getTime())/1e3;n>43200?c():n<=120&&r(n)}else c()}else c()}(),a(.5),a(.8),document.querySelectorAll('a[href*="mailto"]').forEach((e=>{e.addEventListener("click",(t=>{e.href.split(":")[1].includes("@")&&i(8,e.href.split(":")[1])}))})),document.querySelectorAll("a").forEach((e=>{if(e.href.includes("/Web/Home/Login")){const t=e.href;e.href="#",e.addEventListener("click",(async e=>{i(9),await new Promise((e=>setTimeout((function(){window.location.href=t}),50)))}))}}))}(),window.ldfdr=window.ldfdr||{},e=document,o="script",s=e.getElementsByTagName(o)[0],(d=e.createElement(o)).src="https://sc.lfeeder.com/lftracker_v1_3P1w24dnWAB8mY5n.js",setTimeout((function(){s.parentNode.insertBefore(d,s)}),1),function(){let e=document.createElement("script");e.setAttribute("src","https://js-eu1.hs-scripts.com/145110231.js"),document.getElementsByTagName("head")[0].appendChild(e)}()}function f(e,t,n){function o(t){return t<0?e.children.length+t:t>=e.children.length?t-e.children.length:t}let c=e.querySelector("li.active"),r=Array.from(e.children).indexOf(c),a=e.children[o(r-1)],i=Array.from({length:n-1},((t,n)=>e.children[o(r+1+n)])),l=e.children[o(r+n)];a.classList.remove("out-left"),t&&a.classList.add("active"),a.style.order=t?1:"initial",c.classList.remove("active"),c.classList.add(t?"show":"out-left"),c.style.order=t?2:0,i.forEach(((e,o)=>{0!=o||t||(e.classList.remove("show"),e.classList.add("active")),o==n-2&&t&&(e.classList.remove("show"),e.classList.add("out-right")),e.style.order=t?3+o:1+o})),l.classList.remove("out-right"),t||l.classList.add(1==n?"active":"show"),l.style.order=t?"initial":n,t?(e.children[o(r-2)].classList.add("out-left"),e.children[o(r-2)].style.order=0):(e.children[o(r+n+1)].classList.add("out-right"),e.children[o(r+n+1)].style.order=n+1)}document.addEventListener("DOMContentLoaded",(function(){"true"!==s(u)?function(){const e=new XMLHttpRequest;e.onreadystatechange=()=>{4==e.readyState&&(200==e.status?"EU"===JSON.parse(e.responseText).continentCode?m():h():(console.error("query failed"),m()))},e.open("GET","https://pro.ip-api.com/json?fields=status,continentCode&key=eJ1eA5qDeyPkvao",!0),e.send()}():h(),document.querySelectorAll(".revoke-cookie-consent").forEach((e=>{e.addEventListener("click",(function(){document.cookie.split(";").forEach((function(e){document.cookie=e.replace(/^ +/,"").replace(/=.*/,"=;expires="+(new Date).toUTCString()+";path=/")})),m()}))})),function(){var e=document.getElementById("show-older-releases-link");e&&e.addEventListener("click",(function(e){document.getElementById("older-releases").style.display="block",document.getElementById("show-older-releases").style.display="none",e.preventDefault(),e.stopPropagation()}));var t=document.getElementById("changelog-component-select");t&&t.addEventListener("change",(function(e){const o=new URL(location);"all"==t.value?o.searchParams.delete("component"):o.searchParams.set("component",t.value),history.pushState({},"",o),c(t.value,n.value)}));var n=document.getElementById("changelog-change_type-select");n&&n.addEventListener("change",(function(e){const o=new URL(location);"all"==n.value?o.searchParams.delete("change_type"):o.searchParams.set("change_type",n.value),history.pushState({},"",o),c(t.value,n.value)}));const o=new URL(location);if(o.searchParams.has("component")||o.searchParams.has("change_type")){let e=o.searchParams.get("component")||"all";document.getElementById("changelog-component-select").value=e;let t=o.searchParams.get("change_type")||"all";document.getElementById("changelog-change_type-select").value=t,c(e,t)}function c(e,t){function n(t){return"all"==e||t.classList.contains(`component-${e}`)}function o(e){return"all"==t||e.classList.contains(`change_type-${t}`)}function c(e){e.style.display="block"}function r(e){e.style.display="none"}document.querySelectorAll("section.changelog article.release").forEach((function(a){n(a)&&o(a)&&("all"==e||"all"==t||0!=a.querySelectorAll(`div.component-${e}.change_type-${t}`).length)?(c(a),a.querySelectorAll("div.component").forEach((function(e){n(e)&&o(e)?(c(e),e.querySelectorAll("div[class^=change_type-]").forEach((function(e){o(e)?c(e):r(e)}))):r(e)}))):r(a)})),document.getElementById("changelog-feed").href=`/changelog/feeds/${e}.xml`}}(),document.querySelectorAll("div.carousel").forEach((e=>{let t,n=function(){let e=document.body.clientWidth;return e>1e3?3:e>700?2:1}();function o(){t&&(clearInterval(t),t=void 0),t=setInterval((function(){f(e.querySelector("ul"),!1,n)}),3e3)}!function(e,t,n){e.querySelectorAll("li").forEach(((e,n)=>{0==n?e.classList.add("out-left"):1==n?e.classList.add("active"):n==t+1?e.classList.add("out-right"):n<=t&&e.classList.add("show")})),e.querySelectorAll("a").forEach(((e,o)=>{0==o?e.addEventListener("click",(function(e){f(e.currentTarget.parentNode.querySelector("ul"),!0,t),n(),e.preventDefault()})):e.addEventListener("click",(function(e){f(e.currentTarget.parentNode.querySelector("ul"),!1,t),n(),e.preventDefault()}))}))}(e,n,o),o()})),function(){document.querySelectorAll("header li.search span")[0].addEventListener("click",(function(){document.querySelectorAll("header li.search input")[0].focus()})),document.querySelectorAll("header li.search span")[0].addEventListener("focus",(function(){document.querySelectorAll("header li.search input")[0].focus()})),document.querySelectorAll("header li.search input")[0].addEventListener("input",(function(e){0==e.target.value.length?e.target.parentNode.parentNode.parentNode.classList.remove("with-search-term"):e.target.parentNode.parentNode.parentNode.classList.add("with-search-term")}));const e=new URL(location);if("/search"==e.pathname){const t=e.searchParams.get("q");document.querySelectorAll("main section.top-section h1")[0].innerText+=` for "${t}"`,document.querySelectorAll("main input[type=search]")[0].value=t}}(),document.querySelectorAll("article h1,h2,h3").forEach((e=>{let t=e.id;if(t){e.classList.add("headerlink");var n=document.createElement("a");n.className="link",n.innerHTML="#",n.href=`#${t}`,e.appendChild(n)}}))}))})(); \ No newline at end of file +(()=>{"use strict";function e(e){for(var t=1;t{clearTimeout(n),n=setTimeout((()=>{e.apply(this,o)}),t)}}((()=>{document.documentElement.scrollHeight*e{e.classList.toggle("active")})),document.querySelectorAll(".show-less").forEach((e=>{e.classList.toggle("active")})),document.querySelectorAll(".show-more").forEach((e=>{e.classList.toggle("active")}))}const u="acknowledged-cookies2";function h(){s(u)||(document.getElementById("cookie-info").classList.add("show"),document.getElementById("acknowledge-cookies-btn").addEventListener("click",(function(){l(u,"true",7300),document.getElementById("cookie-info").classList.remove("show"),m()})),document.getElementById("refuse-cookies-btn").addEventListener("click",(function(){l(u,"false",7300),document.getElementById("cookie-info").classList.remove("show")})),document.querySelectorAll(".show-more").forEach((e=>{e.addEventListener("click",(function(){d()}))})),document.querySelectorAll(".show-less").forEach((e=>{e.addEventListener("click",(function(){d()}))})))}function m(){var e,o,s,d;!function(){const e=window.location.search,t=new URLSearchParams(e);t.get("adgroupid")&&l("adgroupid",t.get("adgroupid"),365)}(),function(){let e=document.createElement("script");function o(){dataLayer.push(arguments)}e.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=G-CX618DRF59"),document.getElementsByTagName("head")[0].appendChild(e),window.dataLayer=window.dataLayer||[],o("consent","default",{ad_user_data:"granted",ad_personalization:"granted",ad_storage:"granted",analytics_storage:"granted"}),o("js",new Date),o("config","G-CX618DRF59",{anonymize_ip:!0,domains:["app.signpath.io","secure.avangate.com"]}),o("config","UA-119338300-1",{anonymize_ip:!0,domains:["app.signpath.io","secure.avangate.com"]}),o("config","AW-744401159",{anonymize_ip:!0,domains:["app.signpath.io","secure.avangate.com"]}),n=o,document.querySelectorAll(".btn.trial").forEach((e=>{e.addEventListener("click",(e=>{i(1)}))})),document.querySelectorAll(".btn.btn-primary.footer.buy").forEach((e=>{e.addEventListener("click",(e=>{i(2)}))})),document.querySelectorAll("#helpdesk_ticket_submit").forEach((e=>{e.addEventListener("click",(e=>{i(3)}))})),document.querySelectorAll(".btn.newsletter").forEach((e=>{e.addEventListener("click",(e=>{i(4)}))})),function(){if(t.get("sessionstart")){var e=new Date(Date.parse(t.get("sessionstart")));if(e){var n=(Date.now()-e.getTime())/1e3;n>43200?c():n<=120&&r(n)}else c()}else c()}(),a(.5),a(.8),document.querySelectorAll('a[href*="mailto"]').forEach((e=>{e.addEventListener("click",(t=>{e.href.split(":")[1].includes("@")&&i(8,e.href.split(":")[1])}))})),document.querySelectorAll("a").forEach((e=>{if(e.href.includes("/Web/Home/Login")){const t=e.href;e.href="#",e.addEventListener("click",(async e=>{i(9),await new Promise((e=>setTimeout((function(){window.location.href=t}),50)))}))}}))}(),window.ldfdr=window.ldfdr||{},e=document,o="script",s=e.getElementsByTagName(o)[0],(d=e.createElement(o)).src="https://sc.lfeeder.com/lftracker_v1_3P1w24dnWAB8mY5n.js",setTimeout((function(){s.parentNode.insertBefore(d,s)}),1),function(){let e=document.createElement("script");e.setAttribute("src","https://js-eu1.hs-scripts.com/145110231.js"),document.getElementsByTagName("head")[0].appendChild(e)}()}function f(e,t,n){function o(t){return t<0?e.children.length+t:t>=e.children.length?t-e.children.length:t}let c=e.querySelector("li.active"),r=Array.from(e.children).indexOf(c),a=e.children[o(r-1)],i=Array.from({length:n-1},((t,n)=>e.children[o(r+1+n)])),l=e.children[o(r+n)];a.classList.remove("out-left"),t&&a.classList.add("active"),a.style.order=t?1:"initial",c.classList.remove("active"),c.classList.add(t?"show":"out-left"),c.style.order=t?2:0,i.forEach(((e,o)=>{0!=o||t||(e.classList.remove("show"),e.classList.add("active")),o==n-2&&t&&(e.classList.remove("show"),e.classList.add("out-right")),e.style.order=t?3+o:1+o})),l.classList.remove("out-right"),t||l.classList.add(1==n?"active":"show"),l.style.order=t?"initial":n,t?(e.children[o(r-2)].classList.add("out-left"),e.children[o(r-2)].style.order=0):(e.children[o(r+n+1)].classList.add("out-right"),e.children[o(r+n+1)].style.order=n+1)}document.addEventListener("DOMContentLoaded",(function(){"true"!==s(u)?function(){const e=new XMLHttpRequest;e.onreadystatechange=()=>{4==e.readyState&&(200==e.status?"EU"===JSON.parse(e.responseText).continentCode?h():m():(console.error("query failed"),h()))},e.open("GET","https://pro.ip-api.com/json?fields=status,continentCode&key=eJ1eA5qDeyPkvao",!0),e.send()}():m(),document.querySelectorAll(".revoke-cookie-consent").forEach((e=>{e.addEventListener("click",(function(){document.cookie.split(";").forEach((function(e){document.cookie=e.replace(/^ +/,"").replace(/=.*/,"=;expires="+(new Date).toUTCString()+";path=/")})),h()}))})),function(){var e=document.getElementById("show-older-releases-link");e&&e.addEventListener("click",(function(e){document.getElementById("older-releases").style.display="block",document.getElementById("show-older-releases").style.display="none",e.preventDefault(),e.stopPropagation()}));var t=document.getElementById("changelog-component-select");t&&t.addEventListener("change",(function(e){const o=new URL(location);"all"==t.value?o.searchParams.delete("component"):o.searchParams.set("component",t.value),history.pushState({},"",o),c(t.value,n.value)}));var n=document.getElementById("changelog-change_type-select");n&&n.addEventListener("change",(function(e){const o=new URL(location);"all"==n.value?o.searchParams.delete("change_type"):o.searchParams.set("change_type",n.value),history.pushState({},"",o),c(t.value,n.value)}));const o=new URL(location);if(o.searchParams.has("component")||o.searchParams.has("change_type")){let e=o.searchParams.get("component")||"all";document.getElementById("changelog-component-select").value=e;let t=o.searchParams.get("change_type")||"all";document.getElementById("changelog-change_type-select").value=t,c(e,t)}function c(e,t){function n(t){return"all"==e||t.classList.contains(`component-${e}`)}function o(e){return"all"==t||e.classList.contains(`change_type-${t}`)}function c(e){e.style.display="block"}function r(e){e.style.display="none"}document.querySelectorAll("section.changelog article.release").forEach((function(a){n(a)&&o(a)&&("all"==e||"all"==t||0!=a.querySelectorAll(`div.component-${e}.change_type-${t}`).length)?(c(a),a.querySelectorAll("div.component").forEach((function(e){n(e)&&o(e)?(c(e),e.querySelectorAll("div[class^=change_type-]").forEach((function(e){o(e)?c(e):r(e)}))):r(e)}))):r(a)})),document.getElementById("changelog-feed").href=`/changelog/feeds/${e}.xml`}}(),document.querySelectorAll("div.carousel").forEach((e=>{let t,n=function(){let e=document.body.clientWidth;return e>1e3?3:e>700?2:1}();function o(){t&&(clearInterval(t),t=void 0),t=setInterval((function(){f(e.querySelector("ul"),!1,n)}),3e3)}!function(e,t,n){e.querySelectorAll("li").forEach(((e,n)=>{0==n?e.classList.add("out-left"):1==n?e.classList.add("active"):n==t+1?e.classList.add("out-right"):n<=t&&e.classList.add("show")})),e.querySelectorAll("a").forEach(((e,o)=>{0==o?e.addEventListener("click",(function(e){f(e.currentTarget.parentNode.querySelector("ul"),!0,t),n(),e.preventDefault()})):e.addEventListener("click",(function(e){f(e.currentTarget.parentNode.querySelector("ul"),!1,t),n(),e.preventDefault()}))}))}(e,n,o),o()})),function(){document.querySelectorAll("header li.search span")[0].addEventListener("click",(function(){document.querySelectorAll("header li.search input")[0].focus()})),document.querySelectorAll("header li.search span")[0].addEventListener("focus",(function(){document.querySelectorAll("header li.search input")[0].focus()})),document.querySelectorAll("header li.search input")[0].addEventListener("input",(function(e){0==e.target.value.length?e.target.parentNode.parentNode.parentNode.classList.remove("with-search-term"):e.target.parentNode.parentNode.parentNode.classList.add("with-search-term")}));const e=new URL(location);if("/search"==e.pathname){const t=e.searchParams.get("q");document.querySelectorAll("main section.top-section h1")[0].innerText+=` for "${t}"`,document.querySelectorAll("main input[type=search]")[0].value=t}}(),document.querySelectorAll("article h1,h2,h3,h4").forEach((e=>{let t=e.id;if(t){e.classList.add("headerlink");var n=document.createElement("a");n.className="link",n.innerHTML="#",n.href=`#${t}`,e.appendChild(n)}}))}))})(); \ No newline at end of file diff --git a/webpack/headerlinks.js b/webpack/headerlinks.js index 203c551..c236bd6 100644 --- a/webpack/headerlinks.js +++ b/webpack/headerlinks.js @@ -1,5 +1,5 @@ export function headerlinks() { - document.querySelectorAll("article h1,h2,h3").forEach(headerElem => { + document.querySelectorAll("article h1,h2,h3,h4").forEach(headerElem => { let headerId = headerElem.id; if (headerId) { headerElem.classList.add("headerlink");