feat: 添加i18n,美化界面

This commit is contained in:
2025-03-20 02:29:01 +08:00
parent 27d9bdf54e
commit c206add7eb
56 changed files with 2743 additions and 928 deletions

View File

@@ -0,0 +1,17 @@
import { useEffect, useRef } from 'react';
import { BaseEditor } from '../../editor/editor';
export const FileEditor = () => {
const containerRef = useRef<HTMLDivElement>(null);
useEffect(() => {
const editor = new BaseEditor();
if (containerRef.current) {
editor.createEditor(containerRef.current);
}
return () => {
editor.destroyEditor();
};
}, []);
return <div ref={containerRef} className='w-full h-full'></div>;
};