⬆️ (lite-note) migrate to pnpm and upgrade every outdated libs
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ref } from '@vue/reactivity'
|
||||
import { ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
export const useForm = () => {
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user