feat: sourcemap

fix: maybe improve thumbnailer perf
This commit is contained in:
ThaUnknown 2025-05-08 16:55:53 +02:00
parent 4c00e289ed
commit 2d6178c7e8
No known key found for this signature in database
4 changed files with 25 additions and 25 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ui",
"version": "6.1.20",
"version": "6.2.0",
"license": "BUSL-1.1",
"private": true,
"packageManager": "pnpm@9.14.4",
@ -53,7 +53,7 @@
"@urql/exchange-request-policy": "^1.2.0",
"@urql/exchange-retry": "^1.3.0",
"@urql/svelte": "^4.2.1",
"abslink": "^1.0.16",
"abslink": "^1.0.17",
"anitomyscript": "github:thaunknown/anitomyscript",
"bottleneck": "^2.19.5",
"clsx": "^2.1.1",

View file

@ -39,8 +39,8 @@ importers:
specifier: ^4.2.1
version: 4.2.1(@urql/core@5.1.0(graphql@16.10.0))(svelte@4.2.19)
abslink:
specifier: ^1.0.16
version: 1.0.16
specifier: ^1.0.17
version: 1.0.17
anitomyscript:
specifier: github:thaunknown/anitomyscript
version: https://codeload.github.com/thaunknown/anitomyscript/tar.gz/fc00888d69ba59258167f2fac9e86576b29863b7
@ -149,7 +149,7 @@ importers:
version: 0.0.18(svelte@4.2.19)
eslint-config-standard-universal:
specifier: github:thaunknown/eslint-config-standard-universal
version: https://codeload.github.com/thaunknown/eslint-config-standard-universal/tar.gz/14c085cecee00b3d56760ea8ff5c8e3486c3c4cf(@typescript-eslint/parser@8.18.0(eslint@9.17.0(jiti@1.21.6))(typescript@5.7.2))(jiti@1.21.6)
version: https://codeload.github.com/thaunknown/eslint-config-standard-universal/tar.gz/6aa7ce8715627166521f6212715e605caca433e3(@typescript-eslint/parser@8.18.0(eslint@9.17.0(jiti@1.21.6))(typescript@5.7.2))(jiti@1.21.6)
globals:
specifier: ^15.11.0
version: 15.11.0
@ -787,8 +787,8 @@ packages:
'@urql/core': ^5.0.0
svelte: ^3.0.0 || ^4.0.0 || ^5.0.0
abslink@1.0.16:
resolution: {integrity: sha512-GnBVCPIkfvlnTV+9oOpw7/Ksh8mHzfKmJ7KBeLsPif8faqEqvkxkFvkPAzqy6DKTlmmZOKYsZx2UyWEJcgJ4VQ==}
abslink@1.0.17:
resolution: {integrity: sha512-g+XhHxF3l6W06M0wcdf0/gPANe5CJGTS1pUqSRlBDjA2JMLSO2Q7j48fasTDHPjn4pDIdhRm6stuYJpyVfmbtA==}
acorn-jsx@5.3.2:
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
@ -1222,8 +1222,8 @@ packages:
peerDependencies:
eslint: '>=6.0.0'
eslint-config-standard-universal@https://codeload.github.com/thaunknown/eslint-config-standard-universal/tar.gz/14c085cecee00b3d56760ea8ff5c8e3486c3c4cf:
resolution: {tarball: https://codeload.github.com/thaunknown/eslint-config-standard-universal/tar.gz/14c085cecee00b3d56760ea8ff5c8e3486c3c4cf}
eslint-config-standard-universal@https://codeload.github.com/thaunknown/eslint-config-standard-universal/tar.gz/6aa7ce8715627166521f6212715e605caca433e3:
resolution: {tarball: https://codeload.github.com/thaunknown/eslint-config-standard-universal/tar.gz/6aa7ce8715627166521f6212715e605caca433e3}
version: 1.0.4
eslint-import-resolver-node@0.3.9:
@ -2339,8 +2339,8 @@ packages:
resolution: {integrity: sha512-IY1rnGr6izd10B0A8LqsBfmlT5OILVuZ7XsI0vdGPEvuonFV7NYEUK4dAkm9Zg2q0Um92kYjTpS1CAP3Nh/KWw==}
engines: {node: '>=16'}
svelte@5.28.1:
resolution: {integrity: sha512-iOa9WmfNG95lSOSJdMhdjJ4Afok7IRAQYXpbnxhd5EINnXseG0GVa9j6WPght4eX78XfFez45Fi+uRglGKPV/Q==}
svelte@5.28.2:
resolution: {integrity: sha512-FbWBxgWOpQfhKvoGJv/TFwzqb4EhJbwCD17dB0tEpQiw1XyUEKZJtgm4nA4xq3LLsMo7hu5UY/BOFmroAxKTMg==}
engines: {node: '>=18'}
tabbable@6.2.0:
@ -3187,7 +3187,7 @@ snapshots:
svelte: 4.2.19
wonka: 6.3.4
abslink@1.0.16: {}
abslink@1.0.17: {}
acorn-jsx@5.3.2(acorn@8.14.0):
dependencies:
@ -3719,7 +3719,7 @@ snapshots:
eslint: 9.17.0(jiti@1.21.6)
semver: 7.7.1
eslint-config-standard-universal@https://codeload.github.com/thaunknown/eslint-config-standard-universal/tar.gz/14c085cecee00b3d56760ea8ff5c8e3486c3c4cf(@typescript-eslint/parser@8.18.0(eslint@9.17.0(jiti@1.21.6))(typescript@5.7.2))(jiti@1.21.6):
eslint-config-standard-universal@https://codeload.github.com/thaunknown/eslint-config-standard-universal/tar.gz/6aa7ce8715627166521f6212715e605caca433e3(@typescript-eslint/parser@8.18.0(eslint@9.17.0(jiti@1.21.6))(typescript@5.7.2))(jiti@1.21.6):
dependencies:
'@stylistic/eslint-plugin': 4.2.0(eslint@9.17.0(jiti@1.21.6))(typescript@5.7.2)
eslint: 9.17.0(jiti@1.21.6)
@ -3727,9 +3727,9 @@ snapshots:
eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.18.0(eslint@9.17.0(jiti@1.21.6))(typescript@5.7.2))(eslint@9.17.0(jiti@1.21.6))
eslint-plugin-n: 17.15.0(eslint@9.17.0(jiti@1.21.6))
eslint-plugin-promise: 7.2.1(eslint@9.17.0(jiti@1.21.6))
eslint-plugin-svelte: 3.1.0(eslint@9.17.0(jiti@1.21.6))(svelte@5.28.1)
eslint-plugin-svelte: 3.1.0(eslint@9.17.0(jiti@1.21.6))(svelte@5.28.2)
globals: 16.0.0
svelte: 5.28.1
svelte: 5.28.2
typescript: 5.7.2
typescript-eslint: 8.18.0(eslint@9.17.0(jiti@1.21.6))(typescript@5.7.2)
transitivePeerDependencies:
@ -3811,7 +3811,7 @@ snapshots:
'@eslint-community/eslint-utils': 4.4.1(eslint@9.17.0(jiti@1.21.6))
eslint: 9.17.0(jiti@1.21.6)
eslint-plugin-svelte@3.1.0(eslint@9.17.0(jiti@1.21.6))(svelte@5.28.1):
eslint-plugin-svelte@3.1.0(eslint@9.17.0(jiti@1.21.6))(svelte@5.28.2):
dependencies:
'@eslint-community/eslint-utils': 4.4.1(eslint@9.17.0(jiti@1.21.6))
'@jridgewell/sourcemap-codec': 1.5.0
@ -3823,9 +3823,9 @@ snapshots:
postcss-load-config: 3.1.4(postcss@8.4.49)
postcss-safe-parser: 7.0.1(postcss@8.4.49)
semver: 7.7.1
svelte-eslint-parser: 1.0.1(svelte@5.28.1)
svelte-eslint-parser: 1.0.1(svelte@5.28.2)
optionalDependencies:
svelte: 5.28.1
svelte: 5.28.2
transitivePeerDependencies:
- ts-node
@ -4863,7 +4863,7 @@ snapshots:
transitivePeerDependencies:
- picomatch
svelte-eslint-parser@1.0.1(svelte@5.28.1):
svelte-eslint-parser@1.0.1(svelte@5.28.2):
dependencies:
eslint-scope: 8.2.0
eslint-visitor-keys: 4.2.0
@ -4872,7 +4872,7 @@ snapshots:
postcss-scss: 4.0.9(postcss@8.4.49)
postcss-selector-parser: 7.1.0
optionalDependencies:
svelte: 5.28.1
svelte: 5.28.2
svelte-hmr@0.16.0(svelte@4.2.19):
dependencies:
@ -4916,7 +4916,7 @@ snapshots:
magic-string: 0.30.12
periscopic: 3.1.0
svelte@5.28.1:
svelte@5.28.2:
dependencies:
'@ampproject/remapping': 2.3.0
'@jridgewell/sourcemap-codec': 1.5.0

View file

@ -39,9 +39,8 @@ export default class Thumbnailer {
const { promise, resolve } = Promise.withResolvers<string | undefined>()
const run = () => {
this.video.requestVideoFrameCallback((_now, meta) => {
resolve(this._paintThumbnail(this.video, index, meta.width, meta.height))
this.video.currentTime = 0
this.video.requestVideoFrameCallback(async (_now, meta) => {
resolve(await this._paintThumbnail(this.video, index, meta.width, meta.height))
this.currentTask = undefined
if (this.nextTask) {
this.currentTask = this.nextTask

View file

@ -27,7 +27,8 @@ export default defineConfig({
},
server: { port: 7344 },
build: {
target: 'esnext'
target: 'esnext',
sourcemap: true
},
ssr: {
target: 'webworker'