Remove icons from jump options, remove unused computed properties

This commit is contained in:
advplyr
2026-01-29 17:17:29 -06:00
parent f63b04451b
commit 5fb8baa186
2 changed files with 12 additions and 92 deletions
+10 -32
View File
@@ -354,11 +354,11 @@ export default {
isiOS() { isiOS() {
return this.$platform === 'ios' return this.$platform === 'ios'
}, },
jumpForwardItems() { jumpForwardSecondsOptions() {
return this.$store.state.globals.jumpForwardItems || [] return this.$store.state.globals.jumpForwardSecondsOptions || []
}, },
jumpBackwardsItems() { jumpBackwardsSecondsOptions() {
return this.$store.state.globals.jumpBackwardsItems || [] return this.$store.state.globals.jumpBackwardsSecondsOptions || []
}, },
languageOptionItems() { languageOptionItems() {
return this.$languageCodeOptions || [] return this.$languageCodeOptions || []
@@ -385,26 +385,6 @@ export default {
} }
] ]
}, },
currentJumpForwardTimeIcon() {
return this.currentJumpForwardItem.icon
},
currentJumpForwardTimeIndex() {
var index = this.jumpForwardItems.findIndex((jfi) => jfi.value === this.settings.jumpForwardTime)
return index >= 0 ? index : 1
},
currentJumpForwardItem() {
return this.jumpForwardItems[this.currentJumpForwardTimeIndex] || this.jumpForwardItems[0] || {}
},
currentJumpBackwardsTimeIcon() {
return this.currentJumpBackwardsItem.icon
},
currentJumpBackwardsTimeIndex() {
var index = this.jumpBackwardsItems.findIndex((jfi) => jfi.value === this.settings.jumpBackwardsTime)
return index >= 0 ? index : 1
},
currentJumpBackwardsItem() {
return this.jumpBackwardsItems[this.currentJumpBackwardsTimeIndex] || this.jumpBackwardsItems[0] || {}
},
shakeSensitivityOption() { shakeSensitivityOption() {
const item = this.shakeSensitivityItems.find((i) => i.value === this.settings.shakeSensitivity) const item = this.shakeSensitivityItems.find((i) => i.value === this.settings.shakeSensitivity)
return item?.text || 'Error' return item?.text || 'Error'
@@ -449,16 +429,14 @@ export default {
else if (this.moreMenuSetting === 'streamingUsingCellular') return this.streamingUsingCellularItems else if (this.moreMenuSetting === 'streamingUsingCellular') return this.streamingUsingCellularItems
else if (this.moreMenuSetting === 'androidAutoBrowseSeriesSequenceOrder') return this.androidAutoBrowseSeriesSequenceOrderItems else if (this.moreMenuSetting === 'androidAutoBrowseSeriesSequenceOrder') return this.androidAutoBrowseSeriesSequenceOrderItems
else if (this.moreMenuSetting === 'jumpForward') else if (this.moreMenuSetting === 'jumpForward')
return this.jumpForwardItems.map((i) => ({ return this.jumpForwardSecondsOptions.map((value) => ({
text: this.getJumpLabel(i.value), text: this.getJumpLabel(value),
value: i.value, value: value
icon: i.icon
})) }))
else if (this.moreMenuSetting === 'jumpBackwards') else if (this.moreMenuSetting === 'jumpBackwards')
return this.jumpBackwardsItems.map((i) => ({ return this.jumpBackwardsSecondsOptions.map((value) => ({
text: this.getJumpLabel(i.value), text: this.getJumpLabel(value),
value: i.value, value: value
icon: i.icon
})) }))
return [] return []
}, },
+2 -60
View File
@@ -5,66 +5,8 @@ export const state = () => ({
series: null, series: null,
localMediaProgress: [], localMediaProgress: [],
lastSearch: null, lastSearch: null,
jumpForwardItems: [ jumpForwardSecondsOptions: [5, 10, 15, 30, 60, 120, 300],
{ jumpBackwardsSecondsOptions: [5, 10, 15, 30, 60, 120, 300],
icon: 'forward_media',
value: 5
},
{
icon: 'forward_media',
value: 10
},
{
icon: 'forward_media',
value: 15
},
{
icon: 'forward_media',
value: 30
},
{
icon: 'forward_media',
value: 60
},
{
icon: 'forward_media',
value: 120
},
{
icon: 'forward_media',
value: 300
}
],
jumpBackwardsItems: [
{
icon: 'replay',
value: 5
},
{
icon: 'replay',
value: 10
},
{
icon: 'replay',
value: 15
},
{
icon: 'replay',
value: 30
},
{
icon: 'replay',
value: 60
},
{
icon: 'replay',
value: 120
},
{
icon: 'replay',
value: 300
}
],
libraryIcons: ['database', 'audiobookshelf', 'books-1', 'books-2', 'book-1', 'microphone-1', 'microphone-3', 'radio', 'podcast', 'rss', 'headphones', 'music', 'file-picture', 'rocket', 'power', 'star', 'heart'], libraryIcons: ['database', 'audiobookshelf', 'books-1', 'books-2', 'book-1', 'microphone-1', 'microphone-3', 'radio', 'podcast', 'rss', 'headphones', 'music', 'file-picture', 'rocket', 'power', 'star', 'heart'],
selectedPlaylistItems: [], selectedPlaylistItems: [],
showPlaylistsAddCreateModal: false, showPlaylistsAddCreateModal: false,