Refactor backend CORS settings to include default origins and improve error handling in chat services: Introduce dynamic CORS origin handling, enhance RabbitMQ message sending with fallback mechanisms, and update WebSocket service to manage pending messages. Update UI components for better accessibility and responsiveness, including adjustments to dialog and navigation elements. Enhance styling for improved user experience across various components.

This commit is contained in:
Torsten Schulz (local)
2026-03-19 14:44:04 +01:00
parent 70ee17a48a
commit b0c8f01fde
67 changed files with 5426 additions and 1099 deletions

View File

@@ -1,13 +1,29 @@
<template>
<div>
<h2>{{ $t('friends.title') }}</h2>
<div class="friends-view">
<section class="friends-hero surface-card">
<div>
<span class="friends-kicker">Community</span>
<h2>{{ $t('friends.title') }}</h2>
<p>Freundschaften, offene Anfragen und laufende Kontakte an einem Ort.</p>
</div>
<div class="friends-stats">
<div class="friends-stat surface-card">
<strong>{{ tabs[0].data.length }}</strong>
<span>Bestehend</span>
</div>
<div class="friends-stat surface-card">
<strong>{{ tabs[1].data.length + tabs[2].data.length }}</strong>
<span>Offen</span>
</div>
</div>
</section>
<div class="tabs-container">
<div class="tab" v-for="(tab, index) in tabs" :key="tab.name" :class="{ active: activeTab === index }"
@click="selectTab(index)">
{{ $t(tab.label) }}
</div>
</div>
<div v-for="(tab, index) in tabs" v-show="activeTab === index" :key="tab.name">
<div v-for="(tab, index) in tabs" v-show="activeTab === index" :key="tab.name" class="friends-panel surface-card">
<v-data-table :items="paginatedData(tab.data, tab.pagination.page)" :headers="headers"
:items-per-page="tab.pagination.itemsPerPage" class="elevation-1">
<template v-slot:body="{ items }">
@@ -167,25 +183,85 @@ export default {
</script>
<style scoped>
.friends-view {
max-width: var(--content-max-width);
margin: 0 auto;
padding-bottom: 24px;
}
.friends-hero {
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: 18px;
padding: 24px 26px;
margin-bottom: 16px;
}
.friends-kicker {
display: inline-block;
margin-bottom: 10px;
padding: 4px 10px;
border-radius: 999px;
background: rgba(120, 195, 138, 0.14);
color: #42634e;
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.friends-hero p {
margin: 0;
color: var(--color-text-secondary);
}
.friends-stats {
display: flex;
gap: 12px;
}
.friends-stat {
min-width: 120px;
padding: 14px 16px;
text-align: center;
}
.friends-stat strong {
display: block;
font-size: 1.5rem;
line-height: 1;
margin-bottom: 6px;
}
.friends-stat span {
color: var(--color-text-secondary);
font-size: 0.82rem;
font-weight: 600;
}
.tabs-container {
display: flex;
border-bottom: 1px solid #999;
padding: 5px 0;
gap: 8px;
padding: 0 0 12px;
border-bottom: 0;
flex-wrap: wrap;
}
.tab {
padding: 2px 4px;
padding: 8px 14px;
text-align: center;
cursor: pointer;
background-color: #fff;
color: #333;
background-color: rgba(255, 255, 255, 0.7);
color: var(--color-text-secondary);
font-weight: bold;
border: 1px solid #999;
border: 1px solid var(--color-border);
border-radius: 999px;
transition: background-color 0.3s ease, color 0.3s ease;
}
.tab:not(.active):hover {
background-color: #ddd;
background-color: rgba(248, 162, 43, 0.12);
}
.tab.active {
@@ -194,6 +270,10 @@ export default {
border-color: #F9A22C;
}
.friends-panel {
padding: 16px;
}
.font-color-gender-male {
color: #1E90FF;
}
@@ -205,4 +285,11 @@ export default {
.font-color-gender-nonbinary {
color: #DAA520;
}
@media (max-width: 960px) {
.friends-hero {
flex-direction: column;
align-items: flex-start;
}
}
</style>