Lint code

Signed-off-by: Arthur DANJOU <arthurdanjou@outlook.fr>
This commit is contained in:
2024-04-20 01:33:40 +02:00
parent a29f6bc0f6
commit 5ca0137c4e
67 changed files with 2671 additions and 2671 deletions

View File

@@ -1,29 +1,29 @@
import {defineStore} from 'pinia'
export const useBookmarksStore = defineStore(
'bookmarks',
() => {
const currentCategory = ref<string>('all')
const currentFavorite = ref<boolean>(false)
'bookmarks',
() => {
const currentCategory = ref<string>('all')
const currentFavorite = ref<boolean>(false)
const getCategory = computed(() => currentCategory)
function setCategory(newCategory: string) {
currentCategory.value = newCategory
}
const getCategory = computed(() => currentCategory)
function setCategory(newCategory: string) {
currentCategory.value = newCategory
}
const isFavorite = computed(() => currentFavorite)
function toggleFavorite() {
currentFavorite.value = !currentFavorite.value
}
const isFavorite = computed(() => currentFavorite)
function toggleFavorite() {
currentFavorite.value = !currentFavorite.value
}
return {
getCategory,
setCategory,
isFavorite,
toggleFavorite,
}
},
{
persist: true,
},
return {
getCategory,
setCategory,
isFavorite,
toggleFavorite,
}
},
{
persist: true,
},
)