-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed commit of the following: commit 66d0e5e Author: Sun <[email protected]> Date: Thu Jan 25 13:20:34 2024 +0800 更新1.3.0-beta24-01-25 commit 52a81e5 Author: Sun <[email protected]> Date: Thu Jan 25 13:13:08 2024 +0800 Squashed commit of the following: commit 908d87357c4e22868eff85f377bb8cd22f3785d7 Author: Sun <[email protected]> Date: Thu Jan 25 13:12:14 2024 +0800 增加前端版本号 commit 8ed2b636476c7a14ae4e1761f7712949b7ce60fc Author: Sun <[email protected]> Date: Thu Jan 25 12:29:49 2024 +0800 增加自动获取前端版本号的git tag commit ba7d70f Author: Sun <[email protected]> Date: Thu Jan 25 10:58:15 2024 +0800 优化代码 commit 104543b Author: Sun <[email protected]> Date: Wed Jan 24 21:28:31 2024 +0800 增加系统状态组件的部分样式 commit 70c87c9 Author: Sun <[email protected]> Date: Wed Jan 24 20:55:05 2024 +0800 时间组件和搜索栏组件增加样式类型 commit 6bab5a2 Author: Sun <[email protected]> Date: Wed Jan 24 20:41:33 2024 +0800 将项目列表增加样式并优化减少dom嵌套 commit 99d18df Author: Sun <[email protected]> Date: Wed Jan 24 20:11:07 2024 +0800 增加系统状态、logo等类名并简化部分组件dom commit bf1cc0c Author: Sun <[email protected]> Date: Wed Jan 24 17:17:41 2024 +0800 更新关于页面 commit fceacf5 Author: Sun <[email protected]> Date: Wed Jan 24 14:54:37 2024 +0800 增加隐藏网络模式切换开关 commit e0dcc49 Author: Sun <[email protected]> Date: Wed Jan 24 13:55:28 2024 +0800 优化部分错误码 commit 863cdf0 Author: Sun <[email protected]> Date: Wed Jan 24 12:54:55 2024 +0800 声明暴露端口 commit 5b25ef9 Author: Sun <[email protected]> Date: Wed Jan 24 12:38:48 2024 +0800 修改命令行所有的输出内容为英文
- Loading branch information
Showing
37 changed files
with
280 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,8 @@ COPY --from=server_image /build/sun-panel /app/sun-panel | |
# 中国国内源 | ||
# RUN sed -i "[email protected]@mirrors.aliyun.com@g" /etc/apk/repositories | ||
|
||
EXPOSE 3002 | ||
|
||
RUN apk add --no-cache bash ca-certificates su-exec tzdata \ | ||
&& chmod +x ./sun-panel \ | ||
&& ./sun-panel -config | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const fs = require('fs') | ||
// const { execSync } = require('child_process') | ||
const moment = require('moment') | ||
|
||
// git 最新标签 | ||
// const latestTag = execSync('git describe --tags --abbrev=0').toString().trim() | ||
const packDate = moment().format('YYYYMMDD-HH') | ||
|
||
// 要追加的内容 | ||
const contentToAppend = `\nVITE_APP_VERSION=${packDate}` | ||
// 读取文件原始内容 | ||
const envFilePath = '.env' | ||
let envContent = fs.readFileSync(envFilePath, 'utf-8') | ||
|
||
const versionRegex = /^VITE_APP_VERSION=.*$/m | ||
if (versionRegex.test(envContent)) { | ||
// 使用正则表达式查找并替换 VITE_APP_VERSION=* 这一行 | ||
envContent = envContent.replace(versionRegex, contentToAppend) | ||
} | ||
else { | ||
// 追加内容 | ||
envContent = envContent + contentToAppend | ||
} | ||
|
||
// 将新内容写回 .env 文件 | ||
fs.writeFileSync(envFilePath, envContent) | ||
|
||
console.log('update to .env file.', contentToAppend) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9|1.3.0-beta24-01-17-19 | ||
9|1.3.0-beta24-01-25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.