Merge branch 'develop' of https://github.com/ciderapp/Cider into develop

This commit is contained in:
vapormusic 2022-02-15 13:30:36 +07:00
commit 34c956fe99
4 changed files with 37 additions and 8 deletions

View file

@ -34,6 +34,7 @@
"term.about": "关于",
"term.privateSession": "私人聆听",
"term.queue": "队列",
"term.history": "播放历史",
"term.search": "搜索",
"term.library": "资料库",
"term.listenNow": "现在就听",
@ -111,13 +112,15 @@
"term.clearAll": "清空",
"term.recentStations": "最近播放的频道",
"term.language": "语言",
"term.noLyrics": "加载中... / 搜索无结果 / 纯音乐",
"term.funLanguages": "恶搞",
"term.noLyrics": "加载中... / 无搜索结果 / 纯音乐",
"term.copyright": "版权所有",
"term.rightsReserved": "保留所有权利。",
"term.sponsor": "赞助",
"term.ciderTeam": "Cider 团队",
"term.developer": "开发者",
"term.socialTeam": "媒体团队",
"term.socials": "媒体",
"term.contributors": "贡献者",
"term.equalizer": "均衡器",
"term.reset": "重置",
@ -137,7 +140,7 @@
"term.defaultPresets": "默认预设",
"term.userPresets": "用户预设",
"term.requestError": "请求出现一个问题。",
"term.song.link.generate": "获取 song.link 共享URL...",
"term.song.link.generate": "获取 song.link 共享链接...",
"term.musicVideos": "音乐视频", // Search page friendlyTypes
"term.stations": "电台",
//"term.curators": "Curators",
@ -148,6 +151,8 @@
//"term.top": "Top",
"term.version": "版本",
// Home
"home.title": "主页",
"home.recentlyPlayed": "最近播放",
@ -186,6 +191,7 @@
"action.removeFromQueue": "从加入待播清单中移除",
"action.removeFromQueue.success": "已从加入待播清单中移除",
"action.removeFromQueue.error": "从加入待播清单中移除的过程发生了错误",
"action.createPlaylist": "新建播放列表",
"action.addToPlaylist": "加入播放列表",
"action.removeFromPlaylist": "从播放列表中移除",
"action.addToFavorites": "加至收藏",
@ -257,6 +263,8 @@
"settings.option.audio.enableAdvancedFunctionality.description": "启用 AudioContext 将解锁例如音量标准化和音频空间化的功能,但可能会在小部分设备上出现音频上的卡顿。",
"settings.option.audio.enableAdvancedFunctionality.ciderPPE": "Cider 数字增强引擎™️", // Toggle
"settings.option.audio.enableAdvancedFunctionality.ciderPPE.description": "将欺骗您的大脑来感知到近似无损音频的效果。",
"settings.option.audio.enableAdvancedFunctionality.ciderPPEStrength": "数字增强引擎强度", // Toggle
"settings.option.audio.enableAdvancedFunctionality.ciderPPEStrength.description": "改变音频处理的强度。(激进选项可能产生杂音)",
"settings.option.audio.enableAdvancedFunctionality.audioNormalization": "音量标准化", // Toggle
"settings.option.audio.enableAdvancedFunctionality.audioNormalization.description": "使所感知到的音频响度统一",
"settings.option.audio.enableAdvancedFunctionality.audioSpatialization": "音频空间化", // Toggle
@ -290,6 +298,8 @@
"settings.header.visual.hardwareAcceleration.webGPU": "WebGPU",
"settings.header.visual.theme": "主题",
"settings.option.visual.theme.github.download": "通过GitHub URL安装",
"settings.option.visual.theme.github.explore": "浏览 GitHub 上的主题",
"settings.option.visual.theme.github.install.confirm": "确定要安装 {{ repo }}?",
"settings.prompt.visual.theme.github.URL": "请输入欲安装主题的URL",
"settings.notyf.visual.theme.install.success": "主题安装成功",
"settings.notyf.visual.theme.install.error": "主题安装失败",

View file

@ -276,6 +276,7 @@
"settings.header.visual.hardwareAcceleration.webGPU": "WebGPU",
"settings.header.visual.theme": "主題",
"settings.option.visual.theme.github.download" : "從 GitHub 網址安裝" ,
"settings.option.visual.theme.github.explore": "瀏覽 GitHub 上的主題",
"settings.prompt.visual.theme.github.URL" : "輸入你要安裝的主題網址" ,
"settings.notyf.visual.theme.install.success" : "主題成功安裝" ,
"settings.notyf.visual.theme.install.error" : "主題安裝失敗" ,

View file

@ -672,6 +672,15 @@ export class BrowserWindow {
await win_autoUpdater.checkForUpdatesAndNotify()
await linux_autoUpdater.checkForUpdatesAndNotify()
});
ipcMain.on('disable-update', (event) => {
// Check if using app store builds so people don't get pissy wen button go bonk
if (app.isPackaged && !process.mas || !process.windowsStore) {
event.returnValue = false
} else {
event.returnValue = true
}
})
ipcMain.on('share-menu', async (_event, url) => {
if (process.platform != 'darwin') return;

View file

@ -68,7 +68,7 @@
<small>{{$root.getLz('settings.option.audio.enableAdvancedFunctionality.ciderPPE.description')}}</small>
</div>
<div class="md-option-segment md-option-segment_auto">
<input type="checkbox" v-model="app.cfg.advanced.ciderPPE" v-on:change="CiderAudio.hierarchical_loading();" switch/>
<input type="checkbox" v-model="app.cfg.advanced.ciderPPE" :disabled="app.cfg.audio.spatial === true" v-on:change="CiderAudio.hierarchical_loading();" switch/>
</div>
</div>
<div class="md-option-line" v-show="app.cfg.advanced.AudioContext && app.cfg.advanced.ciderPPE === true">
@ -114,7 +114,7 @@
<small>{{$root.getLz('settings.option.audio.enableAdvancedFunctionality.audioSpatialization.description')}}</small>
</div>
<div class="md-option-segment md-option-segment_auto">
<input type="checkbox" v-model="app.cfg.audio.spatial" v-on:change="toggleSpatial" switch/>
<input type="checkbox" v-model="app.cfg.audio.spatial" :disabled="app.cfg.advanced.ciderPPE === true" v-on:change="toggleSpatial" switch/>
</div>
</div>
</div>
@ -656,7 +656,7 @@
<input type="checkbox" v-model="app.cfg.general.close_button_hide" switch/>
</div>
</div>
<div class="md-option-line">
<div class="md-option-line update-check">
<div class="md-option-segment">
{{$root.getLz('settings.option.general.updateCider')}}
</div>
@ -666,7 +666,7 @@
</button>
</div>
</div>
<div class="md-option-line">
<div class="md-option-line update-check">
<div class="md-option-segment">
{{$root.getLz('settings.option.general.updateCider.branch')}}<br>
<small>({{$root.getLz('settings.option.general.updateCider.branch.description')}})</small>
@ -852,6 +852,15 @@
ipcRenderer.invoke('setStoreValue', 'general.close_behavior', app.cfg.general.close_behavior);
// setStoreValue does not change plugin store values somehow
ipcRenderer.invoke('update-store-mtt', app.cfg.general.close_behavior);
},
checkIfUpdateDisabled() {
if (ipcRenderer.sendSync('disable-update')) {
let updateFields = document.getElementsByClassName('update-check');
for (var i=0; i < updateFields.length; i++) {
updateFields[i].style = "opacity: 0.5; pointer-events: none;";
updateFields[i].title = "Not available on this type of build";
}
}
}
}
})