mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-29 14:47:54 -04:00
[web] Lint source code
This commit is contained in:
parent
4c70105b5e
commit
195135b1b6
@ -40,7 +40,6 @@ export default [
|
|||||||
'prefer-destructuring': 'off',
|
'prefer-destructuring': 'off',
|
||||||
'prefer-named-capture-group': 'off',
|
'prefer-named-capture-group': 'off',
|
||||||
'sort-keys': 'off',
|
'sort-keys': 'off',
|
||||||
'sort-vars': 'off',
|
|
||||||
'vue/html-self-closing': 'off',
|
'vue/html-self-closing': 'off',
|
||||||
'vue/max-attributes-per-line': 'off',
|
'vue/max-attributes-per-line': 'off',
|
||||||
'vue/prop-name-casing': 'off',
|
'vue/prop-name-casing': 'off',
|
||||||
|
@ -190,12 +190,12 @@ export default {
|
|||||||
this.$store.dispatch('add_recent_search', this.search_query)
|
this.$store.dispatch('add_recent_search', this.search_query)
|
||||||
},
|
},
|
||||||
search_items(type) {
|
search_items(type) {
|
||||||
const music = type !== 'audiobook' && type !== 'podcast',
|
const music = type !== 'audiobook' && type !== 'podcast'
|
||||||
kind = music ? 'music' : type,
|
const kind = music ? 'music' : type
|
||||||
parameters = {
|
const parameters = {
|
||||||
type: music ? type : 'album',
|
type: music ? type : 'album',
|
||||||
limit: this.search_limit
|
limit: this.search_limit
|
||||||
}
|
}
|
||||||
if (this.search_query.startsWith('query:')) {
|
if (this.search_query.startsWith('query:')) {
|
||||||
parameters.expression = `(${this.search_query.replace(/^query:/u, '').trim()}) and media_kind is ${kind}`
|
parameters.expression = `(${this.search_query.replace(/^query:/u, '').trim()}) and media_kind is ${kind}`
|
||||||
} else if (music) {
|
} else if (music) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user