Skip to content

Commit

Permalink
feat: 显示版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
taksssss committed Nov 24, 2024
1 parent 514f7e3 commit 8466b51
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ jobs:
fi
echo "TAG=${NEW_TAG}" >> $GITHUB_ENV # 将新标签保存为环境变量
- name: Update version in manage.html
run: |
VERSION=$(TZ="Asia/Shanghai" date +"v%Y%m%d") # 获取北京时间,并转换为 v20241124 格式
sed -i "s|<span id=\"version\" style=\"color: #888;\">.*</span>|<span id=\"version\" style=\"color: #888;\">${VERSION}</span>|" epg/assets/html/manage.html
- name: Build and push
uses: docker/build-push-action@v6
with:
Expand Down
11 changes: 6 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
## 2024-11-24

1. 新增:查看版本更新日志
2. 优化:https 协议判断
3. 优化:ksweb 环境兼容性
4. 修复:登录页面字体不一致
5. 修复:部分旧路径(如`:5678/epg?ch=xxx`)提示404
1. 新增:显示版本号
2. 新增:查看版本更新日志
3. 优化:https 协议判断
4. 优化:ksweb 环境兼容性
5. 修复:登录页面字体不一致
6. 修复:部分旧路径(如`:5678/epg?ch=xxx`)提示404

## 2024-11-23

Expand Down
3 changes: 2 additions & 1 deletion epg/assets/html/manage.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ <h2>管理配置</h2>

<!-- 底部显示 -->
<div class="footer">
<a onclick="showVersionLog();" style="color: #888; cursor: pointer;">版本更新日志</a>
<span id="version" style="color: #888;"></span>
<a onclick="showVersionLog();" style="color: #888; cursor: pointer;">更新日志</a>
<br>
<a href="https://github.com/taksssss/EPG-Server" target="_blank" style="color: #888; text-decoration: none;">
https://github.com/taksssss/EPG-Server
Expand Down

0 comments on commit 8466b51

Please sign in to comment.