chore: fix ci lint/typecheck/test
This commit is contained in:
1
app.vue
1
app.vue
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { installPrompt } from './utils/pwa'
|
||||
import { appName } from '~/constants'
|
||||
import { useIndexedDB } from '~/composables/db'
|
||||
|
||||
// https://nuxt.com/docs/api/composables/use-head
|
||||
useHead({
|
||||
|
||||
@@ -8,7 +8,10 @@ const props = defineProps({
|
||||
const rStore = useRecipeStore()
|
||||
const { displayedRecipe } = storeToRefs(rStore)
|
||||
|
||||
const showBasketBtn = computed(async () => {
|
||||
/**
|
||||
* Show basket button if there are recipes in the basket
|
||||
*/
|
||||
const showBasketBtn = computed(() => {
|
||||
return displayedRecipe.value.length !== rStore.recipesLength && props.isVisible
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
// @ts-expect-error // Ignore this line
|
||||
import VueAboutMe from 'vue-about-me'
|
||||
import 'vue-about-me/style.css'
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { useStorage } from '@vueuse/core'
|
||||
import { lastDbUpdated, namespace } from '~/constants'
|
||||
import { db, initDb } from '~/utils/db'
|
||||
|
||||
export function useIndexedDB() {
|
||||
const dbUpdated = useStorage(`${namespace}:lastDbUpdated`, lastDbUpdated)
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
import indexeddb from 'fake-indexeddb'
|
||||
|
||||
globalThis.indexedDB = indexeddb
|
||||
import 'fake-indexeddb/auto'
|
||||
|
||||
Reference in New Issue
Block a user