This commit is contained in:
hediet 2023-02-24 11:03:18 +00:00
parent 58cb123ed1
commit 7d6e9bc8c2
362 changed files with 365 additions and 356 deletions

2
8819.js Normal file
View file

@ -0,0 +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'}}]);
//# sourceMappingURL=8819.js.map