aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/monacoWin.html66
1 files changed, 0 insertions, 66 deletions
diff --git a/src/components/monacoWin.html b/src/components/monacoWin.html
deleted file mode 100644
index 61d075f..0000000
--- a/src/components/monacoWin.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8" />
- <title>Vencord QuickCSS Editor</title>
- <link
- rel="stylesheet"
- href="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.40.0/min/vs/editor/editor.main.min.css"
- integrity="sha512-MOoQ02h80hklccfLrXFYkCzG+WVjORflOp9Zp8dltiaRP+35LYnO4LKOklR64oMGfGgJDLO8WJpkM1o5gZXYZQ=="
- crossorigin="anonymous"
- referrerpolicy="no-referrer"
- />
- <style>
- html,
- body,
- #container {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- margin: 0;
- padding: 0;
- overflow: hidden;
- }
- </style>
- </head>
-
- <body>
- <div id="container"></div>
- <script
- src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.40.0/min/vs/loader.min.js"
- integrity="sha512-QzMpXeCPciAHP4wbYlV2PYgrQcaEkDQUjzkPU4xnjyVSD9T36/udamxtNBqb4qK4/bMQMPZ8ayrBe9hrGdBFjQ=="
- crossorigin="anonymous"
- referrerpolicy="no-referrer"
- ></script>
-
- <script>
- require.config({
- paths: {
- vs: "https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.40.0/min/vs",
- },
- });
-
- require(["vs/editor/editor.main"], () => {
- getCurrentCss().then((css) => {
- var editor = monaco.editor.create(
- document.getElementById("container"),
- {
- value: css,
- language: "css",
- theme: getTheme(),
- }
- );
- editor.onDidChangeModelContent(() =>
- setCss(editor.getValue())
- );
- window.addEventListener("resize", () => {
- // make monaco re-layout
- editor.layout();
- });
- });
- });
- </script>
- </body>
-</html>