Optimize code. Update templates.

This commit is contained in:
2024-01-14 11:14:14 +08:00
parent b0be3bc4a7
commit bcf29f74ef
27 changed files with 125 additions and 247 deletions

View File

@@ -1,6 +1,6 @@
import FitFullscreen from '@/components/common/FitFullscreen'
import Playground from '@/components/Playground'
import { initFiles, initImportMap, initTsConfig } from '@/components/Playground/files'
import { initFiles, initImportMap, initTsconfig } from '@/components/Playground/files'
const OnlineEditor = () => {
return (
@@ -9,7 +9,7 @@ const OnlineEditor = () => {
<Playground
initFiles={initFiles}
initImportMapRaw={JSON.stringify(initImportMap, null, 2)}
initTsConfigRaw={JSON.stringify(initTsConfig, null, 2)}
initTsconfigRaw={JSON.stringify(initTsconfig, null, 2)}
/>
</FitFullscreen>
</>