feat: scaffold inicial del plugin de Obsidian osint_obsidian_plugin
Plugin fino (id osint-db) que habla HTTP con el service local osint_db (FastAPI + DuckDB) y renderiza tablas de datos en las notas del vault osint mediante el code block osintdb. Incluye parser puro de directivas con tests (node --test), settings tab, comando de paleta, enlaces internos para columnas note_path, build con esbuild + tsc y deploy.sh al vault. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+96
@@ -0,0 +1,96 @@
|
||||
/* Estilos del plugin OSINT DB. Usa variables CSS de Obsidian para que la tabla
|
||||
sea legible tanto en tema oscuro como claro. */
|
||||
|
||||
.osintdb-block {
|
||||
margin: 0.5em 0 1em 0;
|
||||
}
|
||||
|
||||
.osintdb-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.5em;
|
||||
margin-bottom: 0.35em;
|
||||
}
|
||||
|
||||
.osintdb-title {
|
||||
font-weight: 600;
|
||||
color: var(--text-normal);
|
||||
}
|
||||
|
||||
.osintdb-refresh {
|
||||
font-size: var(--font-ui-smaller);
|
||||
padding: 2px 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.osintdb-table-wrapper {
|
||||
max-height: 420px;
|
||||
overflow: auto;
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: var(--radius-s);
|
||||
}
|
||||
|
||||
.osintdb-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: var(--font-ui-small);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.osintdb-table thead th {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
background: var(--background-secondary);
|
||||
color: var(--text-normal);
|
||||
text-align: left;
|
||||
padding: 6px 10px;
|
||||
border-bottom: 1px solid var(--background-modifier-border);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.osintdb-table tbody td {
|
||||
padding: 4px 10px;
|
||||
border-bottom: 1px solid var(--background-modifier-border);
|
||||
color: var(--text-normal);
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.osintdb-table tbody tr:hover {
|
||||
background: var(--background-modifier-hover);
|
||||
}
|
||||
|
||||
.osintdb-null {
|
||||
color: var(--text-faint);
|
||||
}
|
||||
|
||||
.osintdb-footer {
|
||||
margin-top: 0.3em;
|
||||
font-size: var(--font-ui-smaller);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.osintdb-error {
|
||||
border: 1px solid var(--background-modifier-error);
|
||||
border-left: 4px solid var(--text-error);
|
||||
border-radius: var(--radius-s);
|
||||
padding: 8px 12px;
|
||||
color: var(--text-normal);
|
||||
}
|
||||
|
||||
.osintdb-error strong {
|
||||
color: var(--text-error);
|
||||
}
|
||||
|
||||
.osintdb-error code {
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
user-select: all;
|
||||
}
|
||||
|
||||
.osintdb-loading,
|
||||
.osintdb-empty {
|
||||
color: var(--text-muted);
|
||||
font-size: var(--font-ui-small);
|
||||
}
|
||||
Reference in New Issue
Block a user