i18n cleanup 3 (#2229)
This commit is contained in:
@@ -17,12 +17,15 @@ material-modal(:show="isShowChangeLog" max-width="60%" @close="isShowChangeLog =
|
||||
div(:class="$style.footer")
|
||||
div(:class="$style.desc")
|
||||
p 📢 为了减少疑问,我们墙裂建议阅读版本更新日志来了解当前所用版本的变化!
|
||||
p 📢 若遇到问题可以去设置-关于查看常见问题
|
||||
p(v-if="!info.isLatest") 🚀 发现新版本(v{{ versionInfo.newVersion.version }}),建议 去设置-软件更新 更新新版本
|
||||
p 📢 若遇到问题可以阅读
|
||||
strong.hover.underline(aria-label="点击打开" @click="openUrl('https://lyswhut.github.io/lx-music-doc/desktop/faq')") 桌面版常见问题
|
||||
| 。
|
||||
p(v-if="!info.isLatest") 🚀 发现新版本 (v{{ versionInfo.newVersion.version }})!建议去「设置 → 软件更新」更新新版本。
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { compareVer } from '@common/utils'
|
||||
import { openUrl, clipboardWriteText } from '@common/utils/electron'
|
||||
import { versionInfo, isShowChangeLog } from '@renderer/store'
|
||||
import { getLastStartInfo } from '@renderer/utils/ipc'
|
||||
import { computed, ref } from '@common/utils/vueTools'
|
||||
@@ -73,6 +76,8 @@ export default {
|
||||
return info
|
||||
})
|
||||
return {
|
||||
openUrl,
|
||||
clipboardWriteText,
|
||||
versionInfo,
|
||||
info,
|
||||
isShowChangeLog,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template lang="pug">
|
||||
div.comment(ref="dom_container" :class="$style.comment")
|
||||
div(:class="$style.commentHeader")
|
||||
h3 {{ $t('comment__title', { name: title }) }}
|
||||
h3 {{ $t('comment__title', { name: currentMusicInfo.name }) }}
|
||||
div(:class="$style.commentHeaderBtns")
|
||||
div(:class="$style.commentHeaderBtn" :aria-label="$t('comment__refresh')" @click="handleShowComment")
|
||||
svg(version="1.1" xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" style="transform: rotate(45deg);" viewBox="0 0 24 24" space="preserve")
|
||||
@@ -37,7 +37,6 @@ div.comment(ref="dom_container" :class="$style.comment")
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { appSetting } from '@renderer/store/setting'
|
||||
import { toOldMusicInfo } from '@renderer/utils'
|
||||
import music from '@renderer/utils/musicSdk'
|
||||
import CommentFloor from './CommentFloor.vue'
|
||||
@@ -55,11 +54,6 @@ export default {
|
||||
},
|
||||
},
|
||||
emits: ['close'],
|
||||
setup() {
|
||||
return {
|
||||
appSetting,
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
available: false,
|
||||
@@ -119,13 +113,6 @@ export default {
|
||||
},
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
title() {
|
||||
return this.currentMusicInfo.name
|
||||
? this.appSetting['download.fileName'].replace('歌名', this.currentMusicInfo.name).replace('歌手', this.currentMusicInfo.singer)
|
||||
: '^-^'
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
show(n) {
|
||||
if (n) this.handleShowComment()
|
||||
|
||||
@@ -18,18 +18,14 @@ material-modal(:show="versionInfo.showModal" max-width="60%" @close="handleClose
|
||||
div(:class="$style.current")
|
||||
h3 当前版本:{{ versionInfo.version }}
|
||||
div(:class="$style.desc")
|
||||
p 更新信息获取失败,可能是无法访问Github导致的,请手动检查更新!
|
||||
p 更新信息获取失败,可能是无法访问 GitHub 导致的,请手动检查更新!
|
||||
p
|
||||
| 检查方法:打开
|
||||
base-btn(min aria-label="点击打开" @click="handleOpenUrl('https://github.com/lyswhut/lx-music-desktop/releases')") 软件发布页
|
||||
| 或
|
||||
base-btn(min aria-label="点击打开" @click="handleOpenUrl('https://www.lanzoui.com/b0bf2cfa/')") 网盘
|
||||
| (密码:
|
||||
strong.hover(aria-label="点击复制" @click="handleCopy('glqw')") glqw
|
||||
| )查看它们的
|
||||
| ,查看「Latest」发布的
|
||||
strong 版本号
|
||||
| 与当前版本({{ versionInfo.version }})对比是否一样,
|
||||
p 若一样则不必理会该弹窗,直接关闭即可,否则请手动下载新版本更新。
|
||||
| 与当前版本({{ versionInfo.version }})对比是否一致。
|
||||
p 若一致则不必理会该弹窗,直接关闭即可;否则请手动下载新版本更新。
|
||||
div(:class="$style.footer")
|
||||
div(:class="$style.btns")
|
||||
base-btn(v-if="versionInfo.status == 'error'" :class="$style.btn2" @click="handleCheckUpdate") 重新检查更新
|
||||
@@ -76,22 +72,19 @@ material-modal(:show="versionInfo.showModal" max-width="60%" @close="handleClose
|
||||
|
||||
div(:class="$style.footer")
|
||||
div(:class="$style.desc")
|
||||
p 发现有新版本啦,你可以尝试使用自动更新或手动更新,
|
||||
p 发现有新版本啦,你可以选择自动更新或手动更新。
|
||||
p 手动更新可以去
|
||||
strong.hover.underline(aria-label="点击打开" @click="handleOpenUrl('https://github.com/lyswhut/lx-music-desktop/releases')") 软件发布页
|
||||
| 或
|
||||
strong.hover.underline(aria-label="点击打开" @click="handleOpenUrl('https://www.lanzoui.com/b0bf2cfa/')") 网盘
|
||||
| (密码:
|
||||
strong.hover(aria-label="点击复制" @click="handleCopy('glqw')") glqw
|
||||
| ) 下载
|
||||
p 注:国内Windows/MAC用户推荐到网盘下载,若遇到问题可以看
|
||||
strong.hover.underline(aria-label="点击打开" @click="handleOpenUrl('https://lyswhut.github.io/lx-music-doc/desktop/faq')") 常见问题
|
||||
| 下载。
|
||||
p 若遇到问题可以阅读
|
||||
strong.hover.underline(aria-label="点击打开" @click="handleOpenUrl('https://lyswhut.github.io/lx-music-doc/desktop/faq')") 桌面版常见问题
|
||||
| 。
|
||||
p(v-if="progress") 当前下载进度:{{ progress }}
|
||||
p(v-else)
|
||||
div(:class="$style.btns")
|
||||
base-btn(:class="$style.btn2" @click="handleIgnoreClick") {{ isIgnored ? '取消忽略' : '忽略更新该版本' }}
|
||||
base-btn(v-if="versionInfo.status == 'downloading'" :class="$style.btn2" disabled) 下载更新中...
|
||||
base-btn(v-else :class="$style.btn2" @click="handleDonwloadClick") 下载更新
|
||||
base-btn(v-else :class="$style.btn2" @click="handleDownloadClick") 下载更新
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -181,7 +174,7 @@ export default {
|
||||
// saveIgnoreVersion(this.versionInfo.newVersion?.version)
|
||||
// this.handleClose()
|
||||
},
|
||||
handleDonwloadClick() {
|
||||
handleDownloadClick() {
|
||||
if (this.isIgnored) saveIgnoreVersion(this.ignoreVersion = null)
|
||||
versionInfo.status = 'downloading'
|
||||
downloadUpdate()
|
||||
|
||||
Reference in New Issue
Block a user