From 3aabdf889b92c4e7022faf6a712bccce058802c3 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sat, 31 Aug 2024 09:57:22 +0900 Subject: [PATCH] refactor --- .../src/components/EmImgWithBlurhash.vue | 2 +- .../js}/extract-avg-color-from-blurhash.ts | 0 .../frontend/src/components/MkImgWithBlurhash.vue | 2 +- .../frontend/src/components/global/MkAvatar.vue | 2 +- .../src/scripts/extract-avg-color-from-blurhash.ts | 14 -------------- 5 files changed, 3 insertions(+), 17 deletions(-) rename packages/{frontend-embed/src/to-be-shared => frontend-shared/js}/extract-avg-color-from-blurhash.ts (100%) delete mode 100644 packages/frontend/src/scripts/extract-avg-color-from-blurhash.ts diff --git a/packages/frontend-embed/src/components/EmImgWithBlurhash.vue b/packages/frontend-embed/src/components/EmImgWithBlurhash.vue index fd1d291073..d19cd08d0a 100644 --- a/packages/frontend-embed/src/components/EmImgWithBlurhash.vue +++ b/packages/frontend-embed/src/components/EmImgWithBlurhash.vue @@ -14,7 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-only import DrawBlurhash from '@/workers/draw-blurhash?worker'; import TestWebGL2 from '@/workers/test-webgl2?worker'; import { WorkerMultiDispatch } from '@/to-be-shared/worker-multi-dispatch.js'; -import { extractAvgColorFromBlurhash } from '@/to-be-shared/extract-avg-color-from-blurhash.js'; +import { extractAvgColorFromBlurhash } from '@@/js/extract-avg-color-from-blurhash.js'; const canvasPromise = new Promise(resolve => { // テスト環境で Web Worker インスタンスは作成できない diff --git a/packages/frontend-embed/src/to-be-shared/extract-avg-color-from-blurhash.ts b/packages/frontend-shared/js/extract-avg-color-from-blurhash.ts similarity index 100% rename from packages/frontend-embed/src/to-be-shared/extract-avg-color-from-blurhash.ts rename to packages/frontend-shared/js/extract-avg-color-from-blurhash.ts diff --git a/packages/frontend/src/components/MkImgWithBlurhash.vue b/packages/frontend/src/components/MkImgWithBlurhash.vue index 8d301f16bd..eeecf052af 100644 --- a/packages/frontend/src/components/MkImgWithBlurhash.vue +++ b/packages/frontend/src/components/MkImgWithBlurhash.vue @@ -24,7 +24,7 @@ SPDX-License-Identifier: AGPL-3.0-only import DrawBlurhash from '@/workers/draw-blurhash?worker'; import TestWebGL2 from '@/workers/test-webgl2?worker'; import { WorkerMultiDispatch } from '@/scripts/worker-multi-dispatch.js'; -import { extractAvgColorFromBlurhash } from '@/scripts/extract-avg-color-from-blurhash.js'; +import { extractAvgColorFromBlurhash } from '@@/js/extract-avg-color-from-blurhash.js'; const canvasPromise = new Promise(resolve => { // テスト環境で Web Worker インスタンスは作成できない diff --git a/packages/frontend/src/components/global/MkAvatar.vue b/packages/frontend/src/components/global/MkAvatar.vue index ee224dba49..35c07bc80c 100644 --- a/packages/frontend/src/components/global/MkAvatar.vue +++ b/packages/frontend/src/components/global/MkAvatar.vue @@ -42,10 +42,10 @@ SPDX-License-Identifier: AGPL-3.0-only