From 78aa86b23cec6ace01c6c50ea1da4624ded64d18 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Feb 2026 12:10:17 +0000 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E4=BB=8Etag=E6=B3=A8=E5=85=A5=E5=B9=B6=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-build.yml | 6 +++++- .sisyphus/ralph-loop.local.md | 9 +++++++++ springboot-backend/.factorypath | 3 +++ vite-frontend/src/config/site.ts | 2 +- vite-frontend/src/vite-env.d.ts | 9 +++++++++ 5 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .sisyphus/ralph-loop.local.md create mode 100644 springboot-backend/.factorypath diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 86e12cd..b1c877c 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -150,7 +150,11 @@ jobs: - name: Prepare build args run: | - echo "VITE_GITHUB_REPO=https://github.com/${{ github.repository }}" > ./vite-frontend/.env.production + VERSION="${{ needs.check-version.outputs.version }}" + { + echo "VITE_GITHUB_REPO=https://github.com/${{ github.repository }}" + echo "VITE_APP_VERSION=$VERSION" + } > ./vite-frontend/.env.production - name: Build and push Vite Docker images run: | diff --git a/.sisyphus/ralph-loop.local.md b/.sisyphus/ralph-loop.local.md new file mode 100644 index 0000000..506653a --- /dev/null +++ b/.sisyphus/ralph-loop.local.md @@ -0,0 +1,9 @@ +--- +active: true +iteration: 1 +max_iterations: 100 +completion_promise: "DONE" +started_at: "2026-01-24T05:20:50.887Z" +session_id: "ses_41192b7d7ffewFHxf1dDS7ESHO" +--- +Complete the task as instructed diff --git a/springboot-backend/.factorypath b/springboot-backend/.factorypath new file mode 100644 index 0000000..40ad18f --- /dev/null +++ b/springboot-backend/.factorypath @@ -0,0 +1,3 @@ + + + diff --git a/vite-frontend/src/config/site.ts b/vite-frontend/src/config/site.ts index bb19a4f..50b8e70 100644 --- a/vite-frontend/src/config/site.ts +++ b/vite-frontend/src/config/site.ts @@ -4,7 +4,7 @@ export type SiteConfig = typeof siteConfig; // 缓存相关常量 const CACHE_PREFIX = 'vite_config_'; -const VERSION = "2.0.9"; +const VERSION = import.meta.env.VITE_APP_VERSION || "dev"; const APP_VERSION = "1.0.3"; const GITHUB_REPO = import.meta.env.VITE_GITHUB_REPO || "https://github.com/Sagit-chu/flux-panel"; diff --git a/vite-frontend/src/vite-env.d.ts b/vite-frontend/src/vite-env.d.ts index 11f02fe..4432e8c 100644 --- a/vite-frontend/src/vite-env.d.ts +++ b/vite-frontend/src/vite-env.d.ts @@ -1 +1,10 @@ /// + +interface ImportMetaEnv { + readonly VITE_APP_VERSION?: string; + readonly VITE_GITHUB_REPO?: string; +} + +interface ImportMeta { + readonly env: ImportMetaEnv; +}