From 5e5208f94e127e8cf1f254e20e0a94a68e933ec0 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 26 Aug 2024 09:37:08 +0900 Subject: [PATCH] wip --- packages/frontend-embed/src/pages/clip.vue | 2 -- packages/frontend-embed/src/pages/note.vue | 2 -- packages/frontend-embed/src/pages/tag.vue | 4 ---- packages/frontend-embed/src/pages/user-timeline.vue | 4 ---- 4 files changed, 12 deletions(-) diff --git a/packages/frontend-embed/src/pages/clip.vue b/packages/frontend-embed/src/pages/clip.vue index d96d7c61cf..3c5e708714 100644 --- a/packages/frontend-embed/src/pages/clip.vue +++ b/packages/frontend-embed/src/pages/clip.vue @@ -58,8 +58,6 @@ const props = defineProps<{ clipId: string; }>(); -onActivated(redirectIfNotEmbedPage); - const embedParams = inject('embedParams', defaultEmbedParams); const clip = ref(null); diff --git a/packages/frontend-embed/src/pages/note.vue b/packages/frontend-embed/src/pages/note.vue index 2cb18662b4..41d6cb5994 100644 --- a/packages/frontend-embed/src/pages/note.vue +++ b/packages/frontend-embed/src/pages/note.vue @@ -22,8 +22,6 @@ const props = defineProps<{ noteId: string; }>(); -onActivated(redirectIfNotEmbedPage); - provide('EMBED_ORIGINAL_ENTITY_URL', `/notes/${props.noteId}`); const note = ref(null); diff --git a/packages/frontend-embed/src/pages/tag.vue b/packages/frontend-embed/src/pages/tag.vue index ee2cbf7cee..3d1adf4ccb 100644 --- a/packages/frontend-embed/src/pages/tag.vue +++ b/packages/frontend-embed/src/pages/tag.vue @@ -55,10 +55,6 @@ const props = defineProps<{ tag: string; }>(); -redirectIfNotEmbedPage(); - -onActivated(redirectIfNotEmbedPage); - const embedParams = inject('embedParams', defaultEmbedParams); const pagination = computed(() => ({ diff --git a/packages/frontend-embed/src/pages/user-timeline.vue b/packages/frontend-embed/src/pages/user-timeline.vue index a0954476be..33da48a895 100644 --- a/packages/frontend-embed/src/pages/user-timeline.vue +++ b/packages/frontend-embed/src/pages/user-timeline.vue @@ -65,10 +65,6 @@ const props = defineProps<{ username: string; }>(); -redirectIfNotEmbedPage(); - -onActivated(redirectIfNotEmbedPage); - const embedParams = inject('embedParams', defaultEmbedParams); const user = ref(null);