新增设置-其他-列表数据清理功能
parent
ec6e067938
commit
1e1aa65fc0
|
@ -9,6 +9,7 @@
|
||||||
- 重构数据同步功能,新增客户端模式
|
- 重构数据同步功能,新增客户端模式
|
||||||
- 新增全屏时自动关闭歌词设置,默认开启,可以去设置-桌面歌词设置更改
|
- 新增全屏时自动关闭歌词设置,默认开启,可以去设置-桌面歌词设置更改
|
||||||
- 新增设置-桌面歌词设置-重置窗口设置功能,点击时会重置桌面歌词窗口大小及位置
|
- 新增设置-桌面歌词设置-重置窗口设置功能,点击时会重置桌面歌词窗口大小及位置
|
||||||
|
- 新增设置-其他-列表数据清理功能,点击时会清空已创建的所有列表及所有收藏的歌曲
|
||||||
|
|
||||||
### 优化
|
### 优化
|
||||||
|
|
||||||
|
|
|
@ -401,6 +401,9 @@
|
||||||
"setting__odc_clear_search_input": "Clear the search box when you are not searching",
|
"setting__odc_clear_search_input": "Clear the search box when you are not searching",
|
||||||
"setting__odc_clear_search_list": "Clear the search list when you are not searching",
|
"setting__odc_clear_search_list": "Clear the search list when you are not searching",
|
||||||
"setting__other": "Extras",
|
"setting__other": "Extras",
|
||||||
|
"setting__other_listdata": "List Data Cleanup",
|
||||||
|
"setting__other_listdata_clear_btn": "Clear my list data",
|
||||||
|
"setting__other_listdata_clear_tip_confirm": "This will clear all lists you have created and all songs in your favourites, do you really want to continue?",
|
||||||
"setting__other_lyric_edited_cache": "Lyric management with adjusted offset time",
|
"setting__other_lyric_edited_cache": "Lyric management with adjusted offset time",
|
||||||
"setting__other_lyric_edited_clear_btn": "Clean up time-adjusted lyrics",
|
"setting__other_lyric_edited_clear_btn": "Clean up time-adjusted lyrics",
|
||||||
"setting__other_lyric_edited_clear_tip_confirm": "This will clear all the lyrics that you have adjusted the offset time before, confirm to clear? \n(Hand shaking to confirm 🤪)",
|
"setting__other_lyric_edited_clear_tip_confirm": "This will clear all the lyrics that you have adjusted the offset time before, confirm to clear? \n(Hand shaking to confirm 🤪)",
|
||||||
|
|
|
@ -404,6 +404,9 @@
|
||||||
"setting__odc_clear_search_input": "离开搜索界面时清空搜索框",
|
"setting__odc_clear_search_input": "离开搜索界面时清空搜索框",
|
||||||
"setting__odc_clear_search_list": "离开搜索界面时清空搜索列表",
|
"setting__odc_clear_search_list": "离开搜索界面时清空搜索列表",
|
||||||
"setting__other": "其他",
|
"setting__other": "其他",
|
||||||
|
"setting__other_listdata": "列表数据清理",
|
||||||
|
"setting__other_listdata_clear_btn": "清空我的列表数据",
|
||||||
|
"setting__other_listdata_clear_tip_confirm": "这将清理你创建的 所有列表 及收藏的 所有歌曲,是否真的要继续?",
|
||||||
"setting__other_lyric_edited_cache": "已调整过偏移时间的歌词管理",
|
"setting__other_lyric_edited_cache": "已调整过偏移时间的歌词管理",
|
||||||
"setting__other_lyric_edited_clear_btn": "清理已调整过时间的歌词",
|
"setting__other_lyric_edited_clear_btn": "清理已调整过时间的歌词",
|
||||||
"setting__other_lyric_edited_clear_tip_confirm": "这将清理所有你之前已调整过偏移时间的歌词,是否确认清理?(手抖确认🤪)",
|
"setting__other_lyric_edited_clear_tip_confirm": "这将清理所有你之前已调整过偏移时间的歌词,是否确认清理?(手抖确认🤪)",
|
||||||
|
|
|
@ -402,6 +402,9 @@
|
||||||
"setting__odc_clear_search_input": "離開搜索界面時清空搜索框",
|
"setting__odc_clear_search_input": "離開搜索界面時清空搜索框",
|
||||||
"setting__odc_clear_search_list": "離開搜索界面時清空搜索列表",
|
"setting__odc_clear_search_list": "離開搜索界面時清空搜索列表",
|
||||||
"setting__other": "其他",
|
"setting__other": "其他",
|
||||||
|
"setting__other_listdata": "列表數據清理",
|
||||||
|
"setting__other_listdata_clear_btn": "清空我的列表數據",
|
||||||
|
"setting__other_listdata_clear_tip_confirm": "這將清理你創建的 所有列表 及收藏的 所有歌曲,是否真的要繼續?",
|
||||||
"setting__other_lyric_edited_cache": "已調整過偏移時間的歌詞管理",
|
"setting__other_lyric_edited_cache": "已調整過偏移時間的歌詞管理",
|
||||||
"setting__other_lyric_edited_clear_btn": "清理已調整過時間的歌詞",
|
"setting__other_lyric_edited_clear_btn": "清理已調整過時間的歌詞",
|
||||||
"setting__other_lyric_edited_clear_tip_confirm": "這將清理所有你之前已調整過偏移時間的歌詞,是否確認清理? \n(手抖確認🤪)",
|
"setting__other_lyric_edited_clear_tip_confirm": "這將清理所有你之前已調整過偏移時間的歌詞,是否確認清理? \n(手抖確認🤪)",
|
||||||
|
|
|
@ -42,6 +42,12 @@ dd
|
||||||
p
|
p
|
||||||
base-btn.btn(min :disabled="isDisabledLyricEditedCacheClear" @click="handleClearLyricEditedCache") {{$t('setting__other_lyric_edited_clear_btn')}}
|
base-btn.btn(min :disabled="isDisabledLyricEditedCacheClear" @click="handleClearLyricEditedCache") {{$t('setting__other_lyric_edited_clear_btn')}}
|
||||||
|
|
||||||
|
dd
|
||||||
|
h3#other_lyric_edited {{$t('setting__other_listdata')}}
|
||||||
|
div
|
||||||
|
p
|
||||||
|
base-btn.btn(min @click="handleClearListData") {{$t('setting__other_listdata_clear_btn')}}
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -57,6 +63,7 @@ import { sizeFormate } from '@common/utils/common'
|
||||||
import { dialog } from '@renderer/plugins/Dialog'
|
import { dialog } from '@renderer/plugins/Dialog'
|
||||||
import { useI18n } from '@renderer/plugins/i18n'
|
import { useI18n } from '@renderer/plugins/i18n'
|
||||||
import { appSetting, updateSetting } from '@renderer/store/setting'
|
import { appSetting, updateSetting } from '@renderer/store/setting'
|
||||||
|
import { overwriteListFull } from '@renderer/store/list/listManage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SettingOther',
|
name: 'SettingOther',
|
||||||
|
@ -166,6 +173,20 @@ export default {
|
||||||
}
|
}
|
||||||
refreshLyricEditedCount()
|
refreshLyricEditedCount()
|
||||||
|
|
||||||
|
const handleClearListData = async() => {
|
||||||
|
if (!await dialog.confirm({
|
||||||
|
message: t('setting__other_listdata_clear_tip_confirm'),
|
||||||
|
cancelButtonText: t('cancel_button_text'),
|
||||||
|
confirmButtonText: t('setting__other_resource_cache_confirm'),
|
||||||
|
})) return
|
||||||
|
overwriteListFull({
|
||||||
|
defaultList: [],
|
||||||
|
loveList: [],
|
||||||
|
userList: [],
|
||||||
|
tempList: [],
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
appSetting,
|
appSetting,
|
||||||
updateSetting,
|
updateSetting,
|
||||||
|
@ -189,6 +210,8 @@ export default {
|
||||||
lyricEditedCount,
|
lyricEditedCount,
|
||||||
isDisabledLyricEditedCacheClear,
|
isDisabledLyricEditedCacheClear,
|
||||||
handleClearLyricEditedCache,
|
handleClearLyricEditedCache,
|
||||||
|
|
||||||
|
handleClearListData,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue