20241113-a

This commit is contained in:
unknown
2024-11-13 09:05:45 +08:00
commit 3bcaa20bc4
186 changed files with 100169 additions and 0 deletions

29
src/index.tsx Normal file
View File

@@ -0,0 +1,29 @@
import * as React from 'react';
import { render } from 'react-dom';
import App from './App';
import 'react-perfect-scrollbar/dist/css/styles.css';
import './index.css';
export function bootstrap(mountTo: HTMLElement) {
render(<App />, mountTo);
}
(self as any).MonacoEnvironment = {
getWorkerUrl: function (moduleId: any, label: string) {
if (label === 'json') {
return '/json.worker.bundle.js';
}
if (label === 'css') {
return '/css.worker.bundle.js';
}
if (label === 'html') {
return '/html.worker.bundle.js';
}
if (label === 'typescript' || label === 'javascript') {
return '/ts.worker.bundle.js';
}
return '/editor.worker.bundle.js';
},
};
bootstrap(document.getElementById('root')!);