⬆️ (lite-note) migrate to pnpm and upgrade every outdated libs

This commit is contained in:
Julien Calixte
2023-07-01 22:39:04 +02:00
parent 54e9694fc6
commit e0618e0df6
15 changed files with 10369 additions and 12431 deletions

View File

@@ -99,7 +99,15 @@ class Data {
keys: keys.map((key) => this.generateId(prefix, key))
})
return response.rows.map((row) => row.doc).filter((doc) => !!doc) as T[]
return response.rows
.map((row) => {
if ('error' in row) {
return null
}
return row.doc
})
.filter((doc) => !!doc) as T[]
}
const response = await this.locale.allDocs({

View File

@@ -1,4 +1,4 @@
import { ref } from '@vue/reactivity'
import { ref } from 'vue'
import { useRouter } from 'vue-router'
export const useForm = () => {

View File

@@ -1,7 +1,7 @@
import { noteEventBus } from '@/bus/noteEventBus'
import { useUserRepoStore } from '@/modules/repo/store/userRepo.store'
import { isExternalLink } from '@/utils/link'
import { onUnmounted } from '@vue/runtime-core'
import { onUnmounted } from 'vue'
export const useLinks = (className: string, sha?: string) => {
const store = useUserRepoStore()

View File

@@ -1,4 +1,4 @@
import { computed, onMounted, onUnmounted, watch } from '@vue/runtime-core'
import { computed, onMounted, onUnmounted, watch } from 'vue'
import { NOTE_WIDTH } from '@/constants/note-width'
import { noteEventBus } from '@/bus/noteEventBus'

View File

@@ -1,4 +1,4 @@
import { computed, onMounted, ref } from '@vue/runtime-core'
import { computed, onMounted, ref } from 'vue'
import { NOTE_WIDTH } from '@/constants/note-width'
import { useOverlay } from '@/hooks/useOverlay.hook'

View File

@@ -1,7 +1,7 @@
import { NOTE_WIDTH } from '@/constants/note-width'
import { useOverlay } from '@/hooks/useOverlay.hook'
import { useUserRepoStore } from '@/modules/repo/store/userRepo.store'
import { readonly, ref } from '@vue/reactivity'
import { readonly, ref } from 'vue'
import { useWindowSize } from '@vueuse/core'
import { nextTick } from 'vue'

View File

@@ -2,7 +2,7 @@ import { DataType } from '@/data/DataType.enum'
import { Model } from '@/data/models/Model'
import { Backlink } from '@/modules/note/models/Backlink'
export interface BacklinkNote extends Model<DataType.Backlink> {
export interface BacklinkNote extends Model<DataType.BacklinkNote> {
sha: string
links: Backlink[]
}