feat: enhance customization options with new 'Mes Persos' panel and improved context menus

This commit is contained in:
arussac
2026-05-31 15:04:51 +02:00
parent 1a76e9076c
commit 02bba16285
10 changed files with 426 additions and 32 deletions

View File

@@ -5,9 +5,9 @@
<div class="xip-root">
<!-- Zone chat centrale -->
<div class="xip-center">
<div class="xip-center" :style="chatBgStyle">
<ChatHeader :connected-count="stats?.connectedTabs ?? 0" />
<MessageList :messages="messages" :hide-ads="!!myPerks.noads" @reply="startReply" />
<MessageList :messages="messages" :hide-ads="!!myPerks.noads" :my-ip="myIp" @reply="startReply" />
<!-- Bannière de réponse -->
<div v-if="replyingTo" class="reply-banner">
@@ -94,10 +94,22 @@ import StatsTicker from '@/components/StatsTicker.vue';
import { useMessages } from '@/composables/useMessages';
import { useAttachments } from '@/composables/useAttachments';
import { useAlert } from '@/composables/useAlert';
import { useCustomStyles } from '@/composables/useCustomStyles';
const { messages, sending, postMessage, stats, connected, sendTyping, myPerks } = useMessages();
const { messages, sending, postMessage, stats, connected, sendTyping, myPerks, myIp } = useMessages();
const { uploadFile, kb } = useAttachments();
const { fireAlert } = useAlert();
const { prefs: stylePrefs } = useCustomStyles();
const chatBgStyle = computed(() => {
if (!stylePrefs.chatBgUrl) return {};
return {
backgroundImage: `url(${stylePrefs.chatBgUrl})`,
backgroundSize: 'cover',
backgroundPosition: 'center',
backgroundRepeat: 'no-repeat',
};
});
const draft = ref('');