Fix lint
This commit is contained in:
parent
a455fb23d1
commit
46957c389f
7 changed files with 16 additions and 16 deletions
|
@ -1,6 +1,6 @@
|
||||||
export const getListTitle = (l, $t) => {
|
export const getListTitle = (l, $t) => {
|
||||||
if (l.id === -1) {
|
if (l.id === -1) {
|
||||||
return $t('list.pseudo.favorites.title');
|
return $t('list.pseudo.favorites.title')
|
||||||
}
|
}
|
||||||
return l.title;
|
return l.title
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
export const getNamespaceTitle = (n, $t) => {
|
export const getNamespaceTitle = (n, $t) => {
|
||||||
if (n.id === -1) {
|
if (n.id === -1) {
|
||||||
return $t('namespace.pseudo.sharedLists.title');
|
return $t('namespace.pseudo.sharedLists.title')
|
||||||
}
|
}
|
||||||
if (n.id === -2) {
|
if (n.id === -2) {
|
||||||
return $t('namespace.pseudo.favorites.title');
|
return $t('namespace.pseudo.favorites.title')
|
||||||
}
|
}
|
||||||
if (n.id === -3) {
|
if (n.id === -3) {
|
||||||
return $t('namespace.pseudo.savedFilters.title');
|
return $t('namespace.pseudo.savedFilters.title')
|
||||||
}
|
}
|
||||||
return n.title;
|
return n.title
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,10 +48,10 @@ const getItemsFromPrefix = (text, prefix) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
let labelText
|
let labelText
|
||||||
if (p.charAt(0) === `'`) {
|
if (p.charAt(0) === '\'') {
|
||||||
labelText = p.split(`'`)[1]
|
labelText = p.split('\'')[1]
|
||||||
} else if (p.charAt(0) === `"`) {
|
} else if (p.charAt(0) === '"') {
|
||||||
labelText = p.split(`"`)[1]
|
labelText = p.split('"')[1]
|
||||||
} else {
|
} else {
|
||||||
// Only until the next space
|
// Only until the next space
|
||||||
labelText = p.split(' ')[0]
|
labelText = p.split(' ')[0]
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export const replaceAll = (str, search, replace) => {
|
export const replaceAll = (str, search, replace) => {
|
||||||
const esc = search.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&');
|
const esc = search.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&')
|
||||||
const reg = new RegExp(esc, 'ig');
|
const reg = new RegExp(esc, 'ig')
|
||||||
return str.replace(reg, replace);
|
return str.replace(reg, replace)
|
||||||
}
|
}
|
|
@ -41,7 +41,7 @@ export const loadLanguageAsync = lang => {
|
||||||
i18n.setLocaleMessage(lang, messages.default)
|
i18n.setLocaleMessage(lang, messages.default)
|
||||||
loadedLanguages.push(lang)
|
loadedLanguages.push(lang)
|
||||||
return setI18nLanguage(lang)
|
return setI18nLanguage(lang)
|
||||||
}
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ import {
|
||||||
faStar,
|
faStar,
|
||||||
faTimesCircle,
|
faTimesCircle,
|
||||||
faSun,
|
faSun,
|
||||||
faBellSlash
|
faBellSlash,
|
||||||
} from '@fortawesome/free-regular-svg-icons'
|
} from '@fortawesome/free-regular-svg-icons'
|
||||||
import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome'
|
import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome'
|
||||||
// PWA
|
// PWA
|
||||||
|
|
|
@ -22,7 +22,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
namespaceService: NamespaceService,
|
namespaceService: NamespaceService,
|
||||||
namespace: null,
|
namespace: null,
|
||||||
title: ''
|
title: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
Loading…
Reference in a new issue