-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
汪航洋
committed
Nov 23, 2023
1 parent
d6fda1c
commit 4f2e698
Showing
14 changed files
with
177 additions
and
44 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#root { | ||
width: 100%; | ||
} | ||
.g-boder { | ||
border: 1px solid #ccc; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* eslint-disable */ | ||
import * as monaco from "monaco-editor"; | ||
import editorWorker from "monaco-editor/esm/vs/editor/editor.worker?worker"; | ||
import jsonWorker from "monaco-editor/esm/vs/language/json/json.worker?worker"; | ||
// import cssWorker from "monaco-editor/esm/vs/language/css/css.worker?worker"; | ||
// import htmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker"; | ||
// import tsWorker from "monaco-editor/esm/vs/language/typescript/ts.worker?worker"; | ||
// @ts-ignore | ||
import { language as yamlLanguage } from "monaco-editor/esm/vs/basic-languages/yaml/yaml"; | ||
|
||
// eslint-disable-next-line | ||
// @ts-ignore | ||
self.MonacoEnvironment = { | ||
getWorker(_: any, label: string) { | ||
console.log('[label]',label); | ||
// setLocaleData(zh_CN.contents); | ||
if (label === "json") { | ||
return new jsonWorker(); | ||
} | ||
// if (label === "css" || label === "scss" || label === "less") { | ||
// return new cssWorker(); | ||
// } | ||
// if (label === "html" || label === "handlebars" || label === "razor") { | ||
// return new htmlWorker(); | ||
// } | ||
// if (label === "typescript" || label === "javascript") { | ||
// return new tsWorker(); | ||
// } | ||
return new editorWorker(); | ||
}, | ||
}; | ||
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({ | ||
allowComments: true, | ||
trailingCommas: 'warning', | ||
}) | ||
monaco.languages.typescript.typescriptDefaults.setEagerModelSync(true); | ||
|
Oops, something went wrong.