From 2a915374dd94b5187d2d70eb64e93b8d0248749a Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Fri, 23 Aug 2024 08:10:11 +0900 Subject: [PATCH] wip --- packages/embed/src/router.ts | 29 ----------------------------- packages/embed/src/ui.vue | 4 ++-- 2 files changed, 2 insertions(+), 31 deletions(-) delete mode 100644 packages/embed/src/router.ts diff --git a/packages/embed/src/router.ts b/packages/embed/src/router.ts deleted file mode 100644 index c2715cc50e..0000000000 --- a/packages/embed/src/router.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * SPDX-FileCopyrightText: syuilo and misskey-project - * SPDX-License-Identifier: AGPL-3.0-only - */ - -import type { IRouter, RouteDef } from '@/nirax.js'; -import { Router } from '@/nirax.js'; -import { page } from '@/router/definition.js'; - -const routes: RouteDef[] = [{ - path: '/embed/notes/:noteId', - component: page(() => import('@/embed/pages/note.vue')), -}, { - path: '/embed/user-timeline/@:username', - component: page(() => import('@/embed/pages/user-timeline.vue')), -}, { - path: '/embed/clips/:clipId', - component: page(() => import('@/embed/pages/clip.vue')), -}, { - path: '/embed/tags/:tag', - component: page(() => import('@/embed/pages/tag.vue')), -}, { - path: '/:(*)', - component: page(() => import('@/pages/not-found.vue')), -}]; - -export function createEmbedRouter(path: string): IRouter { - return new Router(routes, path, false, page(() => import('@/pages/not-found.vue'))); -} diff --git a/packages/embed/src/ui.vue b/packages/embed/src/ui.vue index ebfc48dd10..ac53e20672 100644 --- a/packages/embed/src/ui.vue +++ b/packages/embed/src/ui.vue @@ -18,7 +18,7 @@ SPDX-License-Identifier: AGPL-3.0-only