diff --git a/elastic/indexes.py b/elastic/indexes.py new file mode 100644 index 0000000..67b7bd5 --- /dev/null +++ b/elastic/indexes.py @@ -0,0 +1,3 @@ +INDEX_NAME = "wordsearch266666" +ACHIEVEMENT_INDEX_NAME = INDEX_NAME +USER_INDEX_NAME = INDEX_NAME diff --git a/elastic/templates/elastic/manage.html b/elastic/templates/elastic/manage.html new file mode 100644 index 0000000..9a969a1 --- /dev/null +++ b/elastic/templates/elastic/manage.html @@ -0,0 +1,176 @@ + + + + + 数据管理 + + + +
+

数据管理

+

仅管理员可见。可查看、编辑、删除所有记录。

+ + + + + + + + + + + + {% for it in items %} + + + + + + + + {% endfor %} + +
ID图片数据作者操作
{{ it._id }} + {% if it.image %} + +
/media/{{ it.image }}
+ {% endif %} +
+
{{ it.data|safe }}
+
{{ it.writer_id }} + + +
+ + + +
+ + + + \ No newline at end of file diff --git a/elastic/templates/elastic/upload.html b/elastic/templates/elastic/upload.html new file mode 100644 index 0000000..2685161 --- /dev/null +++ b/elastic/templates/elastic/upload.html @@ -0,0 +1,228 @@ + + + + + 图片上传与识别 + + + +
+

图片上传与识别

+

选择图片后上传,服务端调用大模型解析为可编辑的 JSON,再确认入库。

+ +
+ {% csrf_token %} + + + +
+ +
+
+

图片预览

+ 预览 +
+
+

识别结果(可编辑)

+
+ + +
+
+
+ +
+
+
+ +
+ + + +
+
+ + + +