feat: UI show version (#226)

This commit is contained in:
Dream Hunter
2024-05-12 11:52:55 +08:00
committed by GitHub
parent af027fd75e
commit 4b9d40d04b
3 changed files with 3 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ jobs:
cd frontend/
echo "${{ secrets.FRONTEND_ENV }}" > .env.prod
export project_name=${{ secrets.FRONTEND_NAME }}
export VITE_VERSION=${{ github.ref_name }}
pnpm install --no-frozen-lockfile
pnpm run deploy --project-name=$project_name
echo "Deploying prodcution for ${{ github.ref_name }}"

View File

@@ -5,6 +5,7 @@
- 用户名限制最长30个字符
- 修复 `/external/api/send_mail` 未返回的 bug (#222)
- 添加 `IMAP proxy` 服务,支持 `IMAP` 查看邮件
- UI 界面增加版本号显示
## v0.4.0

View File

@@ -171,7 +171,7 @@ const menuOptions = computed(() => [
href: "https://github.com/dreamhunter2333/cloudflare_temp_email",
},
{
default: () => "Github",
default: () => import.meta.env.VITE_VERSION || "Github",
icon: () => h(NIcon, { component: GithubAlt })
}
),