-
{{ $t('posts.edit.tabs.writing_assistant_empty') }}
+
+
+
+
+
+
+
+
+
+
+
+
{{ $t('assistant.empty') }}
+
+
+
+
+
+
+
+
+
+
{{ message.content }}
+
+
{{ date.diffForHumans(message.created_at) }}
+
+
+ {{ message.user?.name?.charAt(0)?.toUpperCase() ?? 'U' }}
+
+
+
+
+
+
+
+
+
+
+
{{ message.content }}
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ date.diffForHumans(message.created_at) }}
+
+
+
+
+
+
+
+
+
+
+ {{ $t('assistant.thinking') }}
+
+
+
+
+
+
+
diff --git a/resources/js/pages/posts/Edit.vue b/resources/js/pages/posts/Edit.vue
index 97bf410e..63d2afbe 100644
--- a/resources/js/pages/posts/Edit.vue
+++ b/resources/js/pages/posts/Edit.vue
@@ -209,6 +209,10 @@ const removeMedia = (mediaId: string) => {
media.value = media.value.filter((m) => m.id !== mediaId);
};
+const addMediaFromAssistant = (mediaItem: { id: string; path: string; url: string; type: string; mime_type: string }) => {
+ media.value = [...media.value, mediaItem];
+};
+
// Save logic
const getSubmitData = () => {
const platforms = post.value.post_platforms
@@ -444,8 +448,8 @@ const formatFileSize = (bytes: number): string => {
-
-
+
+