diff --git a/src/views/contents/PublishContentButton.vue b/src/views/contents/PublishContentButton.vue index f9c039e..f87c946 100644 --- a/src/views/contents/PublishContentButton.vue +++ b/src/views/contents/PublishContentButton.vue @@ -18,6 +18,15 @@ const client = useClient(); const title = ref(''); const message = ref(''); const files = ref([]); +const externalUrls = ref([]); + +const addUrl = () => { + externalUrls.value.push(''); +}; + +const removeUrl = (index) => { + externalUrls.value.splice(index, 1); +}; async function publishPost() { const formData = new FormData(); @@ -28,6 +37,9 @@ async function publishPost() { files.value.forEach(file => { formData.append('files', file); }); + externalUrls.value.forEach(externalUrl => { + formData.append('externalUrls', externalUrl); + }); try { const content = await client.post( @@ -40,7 +52,7 @@ async function publishPost() { }) emits('content-posted', content.data) - + closeDialog(); } catch (error) { console.error(error); @@ -74,25 +86,10 @@ const closeDialog = () => { border: `3px solid ${creator.colors.menu}` }"> -
+ Créer un Contenu -
+ -
- Profile Image -
{{ userStore.creator.name }}
- - mdi-close - -
{ outlined > +
+ + + mdi-minus + +
+ + mdi-plus + + { placeholder="Glissez et déposez des fichiers ici ou cliquez pour sélectionner des fichiers" > - - Publier +
+ + + + Cancel - - + + Publier + + diff --git a/src/views/creators/CreatorBanner.vue b/src/views/creators/CreatorBanner.vue index dd48047..21e00c0 100644 --- a/src/views/creators/CreatorBanner.vue +++ b/src/views/creators/CreatorBanner.vue @@ -14,9 +14,13 @@ target="_blank" class="text-white text-2xl transform transition-transform duration-200 hover:scale-125 hover:text-blue-500"> {{ socialNetwork.icon }} - Tiktok - Website