Added OpenAppData button in settings and updated layout/translations

This commit is contained in:
child_duckling 2022-02-16 20:04:45 -08:00
parent 6001dc1a1e
commit 3b4d9d5512
5 changed files with 52 additions and 15 deletions

View file

@ -121,4 +121,9 @@ Update 16/02/2022 21:45 UTC
* `term.audioControls`: Added for `en_US`. * `term.audioControls`: Added for `en_US`.
* `settings.option.audio.volumeStep`: Added for `en_US`. * `settings.option.audio.volumeStep`: Added for `en_US`.
* `settings.option.audio.maxVolume`: 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`

View file

@ -231,7 +231,7 @@
"action.copy": "Copy", "action.copy": "Copy",
"action.newpreset": "New Preset...", // Equalizer Preset "action.newpreset": "New Preset...", // Equalizer Preset
"action.deletepreset": "Delete Preset", "action.deletepreset": "Delete Preset",
"action.open": "Open",
// Settings - General // Settings - General
"settings.header.general": "General", "settings.header.general": "General",
"settings.header.general.description": "Adjust the general settings for Cider.", "settings.header.general.description": "Adjust the general settings for Cider.",
@ -339,13 +339,19 @@
"settings.option.connectivity.lastfmScrobble.removeFeatured": "Remove featuring artists from song title (Last.fm)", "settings.option.connectivity.lastfmScrobble.removeFeatured": "Remove featuring artists from song title (Last.fm)",
"settings.option.connectivity.lastfmScrobble.filterLoop": "Filter looped track (Last.fm)", "settings.option.connectivity.lastfmScrobble.filterLoop": "Filter looped track (Last.fm)",
// Refer to term.connect for the connect button // 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 - Experimental
"settings.header.experimental": "Experimental", "settings.header.experimental": "Experimental",
"settings.header.experimental.description": "Adjust the experimental settings for Cider.", "settings.header.experimental.description": "Adjust the experimental settings for Cider.",
"settings.option.experimental.compactUI": "Compact UI", // Toggle "settings.option.experimental.compactUI": "Compact UI", // Toggle
"settings.option.experimental.close_button_hide": "Close Button Should Hide the Application", "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", "settings.option.experimental.inline_playlists": "Inline Playlists and Albums",
// Refer to term.disabled & term.enabled // Refer to term.disabled & term.enabled

View file

@ -699,7 +699,9 @@ export class BrowserWindow {
ipcMain.on('get-version', (_event) => { ipcMain.on('get-version', (_event) => {
_event.returnValue = app.getVersion() _event.returnValue = app.getVersion()
}); });
ipcMain.on('open-appdata', (_event) => {
shell.openPath(app.getPath('userData'));
});
/* ********************************************************************************************* /* *********************************************************************************************
* Window Events * Window Events
* **********************************************************************************************/ * **********************************************************************************************/

View 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

View file

@ -620,6 +620,36 @@
</div> </div>
</div> </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"> <div class="md-option-header">
<span>{{$root.getLz('settings.header.experimental')}}</span> <span>{{$root.getLz('settings.header.experimental')}}</span>
</div> </div>
@ -692,16 +722,6 @@
</select> </select>
</div> </div>
</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>
<div style="opacity: 0.5; pointer-events: none"> <div style="opacity: 0.5; pointer-events: none">
<div class="md-option-header"> <div class="md-option-header">
@ -791,6 +811,9 @@
ipcRenderer.send('fetch-log') ipcRenderer.send('fetch-log')
notyf.success(app.getLz('term.share.success')); notyf.success(app.getLz('term.share.success'));
}, },
openAppData() {
ipcRenderer.send('open-appdata')
},
getLanguages: function () { getLanguages: function () {
let langs = this.$root.lzListing let langs = this.$root.lzListing
let categories = { let categories = {