Skip to content

Commit c2e885d

Browse files
committed
关于窗口添加 beta 部署链接
1 parent 2626999 commit c2e885d

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ declare const __APP_VERSION__: string
44
declare const __APP_COMMIT_HASH__: string
55
declare const __APP_BUILD_TIMESTAMP__: number
66
declare const __REPO_URL__: string
7+
declare const __BETA_DEPLOY_LOG_URL__: string
78
declare const __APP_DISPLAY_NAME__: string
89
declare const __AMLL_CORE_VERSION__: string
910
declare const __AMLL_VUE_VERSION__: string

src/ui/dialogs/dialogComponents/AboutDialog.vue

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,24 @@
1717
</p>
1818
<p>开发不易,不妨点个免费的 star 吧!</p>
1919
</div>
20-
<div class="actions">
20+
<div class="actions" :class="{ beta: isBeta }">
2121
<Button
2222
severity="secondary"
2323
icon="pi pi-github"
2424
label="GitHub 仓库"
2525
@click="handleOpenGithub()"
2626
/>
27+
<Button
28+
v-if="isBeta"
29+
severity="secondary"
30+
icon="pi pi-history"
31+
label="Beta 部署日志"
32+
@click="handleOpenBetaDeployLog()"
33+
/>
2734
<Button
2835
:severity="keyValueFolded ? 'secondary' : 'primary'"
2936
icon="pi pi-info-circle"
30-
label="详细版本信息"
37+
label="展开详细信息"
3138
@click="keyValueFolded = !keyValueFolded"
3239
/>
3340
</div>
@@ -40,7 +47,7 @@
4047
<span class="value">{{ appChannel ?? '未指定' }}</span>
4148
<span class="key">Commit Hash</span>
4249
<span class="value">{{ appCommitHash }}</span>
43-
<span class="key">构建日期</span>
50+
<span class="key">构建时间</span>
4451
<span class="value">{{ readableBuildDate }}</span>
4552
<span class="key">AMLL 核心库版本</span>
4653
<span class="value">{{ amllCoreVersion }}</span>
@@ -74,11 +81,14 @@ const amllVueVersion = __AMLL_VUE_VERSION__
7481
function handleOpenGithub() {
7582
window.open(__REPO_URL__, '_blank')
7683
}
84+
function handleOpenBetaDeployLog() {
85+
window.open(__BETA_DEPLOY_LOG_URL__, '_blank')
86+
}
7787
</script>
7888

7989
<style lang="scss">
8090
.about-dialog {
81-
width: 30rem;
91+
width: 32rem;
8292
8393
.heading {
8494
display: flex;
@@ -103,7 +113,7 @@ function handleOpenGithub() {
103113
font-weight: 300;
104114
}
105115
.description {
106-
margin: 1.2rem 0;
116+
margin: 0.75rem 0;
107117
line-height: 1.5;
108118
opacity: 0.9;
109119
p {
@@ -113,6 +123,9 @@ function handleOpenGithub() {
113123
.actions {
114124
display: flex;
115125
gap: 1rem;
126+
&.beta {
127+
justify-content: space-between;
128+
}
116129
}
117130
.key-value {
118131
display: grid;

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ export default defineConfig(async ({ mode }) => ({
8888
__APP_VERSION__: JSON.stringify(packageJSON.version),
8989
__APP_COMMIT_HASH__: JSON.stringify(await git.revparse(['HEAD'])),
9090
__REPO_URL__: JSON.stringify(packageJSON.repository),
91+
__BETA_DEPLOY_LOG_URL__: JSON.stringify(
92+
'https://github.com/Linho1219/AMLL-Editor-BetaDeploy/actions',
93+
),
9194
__APP_DISPLAY_NAME__: JSON.stringify(
9295
packageJSON.displayName + (process.env.VITE_BUILD_CHANNEL === 'BETA' ? ` BETA` : ''),
9396
),

0 commit comments

Comments
 (0)