Finish editor in Playground Code Editor

This commit is contained in:
2024-01-08 00:16:08 +08:00
parent 82b5e75046
commit d526d913b9
14 changed files with 484 additions and 78 deletions

View File

@@ -1,11 +1,11 @@
import React from 'react'
import { IFiles, IPlaygroundContext, ITheme } from '@/components/ReactPlayground/shared.ts'
import { MAIN_FILE_NAME } from '@/components/files.ts'
import { MAIN_FILE_NAME } from '@/components/ReactPlayground/files.ts'
import {
fileNameToLanguage,
setPlaygroundTheme,
strToBase64
} from '@/components/ReactPlayground/Utils.ts'
} from '@/components/ReactPlayground/utils.ts'
const initialContext: Partial<IPlaygroundContext> = {
selectedFileName: MAIN_FILE_NAME