TCP 서버 모드 추가

This commit is contained in:
현성필
2025-01-21 13:19:21 +09:00
parent e23684d833
commit cb9201ddd2
106 changed files with 17710 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
export const monacoConfig = {
getWorkerUrl: function(moduleId, label) {
const contextPath = document.querySelector('meta[name="context-path"]')?.getAttribute('content') || '/';
const basePath = contextPath.endsWith('/') ? contextPath : `${contextPath}/`;
const workers = {
json: 'json.worker.bundle.js',
css: 'css.worker.bundle.js',
html: 'html.worker.bundle.js',
typescript: 'ts.worker.bundle.js',
javascript: 'ts.worker.bundle.js',
default: 'editor.worker.bundle.js'
};
const workerPath = workers[label] || workers.default;
return `${basePath}plugins/apitestmanager/${workerPath}`;
}
};