@jsenv/cli
Version:
Command Line Interface for jsenv
1 lines • 988 B
JavaScript
("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t};const e=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),t=new CSSStyleSheet;t.replaceSync(e.text);let n=0;document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];const o=import.meta.resolve(__v__("/other/jsenv_logo.svg"));document.querySelector("#root").innerHTML=`<h1>Hello world!</h1>\n<img class="logo" src=${o} alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch('/.internal/open_file/jsenv_logo.svg')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>`,(()=>{const e=document.querySelector("#counter_button"),t=document.querySelector("#counter_output");t.innerHTML=n,e.onclick=()=>{n++,t.innerHTML=n}})();