edit: position logo ts + correction z-index, filtrage par username, gamme colorée adaptée + changement du fond avec le thème

This commit is contained in:
2026-04-08 05:32:16 +02:00
parent 195fd10424
commit 275fd74ca9
14 changed files with 44 additions and 38 deletions
+14 -13
View File
@@ -56,8 +56,8 @@ function exceptionKey(user, content){
let key = "";
if (data.length > 1) key = data[1].split('<br>')[0];
//console.log(key);
if (key === "bm90X3dlYnNpdGVfY29udGVudA==" && user !=="Drags and Nerds /") return true;
if (user === "Drags and Nerds /"){
if (key === "bm90X3dlYnNpdGVfY29udGVudA==" && user !=="drags_nerds") return true;
if (user === "drags_nerds"){
if(key != "c2VuZF9tZXNzYWdlX3RvX3dlYnNpdGU="){
return true;
}
@@ -75,23 +75,24 @@ export async function loadPeopleData() {
throw new Error(`Server responded with ${res.status} ${res.statusText}`);
const pouets = await res.json();
//console.log("POUETS :" , pouets);
const filtered = pouets.filter(p => pData.some(user => p.account.display_name === user.name));
//console.log("FILTERED :" , filtered);
console.log("POUETS :" , pouets);
const filtered = pouets.filter(p => pData.some(user => p.account.username === user.name));
console.log("FILTERED :" , filtered);
const files = {};
for (const user of pData) {
files[user.name] = [];
}
const description = {};
for (const user of pData){
const pouet = filtered.find(p => p.account.display_name === user.name);
const pouet = filtered.find(p => p.account.username === user.name);
if (pouet){
description[user.name] = pouet.account.note;
}
}
for (const pouet of filtered) {
const username = pouet.account.display_name;
const username = pouet.account.username;
const displayName = pouet.account.display_name;
let infos = idAndDate(pouet.created_at);
let entry;
//console.log(pouet);
@@ -114,11 +115,11 @@ export async function loadPeopleData() {
if (pouet.content.includes('http')) {
let textInfos = titleAndContent(pouet.content);
entry = {
id: 'link' + username + infos.id,
id: 'link' + displayName + infos.id,
date: infos.date,
dateInfo: pouet.created_at,
type: "link",
author: username,
author: displayName,
caption: textInfos.title + '.liens',
links: textInfos.links,
description: textInfos.content,
@@ -128,11 +129,11 @@ export async function loadPeopleData() {
let textInfos = titleAndContent(pouet.content);
console.log(pouet);
entry = {
id: 'img' + username + infos.id,
id: 'img' + displayName + infos.id,
date: infos.date,
dateInfo: pouet.created_at,
type: "image",
author: username,
author: displayName,
caption: textInfos.title + '.star',
src: pouet.media_attachments[0].url,
alt: pouet.media_attachments[0].description,
@@ -143,11 +144,11 @@ export async function loadPeopleData() {
} else {
let textInfos = titleAndContent(pouet.content);
entry = {
id: 'txt' + username + infos.id,
id: 'txt' + displayName + infos.id,
date: infos.date,
dateInfo: pouet.created_at,
type: "text",
author: username,
author: displayName,
caption: textInfos.title + '.msg',
description: textInfos.content,
isSelected: false