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) => {
|
||||
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) => {
|
||||
if (n.id === -1) {
|
||||
return $t('namespace.pseudo.sharedLists.title');
|
||||
return $t('namespace.pseudo.sharedLists.title')
|
||||
}
|
||||
if (n.id === -2) {
|
||||
return $t('namespace.pseudo.favorites.title');
|
||||
return $t('namespace.pseudo.favorites.title')
|
||||
}
|
||||
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
|
||||
if (p.charAt(0) === `'`) {
|
||||
labelText = p.split(`'`)[1]
|
||||
} else if (p.charAt(0) === `"`) {
|
||||
labelText = p.split(`"`)[1]
|
||||
if (p.charAt(0) === '\'') {
|
||||
labelText = p.split('\'')[1]
|
||||
} else if (p.charAt(0) === '"') {
|
||||
labelText = p.split('"')[1]
|
||||
} else {
|
||||
// Only until the next space
|
||||
labelText = p.split(' ')[0]
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* @returns {*}
|
||||
*/
|
||||
export const replaceAll = (str, search, replace) => {
|
||||
const esc = search.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&');
|
||||
const reg = new RegExp(esc, 'ig');
|
||||
return str.replace(reg, replace);
|
||||
const esc = search.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&')
|
||||
const reg = new RegExp(esc, 'ig')
|
||||
return str.replace(reg, replace)
|
||||
}
|
|
@ -41,7 +41,7 @@ export const loadLanguageAsync = lang => {
|
|||
i18n.setLocaleMessage(lang, messages.default)
|
||||
loadedLanguages.push(lang)
|
||||
return setI18nLanguage(lang)
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ import {
|
|||
faStar,
|
||||
faTimesCircle,
|
||||
faSun,
|
||||
faBellSlash
|
||||
faBellSlash,
|
||||
} from '@fortawesome/free-regular-svg-icons'
|
||||
import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome'
|
||||
// PWA
|
||||
|
|
|
@ -22,7 +22,7 @@ export default {
|
|||
return {
|
||||
namespaceService: NamespaceService,
|
||||
namespace: null,
|
||||
title: ''
|
||||
title: '',
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
|
Loading…
Reference in a new issue