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