This commit is contained in:
hediet 2023-04-05 11:03:54 +00:00
parent 3f366fe0a6
commit 8c7e0dd5bb
364 changed files with 364 additions and 364 deletions

View file

@ -1,2 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[8819],{8819:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});const o='customElements.define(\n\t"code-view-monaco",\n\tclass CodeViewMonaco extends HTMLElement {\n\t\t_monacoEditor;\n\t\t/** @type HTMLElement */\n\t\t_editor;\n\n\t\tconstructor() {\n\t\t\tsuper();\n\n\t\t\tconst shadowRoot = this.attachShadow({ mode: "open" });\n\n\t\t\t// Copy over editor styles\n\t\t\tconst style = document.querySelector(\n\t\t\t\t"link[rel=\'stylesheet\'][data-name=\'vs/editor/editor.main\']"\n\t\t\t);\n\t\t\tshadowRoot.appendChild(style.cloneNode(true));\n\n\t\t\tconst template = /** @type HTMLTemplateElement */ (\n\t\t\t\tdocument.getElementById("editor-template")\n\t\t\t);\n\t\t\tshadowRoot.appendChild(template.content.cloneNode(true));\n\n\t\t\tthis._editor = shadowRoot.querySelector("#container");\n\t\t\tthis._monacoEditor = monaco.editor.create(this._editor, {\n\t\t\t\tautomaticLayout: true,\n\t\t\t\tlanguage: "html",\n\n\t\t\t\tvalue: `<div>Hello World</div>`,\n\t\t\t});\n\t\t}\n\t}\n);\n'}}]);
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[8819],{8819:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});const o='customElements.define(\n\t"code-view-monaco",\n\tclass CodeViewMonaco extends HTMLElement {\n\t\t_monacoEditor;\n\t\t/** @type HTMLElement */\n\t\t_editor;\n\n\t\tconstructor() {\n\t\t\tsuper();\n\n\t\t\tconst shadowRoot = this.attachShadow({ mode: "open" });\n\n\t\t\t// Copy over editor styles\n\t\t\tconst styles = document.querySelectorAll(\n\t\t\t\t"link[rel=\'stylesheet\'][data-name^=\'vs/\']"\n\t\t\t);\n\t\t\tfor (const style of styles) {\n\t\t\t\tshadowRoot.appendChild(style.cloneNode(true));\n\t\t\t}\n\n\t\t\tconst template = /** @type HTMLTemplateElement */ (\n\t\t\t\tdocument.getElementById("editor-template")\n\t\t\t);\n\t\t\tshadowRoot.appendChild(template.content.cloneNode(true));\n\n\t\t\tthis._editor = shadowRoot.querySelector("#container");\n\t\t\tthis._monacoEditor = monaco.editor.create(this._editor, {\n\t\t\t\tautomaticLayout: true,\n\t\t\t\tlanguage: "html",\n\n\t\t\t\tvalue: `<div>Hello World</div>`,\n\t\t\t});\n\t\t}\n\t}\n);\n'}}]);
//# sourceMappingURL=8819.js.map