From 367a9b98e9150ab63f06d6e32df271803558f6c4 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Tue, 8 Sep 2026 22:23:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=8B=AC=E7=AB=8B=E5=BA=94=E7=94=A8):=20O?= =?UTF-8?q?FDGo=20WebUI=E6=94=AF=E6=8C=81=E5=AE=89=E8=A3=85=E4=B8=BA?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E5=BA=94=E7=94=A8=EF=BC=8C=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E4=B8=8E=E7=AA=97=E5=8F=A3=E9=85=8D=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/webui/assets.go | 2 +- assets/webui/index.html | 3 +++ assets/webui/ofdgo.json | 17 +++++++++++++++++ assets/webui/ofdgo.svg | 4 ++++ assets/webui/ofdgo.sw.js | 2 +- 5 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 assets/webui/ofdgo.json create mode 100644 assets/webui/ofdgo.svg diff --git a/assets/webui/assets.go b/assets/webui/assets.go index dbeca06..fb4c825 100644 --- a/assets/webui/assets.go +++ b/assets/webui/assets.go @@ -22,7 +22,7 @@ import ( // FS WebUI嵌入静态文件 // -//go:embed index.html ofdgo.css ofdgo.js ofdgo.sw.js ofdgo.wasm wasm_exec.js +//go:embed index.html ofdgo.css ofdgo.js ofdgo.json ofdgo.svg ofdgo.sw.js ofdgo.wasm wasm_exec.js var FS embed.FS // Checksum 计算WebUI嵌入资源校验值 diff --git a/assets/webui/index.html b/assets/webui/index.html index 3865178..0cdfe16 100644 --- a/assets/webui/index.html +++ b/assets/webui/index.html @@ -3,7 +3,10 @@ + OFDGo WebUI + + diff --git a/assets/webui/ofdgo.json b/assets/webui/ofdgo.json new file mode 100644 index 0000000..0264546 --- /dev/null +++ b/assets/webui/ofdgo.json @@ -0,0 +1,17 @@ +{ + "id": "./", + "name": "OFDGo WebUI", + "short_name": "OFDGo", + "start_url": "./", + "scope": "./", + "display": "standalone", + "background_color": "#eef1f4", + "theme_color": "#fbfcfd", + "icons": [ + { + "src": "./ofdgo.svg", + "sizes": "any", + "type": "image/svg+xml" + } + ] +} diff --git a/assets/webui/ofdgo.svg b/assets/webui/ofdgo.svg new file mode 100644 index 0000000..bcd9f5d --- /dev/null +++ b/assets/webui/ofdgo.svg @@ -0,0 +1,4 @@ + + + + diff --git a/assets/webui/ofdgo.sw.js b/assets/webui/ofdgo.sw.js index b3c17c7..9a2d474 100644 --- a/assets/webui/ofdgo.sw.js +++ b/assets/webui/ofdgo.sw.js @@ -1,6 +1,6 @@ const CACHE_PREFIX = `ofdgo:${self.registration.scope}:app:`; const META_CACHE = `${CACHE_PREFIX}meta`; -const ASSETS = ["./", "ofdgo.css", "ofdgo.js", "wasm_exec.js", "ofdgo.wasm", "ofdgo.sw.js"] +const ASSETS = ["./", "ofdgo.css", "ofdgo.js", "ofdgo.json", "ofdgo.svg", "ofdgo.sw.js", "ofdgo.wasm", "wasm_exec.js"] .map((path) => new URL(path, self.registration.scope).href); const CLIENT_PREFIX = new URL("__client/", self.registration.scope).href;