Update agents, dashboard, kb +2 more (+14 ~20 -3)

This commit is contained in:
Echo
2026-01-31 13:36:24 +00:00
parent a44b9ef852
commit 6555ea28ee
34 changed files with 1919 additions and 225 deletions

View File

@@ -152,6 +152,25 @@
font-weight: 600;
color: var(--text-primary);
line-height: 1.4;
display: flex;
align-items: center;
gap: var(--space-2);
}
.note-file-link {
opacity: 0.4;
transition: opacity var(--transition-fast);
flex-shrink: 0;
}
.note-file-link:hover {
opacity: 1;
}
.note-file-link svg {
width: 14px;
height: 14px;
color: var(--text-muted);
}
.note-tags {
@@ -226,17 +245,37 @@
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
align-items: flex-start;
gap: var(--space-3);
position: sticky;
top: 0;
background: var(--bg-base);
z-index: 10;
flex-wrap: wrap;
}
.note-viewer-header h2 {
font-size: var(--text-lg);
color: var(--text-primary);
font-weight: 600;
flex: 1;
min-width: 200px;
}
.viewer-path {
font-size: var(--text-xs);
color: var(--text-muted);
font-family: var(--font-mono);
text-decoration: none;
opacity: 0.7;
transition: opacity var(--transition-fast);
flex: 1;
min-width: 200px;
}
.viewer-path:hover {
opacity: 1;
color: var(--accent);
}
.note-viewer-body {
@@ -702,6 +741,7 @@
<div class="note-viewer-content">
<div class="note-viewer-header">
<h2 id="viewerTitle">Titlu</h2>
<a id="viewerPath" href="#" class="viewer-path" target="_blank"></a>
<button class="btn btn-ghost" onclick="closeNote()">
<i data-lucide="x"></i>
</button>
@@ -1122,9 +1162,16 @@
tagsHtml
].filter(Boolean).join('');
// Convert notes-data/ to kb/ for files.html links
const filesPath = note.file.replace(/^notes-data\//, 'kb/');
return `
<div class="note-card" onclick="openNote('${note.file}')">
<div class="note-title">${note.title}</div>
<div class="note-title">
${note.title}
<a href="files.html#${filesPath}" class="note-file-link" onclick="event.stopPropagation()" title="${filesPath}">
<i data-lucide="external-link"></i>
</a>
</div>
<div class="note-tags">${allTags}</div>
</div>
`;
@@ -1140,6 +1187,11 @@
if (!note) return;
document.getElementById('viewerTitle').textContent = note.title;
const pathEl = document.getElementById('viewerPath');
// Convert notes-data/ to kb/ for display and links
const filesPath = note.file.replace(/^notes-data\//, 'kb/');
pathEl.textContent = filesPath;
pathEl.href = 'files.html#' + filesPath;
document.getElementById('viewerContent').innerHTML = '<p style="color: var(--text-muted)">Se încarcă...</p>';
document.getElementById('noteViewer').classList.add('active');
document.body.style.overflow = 'hidden';