Initial commit: Nexus Mission Control Platform
- ASP.NET Core 10 Backend (JWT Auth, Agent config API) - Vue 3 Frontend (Dashboard, Team, Agents, Config Editor) - PostgreSQL Database - Docker Compose setup - Mission Control Dashboard redesign
This commit is contained in:
@@ -0,0 +1,187 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { Clock } from '@lucide/vue'
|
||||
|
||||
type InitiativeStatus = 'healthy' | 'attention' | 'blocked' | 'paused' | 'completed'
|
||||
|
||||
interface Initiative {
|
||||
title: string
|
||||
progress: number
|
||||
openTasks: number
|
||||
blockers: number
|
||||
status: InitiativeStatus
|
||||
lastActivity: string
|
||||
}
|
||||
|
||||
const initiatives = ref<Initiative[]>([
|
||||
{ title: 'OpenClaw Companion', progress: 55, openTasks: 7, blockers: 2, status: 'healthy', lastActivity: 'vor 8 Minuten' },
|
||||
{ title: '2D Idle Game', progress: 42, openTasks: 4, blockers: 0, status: 'healthy', lastActivity: 'vor 2 Stunden' },
|
||||
{ title: 'Deutsch B2', progress: 73, openTasks: 3, blockers: 0, status: 'attention', lastActivity: 'vor 1 Stunde' },
|
||||
{ title: 'Nexus Dashboard', progress: 60, openTasks: 3, blockers: 0, status: 'healthy', lastActivity: 'vor 5 Minuten' },
|
||||
])
|
||||
|
||||
const statusMeta: Record<InitiativeStatus, { label: string; color: string; bg: string }> = {
|
||||
healthy: { label: 'Healthy', color: '#22c55e', bg: 'rgba(34,197,94,0.1)' },
|
||||
attention: { label: 'Needs Attention', color: '#eab308', bg: 'rgba(234,179,8,0.1)' },
|
||||
blocked: { label: 'Blocked', color: '#ef4444', bg: 'rgba(239,68,68,0.1)' },
|
||||
paused: { label: 'Paused', color: '#6b7280', bg: 'rgba(107,114,128,0.1)' },
|
||||
completed: { label: 'Completed', color: '#3b82f6', bg: 'rgba(59,130,246,0.1)' },
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="initiatives-section">
|
||||
<h2>Active Initiatives</h2>
|
||||
<div class="initiatives-grid">
|
||||
<div
|
||||
v-for="(init, idx) in initiatives"
|
||||
:key="idx"
|
||||
:class="['initiative-card', 'status-' + init.status]"
|
||||
>
|
||||
<div class="init-head">
|
||||
<h3>{{ init.title }}</h3>
|
||||
<span
|
||||
class="status-badge"
|
||||
:style="{
|
||||
color: statusMeta[init.status].color,
|
||||
background: statusMeta[init.status].bg,
|
||||
}"
|
||||
>
|
||||
{{ statusMeta[init.status].label }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="progress-bar">
|
||||
<div
|
||||
class="progress-fill"
|
||||
:style="{ width: init.progress + '%' }"
|
||||
></div>
|
||||
</div>
|
||||
<div class="progress-label">{{ init.progress }}%</div>
|
||||
<div class="init-stats">
|
||||
<span>{{ init.openTasks }} offene Aufgaben</span>
|
||||
<span v-if="init.blockers">· {{ init.blockers }} Blocker</span>
|
||||
</div>
|
||||
<div class="init-meta">
|
||||
<Clock :size="11" />
|
||||
<span>Letzte Aktivität {{ init.lastActivity }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.initiatives-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
padding: 18px;
|
||||
background: rgba(22, 27, 34, 0.8);
|
||||
border: 1px solid rgba(139, 124, 246, 0.12);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 4px 24px rgba(0,0,0,0.3);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.initiatives-section:hover {
|
||||
border-color: rgba(139, 124, 246, 0.18);
|
||||
}
|
||||
.initiatives-section h2 {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
color: #e8eaf0;
|
||||
}
|
||||
.initiatives-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
.initiative-card {
|
||||
background: rgba(13, 17, 23, 0.5);
|
||||
border: 1px solid rgba(139, 124, 246, 0.08);
|
||||
border-radius: 14px;
|
||||
padding: 14px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.initiative-card:hover {
|
||||
border-color: rgba(139, 124, 246, 0.2);
|
||||
box-shadow: 0 2px 12px rgba(0,0,0,0.2);
|
||||
}
|
||||
.init-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 8px;
|
||||
gap: 8px;
|
||||
}
|
||||
.init-head h3 {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
color: #e8eaf0;
|
||||
}
|
||||
.status-badge {
|
||||
font-size: 8px;
|
||||
font-weight: 700;
|
||||
padding: 2px 7px;
|
||||
border-radius: 12px;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
.progress-bar {
|
||||
height: 4px;
|
||||
background: rgba(139, 124, 246, 0.1);
|
||||
border-radius: 4px;
|
||||
margin-bottom: 4px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
border-radius: 4px;
|
||||
background: linear-gradient(90deg, #a78bfa, #8b5cf6);
|
||||
transition: width 0.5s ease;
|
||||
}
|
||||
.initiative-card.status-attention .progress-fill {
|
||||
background: linear-gradient(90deg, #eab308, #f59e0b);
|
||||
}
|
||||
.initiative-card.status-blocked .progress-fill {
|
||||
background: linear-gradient(90deg, #ef4444, #dc2626);
|
||||
}
|
||||
.progress-label {
|
||||
font-size: 10px;
|
||||
color: #6b7385;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.init-stats {
|
||||
font-size: 9px;
|
||||
color: #6b7385;
|
||||
margin-bottom: 4px;
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.init-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 9px;
|
||||
color: #6b7385;
|
||||
}
|
||||
.init-meta svg {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.initiatives-grid {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
.initiatives-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,188 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { CheckCircle2, Circle, AlertTriangle } from '@lucide/vue'
|
||||
|
||||
interface AgendaItem {
|
||||
text: string
|
||||
time?: string
|
||||
done?: boolean
|
||||
overdue?: boolean
|
||||
}
|
||||
|
||||
const agendaToday = ref<AgendaItem[]>([
|
||||
{ text: 'Teammeeting', time: '14:00' },
|
||||
{ text: 'Deutsch lernen', time: '18:00' },
|
||||
{ text: 'Steuerunterlagen prüfen' },
|
||||
{ text: 'Dungeon-Balance abschließen' },
|
||||
])
|
||||
|
||||
const agendaTomorrow = ref<AgendaItem[]>([
|
||||
{ text: 'GitHub Issue #23' },
|
||||
{ text: 'Backup überprüfen' },
|
||||
])
|
||||
|
||||
const agendaOverdue = ref<AgendaItem[]>([
|
||||
{ text: 'Hangfire konfigurieren', overdue: true },
|
||||
])
|
||||
|
||||
function toggleAgendaItem(item: AgendaItem) {
|
||||
item.done = !item.done
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="agenda-panel">
|
||||
<h2>Agenda</h2>
|
||||
|
||||
<div class="agenda-section">
|
||||
<h3>Heute</h3>
|
||||
<div
|
||||
v-for="(item, idx) in agendaToday"
|
||||
:key="'today-' + idx"
|
||||
:class="['agenda-item', { done: item.done }]"
|
||||
@click="toggleAgendaItem(item)"
|
||||
>
|
||||
<button class="agenda-check">
|
||||
<CheckCircle2 v-if="item.done" :size="14" class="checked" />
|
||||
<Circle v-else :size="14" />
|
||||
</button>
|
||||
<span class="agenda-text">{{ item.text }}</span>
|
||||
<span v-if="item.time" class="agenda-time">{{ item.time }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="agenda-section">
|
||||
<h3>Morgen</h3>
|
||||
<div
|
||||
v-for="(item, idx) in agendaTomorrow"
|
||||
:key="'tomorrow-' + idx"
|
||||
:class="['agenda-item', { done: item.done }]"
|
||||
@click="toggleAgendaItem(item)"
|
||||
>
|
||||
<button class="agenda-check">
|
||||
<CheckCircle2 v-if="item.done" :size="14" class="checked" />
|
||||
<Circle v-else :size="14" />
|
||||
</button>
|
||||
<span class="agenda-text">{{ item.text }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="agenda-section">
|
||||
<h3 class="overdue-heading">
|
||||
<AlertTriangle :size="12" />
|
||||
Überfällig
|
||||
</h3>
|
||||
<div
|
||||
v-for="(item, idx) in agendaOverdue"
|
||||
:key="'overdue-' + idx"
|
||||
class="agenda-item overdue"
|
||||
>
|
||||
<button class="agenda-check">
|
||||
<AlertTriangle :size="14" class="overdue-icon" />
|
||||
</button>
|
||||
<span class="agenda-text">{{ item.text }}</span>
|
||||
<span class="agenda-sub">seit 2 Tagen</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.agenda-panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
padding: 18px;
|
||||
background: rgba(22, 27, 34, 0.8);
|
||||
border: 1px solid rgba(139, 124, 246, 0.12);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 4px 24px rgba(0,0,0,0.3);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.agenda-panel:hover {
|
||||
border-color: rgba(139, 124, 246, 0.18);
|
||||
}
|
||||
.agenda-panel h2 {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
color: #e8eaf0;
|
||||
}
|
||||
.agenda-section h3 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
color: #6b7385;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
margin: 0 0 4px;
|
||||
padding-bottom: 4px;
|
||||
border-bottom: 1px solid rgba(139, 124, 246, 0.06);
|
||||
}
|
||||
.overdue-heading {
|
||||
color: #ef4444 !important;
|
||||
border-bottom-color: rgba(239, 68, 68, 0.15) !important;
|
||||
}
|
||||
.agenda-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
padding: 5px 6px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
.agenda-item:hover {
|
||||
background: rgba(139, 124, 246, 0.04);
|
||||
}
|
||||
.agenda-item.done {
|
||||
opacity: 0.5;
|
||||
}
|
||||
.agenda-item.done .agenda-text {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
.agenda-check {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: none;
|
||||
border: none;
|
||||
color: #6b7385;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.agenda-check .checked {
|
||||
color: #22c55e;
|
||||
}
|
||||
.overdue .overdue-icon {
|
||||
color: #ef4444;
|
||||
}
|
||||
.agenda-text {
|
||||
flex: 1;
|
||||
font-size: 10.5px;
|
||||
color: #7e8799;
|
||||
}
|
||||
.agenda-time {
|
||||
font-size: 9px;
|
||||
color: #6b7385;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.agenda-sub {
|
||||
font-size: 8px;
|
||||
color: #ef4444;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.agenda-item.overdue {
|
||||
background: rgba(239, 68, 68, 0.06);
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.agenda-panel {
|
||||
order: 3;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,315 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { Bot, Sparkles, MessageSquareText, ListTodo, Zap, FileText, Send, Lightbulb } from '@lucide/vue'
|
||||
import { useTime } from '../../composables/useTime'
|
||||
|
||||
const { greeting } = useTime()
|
||||
|
||||
const chatInput = ref('')
|
||||
function sendChat() {
|
||||
if (!chatInput.value.trim()) return
|
||||
alert(`[Iris] Received: "${chatInput.value}"`)
|
||||
chatInput.value = ''
|
||||
}
|
||||
|
||||
const meters = {
|
||||
openTasks: 12,
|
||||
blocked: 3,
|
||||
overdue: 2,
|
||||
todayAppointments: 4,
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<aside class="iris-panel">
|
||||
<div class="iris-profile">
|
||||
<div class="iris-avatar">
|
||||
<Bot :size="32" />
|
||||
</div>
|
||||
<div class="iris-name-block">
|
||||
<h2>Iris</h2>
|
||||
<span class="iris-role">Chief of Staff</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="iris-greeting">{{ greeting }} Bao.</p>
|
||||
<p class="iris-status">Du hast heute <strong>4 wichtige Punkte.</strong></p>
|
||||
|
||||
<div class="meters">
|
||||
<div class="meter-item">
|
||||
<span class="meter-value">{{ meters.openTasks }}</span>
|
||||
<span class="meter-label">Offene Aufgaben</span>
|
||||
</div>
|
||||
<div class="meter-item">
|
||||
<span class="meter-value meter-blocked">{{ meters.blocked }}</span>
|
||||
<span class="meter-label">Blockiert</span>
|
||||
</div>
|
||||
<div class="meter-item">
|
||||
<span class="meter-value meter-overdue">{{ meters.overdue }}</span>
|
||||
<span class="meter-label">Überfällig</span>
|
||||
</div>
|
||||
<div class="meter-item">
|
||||
<span class="meter-value meter-today">{{ meters.todayAppointments }}</span>
|
||||
<span class="meter-label">Heute</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="suggestions">
|
||||
<h3><Sparkles :size="14" /> Vorschläge</h3>
|
||||
<div class="suggestion-card">
|
||||
<Lightbulb :size="14" class="bulb" />
|
||||
<span>Du solltest zuerst das Dungeon-System abschließen.</span>
|
||||
</div>
|
||||
<div class="suggestion-card">
|
||||
<Lightbulb :size="14" class="bulb" />
|
||||
<span>Die Dokumentation wurde seit 3 Tagen nicht aktualisiert.</span>
|
||||
</div>
|
||||
<div class="suggestion-card">
|
||||
<Lightbulb :size="14" class="bulb" />
|
||||
<span>Das Projekt OpenClaw benötigt Aufmerksamkeit.</span>
|
||||
</div>
|
||||
<div class="suggestion-card">
|
||||
<Lightbulb :size="14" class="bulb" />
|
||||
<span>Deine wöchentliche Zusammenfassung ist bereit.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="quick-actions">
|
||||
<button class="qa-btn">
|
||||
<MessageSquareText :size="14" /> Chat öffnen
|
||||
</button>
|
||||
<button class="qa-btn">
|
||||
<ListTodo :size="14" /> Tagesplanung
|
||||
</button>
|
||||
<button class="qa-btn">
|
||||
<Zap :size="14" /> Prioritäten setzen
|
||||
</button>
|
||||
<button class="qa-btn">
|
||||
<FileText :size="14" /> Zusammenfassung
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="chat-box">
|
||||
<div class="chat-input-row">
|
||||
<input
|
||||
v-model="chatInput"
|
||||
type="text"
|
||||
placeholder="Frag Iris etwas..."
|
||||
@keyup.enter="sendChat"
|
||||
/>
|
||||
<button class="chat-send" @click="sendChat">
|
||||
<Send :size="14" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.iris-panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding: 18px;
|
||||
background: rgba(22, 27, 34, 0.8);
|
||||
border: 1px solid rgba(139, 124, 246, 0.12);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 4px 24px rgba(0,0,0,0.3);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.iris-panel:hover {
|
||||
border-color: rgba(139, 124, 246, 0.18);
|
||||
}
|
||||
|
||||
.iris-profile {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
.iris-avatar {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 14px;
|
||||
background: rgba(167, 139, 250, 0.15);
|
||||
color: #a78bfa;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.iris-name-block h2 {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
margin: 0;
|
||||
line-height: 1.2;
|
||||
color: #e8eaf0;
|
||||
}
|
||||
.iris-role {
|
||||
font-size: 10px;
|
||||
color: #a78bfa;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
.iris-greeting {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
color: #e8eaf0;
|
||||
}
|
||||
.iris-status {
|
||||
font-size: 11px;
|
||||
color: #7e8799;
|
||||
margin: 0;
|
||||
}
|
||||
.iris-status strong {
|
||||
color: #e8eaf0;
|
||||
}
|
||||
|
||||
/* Meters */
|
||||
.meters {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 6px;
|
||||
}
|
||||
.meter-item {
|
||||
background: rgba(139, 124, 246, 0.06);
|
||||
border: 1px solid rgba(139, 124, 246, 0.08);
|
||||
border-radius: 10px;
|
||||
padding: 8px;
|
||||
text-align: center;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.meter-item:hover {
|
||||
border-color: rgba(139, 124, 246, 0.18);
|
||||
background: rgba(139, 124, 246, 0.1);
|
||||
}
|
||||
.meter-value {
|
||||
display: block;
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
color: #e8eaf0;
|
||||
}
|
||||
.meter-blocked { color: #eab308; }
|
||||
.meter-overdue { color: #ef4444; }
|
||||
.meter-today { color: #3b82f6; }
|
||||
.meter-label {
|
||||
display: block;
|
||||
font-size: 8px;
|
||||
color: #6b7385;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* Suggestions */
|
||||
.suggestions h3 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
color: #a78bfa;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
margin: 0 0 6px;
|
||||
}
|
||||
.suggestion-card {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 7px;
|
||||
padding: 7px 8px;
|
||||
margin-bottom: 3px;
|
||||
border-radius: 8px;
|
||||
cursor: default;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.suggestion-card:hover {
|
||||
background: rgba(139, 124, 246, 0.08);
|
||||
}
|
||||
.suggestion-card .bulb {
|
||||
color: #eab308;
|
||||
flex-shrink: 0;
|
||||
margin-top: 1px;
|
||||
}
|
||||
.suggestion-card span {
|
||||
font-size: 10.5px;
|
||||
line-height: 1.4;
|
||||
color: #7e8799;
|
||||
}
|
||||
|
||||
/* Quick Actions */
|
||||
.quick-actions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
.qa-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
width: 100%;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid rgba(139, 124, 246, 0.1);
|
||||
border-radius: 8px;
|
||||
background: rgba(139, 124, 246, 0.04);
|
||||
color: #7e8799;
|
||||
font-size: 10.5px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.qa-btn:hover {
|
||||
background: rgba(139, 124, 246, 0.12);
|
||||
border-color: rgba(139, 124, 246, 0.2);
|
||||
color: #e8eaf0;
|
||||
}
|
||||
|
||||
/* Chat Box */
|
||||
.chat-box {
|
||||
margin-top: auto;
|
||||
}
|
||||
.chat-input-row {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
}
|
||||
.chat-input-row input {
|
||||
flex: 1;
|
||||
padding: 7px 10px;
|
||||
border: 1px solid rgba(139, 124, 246, 0.12);
|
||||
border-radius: 8px;
|
||||
background: rgba(13, 17, 23, 0.6);
|
||||
color: #e8eaf0;
|
||||
font-size: 10.5px;
|
||||
font-family: inherit;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
.chat-input-row input:focus {
|
||||
border-color: #a78bfa;
|
||||
}
|
||||
.chat-input-row input::placeholder {
|
||||
color: #6b7385;
|
||||
}
|
||||
.chat-send {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
background: #a78bfa;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
.chat-send:hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.iris-panel {
|
||||
order: 1;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,210 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, ref } from 'vue'
|
||||
|
||||
type FeedStatus = 'running' | 'done' | 'waiting' | 'error' | 'info'
|
||||
|
||||
interface FeedItem {
|
||||
time: string
|
||||
status: FeedStatus
|
||||
text: string
|
||||
label: string
|
||||
date: 'today' | 'yesterday' | 'week'
|
||||
}
|
||||
|
||||
const allFeed: FeedItem[] = [
|
||||
{ time: '09:17', status: 'running', text: 'OpenClaw analysiert Memory-Datenbank.', label: 'Memory', date: 'today' },
|
||||
{ time: '09:19', status: 'done', text: 'Repository Refactoring abgeschlossen.', label: 'Coding', date: 'today' },
|
||||
{ time: '09:21', status: 'done', text: '3 neue Erinnerungen gespeichert.', label: 'Memory', date: 'today' },
|
||||
{ time: '09:25', status: 'done', text: 'Dungeon-Service erfolgreich kompiliert.', label: 'Coding', date: 'today' },
|
||||
{ time: '09:28', status: 'error', text: 'Build fehlgeschlagen — NullReferenceException in EnemyFactory.', label: 'Coding', date: 'today' },
|
||||
{ time: '09:31', status: 'waiting', text: 'Iris hat "Steuerunterlagen" auf Freitag verschoben.', label: 'Personal', date: 'today' },
|
||||
{ time: '10:02', status: 'running', text: 'Programmer arbeitet an TeamView-Redesign.', label: 'Coding', date: 'today' },
|
||||
{ time: '10:15', status: 'done', text: 'AgentDetailView deployed.', label: 'System', date: 'today' },
|
||||
{ time: '10:22', status: 'running', text: 'Architekt prüft Compose-Konfiguration.', label: 'System', date: 'today' },
|
||||
{ time: '10:45', status: 'done', text: 'Reviewer: Code-Review abgeschlossen, keine Findings.', label: 'Agenten', date: 'today' },
|
||||
{ time: '11:00', status: 'running', text: 'Researcher analysiert API-Dokumentation.', label: 'Research', date: 'today' },
|
||||
{ time: '11:30', status: 'waiting', text: 'Executor wartet auf Deployment-Freigabe.', label: 'System', date: 'today' },
|
||||
{ time: '15:22', status: 'done', text: 'Nexus Dashboard Migration geplant.', label: 'Coding', date: 'yesterday' },
|
||||
{ time: '16:05', status: 'done', text: 'Docker Compose Optimierung abgeschlossen.', label: 'System', date: 'yesterday' },
|
||||
]
|
||||
|
||||
const feedFilter = ref<string | null>(null)
|
||||
const filterLabels = ['Alle', 'Coding', 'Research', 'Personal', 'Memory', 'Agenten', 'System']
|
||||
|
||||
const filteredFeed = computed(() => {
|
||||
if (!feedFilter.value || feedFilter.value === 'Alle') return allFeed
|
||||
return allFeed.filter(item => item.label === feedFilter.value)
|
||||
})
|
||||
|
||||
const feedGroups = computed(() => {
|
||||
const groups: { date: string; items: FeedItem[] }[] = []
|
||||
const dates = ['today', 'yesterday', 'week'] as const
|
||||
for (const d of dates) {
|
||||
const items = filteredFeed.value.filter(i => i.date === d)
|
||||
if (items.length) {
|
||||
groups.push({
|
||||
date: d === 'today' ? 'Heute' : d === 'yesterday' ? 'Gestern' : 'Diese Woche',
|
||||
items,
|
||||
})
|
||||
}
|
||||
}
|
||||
return groups
|
||||
})
|
||||
|
||||
const statusColor = (s: FeedStatus): string => {
|
||||
const m: Record<FeedStatus, string> = {
|
||||
running: '#3b82f6',
|
||||
done: '#22c55e',
|
||||
waiting: '#eab308',
|
||||
error: '#ef4444',
|
||||
info: '#6b7385',
|
||||
}
|
||||
return m[s]
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="feed-panel">
|
||||
<h2 class="feed-title">Operations Feed</h2>
|
||||
|
||||
<div class="filter-pills">
|
||||
<button
|
||||
v-for="label in filterLabels"
|
||||
:key="label"
|
||||
:class="{ active: feedFilter === label || (!feedFilter && label === 'Alle') }"
|
||||
@click="feedFilter = label === 'Alle' ? null : label"
|
||||
>
|
||||
{{ label }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="feed-list">
|
||||
<template v-for="group in feedGroups" :key="group.date">
|
||||
<div class="feed-date-heading">{{ group.date }}</div>
|
||||
<div
|
||||
v-for="(item, idx) in group.items"
|
||||
:key="idx"
|
||||
class="feed-item"
|
||||
>
|
||||
<span class="feed-time">{{ item.time }}</span>
|
||||
<span class="feed-dot" :style="{ background: statusColor(item.status) }"></span>
|
||||
<span class="feed-text">{{ item.text }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.feed-panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
min-height: 420px;
|
||||
padding: 18px;
|
||||
background: rgba(22, 27, 34, 0.8);
|
||||
border: 1px solid rgba(139, 124, 246, 0.12);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 4px 24px rgba(0,0,0,0.3);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.feed-panel:hover {
|
||||
border-color: rgba(139, 124, 246, 0.18);
|
||||
}
|
||||
.feed-title {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
color: #e8eaf0;
|
||||
}
|
||||
|
||||
/* Filter pills */
|
||||
.filter-pills {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
overflow-x: auto;
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
.filter-pills::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.filter-pills button {
|
||||
flex-shrink: 0;
|
||||
padding: 4px 10px;
|
||||
border: 1px solid rgba(139, 124, 246, 0.08);
|
||||
border-radius: 20px;
|
||||
background: transparent;
|
||||
color: #6b7385;
|
||||
font-size: 9px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.filter-pills button:hover {
|
||||
border-color: rgba(139, 124, 246, 0.25);
|
||||
color: #7e8799;
|
||||
}
|
||||
.filter-pills button.active {
|
||||
background: rgba(139, 124, 246, 0.12);
|
||||
border-color: rgba(139, 124, 246, 0.25);
|
||||
color: #a78bfa;
|
||||
}
|
||||
|
||||
/* Feed list */
|
||||
.feed-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
}
|
||||
.feed-date-heading {
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
color: #6b7385;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
padding: 8px 0 4px;
|
||||
}
|
||||
.feed-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 5px 6px;
|
||||
border-radius: 6px;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
.feed-item:hover {
|
||||
background: rgba(139, 124, 246, 0.04);
|
||||
}
|
||||
.feed-time {
|
||||
font-size: 9px;
|
||||
color: #6b7385;
|
||||
flex-shrink: 0;
|
||||
width: 36px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.feed-dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 0 4px currentColor;
|
||||
}
|
||||
.feed-text {
|
||||
font-size: 10.5px;
|
||||
line-height: 1.3;
|
||||
color: #7e8799;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.feed-panel {
|
||||
order: 2;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,76 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
|
||||
const recentlyFinished = ref([
|
||||
'Docker Image gebaut',
|
||||
'Memory Compression',
|
||||
'Enemy AI verbessert',
|
||||
'Daily Backup',
|
||||
'TeamView deployt',
|
||||
'Config-Editor live',
|
||||
])
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="finished-section">
|
||||
<h3>Recently Finished</h3>
|
||||
<div class="finished-scroll">
|
||||
<span v-for="(item, idx) in recentlyFinished" :key="idx" class="finished-chip">
|
||||
{{ item }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.finished-section {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.finished-section h3 {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
color: #7e8799;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.finished-scroll {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
overflow-x: auto;
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
.finished-scroll::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.finished-chip {
|
||||
flex-shrink: 0;
|
||||
padding: 5px 12px;
|
||||
border: 1px solid rgba(139, 124, 246, 0.1);
|
||||
border-radius: 20px;
|
||||
background: rgba(139, 124, 246, 0.06);
|
||||
color: #7e8799;
|
||||
font-size: 9.5px;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.finished-chip:hover {
|
||||
background: rgba(139, 124, 246, 0.12);
|
||||
border-color: rgba(139, 124, 246, 0.2);
|
||||
color: #e8eaf0;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.finished-section {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user