generated from template/astro-template
fix: astro config for proxy
This commit is contained in:
@@ -7,6 +7,13 @@ import { html2md } from '@kevisual/markdown-editor/tiptap/index.ts';
|
||||
import { chatId } from '../ai-chat/utils/uuid';
|
||||
import '../ai-chat/index.css';
|
||||
import { links } from './data/link.ts';
|
||||
// const testImport = async () => {
|
||||
// const link1 = 'https://kevisual.xiongxiao.me/root/ai/code/frontend-js/test.js';
|
||||
// const link2 = () => '/root/ai/code/frontend-js/test.js';
|
||||
// // @ts-ignore
|
||||
// const link = await import(link2());
|
||||
// console.log('testImport', link);
|
||||
// };
|
||||
export const Editor = () => {
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
const editorRef = useRef<TextEditor | null>(null);
|
||||
@@ -30,6 +37,10 @@ export const Editor = () => {
|
||||
);
|
||||
};
|
||||
export const App = (props: any) => {
|
||||
useEffect(() => {
|
||||
// testImport();
|
||||
// console.log('chatId', chatId());
|
||||
}, []);
|
||||
return (
|
||||
<div className='w-full h-full flex flex-col'>
|
||||
<ShowLinks links={links} />
|
||||
|
||||
Reference in New Issue
Block a user