From cfe8352d450da5eaf02cdca9d14924ae9a255510 Mon Sep 17 00:00:00 2001 From: yukaidi Date: Fri, 29 May 2026 10:29:44 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20GitHub=20URL=20=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=97=B6=E8=87=AA=E5=8A=A8=E4=BB=8E=20git=20?= =?UTF-8?q?remote=20origin=20=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 前端:vue.config.js 通过 DefinePlugin 注入 VUE_APP_GITHUB_REPO_URL, Home.vue/Playground.vue 中硬编码的 GitHub URL 全部改为动态变量。 后端:parser/pom.xml 添加 gmavenplus-plugin 在 initialize 阶段从 git remote origin 解析 github.owner/github.repo,SCM 字段引用 property。 --- parser/pom.xml | 34 +++++++++++++++++++++++++++--- web-front/src/views/Home.vue | 11 ++++++---- web-front/src/views/Playground.vue | 10 +++++---- web-front/vue.config.js | 16 ++++++++++++++ 4 files changed, 60 insertions(+), 11 deletions(-) diff --git a/parser/pom.xml b/parser/pom.xml index 12713c1..f1ede5d 100644 --- a/parser/pom.xml +++ b/parser/pom.xml @@ -35,9 +35,9 @@ - scm:git:https://github.com/yukaidi1220/netdisk-fast-download.git - scm:git:ssh://git@github.com:yukaidi1220/netdisk-fast-download.git - https://github.com/yukaidi1220/netdisk-fast-download + scm:git:https://github.com/${github.owner}/${github.repo}.git + scm:git:ssh://git@github.com:${github.owner}/${github.repo}.git + https://github.com/${github.owner}/${github.repo} @@ -124,6 +124,34 @@ + + + org.codehaus.gmavenplus + gmavenplus-plugin + 4.1.1 + + + initialize + execute + + + + + + + + + org.apache.maven.plugins diff --git a/web-front/src/views/Home.vue b/web-front/src/views/Home.vue index dc770fc..66979ee 100644 --- a/web-front/src/views/Home.vue +++ b/web-front/src/views/Home.vue @@ -19,11 +19,11 @@ -->