[web] Minor changes

This commit is contained in:
Alain Nussbaumer
2025-05-31 19:48:18 +02:00
parent e80e58f0fd
commit 4872bfd7fd
12 changed files with 29 additions and 51 deletions

View File

@@ -99,8 +99,7 @@
<control-setting-integer-field
category="webinterface"
name="recently_added_limit"
>
</control-setting-integer-field>
/>
</template>
</content-with-heading>
</template>

View File

@@ -7,7 +7,5 @@ export const useOutputsStore = defineStore('OutputsStore', {
this.$state = await outputs.state()
}
},
state: () => ({
outputs: []
})
state: () => ({ outputs: [] })
})

View File

@@ -29,9 +29,5 @@ export const useQueueStore = defineStore('QueueStore', {
)
}
},
state: () => ({
count: 0,
items: [],
version: 0
})
state: () => ({ count: 0, items: [], version: 0 })
})

View File

@@ -7,8 +7,5 @@ export const useRemotesStore = defineStore('RemotesStore', {
this.$state = await remotes.state()
}
},
state: () => ({
active: false,
remote: ''
})
state: () => ({ active: false, remote: '' })
})

View File

@@ -19,9 +19,5 @@ export const useSearchStore = defineStore('SearchStore', {
}
}
},
state: () => ({
history: [],
query: '',
source: 'search-library'
})
state: () => ({ history: [], query: '', source: 'search-library' })
})

View File

@@ -41,9 +41,5 @@ export const useServicesStore = defineStore('ServicesStore', {
requiredSpotifyScopes: (state) =>
state.spotify.webapi_required_scope?.split(' ') ?? []
},
state: () => ({
lastfm: {},
spotify: {},
spotifyTimerId: 0
})
state: () => ({ lastfm: {}, spotify: {}, spotifyTimerId: 0 })
})

View File

@@ -81,7 +81,5 @@ export const useSettingsStore = defineStore('SettingsStore', {
showMenuItemSearch: (state) =>
state.get('webinterface', 'show_menu_item_search')?.value ?? false
},
state: () => ({
categories: []
})
state: () => ({ categories: [] })
})

View File

@@ -36,14 +36,12 @@ export default {
<style lang="scss" scoped>
@use 'bulma/sass/utilities/mixins';
.column {
&.has-image {
@include mixins.mobile {
justify-content: center;
}
@include mixins.tablet {
justify-content: right;
}
.has-image {
@include mixins.mobile {
justify-content: center;
}
@include mixins.tablet {
justify-content: right;
}
}
</style>