Added OpenAppData button in settings and updated layout/translations
This commit is contained in:
parent
6001dc1a1e
commit
3b4d9d5512
5 changed files with 52 additions and 15 deletions
|
@ -122,3 +122,8 @@ Update 16/02/2022 21:45 UTC
|
|||
* `term.audioControls`: Added for `en_US`.
|
||||
* `settings.option.audio.volumeStep`: Added for `en_US`.
|
||||
* `settings.option.audio.maxVolume`: Added for `en_US`.`
|
||||
|
||||
Update 17/02/2022 10:00 UTC
|
||||
+ `settings.header.debug`: Added for `en_US`.
|
||||
+ `settings.option.debug.copy_log`: Replaces `settings.option.experimental.copy_log`.
|
||||
+ `settings.option.debug.openAppData`: Added for `en_US`
|
|
@ -231,7 +231,7 @@
|
|||
"action.copy": "Copy",
|
||||
"action.newpreset": "New Preset...", // Equalizer Preset
|
||||
"action.deletepreset": "Delete Preset",
|
||||
|
||||
"action.open": "Open",
|
||||
// Settings - General
|
||||
"settings.header.general": "General",
|
||||
"settings.header.general.description": "Adjust the general settings for Cider.",
|
||||
|
@ -340,12 +340,18 @@
|
|||
"settings.option.connectivity.lastfmScrobble.filterLoop": "Filter looped track (Last.fm)",
|
||||
// Refer to term.connect for the connect button
|
||||
|
||||
// Settings - Debug
|
||||
"settings.header.debug": "Debug",
|
||||
"settings.option.debug.copy_log": "Copy logs to clipboard",
|
||||
"settings.option.debug.openAppData": "Open Cider Folder",
|
||||
|
||||
|
||||
// Settings - Experimental
|
||||
"settings.header.experimental": "Experimental",
|
||||
"settings.header.experimental.description": "Adjust the experimental settings for Cider.",
|
||||
"settings.option.experimental.compactUI": "Compact UI", // Toggle
|
||||
"settings.option.experimental.close_button_hide": "Close Button Should Hide the Application",
|
||||
"settings.option.experimental.copy_log": "Copy logs to clipboard",
|
||||
|
||||
"settings.option.experimental.inline_playlists": "Inline Playlists and Albums",
|
||||
|
||||
// Refer to term.disabled & term.enabled
|
||||
|
|
|
@ -699,7 +699,9 @@ export class BrowserWindow {
|
|||
ipcMain.on('get-version', (_event) => {
|
||||
_event.returnValue = app.getVersion()
|
||||
});
|
||||
|
||||
ipcMain.on('open-appdata', (_event) => {
|
||||
shell.openPath(app.getPath('userData'));
|
||||
});
|
||||
/* *********************************************************************************************
|
||||
* Window Events
|
||||
* **********************************************************************************************/
|
||||
|
|
1
src/renderer/assets/feather/external-link.svg
Normal file
1
src/renderer/assets/feather/external-link.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-external-link"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>
|
After Width: | Height: | Size: 388 B |
|
@ -620,6 +620,36 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="md-option-header">
|
||||
<span>{{$root.getLz('settings.header.debug')}}</span>
|
||||
</div>
|
||||
<div class="settings-option-body">
|
||||
<div class="md-option-line">
|
||||
<div class="md-option-segment">
|
||||
{{$root.getLz('settings.option.debug.copy_log')}}
|
||||
</div>
|
||||
<div class="md-option-segment md-option-segment_auto">
|
||||
<button class="md-btn" @click="copyLogs">
|
||||
{{$root.getLz('action.copy')}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="md-option-line">
|
||||
<div class="md-option-segment">
|
||||
{{$root.getLz('settings.option.debug.openAppData')}}
|
||||
</div>
|
||||
<div class="md-option-segment md-option-segment_auto">
|
||||
<button class="md-btn" @click="openAppData">
|
||||
{{$root.getLz('action.open')}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="md-option-header">
|
||||
<span>{{$root.getLz('settings.header.experimental')}}</span>
|
||||
</div>
|
||||
|
@ -692,16 +722,6 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="md-option-line">
|
||||
<div class="md-option-segment">
|
||||
{{$root.getLz('settings.option.experimental.copy_log')}}
|
||||
</div>
|
||||
<div class="md-option-segment md-option-segment_auto">
|
||||
<button class="md-btn" @click="copyLogs">
|
||||
{{$root.getLz('action.copy')}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="opacity: 0.5; pointer-events: none">
|
||||
<div class="md-option-header">
|
||||
|
@ -791,6 +811,9 @@
|
|||
ipcRenderer.send('fetch-log')
|
||||
notyf.success(app.getLz('term.share.success'));
|
||||
},
|
||||
openAppData() {
|
||||
ipcRenderer.send('open-appdata')
|
||||
},
|
||||
getLanguages: function () {
|
||||
let langs = this.$root.lzListing
|
||||
let categories = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue