Merge branch 'main' of github.com:lite-note/lite-note

This commit is contained in:
Julien Calixte
2023-08-17 20:06:39 +02:00
4 changed files with 12 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
[build]
publish = "dist"
command = "pnpm build --modern"
command = "pnpm build"
[[redirects]]
from = "/*"

View File

@@ -70,5 +70,5 @@
"@vueuse/router@10.3.0": "patches/@vueuse__router@10.3.0.patch"
}
},
"packageManager": "pnpm@8.6.12"
"packageManager": "pnpm@7.33.6"
}

19
pnpm-lock.yaml generated
View File

@@ -1,7 +1,7 @@
lockfileVersion: '6.0'
settings:
autoInstallPeers: true
autoInstallPeers: false
excludeLinksFromLockfile: false
patchedDependencies:
@@ -12,7 +12,7 @@ patchedDependencies:
dependencies:
'@intlify/unplugin-vue-i18n':
specifier: ^0.12.2
version: 0.12.2(rollup@2.79.1)(vue-i18n@9.2.2)
version: 0.12.2(vue-i18n@9.2.2)
'@octokit/core':
specifier: ^5.0.0
version: 5.0.0
@@ -158,7 +158,7 @@ devDependencies:
version: 4.4.8(@types/node@20.4.8)(sass@1.64.2)
vite-plugin-pwa:
specifier: ^0.16.4
version: 0.16.4(vite@4.4.8)(workbox-build@7.0.0)(workbox-window@7.0.0)
version: 0.16.4(vite@4.4.8)
vitest:
specifier: ^0.34.1
version: 0.34.1(sass@1.64.2)
@@ -1715,7 +1715,7 @@ packages:
engines: {node: '>= 16'}
dev: false
/@intlify/unplugin-vue-i18n@0.12.2(rollup@2.79.1)(vue-i18n@9.2.2):
/@intlify/unplugin-vue-i18n@0.12.2(vue-i18n@9.2.2):
resolution: {integrity: sha512-IIgzLRSPUKZM1FBdUAZ9NwVPiLUr4ea5g/HLWe2lB7gNtPDz4FOfUNUllIT504hT+3pDoJmjaYJ6pyqT7F4Wuw==}
engines: {node: '>= 14.16'}
peerDependencies:
@@ -1732,7 +1732,7 @@ packages:
dependencies:
'@intlify/bundle-utils': 7.0.2(vue-i18n@9.2.2)
'@intlify/shared': 9.3.0-beta.24
'@rollup/pluginutils': 5.0.2(rollup@2.79.1)
'@rollup/pluginutils': 5.0.2
'@vue/compiler-sfc': 3.3.4
debug: 4.3.4
fast-glob: 3.3.0
@@ -1990,7 +1990,7 @@ packages:
rollup: 2.79.1
dev: true
/@rollup/pluginutils@5.0.2(rollup@2.79.1):
/@rollup/pluginutils@5.0.2:
resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==}
engines: {node: '>=14.0.0'}
peerDependencies:
@@ -2002,7 +2002,6 @@ packages:
'@types/estree': 1.0.1
estree-walker: 2.0.2
picomatch: 2.3.1
rollup: 2.79.1
dev: false
/@rushstack/eslint-patch@1.3.2:
@@ -4999,6 +4998,7 @@ packages:
hasBin: true
optionalDependencies:
fsevents: 2.3.2
dev: true
/rollup@3.26.0:
resolution: {integrity: sha512-YzJH0eunH2hr3knvF3i6IkLO/jTjAEwU4HoMUbQl4//Tnl3ou0e7P5SjxdDr8HQJdeUJShlbEHXrrnEHy1l7Yg==}
@@ -5572,13 +5572,11 @@ packages:
- terser
dev: true
/vite-plugin-pwa@0.16.4(vite@4.4.8)(workbox-build@7.0.0)(workbox-window@7.0.0):
/vite-plugin-pwa@0.16.4(vite@4.4.8):
resolution: {integrity: sha512-lmwHFIs9zI2H9bXJld/zVTbCqCQHZ9WrpyDMqosICDV0FVnCJwniX1NMDB79HGTIZzOQkY4gSZaVTJTw6maz/Q==}
engines: {node: '>=16.0.0'}
peerDependencies:
vite: ^3.1.0 || ^4.0.0
workbox-build: ^7.0.0
workbox-window: ^7.0.0
dependencies:
debug: 4.3.4
fast-glob: 3.3.0
@@ -5587,6 +5585,7 @@ packages:
workbox-build: 7.0.0
workbox-window: 7.0.0
transitivePeerDependencies:
- '@types/babel__core'
- supports-color
dev: true

View File

@@ -1,6 +1,6 @@
import { useWindowSize } from '@vueuse/core'
import { useRouteQuery } from '@vueuse/router'
import { nextTick, readonly, watch } from 'vue'
import { nextTick, readonly } from 'vue'
import { NOTE_WIDTH } from '@/constants/note-width'
import { useOverlay } from '@/hooks/useOverlay.hook'
@@ -19,8 +19,6 @@ export const useRouteQueryStackedNotes = () => {
const { scrollToNote, isMobile } = useOverlay(false)
watch(stackedNotes, (val) => console.log(val))
const scrollToFocusedNote = (
sha: string,
notes: string[] = stackedNotes.value