From 0e204342a1f2be705f5502d2ad80900d06fa2b2d Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Thu, 21 May 2026 20:22:41 -0300 Subject: [PATCH] refactor(posts): standardize MediaItem type imports across components - Added consistent imports of the MediaItem type across various components, including FacebookSettings, InstagramSettings, LinkedInSettings, PinterestSettings, PreviewTab, InstagramPreview, and PlatformPreview. - This change enhances code organization and ensures uniformity in type definitions throughout the project. --- resources/js/components/posts/editor/FacebookSettings.vue | 2 +- resources/js/components/posts/editor/InstagramSettings.vue | 2 +- resources/js/components/posts/editor/LinkedInSettings.vue | 2 +- resources/js/components/posts/editor/PinterestSettings.vue | 2 +- resources/js/components/posts/editor/PreviewTab.vue | 2 +- resources/js/components/posts/previews/InstagramPreview.vue | 2 +- resources/js/components/posts/previews/PlatformPreview.vue | 4 ++-- resources/js/composables/usePostCompliance.ts | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/js/components/posts/editor/FacebookSettings.vue b/resources/js/components/posts/editor/FacebookSettings.vue index 09ebfeea..1451dd2e 100644 --- a/resources/js/components/posts/editor/FacebookSettings.vue +++ b/resources/js/components/posts/editor/FacebookSettings.vue @@ -4,8 +4,8 @@ import { computed, ref } from 'vue'; import { Avatar } from '@/components/ui/avatar'; import { getMediaValidationWarning } from '@/composables/useMedia'; -import type { MediaItem } from '@/types/media'; import { getPlatformLogo } from '@/composables/usePlatformLogo'; +import type { MediaItem } from '@/types/media'; interface SocialAccount { id: string; diff --git a/resources/js/components/posts/editor/InstagramSettings.vue b/resources/js/components/posts/editor/InstagramSettings.vue index d214a009..118b0df2 100644 --- a/resources/js/components/posts/editor/InstagramSettings.vue +++ b/resources/js/components/posts/editor/InstagramSettings.vue @@ -4,9 +4,9 @@ import { computed, ref } from 'vue'; import { Avatar } from '@/components/ui/avatar'; import { getMediaValidationWarning } from '@/composables/useMedia'; -import type { MediaItem } from '@/types/media'; import { getPlatformLogo } from '@/composables/usePlatformLogo'; import { ContentType } from '@/enums/content-type'; +import type { MediaItem } from '@/types/media'; interface SocialAccount { id: string; diff --git a/resources/js/components/posts/editor/LinkedInSettings.vue b/resources/js/components/posts/editor/LinkedInSettings.vue index 3d801402..681f8212 100644 --- a/resources/js/components/posts/editor/LinkedInSettings.vue +++ b/resources/js/components/posts/editor/LinkedInSettings.vue @@ -4,9 +4,9 @@ import { computed, ref } from 'vue'; import { Avatar } from '@/components/ui/avatar'; import { getMediaValidationWarning } from '@/composables/useMedia'; -import type { MediaItem } from '@/types/media'; import { getPlatformLogo } from '@/composables/usePlatformLogo'; import { ContentType } from '@/enums/content-type'; +import type { MediaItem } from '@/types/media'; interface SocialAccount { id: string; diff --git a/resources/js/components/posts/editor/PinterestSettings.vue b/resources/js/components/posts/editor/PinterestSettings.vue index 6bc56d05..bdb77ef5 100644 --- a/resources/js/components/posts/editor/PinterestSettings.vue +++ b/resources/js/components/posts/editor/PinterestSettings.vue @@ -15,11 +15,11 @@ import { ComboboxTrigger, } from '@/components/ui/combobox'; import { getMediaValidationWarning } from '@/composables/useMedia'; -import type { MediaItem } from '@/types/media'; import { usePageErrors } from '@/composables/usePageErrors'; import { getPlatformLogo } from '@/composables/usePlatformLogo'; import { ContentType } from '@/enums/content-type'; import type { PinterestBoard } from '@/types'; +import type { MediaItem } from '@/types/media'; interface SocialAccount { id: string; diff --git a/resources/js/components/posts/editor/PreviewTab.vue b/resources/js/components/posts/editor/PreviewTab.vue index 37feafa8..f966b295 100644 --- a/resources/js/components/posts/editor/PreviewTab.vue +++ b/resources/js/components/posts/editor/PreviewTab.vue @@ -6,8 +6,8 @@ import PhoneMockup from '@/components/PhoneMockup.vue'; import { PlatformPreview } from '@/components/posts/previews'; import { Avatar } from '@/components/ui/avatar'; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'; -import type { MediaItem } from '@/types/media'; import { getPlatformLabel, getPlatformLogo } from '@/composables/usePlatformLogo'; +import type { MediaItem } from '@/types/media'; interface SocialAccount { id: string; diff --git a/resources/js/components/posts/previews/InstagramPreview.vue b/resources/js/components/posts/previews/InstagramPreview.vue index 866fa780..3e3e813b 100644 --- a/resources/js/components/posts/previews/InstagramPreview.vue +++ b/resources/js/components/posts/previews/InstagramPreview.vue @@ -14,8 +14,8 @@ import { import { computed } from 'vue'; import PostMediaPreview from '@/components/posts/previews/PostMediaPreview.vue'; -import type { MediaItem } from '@/types/media'; import { ContentType } from '@/enums/content-type'; +import type { MediaItem } from '@/types/media'; interface SocialAccount { id: string; diff --git a/resources/js/components/posts/previews/PlatformPreview.vue b/resources/js/components/posts/previews/PlatformPreview.vue index ce18edd2..42cacc39 100644 --- a/resources/js/components/posts/previews/PlatformPreview.vue +++ b/resources/js/components/posts/previews/PlatformPreview.vue @@ -1,6 +1,8 @@