From 7c5c0314af11a09800c1670a6ecedc6787765e08 Mon Sep 17 00:00:00 2001 From: murray Date: Sat, 15 Jul 2023 21:57:19 +0800 Subject: [PATCH] chore: rename standard editor --- apps/next_demo/README.md | 2 +- packages/core/src/editor/{index.tsx => standardEditor.tsx} | 0 packages/core/src/index.ts | 2 +- .../docusaurus-plugin/src/theme/SoliveCodeBlock/index.tsx | 4 ++++ 4 files changed, 6 insertions(+), 2 deletions(-) rename packages/core/src/editor/{index.tsx => standardEditor.tsx} (100%) diff --git a/apps/next_demo/README.md b/apps/next_demo/README.md index 965a122..99ef200 100644 --- a/apps/next_demo/README.md +++ b/apps/next_demo/README.md @@ -14,7 +14,7 @@ pnpm dev Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. -You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. +You can start editing the page by modifying `pages/standardEditor.tsx`. The page auto-updates as you edit the file. [API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. diff --git a/packages/core/src/editor/index.tsx b/packages/core/src/editor/standardEditor.tsx similarity index 100% rename from packages/core/src/editor/index.tsx rename to packages/core/src/editor/standardEditor.tsx diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 9d3279e..6a4ff3d 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -1,4 +1,4 @@ -import Editor from './editor'; +import Editor from './editor/standardEditor'; export { default as PureEditor } from './editor/pureEditor'; export * from './types/monaco'; diff --git a/packages/docusaurus-plugin/src/theme/SoliveCodeBlock/index.tsx b/packages/docusaurus-plugin/src/theme/SoliveCodeBlock/index.tsx index b2ad6a8..0509c12 100644 --- a/packages/docusaurus-plugin/src/theme/SoliveCodeBlock/index.tsx +++ b/packages/docusaurus-plugin/src/theme/SoliveCodeBlock/index.tsx @@ -47,6 +47,10 @@ const PropsInfo = { type: 'boolean', default: false, }, + mode: { + type: 'string', + default: 'standard', + }, }; function SoliveCodeBlock(props: SoliveCodeBlockProps) {