From 1ed6ed6ef07ce5f21dd2c31a7b389e8a1a3900d4 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sat, 29 Jun 2024 17:47:38 +0900 Subject: [PATCH] =?UTF-8?q?embed=E3=81=AEURL=E3=83=91=E3=83=A9=E3=83=A1?= =?UTF-8?q?=E3=83=BC=E3=82=BF=E3=81=AE=E5=88=9D=E6=9C=9F=E5=8C=96=E3=82=92?= =?UTF-8?q?=E5=85=B1=E9=80=9A=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/MkEmbedCodeGenDialog.vue | 5 +- packages/frontend/src/pages/embed/clip.vue | 14 ++-- packages/frontend/src/pages/embed/tag.vue | 12 ++- .../src/pages/embed/user-timeline.vue | 12 ++- packages/frontend/src/router/definition.ts | 12 --- packages/frontend/src/scripts/embed-page.ts | 79 +++++++++++++++++++ .../frontend/src/scripts/get-embed-code.ts | 43 ++-------- packages/frontend/src/ui/embed.vue | 14 ++-- 8 files changed, 113 insertions(+), 78 deletions(-) diff --git a/packages/frontend/src/components/MkEmbedCodeGenDialog.vue b/packages/frontend/src/components/MkEmbedCodeGenDialog.vue index 713e527a3f..f6b4499c70 100644 --- a/packages/frontend/src/components/MkEmbedCodeGenDialog.vue +++ b/packages/frontend/src/components/MkEmbedCodeGenDialog.vue @@ -81,8 +81,9 @@ import * as os from '@/os.js'; import { i18n } from '@/i18n.js'; import { url } from '@/config.js'; import copy from '@/scripts/copy-to-clipboard.js'; -import { normalizeEmbedParams, embedRouteWithScrollbar, getEmbedCode } from '@/scripts/get-embed-code.js'; -import type { EmbeddableEntity, EmbedParams } from '@/scripts/get-embed-code.js'; +import { normalizeEmbedParams, getEmbedCode } from '@/scripts/get-embed-code.js'; +import { embedRouteWithScrollbar } from '@/scripts/embed-page.js'; +import type { EmbeddableEntity, EmbedParams } from '@/scripts/embed-page.js'; const emit = defineEmits<{ (ev: 'ok', url: string, code: string): void; diff --git a/packages/frontend/src/pages/embed/clip.vue b/packages/frontend/src/pages/embed/clip.vue index 2c09c033c1..4792f0dc6a 100644 --- a/packages/frontend/src/pages/embed/clip.vue +++ b/packages/frontend/src/pages/embed/clip.vue @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only