This commit is contained in:
kolaente 2021-07-19 11:18:22 +02:00
parent a455fb23d1
commit 46957c389f
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
7 changed files with 16 additions and 16 deletions

View file

@ -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
}

View file

@ -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
}

View file

@ -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]

View file

@ -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)
}

View file

@ -41,7 +41,7 @@ export const loadLanguageAsync = lang => {
i18n.setLocaleMessage(lang, messages.default)
loadedLanguages.push(lang)
return setI18nLanguage(lang)
}
},
)
}

View file

@ -73,7 +73,7 @@ import {
faStar,
faTimesCircle,
faSun,
faBellSlash
faBellSlash,
} from '@fortawesome/free-regular-svg-icons'
import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome'
// PWA

View file

@ -22,7 +22,7 @@ export default {
return {
namespaceService: NamespaceService,
namespace: null,
title: ''
title: '',
}
},
created() {