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; +}