diff --git a/.gitignore b/.gitignore index 67dd9e4..8b56209 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ nn/models/*.pt build/bin frontend/node_modules frontend/dist +frontend/public diff --git a/app.db b/app.db index 1d79e28..14325bd 100644 Binary files a/app.db and b/app.db differ diff --git a/frontend/index.html b/frontend/index.html index aba2420..e6ca92f 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,9 +3,9 @@
- +
+ 暂无记录
+确定要删除当前记录?
diff --git a/frontend/src/components/ImagePreview.tsx b/frontend/src/components/ImagePreview.tsx new file mode 100644 index 0000000..2409b4a --- /dev/null +++ b/frontend/src/components/ImagePreview.tsx @@ -0,0 +1,27 @@ +import { useState, useEffect } from 'preact/hooks' + +interface Props { + filename: string + class?: string + id?: string +} + +const ImagePreview = ({ filename, ...props }: Props) => { + const [src, setSrc] = useState