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')),