File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed
src/ui/dialogs/dialogComponents Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ declare const __APP_VERSION__: string
44declare const __APP_COMMIT_HASH__ : string
55declare const __APP_BUILD_TIMESTAMP__ : number
66declare const __REPO_URL__ : string
7+ declare const __BETA_DEPLOY_LOG_URL__ : string
78declare const __APP_DISPLAY_NAME__ : string
89declare const __AMLL_CORE_VERSION__ : string
910declare const __AMLL_VUE_VERSION__ : string
Original file line number Diff line number Diff line change 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 >
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__
7481function 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 : 30 rem ;
91+ width : 32 rem ;
8292
8393 .heading {
8494 display : flex ;
@@ -103,7 +113,7 @@ function handleOpenGithub() {
103113 font-weight : 300 ;
104114 }
105115 .description {
106- margin : 1.2 rem 0 ;
116+ margin : 0.75 rem 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 ;
Original file line number Diff line number Diff 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 ) ,
You can’t perform that action at this time.
0 commit comments