From b76e87886167eac0c0a4680d443e4b2d5eb61504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scout=E5=BC=80=E5=8F=91=E8=80=85?= Date: Sun, 30 Aug 2026 21:51:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=B5=8B=E8=AF=95=E4=B8=8E?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 + frontend/.gitignore | 2 +- frontend/index.html | 2 +- frontend/package.json | 2 +- frontend/src/App.vue | 2 +- frontend/src/main.js | 2 +- frontend/src/styles.css | 2 +- frontend/src/views/Home/Home.css | 2 +- frontend/src/views/Home/Home.js | 2 +- frontend/src/views/Home/Home.vue | 2 +- frontend/vite.config.js | 2 +- internal/httpapi/server_test.go | 123 +++++++++++++++++++++++++++ internal/registry/registry_test.go | 78 +++++++++++++++++ 使用说明.md | 130 +++++++++++++++++++++++++++++ 14 files changed, 344 insertions(+), 10 deletions(-) create mode 100644 .gitignore create mode 100644 internal/httpapi/server_test.go create mode 100644 internal/registry/registry_test.go create mode 100644 使用说明.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..23410e1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +data/ +*.exe +*.pkg diff --git a/frontend/.gitignore b/frontend/.gitignore index 8a39664..a5926d8 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -1,4 +1,4 @@ -node_modules/ +node_modules/ dist/ .env .env.* diff --git a/frontend/index.html b/frontend/index.html index 79ef08a..02185f9 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,4 +1,4 @@ - + diff --git a/frontend/package.json b/frontend/package.json index 7a50fb6..591b2e6 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,4 +1,4 @@ -{ +{ "name": "scout-frontend", "private": true, "version": "0.1.0", diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 9cca04d..89512e5 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,4 +1,4 @@ - diff --git a/frontend/src/main.js b/frontend/src/main.js index a211303..fdbdce5 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -1,4 +1,4 @@ -import { createApp } from 'vue' +import { createApp } from 'vue' import App from './App.vue' import './styles.css' diff --git a/frontend/src/styles.css b/frontend/src/styles.css index 6c14c77..2a907a9 100644 --- a/frontend/src/styles.css +++ b/frontend/src/styles.css @@ -1,4 +1,4 @@ -:root { +:root { font-family: Inter, "Microsoft YaHei", "微软雅黑", sans-serif; color: #dce4f2; background: #0b1220; diff --git a/frontend/src/views/Home/Home.css b/frontend/src/views/Home/Home.css index 605ac6c..28f76dd 100644 --- a/frontend/src/views/Home/Home.css +++ b/frontend/src/views/Home/Home.css @@ -1,4 +1,4 @@ -.page-shell { +.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 72px; diff --git a/frontend/src/views/Home/Home.js b/frontend/src/views/Home/Home.js index 607609a..e153cc6 100644 --- a/frontend/src/views/Home/Home.js +++ b/frontend/src/views/Home/Home.js @@ -1,4 +1,4 @@ -import { ref } from 'vue' +import { ref } from 'vue' const defaultApi = import.meta.env.VITE_API_BASE || 'http://127.0.0.1:8080' diff --git a/frontend/src/views/Home/Home.vue b/frontend/src/views/Home/Home.vue index 3281ed8..8a4cc9e 100644 --- a/frontend/src/views/Home/Home.vue +++ b/frontend/src/views/Home/Home.vue @@ -1,4 +1,4 @@ -