From ed0389bf605447ec9694c084b69cbcd49e9c7163 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 6 Jun 2024 19:26:05 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AF=E3=83=AA=E3=83=83=E3=83=97=E3=82=BF?= =?UTF-8?q?=E3=82=A4=E3=83=A0=E3=83=A9=E3=82=A4=E3=83=B3=E3=81=AE=E5=9F=8B?= =?UTF-8?q?=E3=82=81=E8=BE=BC=E3=81=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/embed/_timeline_ui_.vue | 39 +++++ packages/frontend/src/pages/embed/clip.vue | 145 ++++++++++++++++++ .../src/pages/embed/user-timeline.vue | 82 +++++----- packages/frontend/src/router/definition.ts | 7 + 4 files changed, 227 insertions(+), 46 deletions(-) create mode 100644 packages/frontend/src/pages/embed/_timeline_ui_.vue create mode 100644 packages/frontend/src/pages/embed/clip.vue diff --git a/packages/frontend/src/pages/embed/_timeline_ui_.vue b/packages/frontend/src/pages/embed/_timeline_ui_.vue new file mode 100644 index 0000000000..6c30b1102d --- /dev/null +++ b/packages/frontend/src/pages/embed/_timeline_ui_.vue @@ -0,0 +1,39 @@ + + + + + + + diff --git a/packages/frontend/src/pages/embed/clip.vue b/packages/frontend/src/pages/embed/clip.vue new file mode 100644 index 0000000000..3f0546072f --- /dev/null +++ b/packages/frontend/src/pages/embed/clip.vue @@ -0,0 +1,145 @@ + + + + + + + diff --git a/packages/frontend/src/pages/embed/user-timeline.vue b/packages/frontend/src/pages/embed/user-timeline.vue index cb3b2acf18..81e4232ae3 100644 --- a/packages/frontend/src/pages/embed/user-timeline.vue +++ b/packages/frontend/src/pages/embed/user-timeline.vue @@ -4,39 +4,43 @@ SPDX-License-Identifier: AGPL-3.0-only --> @@ -46,6 +50,7 @@ import { ref, computed, shallowRef } from 'vue'; import * as Misskey from 'misskey-js'; import MkNotes from '@/components/MkNotes.vue'; import XNotFound from '@/pages/not-found.vue'; +import XEmbedTimelineUI from '@/pages/embed/_timeline_ui_.vue'; import type { Paging } from '@/components/MkPagination.vue'; import { misskeyApi } from '@/scripts/misskey-api.js'; import { i18n } from '@/i18n.js'; @@ -98,22 +103,12 @@ misskeyApi('users/show', { diff --git a/packages/frontend/src/router/definition.ts b/packages/frontend/src/router/definition.ts index 0da1c5131e..d8af14f79f 100644 --- a/packages/frontend/src/router/definition.ts +++ b/packages/frontend/src/router/definition.ts @@ -565,6 +565,13 @@ const routes: RouteDef[] = [{ header: 'showHeader', autoload: 'enableAutoLoad', } +}, { + path: '/embed/clips/:clipId', + component: page(() => import('@/pages/embed/clip.vue')), + query: { + header: 'showHeader', + autoload: 'enableAutoLoad', + } }, { path: '/timeline', component: page(() => import('@/pages/timeline.vue')),