diff --git a/v1-com-officielle/public/DATA/Images/ura-bleu.png b/v1-com-officielle/public/DATA/Images/ura-bleu.png
deleted file mode 100644
index 40f15ca..0000000
Binary files a/v1-com-officielle/public/DATA/Images/ura-bleu.png and /dev/null differ
diff --git a/v1-com-officielle/public/DATA/Images/ura-vert.png b/v1-com-officielle/public/DATA/Images/ura-vert.png
deleted file mode 100644
index 4d8e40f..0000000
Binary files a/v1-com-officielle/public/DATA/Images/ura-vert.png and /dev/null differ
diff --git a/v1-com-officielle/public/DATA/Son/1.mp3 b/v1-com-officielle/public/DATA/Son/1.mp3
deleted file mode 100644
index 99970b0..0000000
Binary files a/v1-com-officielle/public/DATA/Son/1.mp3 and /dev/null differ
diff --git a/v1-com-officielle/public/DATA/Son/2.mp3 b/v1-com-officielle/public/DATA/Son/2.mp3
deleted file mode 100644
index 4036876..0000000
Binary files a/v1-com-officielle/public/DATA/Son/2.mp3 and /dev/null differ
diff --git a/v1-com-officielle/public/DATA/Son/3.mp3 b/v1-com-officielle/public/DATA/Son/3.mp3
deleted file mode 100644
index e6981ba..0000000
Binary files a/v1-com-officielle/public/DATA/Son/3.mp3 and /dev/null differ
diff --git a/v1-com-officielle/public/DATA/Son/4.mp3 b/v1-com-officielle/public/DATA/Son/4.mp3
deleted file mode 100644
index c1fe2a8..0000000
Binary files a/v1-com-officielle/public/DATA/Son/4.mp3 and /dev/null differ
diff --git a/v1-com-officielle/public/DATA/Son/5.mp3 b/v1-com-officielle/public/DATA/Son/5.mp3
deleted file mode 100644
index 55b2c79..0000000
Binary files a/v1-com-officielle/public/DATA/Son/5.mp3 and /dev/null differ
diff --git a/v1-com-officielle/public/DATA/Son/6.mp3 b/v1-com-officielle/public/DATA/Son/6.mp3
deleted file mode 100644
index 709172f..0000000
Binary files a/v1-com-officielle/public/DATA/Son/6.mp3 and /dev/null differ
diff --git a/v1-com-officielle/public/DATA/Son/7.mp3 b/v1-com-officielle/public/DATA/Son/7.mp3
deleted file mode 100644
index 1db2947..0000000
Binary files a/v1-com-officielle/public/DATA/Son/7.mp3 and /dev/null differ
diff --git a/v1-com-officielle/public/DATA/audioData.json b/v1-com-officielle/public/DATA/audioData.json
index 7be9593..32228f8 100644
--- a/v1-com-officielle/public/DATA/audioData.json
+++ b/v1-com-officielle/public/DATA/audioData.json
@@ -1,17 +1,3 @@
[
- {
- "track":"L'Inverse",
- "artist":"Surprise",
- "src":"./DATA/Son/1.mp3"
- },
- {
- "track":"Yummy",
- "artist":"Ayesha Erotica",
- "src":"./DATA/Son/2.mp3"
- },
- {
- "track":"M le Maudit",
- "artist":"Mauvais Exemple",
- "src":"./DATA/Son/3.mp3"
- }
+ "vega"
]
diff --git a/v1-com-officielle/public/DATA/msgData.json b/v1-com-officielle/public/DATA/msgData.json
deleted file mode 100644
index b9ce519..0000000
--- a/v1-com-officielle/public/DATA/msgData.json
+++ /dev/null
@@ -1,38 +0,0 @@
-[
- {
- "title": "Atelier Meetup 1/3",
- "date": "21/03",
- "content": "Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos. \n\n Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.",
- "like": 0,
- "isLiked": false,
- "going": 0,
- "isGoing": false,
- "wasRead": false,
- "isSelected": false,
- "isEvent": true
- },
- {
- "title": "Atelier Meetup 1/3",
- "date": "21/03",
- "content": "Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos. \n\n Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.",
- "like": 0,
- "isLiked": false,
- "going": 0,
- "isGoing": false,
- "wasRead": false,
- "isSelected": false,
- "isEvent": true
- },
- {
- "title": "Atelier Meetup 1/3",
- "date": "21/03",
- "content": "Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos. \n\n Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.",
- "like": 0,
- "isLiked": false,
- "going": 0,
- "isGoing": false,
- "wasRead": false,
- "isSelected": false,
- "isEvent": true
- }
-]
diff --git a/v1-com-officielle/src/assets/TEST/tel.png b/v1-com-officielle/src/assets/TEST/tel.png
deleted file mode 100644
index b2f3307..0000000
Binary files a/v1-com-officielle/src/assets/TEST/tel.png and /dev/null differ
diff --git a/v1-com-officielle/src/assets/style.css b/v1-com-officielle/src/assets/style.css
index 473ece5..1355903 100644
--- a/v1-com-officielle/src/assets/style.css
+++ b/v1-com-officielle/src/assets/style.css
@@ -225,7 +225,7 @@ canvas {
}
/*==================Reaction Bar for indi pannels*/
.reactBar{
- margin-left: -16.1%;
+ margin-left: 3.33%;
width: 77%;
display: flex;
flex-direction: row;
diff --git a/v1-com-officielle/src/data/audioData.js b/v1-com-officielle/src/data/audioData.js
index 099cec3..8be6e9f 100644
--- a/v1-com-officielle/src/data/audioData.js
+++ b/v1-com-officielle/src/data/audioData.js
@@ -1,4 +1,56 @@
-export async function loadAudioData() {
- const aData = await fetch('./DATA/audioData.json');
- return await aData.json();
+function inlineContent(str){
+ let data = str.split("
");
+ let content = "";
+ for (let line of data){
+ content += line + '\n';
+ }
+ return content
+}
+
+function creditsContent(str){
+ let data = str.split("
")
+ let credits = data[0].split(" - ");
+ return {
+ track: credits[0],
+ artist: credits[1]
+ }
+}
+
+export async function loadAudioData() {
+ const audioRes = await fetch('./DATA/audioData.json');
+ const aData = await audioRes.json();
+ const res = await fetch("https://pouet.drags-nerds.net/api/v1/timelines/public?local=true&limit=40");
+
+ if(!res.ok) throw new Error(`Server responded with ${res.status} ${res.statusText}`);
+
+ const pouets = await res.json();
+ const filtered = pouets.filter(p => aData.some(user => p.account.display_name === user));
+ console.log(filtered);
+ const files = {};
+ for (const user of aData) {
+ files[user] = [];
+ }
+
+ let audioFiles = [];
+
+ for (const pouet of filtered){
+ //ignorer les PJ autres que audio
+ if (pouet.media_attachments?.length > 0 &&
+ !pouet.media_attachments[0].type.includes('audio')) {
+ continue;
+ }
+
+ if(pouet.media_attachments?.length > 0){
+ let credits = creditsContent(pouet.content);
+ let entry = {
+ track: credits.track,
+ artist: credits.artist,
+ src: pouet.media_attachments[0].url
+ }
+ audioFiles.push(entry);
+ }
+ }
+
+ console.log(audioFiles);
+ return audioFiles
}
diff --git a/v1-com-officielle/src/data/msgData.js b/v1-com-officielle/src/data/msgData.js
index 3b05616..e2fdb9d 100644
--- a/v1-com-officielle/src/data/msgData.js
+++ b/v1-com-officielle/src/data/msgData.js
@@ -1,10 +1,51 @@
-//ecrire les messages dans /public/DATA/msgData.json avec 6 paramètres : title, content, likes, going, isSelected, isEvent
-// like & going à 0 par défaut (fonctionnel)
-// isLiked & isGoing local pour cette session: false par default (fonctionnel)
-// isSelected: false par défault (fonctionnel)
-// wasRead: false par défault (fonctionnel)
-// isEvent: true si le message concerne un évènement
-export async function loadMsgData() {
- const data = await fetch('./DATA/msgData.json');
- return await data.json();
+function idAndDate(str){
+ let data = str.split("T");
+ let date = data[0].split("-");
+ return {
+ date: date[2] +'/'+ date[1],
+ id: date[2] + date[1]
+ }
+}
+
+function titleAndContent(str){
+ let data = str.split(" :");
+ let title = data[0];
+ let contentData = data[1].split("
").filter(e => e);
+ let content = "";
+ for(let line of contentData){
+ content += line + '\n';
+ }
+ return {
+ title: title,
+ content: content
+ }
+ }
+
+export async function loadMsgData() {
+ const res = await fetch("https://pouet.drags-nerds.net/api/v1/timelines/public?local=true&limit=40");
+
+ if(!res.ok) throw new Error(`Server responded with ${res.status} ${res.statusText}`);
+
+ const pouets = await res.json();
+ const filtered = pouets.filter(p => p.account.display_name === 'Drags and Nerds /Live');
+ console.log(filtered);
+
+ let msgContent = [];
+
+ for (let pouet of filtered){
+ let textInfos = titleAndContent(pouet.content);
+ let dateInfos = idAndDate(pouet.created_at);
+ let entry = {
+ title: textInfos.title,
+ date: dateInfos.date,
+ content: textInfos.content,
+ like: pouet.favourites_count,
+ isLiked: false,
+ wasRead: false,
+ isSelected: false
+ }
+ msgContent.push(entry);
+ }
+
+ return msgContent;
}
diff --git a/v1-com-officielle/src/data/peopleData.js b/v1-com-officielle/src/data/peopleData.js
index 6110410..39c045f 100644
--- a/v1-com-officielle/src/data/peopleData.js
+++ b/v1-com-officielle/src/data/peopleData.js
@@ -7,15 +7,6 @@ function idAndDate(str){
}
}
-function inlineContent(str){
- let data = str.split("
");
- let content = "";
- for (let line of data){
- content += line + '\n';
- }
- return content
-}
-
function titleAndContent(str){
let data = str.split(" :");
let title = data[0];
@@ -76,13 +67,17 @@ export async function loadPeopleData() {
const username = pouet.account.display_name;
let infos = idAndDate(pouet.created_at);
let entry;
-
+ //console.log(pouet);
//ignorer autres que images
if (pouet.media_attachments?.length > 0 &&
!pouet.media_attachments[0].type.includes('image')) {
continue;
}
+ if (pouet.in_reply_to_account_id) {
+ continue;
+ }
+
if (pouet.content.includes('http')) {
let textInfos = titleAndContent(pouet.content);
entry = {
diff --git a/v1-com-officielle/src/dataExchange.js b/v1-com-officielle/src/dataExchange.js
index 0b593e7..5cf1557 100644
--- a/v1-com-officielle/src/dataExchange.js
+++ b/v1-com-officielle/src/dataExchange.js
@@ -1,17 +1,14 @@
import { reactive } from 'vue'
export const dataStorage = reactive({
- selectedMsg: { //empty msg template
+ selectedMsg: {
title: '',
date: '',
content: '',
like: 0,
isLiked: false,
- going: 0,
- isGoing: false,
wasRead: false,
- isSelected: false,
- isEvent: false
+ isSelected: false
},
selectedImg: {
src: "",
diff --git a/v1-com-officielle/src/indieComponents/MessagePannel.vue b/v1-com-officielle/src/indieComponents/MessagePannel.vue
index b836a7d..112d2d9 100644
--- a/v1-com-officielle/src/indieComponents/MessagePannel.vue
+++ b/v1-com-officielle/src/indieComponents/MessagePannel.vue
@@ -22,16 +22,12 @@
{{selectedMsg.like}}
-{{selectedMsg.going}}
-{{selectedMsg.content}}
{{item.like}}
{{item.going}}
-PARTICIPAN.X.S
-JE PARTICIPE!