diff --git a/internal/component/static/dist/control/index.css b/internal/component/static/dist/control/index.css index 6b10fef..ebf019c 100644 --- a/internal/component/static/dist/control/index.css +++ b/internal/component/static/dist/control/index.css @@ -1,2 +1 @@ -html{color:#1a1a1a;background-color:#fdfdfd;font-family:Roboto;font-size:20px;line-height:1.5}body{max-width:36em;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;text-rendering:optimizelegibility;font-kerning:normal;margin:0 auto;padding:50px}@media (max-width:600px){body{padding:1em;font-size:.9em}}h1{margin-top:1.4em}h2,h3{margin-top:1em}code{color:#00f;font-family:Roboto Mono}p{text-align:justify;margin:1em 0}a,a:visited{color:#1a1a1a}footer{text-align:center;border-top:1px solid #1a1a1a;font-size:small}.header-link{opacity:0;font-size:.8em;text-decoration:none;transition:opacity .2s ease-in-out .1s;position:relative;left:.5em}h2:hover .header-link,h3:hover .header-link,h4:hover .header-link,h5:hover .header-link,h6:hover .header-link{opacity:1}.wisski{padding-left:5px}.wisski.running{background-color:#9ada07}.wisski.stopped{background-color:#ff7a7a} -/*# sourceMappingURL=index.css.map */ +html{color:#1a1a1a;background-color:#fdfdfd;font-family:Roboto;font-size:20px;line-height:1.5}body{max-width:36em;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;text-rendering:optimizelegibility;font-kerning:normal;margin:0 auto;padding:50px}@media (max-width:600px){body{padding:1em;font-size:.9em}}h1{margin-top:1.4em}h2,h3{margin-top:1em}code{color:#00f;font-family:Roboto Mono}p{text-align:justify;margin:1em 0}a,a:visited{color:#1a1a1a}footer{text-align:center;border-top:1px solid #1a1a1a;font-size:small}.header-link{opacity:0;font-size:.8em;text-decoration:none;transition:opacity .2s ease-in-out .1s;position:relative;left:.5em}h2:hover .header-link,h3:hover .header-link,h4:hover .header-link,h5:hover .header-link,h6:hover .header-link{opacity:1}.wisski{padding-left:5px}.wisski.running{background-color:#9ada07}.wisski.stopped{background-color:#ff7a7a} \ No newline at end of file diff --git a/internal/component/static/dist/control/index.css.map b/internal/component/static/dist/control/index.css.map deleted file mode 100644 index 813c940..0000000 --- a/internal/component/static/dist/control/index.css.map +++ /dev/null @@ -1 +0,0 @@ -{"mappings":"ACAA,8FAOA,gKAaA,yBACI,iCAMJ,oBAIA,qBAIA,wCAKA,kCAKA,0BAIA,sECjDA,8HAcA,wHEZA,yBAIA,yCAIA","sources":["control/index.css","src/base/base.css","src/autolink/autolink.css","src/global.css","src/control/index.css"],"sourcesContent":["html {\n color: #1a1a1a;\n background-color: #fdfdfd;\n font-family: Roboto;\n font-size: 20px;\n line-height: 1.5;\n}\n\nbody {\n max-width: 36em;\n -webkit-hyphens: auto;\n hyphens: auto;\n overflow-wrap: break-word;\n text-rendering: optimizelegibility;\n font-kerning: normal;\n margin: 0 auto;\n padding: 50px;\n}\n\n@media (max-width: 600px) {\n body {\n padding: 1em;\n font-size: .9em;\n }\n}\n\nh1 {\n margin-top: 1.4em;\n}\n\nh2, h3 {\n margin-top: 1em;\n}\n\ncode {\n color: #00f;\n font-family: Roboto Mono;\n}\n\np {\n text-align: justify;\n margin: 1em 0;\n}\n\na, a:visited {\n color: #1a1a1a;\n}\n\nfooter {\n text-align: center;\n border-top: 1px solid #1a1a1a;\n font-size: small;\n}\n\n.header-link {\n opacity: 0;\n font-size: .8em;\n text-decoration: none;\n transition: opacity .2s ease-in-out .1s;\n position: relative;\n left: .5em;\n}\n\nh2:hover .header-link, h3:hover .header-link, h4:hover .header-link, h5:hover .header-link, h6:hover .header-link {\n opacity: 1;\n}\n\n\n\n.wisski {\n padding-left: 5px;\n}\n\n.wisski.running {\n background-color: #9ada07;\n}\n\n.wisski.stopped {\n background-color: #ff7a7a;\n}\n\n/*# sourceMappingURL=index.css.map */\n","html {\n line-height: 1.5;\n font-family: Roboto;\n font-size: 20px;\n color: #1a1a1a;\n background-color: #fdfdfd;\n}\nbody {\n margin: 0 auto;\n max-width: 36em;\n padding-left: 50px;\n padding-right: 50px;\n padding-top: 50px;\n padding-bottom: 50px;\n hyphens: auto;\n overflow-wrap: break-word;\n text-rendering: optimizeLegibility;\n font-kerning: normal;\n}\n\n@media (max-width: 600px) {\n body {\n font-size: 0.9em;\n padding: 1em;\n }\n}\n\nh1 {\n margin-top: 1.4em;\n}\n\nh2,h3 {\n margin-top: 1em; \n}\n\ncode {\n font-family: Roboto Mono;\n color: blue;\n}\n\np {\n margin: 1em 0;\n text-align: justify;\n}\n\na, a:visited {\n color: #1a1a1a;\n}\n\nfooter {\n border-top: 1px solid #1a1a1a;\n font-size: small;\n text-align: center;\n}\n",".header-link {\n position: relative;\n left: 0.5em;\n opacity: 0;\n font-size: 0.8em;\n\n transition: opacity 0.2s ease-in-out 0.1s;\n -webkit-transition: opacity 0.2s ease-in-out 0.1s;\n -moz-transition: opacity 0.2s ease-in-out 0.1s;\n -ms-transition: opacity 0.2s ease-in-out 0.1s;\n\n text-decoration: none;\n}\n\nh2:hover .header-link,\nh3:hover .header-link,\nh4:hover .header-link,\nh5:hover .header-link,\nh6:hover .header-link {\n opacity: 1;\n}","@import './base/base.css';\n@import './autolink/autolink.css';","@import '../global.css';\n\n.wisski {\n padding-left: 5px;\n}\n\n.wisski.running {\n background-color: #9ADA07;\n}\n\n.wisski.stopped {\n background-color: #ff7a7a;\n}\n"],"names":[],"version":3,"file":"index.css.map"} \ No newline at end of file diff --git a/internal/component/static/dist/control/index.js b/internal/component/static/dist/control/index.js index f95238d..503e815 100644 --- a/internal/component/static/dist/control/index.js +++ b/internal/component/static/dist/control/index.js @@ -1,2 +1 @@ -(()=>{const e=e=>{const t=document.getElementsByTagName("h"+e);Array.from(t).forEach((e=>{void 0!==e.id&&""!==e.id&&e.appendChild((e=>{const t=document.createElement("a");return t.className="header-link",t.href="#"+e,t.innerHTML="#",t})(e.id))}))};new Array(6).fill(0).forEach(((t,n)=>e(n+1)));const t={date:e=>new Date(e.innerText).toISOString(),path:e=>{const t=e.innerText.split("/");return t[t.length-1]},pathbuilders:e=>{const t=window.pathbuilders,o=document.createElement("span");let r=!1;if(Object.keys(t).forEach((e=>{r=!0;const a=e+".xml",c=t[e];o.append(n(a,e,c,"application/xml")),o.append(document.createTextNode(" "))})),!r)return"(none)";const a=document.createElement("small");return a.append(document.createTextNode("(click to download)")),o.append(a),o}},n=(e,t,n,o)=>{const r=new Blob([n],{type:o??"text/plain"}),a=document.createElement("a");return a.target="_blank",a.download=e,a.href=URL.createObjectURL(r),a.append(document.createTextNode(t)),a};Object.keys(t).forEach((e=>{const n=t[e];document.querySelectorAll("code."+e).forEach((e=>{const t=n(e);if("string"==typeof t)return e.innerHTML="",void e.appendChild(document.createTextNode(t));e.parentNode.replaceChild(t,e)}))}))})(); -//# sourceMappingURL=index.js.map +(()=>{const e=e=>{const t=document.getElementsByTagName("h"+e);Array.from(t).forEach((e=>{void 0!==e.id&&""!==e.id&&e.appendChild((e=>{const t=document.createElement("a");return t.className="header-link",t.href="#"+e,t.innerHTML="#",t})(e.id))}))};new Array(6).fill(0).forEach(((t,n)=>e(n+1)));const t={date:e=>new Date(e.innerText).toISOString(),path:e=>{const t=e.innerText.split("/");return t[t.length-1]},pathbuilders:e=>{const t=window.pathbuilders,o=document.createElement("span");let r=!1;if(Object.keys(t).forEach((e=>{r=!0;const a=e+".xml",c=t[e];o.append(n(a,e,c,"application/xml")),o.append(document.createTextNode(" "))})),!r)return"(none)";const a=document.createElement("small");return a.append(document.createTextNode("(click to download)")),o.append(a),o}},n=(e,t,n,o)=>{const r=new Blob([n],{type:o??"text/plain"}),a=document.createElement("a");return a.target="_blank",a.download=e,a.href=URL.createObjectURL(r),a.append(document.createTextNode(t)),a};Object.keys(t).forEach((e=>{const n=t[e];document.querySelectorAll("code."+e).forEach((e=>{const t=n(e);if("string"==typeof t)return e.innerHTML="",void e.appendChild(document.createTextNode(t));e.parentNode.replaceChild(t,e)}))}))})(); \ No newline at end of file diff --git a/internal/component/static/dist/control/index.js.map b/internal/component/static/dist/control/index.js.map deleted file mode 100644 index 8a89d97..0000000 --- a/internal/component/static/dist/control/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"mappings":"MACA,MAQMA,EAAkBC,IACpB,MAAMC,EAAUC,SAASC,qBAAqB,IAAMH,GACpDI,MAAMC,KAAKJ,GAASK,SAASC,SACA,IAAdA,EAAOC,IAAoC,KAAdD,EAAOC,IAC/CD,EAAOE,YAZK,CAACD,IACjB,MAAME,EAASR,SAASS,cAAc,KAItC,OAHAD,EAAOE,UAAY,cACnBF,EAAOG,KAAO,IAAML,EACpBE,EAAOI,UAAY,IACZJ,CAAM,EAOUK,CAAYR,EAAOC,IAAI,GAC5C,EAIL,IAAIJ,MAAM,GAAIY,KAAK,GAAGV,SAAQ,CAACW,EAAGC,IAAMnB,EAAemB,EAAI,KCf5D,MAAMC,EAAQ,CACVC,KAASC,GACE,IAAKC,KAAKD,EAAQE,WAAYC,cAEzCC,KAASJ,IACL,MAAMK,EAAOL,EAAQE,UAAUI,MAAM,KACrC,OAAOD,EAAKA,EAAKE,OAAS,EAAE,EAEhCC,aAAiBR,IACb,MAAMQ,EAAeC,OAAOD,aACtBE,EAAU7B,SAASS,cAAc,QAEvC,IAAIqB,GAAY,EAWhB,GAVAC,OAAOC,KAAKL,GAAcvB,SAAQ6B,IAC9BH,GAAY,EAEZ,MAAMI,EAAWD,EAAO,OAClBE,EAAOR,EAAaM,GAE1BJ,EAAQO,OAAOC,EAAmBH,EAAUD,EAAME,EADrC,oBAEbN,EAAQO,OAAOpC,SAASsC,eAAe,KAAK,KAG3CR,EAAW,MAAO,SAEvB,MAAMS,EAAQvC,SAASS,cAAc,SAIrC,OAHA8B,EAAMH,OAAOpC,SAASsC,eAAe,wBACrCT,EAAQO,OAAOG,GAERV,CAAO,GAIhBQ,EAAqB,CAACH,EAAUM,EAAOC,EAASC,KAClD,MAAMC,EAAO,IAAIC,KACb,CAACH,GACD,CACIC,KAAMA,GAAQ,eAIhBG,EAAO7C,SAASS,cAAc,KAMpC,OALAoC,EAAKC,OAAS,SACdD,EAAKE,SAAWb,EAChBW,EAAKlC,KAAOqC,IAAIC,gBAAgBN,GAChCE,EAAKT,OAAOpC,SAASsC,eAAeE,IAE7BK,CAAI,EAGfd,OAAOC,KAAKf,GAAOb,SAAQ8C,IACvB,MAAMC,EAAIlC,EAAMiC,GACClD,SAASoD,iBAAiB,QAAUF,GAC5C9C,SAAQe,IACb,MAAMkC,EAAaF,EAAEhC,GACrB,GAA0B,iBAAfkC,EAGP,OAFAlC,EAAQP,UAAY,QACpBO,EAAQZ,YAAYP,SAASsC,eAAee,IAIhDlC,EAAQmC,WAAWC,aAAaF,EAAYlC,EAAQ,GACtD,G","sources":["src/autolink/autolink.js","src/control/index.js"],"sourcesContent":["/** Adapted from http://blog.parkermoore.de/2014/08/01/header-anchor-links-in-vanilla-javascript-for-github-pages-and-jekyll/ */\nconst anchorForId = (id) => {\n const anchor = document.createElement(\"a\")\n anchor.className = \"header-link\"\n anchor.href = \"#\" + id\n anchor.innerHTML = \"#\"\n return anchor\n}\n\nconst linkifyAnchors = (level) => {\n const headers = document.getElementsByTagName(\"h\" + level);\n Array.from(headers).forEach((header) => {\n if (typeof header.id === \"undefined\" || header.id === \"\") return\n header.appendChild(anchorForId(header.id))\n })\n}\n\n// linkify all the anchors from 1 ... 6\n(new Array(6)).fill(0).forEach((_, i) => linkifyAnchors(i + 1))","import '../global.js';\nimport './index.css';\n\nconst types = {\n \"date\": (element) => {\n return (new Date(element.innerText)).toISOString()\n },\n \"path\": (element) => {\n const text = element.innerText.split(\"/\");\n return text[text.length - 1];\n },\n \"pathbuilders\": (element) => {\n const pathbuilders = window.pathbuilders; // read from context!\n const wrapper = document.createElement(\"span\");\n\n let found_one = false\n Object.keys(pathbuilders).forEach(name => {\n found_one = true\n\n const filename = name + \".xml\"\n const data = pathbuilders[name]\n const mime = \"application/xml\"\n wrapper.append(make_download_link(filename, name, data, mime))\n wrapper.append(document.createTextNode(\" \"))\n })\n\n if (!found_one) return '(none)';\n\n const small = document.createElement('small')\n small.append(document.createTextNode(\"(click to download)\"))\n wrapper.append(small)\n \n return wrapper\n }\n}\n\nconst make_download_link = (filename, title, content, type) => {\n const blob = new Blob(\n [content],\n {\n type: type ?? \"text/plain\"\n }\n );\n\n const link = document.createElement(\"a\")\n link.target = \"_blank\"\n link.download = filename\n link.href = URL.createObjectURL(blob)\n link.append(document.createTextNode(title))\n\n return link\n}\n\nObject.keys(types).forEach(key => {\n const f = types[key];\n const elements = document.querySelectorAll(\"code.\" + key)\n elements.forEach(element => {\n const newElement = f(element)\n if (typeof newElement === 'string') {\n element.innerHTML = \"\"\n element.appendChild(document.createTextNode(newElement))\n return\n }\n\n element.parentNode.replaceChild(newElement, element)\n })\n})"],"names":["$f0312a5caa2d901c$var$linkifyAnchors","level","headers","document","getElementsByTagName","Array","from","forEach","header","id","appendChild","anchor","createElement","className","href","innerHTML","$f0312a5caa2d901c$var$anchorForId","fill","_","i","$87b42c725c6052c6$var$types","date","element","Date","innerText","toISOString","path","text","split","length","pathbuilders","window","wrapper","found_one","Object","keys","name","filename","data","append","$87b42c725c6052c6$var$make_download_link","createTextNode","small","title","content","type","blob","Blob","link","target","download","URL","createObjectURL","key","f","querySelectorAll","newElement","parentNode","replaceChild"],"version":3,"file":"index.js.map"} \ No newline at end of file diff --git a/internal/component/static/dist/home/index.css b/internal/component/static/dist/home/index.css index 6c2c797..1414376 100644 --- a/internal/component/static/dist/home/index.css +++ b/internal/component/static/dist/home/index.css @@ -1,2 +1 @@ -html{color:#1a1a1a;background-color:#fdfdfd;font-family:Roboto;font-size:20px;line-height:1.5}body{max-width:36em;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;text-rendering:optimizelegibility;font-kerning:normal;margin:0 auto;padding:50px}@media (max-width:600px){body{padding:1em;font-size:.9em}}h1{margin-top:1.4em}h2,h3{margin-top:1em}code{color:#00f;font-family:Roboto Mono}p{text-align:justify;margin:1em 0}a,a:visited{color:#1a1a1a}footer{text-align:center;border-top:1px solid #1a1a1a;font-size:small}.header-link{opacity:0;font-size:.8em;text-decoration:none;transition:opacity .2s ease-in-out .1s;position:relative;left:.5em}h2:hover .header-link,h3:hover .header-link,h4:hover .header-link,h5:hover .header-link,h6:hover .header-link{opacity:1} -/*# sourceMappingURL=index.css.map */ +html{color:#1a1a1a;background-color:#fdfdfd;font-family:Roboto;font-size:20px;line-height:1.5}body{max-width:36em;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;text-rendering:optimizelegibility;font-kerning:normal;margin:0 auto;padding:50px}@media (max-width:600px){body{padding:1em;font-size:.9em}}h1{margin-top:1.4em}h2,h3{margin-top:1em}code{color:#00f;font-family:Roboto Mono}p{text-align:justify;margin:1em 0}a,a:visited{color:#1a1a1a}footer{text-align:center;border-top:1px solid #1a1a1a;font-size:small}.header-link{opacity:0;font-size:.8em;text-decoration:none;transition:opacity .2s ease-in-out .1s;position:relative;left:.5em}h2:hover .header-link,h3:hover .header-link,h4:hover .header-link,h5:hover .header-link,h6:hover .header-link{opacity:1} \ No newline at end of file diff --git a/internal/component/static/dist/home/index.css.map b/internal/component/static/dist/home/index.css.map deleted file mode 100644 index 64f9f78..0000000 --- a/internal/component/static/dist/home/index.css.map +++ /dev/null @@ -1 +0,0 @@ -{"mappings":"ACAA,8FAOA,gKAaA,yBACI,iCAMJ,oBAIA,qBAIA,wCAKA,kCAKA,0BAIA,sECjDA,8HAcA","sources":["home/index.css","src/base/base.css","src/autolink/autolink.css","src/global.css","src/home/index.css"],"sourcesContent":["html {\n color: #1a1a1a;\n background-color: #fdfdfd;\n font-family: Roboto;\n font-size: 20px;\n line-height: 1.5;\n}\n\nbody {\n max-width: 36em;\n -webkit-hyphens: auto;\n hyphens: auto;\n overflow-wrap: break-word;\n text-rendering: optimizelegibility;\n font-kerning: normal;\n margin: 0 auto;\n padding: 50px;\n}\n\n@media (max-width: 600px) {\n body {\n padding: 1em;\n font-size: .9em;\n }\n}\n\nh1 {\n margin-top: 1.4em;\n}\n\nh2, h3 {\n margin-top: 1em;\n}\n\ncode {\n color: #00f;\n font-family: Roboto Mono;\n}\n\np {\n text-align: justify;\n margin: 1em 0;\n}\n\na, a:visited {\n color: #1a1a1a;\n}\n\nfooter {\n text-align: center;\n border-top: 1px solid #1a1a1a;\n font-size: small;\n}\n\n.header-link {\n opacity: 0;\n font-size: .8em;\n text-decoration: none;\n transition: opacity .2s ease-in-out .1s;\n position: relative;\n left: .5em;\n}\n\nh2:hover .header-link, h3:hover .header-link, h4:hover .header-link, h5:hover .header-link, h6:hover .header-link {\n opacity: 1;\n}\n\n\n\n\n\n/*# sourceMappingURL=index.css.map */\n","html {\n line-height: 1.5;\n font-family: Roboto;\n font-size: 20px;\n color: #1a1a1a;\n background-color: #fdfdfd;\n}\nbody {\n margin: 0 auto;\n max-width: 36em;\n padding-left: 50px;\n padding-right: 50px;\n padding-top: 50px;\n padding-bottom: 50px;\n hyphens: auto;\n overflow-wrap: break-word;\n text-rendering: optimizeLegibility;\n font-kerning: normal;\n}\n\n@media (max-width: 600px) {\n body {\n font-size: 0.9em;\n padding: 1em;\n }\n}\n\nh1 {\n margin-top: 1.4em;\n}\n\nh2,h3 {\n margin-top: 1em; \n}\n\ncode {\n font-family: Roboto Mono;\n color: blue;\n}\n\np {\n margin: 1em 0;\n text-align: justify;\n}\n\na, a:visited {\n color: #1a1a1a;\n}\n\nfooter {\n border-top: 1px solid #1a1a1a;\n font-size: small;\n text-align: center;\n}\n",".header-link {\n position: relative;\n left: 0.5em;\n opacity: 0;\n font-size: 0.8em;\n\n transition: opacity 0.2s ease-in-out 0.1s;\n -webkit-transition: opacity 0.2s ease-in-out 0.1s;\n -moz-transition: opacity 0.2s ease-in-out 0.1s;\n -ms-transition: opacity 0.2s ease-in-out 0.1s;\n\n text-decoration: none;\n}\n\nh2:hover .header-link,\nh3:hover .header-link,\nh4:hover .header-link,\nh5:hover .header-link,\nh6:hover .header-link {\n opacity: 1;\n}","@import './base/base.css';\n@import './autolink/autolink.css';","@import '../global.css';\n"],"names":[],"version":3,"file":"index.css.map"} \ No newline at end of file diff --git a/internal/component/static/dist/home/index.js b/internal/component/static/dist/home/index.js index 08374b3..f4eab71 100644 --- a/internal/component/static/dist/home/index.js +++ b/internal/component/static/dist/home/index.js @@ -1,2 +1 @@ -(()=>{const e=e=>{const n=document.getElementsByTagName("h"+e);Array.from(n).forEach((e=>{void 0!==e.id&&""!==e.id&&e.appendChild((e=>{const n=document.createElement("a");return n.className="header-link",n.href="#"+e,n.innerHTML="#",n})(e.id))}))};new Array(6).fill(0).forEach(((n,r)=>e(r+1)))})(); -//# sourceMappingURL=index.js.map +(()=>{const e=e=>{const n=document.getElementsByTagName("h"+e);Array.from(n).forEach((e=>{void 0!==e.id&&""!==e.id&&e.appendChild((e=>{const n=document.createElement("a");return n.className="header-link",n.href="#"+e,n.innerHTML="#",n})(e.id))}))};new Array(6).fill(0).forEach(((n,r)=>e(r+1)))})(); \ No newline at end of file diff --git a/internal/component/static/dist/home/index.js.map b/internal/component/static/dist/home/index.js.map deleted file mode 100644 index 7a5b9b9..0000000 --- a/internal/component/static/dist/home/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"mappings":"MACA,MAQMA,EAAkBC,IACpB,MAAMC,EAAUC,SAASC,qBAAqB,IAAMH,GACpDI,MAAMC,KAAKJ,GAASK,SAASC,SACA,IAAdA,EAAOC,IAAoC,KAAdD,EAAOC,IAC/CD,EAAOE,YAZK,CAACD,IACjB,MAAME,EAASR,SAASS,cAAc,KAItC,OAHAD,EAAOE,UAAY,cACnBF,EAAOG,KAAO,IAAML,EACpBE,EAAOI,UAAY,IACZJ,CAAM,EAOUK,CAAYR,EAAOC,IAAI,GAC5C,EAIL,IAAIJ,MAAM,GAAIY,KAAK,GAAGV,SAAQ,CAACW,EAAGC,IAAMnB,EAAemB,EAAI,I","sources":["src/autolink/autolink.js"],"sourcesContent":["/** Adapted from http://blog.parkermoore.de/2014/08/01/header-anchor-links-in-vanilla-javascript-for-github-pages-and-jekyll/ */\nconst anchorForId = (id) => {\n const anchor = document.createElement(\"a\")\n anchor.className = \"header-link\"\n anchor.href = \"#\" + id\n anchor.innerHTML = \"#\"\n return anchor\n}\n\nconst linkifyAnchors = (level) => {\n const headers = document.getElementsByTagName(\"h\" + level);\n Array.from(headers).forEach((header) => {\n if (typeof header.id === \"undefined\" || header.id === \"\") return\n header.appendChild(anchorForId(header.id))\n })\n}\n\n// linkify all the anchors from 1 ... 6\n(new Array(6)).fill(0).forEach((_, i) => linkifyAnchors(i + 1))"],"names":["$f0312a5caa2d901c$var$linkifyAnchors","level","headers","document","getElementsByTagName","Array","from","forEach","header","id","appendChild","anchor","createElement","className","href","innerHTML","$f0312a5caa2d901c$var$anchorForId","fill","_","i"],"version":3,"file":"index.js.map"} \ No newline at end of file diff --git a/internal/component/static/package.json b/internal/component/static/package.json index f2da5fe..e15bce7 100644 --- a/internal/component/static/package.json +++ b/internal/component/static/package.json @@ -8,7 +8,7 @@ "parcel": "^2.7.0" }, "scripts": { - "dist": "parcel build --dist-dir dist --target default" + "dist": "parcel build --dist-dir dist --target default --public-url /static/ --no-source-maps" }, "targets": { "default": { diff --git a/internal/component/static/src/base/base.css b/internal/component/static/src/base/base.css index 3292cac..0a4e996 100644 --- a/internal/component/static/src/base/base.css +++ b/internal/component/static/src/base/base.css @@ -1,3 +1,4 @@ +/* This file is included globally into every frontend page */ html { line-height: 1.5; font-family: Roboto; diff --git a/internal/component/static/src/base/base.js b/internal/component/static/src/base/base.js index a7c47a6..b18e38f 100644 --- a/internal/component/static/src/base/base.js +++ b/internal/component/static/src/base/base.js @@ -1 +1 @@ -/* nothing here */ \ No newline at end of file +// This file is included globally into every distillery frontend page