Skip to content

Commit

Permalink
refactor: move the Monaco Editor files into its own monaco folder
Browse files Browse the repository at this point in the history
  • Loading branch information
TheodoreChu committed Jan 5, 2021
1 parent 0bdac1e commit f48797f
Show file tree
Hide file tree
Showing 161 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"static/js/1.0dbef43e.chunk.js": "./static/js/1.0dbef43e.chunk.js",
"static/js/1.0dbef43e.chunk.js.map": "./static/js/1.0dbef43e.chunk.js.map",
"main.css": "./static/css/main.dceb5629.chunk.css",
"main.js": "./static/js/main.ff7e3763.chunk.js",
"main.js.map": "./static/js/main.ff7e3763.chunk.js.map",
"main.js": "./static/js/main.74d6b10a.chunk.js",
"main.js.map": "./static/js/main.74d6b10a.chunk.js.map",
"runtime-main.js": "./static/js/runtime-main.98af68d1.js",
"runtime-main.js.map": "./static/js/runtime-main.98af68d1.js.map",
"static/css/4.7bce798e.chunk.css": "./static/css/4.7bce798e.chunk.css",
Expand Down Expand Up @@ -162,6 +162,6 @@
"static/css/4.7bce798e.chunk.css",
"static/js/4.6f4b4ec1.chunk.js",
"static/css/main.dceb5629.chunk.css",
"static/js/main.ff7e3763.chunk.js"
"static/js/main.74d6b10a.chunk.js"
]
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" type="image/png" href="./icon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="The Append Editor is an unofficial editor for Standard Notes, a free, open-source, and end-to-end encrypted notes app. Try the demo at beta.appendeditor.com or learn more at appendeditor.com."/><link rel="apple-touch-icon" href="./icon192.png"/><link rel="manifest" href="./manifest.json"/><link rel="stylesheet" href="./katex/v0.12.0/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous"/><title>Append Editor</title><link href="./static/css/4.7bce798e.chunk.css" rel="stylesheet"><link href="./static/css/main.dceb5629.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="editor.worker.bundle.js"></script><script src="json.worker.bundle.js"></script><script src="css.worker.bundle.js"></script><script src="html.worker.bundle.js"></script><script src="ts.worker.bundle.js"></script><script>!function(e){function r(r){for(var n,o,f=r[0],d=r[1],u=r[2],b=0,l=[];b<f.length;b++)o=f[b],Object.prototype.hasOwnProperty.call(c,o)&&c[o]&&l.push(c[o][0]),c[o]=0;for(n in d)Object.prototype.hasOwnProperty.call(d,n)&&(e[n]=d[n]);for(i&&i(r);l.length;)l.shift()();return a.push.apply(a,u||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,f=1;f<t.length;f++){var d=t[f];0!==c[d]&&(n=!1)}n&&(a.splice(r--,1),e=o(o.s=t[0]))}return e}var n={},c={3:0},a=[];function o(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var r=[],t=c[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=c[e]=[r,n]}));r.push(t[2]=n);var a,f=document.createElement("script");f.charset="utf-8",f.timeout=120,o.nc&&f.setAttribute("nonce",o.nc),f.src=function(e){return o.p+"static/js/"+({}[e]||e)+"."+{0:"87c49743",1:"0dbef43e",5:"91ef5c31",6:"725313d9",7:"5f96abc8",8:"a505da4b",9:"ccff5455",10:"08817145",11:"adeee88f",12:"45ba7331",13:"6d3bf8cb",14:"861e999d",15:"7a23ca84",16:"f96cc941",17:"45dbde03",18:"c22beddd",19:"66d118dc",20:"39c0d454",21:"fe2551fc",22:"c537d100",23:"023d855a",24:"bae09a12",25:"449535b3",26:"1b58234a",27:"aa8857f4",28:"c3c72161",29:"1ecb7db8",30:"c106d1fb",31:"09ef267b",32:"6bdb35c4",33:"43eec384",34:"23a93b59",35:"71830899",36:"7c88cc51",37:"11e55ced",38:"3554adb8",39:"30415a31",40:"295e16ea",41:"a4a6579d",42:"09a8cdb9",43:"b698f72c",44:"77d4412f",45:"e2094dc8",46:"fc6d098b",47:"bb8f9d49",48:"7bec96f9",49:"5ff2451b",50:"042916a2",51:"7679f7f6",52:"1f911780",53:"1448608b",54:"83a5eefe",55:"57cc5d6c",56:"f287603e",57:"108287a4",58:"08dcd9ed",59:"6520abb6",60:"dc743adc",61:"aae4f8cd",62:"ce30cb8d",63:"a1c4793c",64:"e33c6dc0",65:"37f8759f",66:"3b992551",67:"83b81ea1",68:"2a1e615c",69:"8be52b8c",70:"4ef14283",71:"a6d32cf8",72:"7b657963",73:"fc1be0a0"}[e]+".chunk.js"}(e);var d=new Error;a=function(r){f.onerror=f.onload=null,clearTimeout(u);var t=c[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;d.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",d.name="ChunkLoadError",d.type=n,d.request=a,t[1](d)}c[e]=void 0}};var u=setTimeout((function(){a({type:"timeout",target:f})}),12e4);f.onerror=f.onload=a,document.head.appendChild(f)}return Promise.all(r)},o.m=e,o.c=n,o.d=function(e,r,t){o.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,r){if(1&r&&(e=o(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)o.d(t,n,function(r){return e[r]}.bind(null,n));return t},o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,"a",r),r},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.p="./",o.oe=function(e){throw console.error(e),e};var f=this["webpackJsonpappend-editor"]=this["webpackJsonpappend-editor"]||[],d=f.push.bind(f);f.push=r,f=f.slice();for(var u=0;u<f.length;u++)r(f[u]);var i=d;t()}([])</script><script src="./static/js/4.6f4b4ec1.chunk.js"></script><script src="./static/js/main.ff7e3763.chunk.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" type="image/png" href="./icon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="The Append Editor is an unofficial editor for Standard Notes, a free, open-source, and end-to-end encrypted notes app. Try the demo at beta.appendeditor.com or learn more at appendeditor.com."/><link rel="apple-touch-icon" href="./icon192.png"/><link rel="manifest" href="./manifest.json"/><link rel="stylesheet" href="./katex/v0.12.0/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous"/><title>Append Editor</title><link href="./static/css/4.7bce798e.chunk.css" rel="stylesheet"><link href="./static/css/main.dceb5629.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="./monaco/editor.worker.bundle.js"></script><script src="./monaco/json.worker.bundle.js"></script><script src="./monaco/css.worker.bundle.js"></script><script src="./monaco/html.worker.bundle.js"></script><script src="./monaco/ts.worker.bundle.js"></script><script>!function(e){function r(r){for(var n,o,f=r[0],d=r[1],u=r[2],b=0,l=[];b<f.length;b++)o=f[b],Object.prototype.hasOwnProperty.call(c,o)&&c[o]&&l.push(c[o][0]),c[o]=0;for(n in d)Object.prototype.hasOwnProperty.call(d,n)&&(e[n]=d[n]);for(i&&i(r);l.length;)l.shift()();return a.push.apply(a,u||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,f=1;f<t.length;f++){var d=t[f];0!==c[d]&&(n=!1)}n&&(a.splice(r--,1),e=o(o.s=t[0]))}return e}var n={},c={3:0},a=[];function o(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var r=[],t=c[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=c[e]=[r,n]}));r.push(t[2]=n);var a,f=document.createElement("script");f.charset="utf-8",f.timeout=120,o.nc&&f.setAttribute("nonce",o.nc),f.src=function(e){return o.p+"static/js/"+({}[e]||e)+"."+{0:"87c49743",1:"0dbef43e",5:"91ef5c31",6:"725313d9",7:"5f96abc8",8:"a505da4b",9:"ccff5455",10:"08817145",11:"adeee88f",12:"45ba7331",13:"6d3bf8cb",14:"861e999d",15:"7a23ca84",16:"f96cc941",17:"45dbde03",18:"c22beddd",19:"66d118dc",20:"39c0d454",21:"fe2551fc",22:"c537d100",23:"023d855a",24:"bae09a12",25:"449535b3",26:"1b58234a",27:"aa8857f4",28:"c3c72161",29:"1ecb7db8",30:"c106d1fb",31:"09ef267b",32:"6bdb35c4",33:"43eec384",34:"23a93b59",35:"71830899",36:"7c88cc51",37:"11e55ced",38:"3554adb8",39:"30415a31",40:"295e16ea",41:"a4a6579d",42:"09a8cdb9",43:"b698f72c",44:"77d4412f",45:"e2094dc8",46:"fc6d098b",47:"bb8f9d49",48:"7bec96f9",49:"5ff2451b",50:"042916a2",51:"7679f7f6",52:"1f911780",53:"1448608b",54:"83a5eefe",55:"57cc5d6c",56:"f287603e",57:"108287a4",58:"08dcd9ed",59:"6520abb6",60:"dc743adc",61:"aae4f8cd",62:"ce30cb8d",63:"a1c4793c",64:"e33c6dc0",65:"37f8759f",66:"3b992551",67:"83b81ea1",68:"2a1e615c",69:"8be52b8c",70:"4ef14283",71:"a6d32cf8",72:"7b657963",73:"fc1be0a0"}[e]+".chunk.js"}(e);var d=new Error;a=function(r){f.onerror=f.onload=null,clearTimeout(u);var t=c[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;d.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",d.name="ChunkLoadError",d.type=n,d.request=a,t[1](d)}c[e]=void 0}};var u=setTimeout((function(){a({type:"timeout",target:f})}),12e4);f.onerror=f.onload=a,document.head.appendChild(f)}return Promise.all(r)},o.m=e,o.c=n,o.d=function(e,r,t){o.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,r){if(1&r&&(e=o(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)o.d(t,n,function(r){return e[r]}.bind(null,n));return t},o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,"a",r),r},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.p="./",o.oe=function(e){throw console.error(e),e};var f=this["webpackJsonpappend-editor"]=this["webpackJsonpappend-editor"]||[],d=f.push.bind(f);f.push=r,f=f.slice();for(var u=0;u<f.length;u++)r(f[u]);var i=d;t()}([])</script><script src="./static/js/4.6f4b4ec1.chunk.js"></script><script src="./static/js/main.74d6b10a.chunk.js"></script></body></html>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions build/static/js/main.74d6b10a.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/js/main.74d6b10a.chunk.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions build/static/js/main.ff7e3763.chunk.js

This file was deleted.

1 change: 0 additions & 1 deletion build/static/js/main.ff7e3763.chunk.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion monaco/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Monaco Editor

This folder includes the source code for a simple Monaco editor. You can build the source using `npm run build` then copy the appropriate `dist` files into the `public` directory to use the full features of the Monaco Editor.
This folder includes the source code for a simple Monaco editor. You can build the source using `npm run build` then copy the appropriate `dist` files into the `monaco` folder in the `public` directory to use the full features of the Monaco Editor. You probably do not need `app.bundle.js` or `index.html`.

This folder is a modified version of https://github.com/microsoft/monaco-editor-samples/tree/master/browser-esm-webpack-typescript-react, which is released under the MIT License, Copyright (c) 2016 Microsoft Corporation. This modified version is released under AGPL-3.0 as indicated in the README.md in the root directory. A copy of AGPL-3.0 is available there.
10 changes: 5 additions & 5 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script src="editor.worker.bundle.js"></script>
<script src="json.worker.bundle.js"></script>
<script src="css.worker.bundle.js"></script>
<script src="html.worker.bundle.js"></script>
<script src="ts.worker.bundle.js"></script>
<script src="./monaco/editor.worker.bundle.js"></script>
<script src="./monaco/json.worker.bundle.js"></script>
<script src="./monaco/css.worker.bundle.js"></script>
<script src="./monaco/html.worker.bundle.js"></script>
<script src="./monaco/ts.worker.bundle.js"></script>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions src/components/Monaco.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ const MonacoDiffEditorContainerID = 'MonacoDiffEditorContainer';
self.MonacoEnvironment = {
getWorkerUrl: function (_moduleId: any, label: string) {
if (label === 'json') {
return './json.worker.bundle.js';
return './monaco/json.worker.bundle.js';
}
if (label === 'css') {
return './css.worker.bundle.js';
return './monaco/css.worker.bundle.js';
}
if (label === 'html') {
return './html.worker.bundle.js';
return './monaco/html.worker.bundle.js';
}
if (label === 'typescript' || label === 'javascript') {
return './ts.worker.bundle.js';
return './monaco/ts.worker.bundle.js';
}
return './editor.worker.bundle.js';
return './monaco/editor.worker.bundle.js';
},
};

Expand Down

0 comments on commit f48797f

Please sign in to comment.