feat(types): tipo Webpage + .gitignore del subrepo (issue 0027)
- examples/types.yaml: nuevo tipo Webpage (icono ti-file-text, fields url/title/status_code/content_type/fetched_at/html_path/markdown_path/ screenshot_path/text_length/lang). Url queda como link suelto. - types_registry.cpp: anade ti-file-text al mapa de codepoints Tabler. - .gitignore: cache/, graph_explorer.db (jobs+layouts), build artifacts. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
|||||||
|
# SQLite app DB (jobs + layouts) — local de cada PC
|
||||||
|
graph_explorer.db
|
||||||
|
graph_explorer.db-shm
|
||||||
|
graph_explorer.db-wal
|
||||||
|
|
||||||
|
# Cache de documentos descargados por enrichers (issue 0027)
|
||||||
|
cache/
|
||||||
|
|
||||||
|
# Build artifacts
|
||||||
|
build/
|
||||||
|
*.exe
|
||||||
|
*.o
|
||||||
|
*.obj
|
||||||
@@ -110,6 +110,25 @@ entities:
|
|||||||
- { name: title, type: string }
|
- { name: title, type: string }
|
||||||
- { name: domain, type: string }
|
- { name: domain, type: string }
|
||||||
|
|
||||||
|
# Documento web descargado. Issue 0027: tipo separado de Url para nodos
|
||||||
|
# con cuerpo cacheado (HTML+markdown+screenshot). Los enrichers
|
||||||
|
# fetch_webpage / extract_links / extract_text_entities lo pueblan.
|
||||||
|
- name: Webpage
|
||||||
|
color: "#89E0FC"
|
||||||
|
icon: ti-file-text
|
||||||
|
principal_field: url
|
||||||
|
fields:
|
||||||
|
- { name: url, type: url, required: true }
|
||||||
|
- { name: title, type: string }
|
||||||
|
- { name: status_code, type: int }
|
||||||
|
- { name: content_type, type: string }
|
||||||
|
- { name: fetched_at, type: date }
|
||||||
|
- { name: html_path, type: string }
|
||||||
|
- { name: markdown_path, type: string }
|
||||||
|
- { name: screenshot_path, type: string }
|
||||||
|
- { name: text_length, type: int }
|
||||||
|
- { name: lang, type: string }
|
||||||
|
|
||||||
# Nodo tabla — cuadrado (regla de forma). Issue 0010: contenedor con
|
# Nodo tabla — cuadrado (regla de forma). Issue 0010: contenedor con
|
||||||
# filas que son nodos del grafo.
|
# filas que son nodos del grafo.
|
||||||
- name: Table
|
- name: Table
|
||||||
|
|||||||
@@ -523,6 +523,7 @@ uint16_t tabler_codepoint_by_name(const char* name) {
|
|||||||
{"ti-at", 0xEA2B}, // TI_AT
|
{"ti-at", 0xEA2B}, // TI_AT
|
||||||
{"ti-home", 0xEAC1}, // TI_HOME
|
{"ti-home", 0xEAC1}, // TI_HOME
|
||||||
{"ti-database", 0xEA88}, // TI_DATABASE
|
{"ti-database", 0xEA88}, // TI_DATABASE
|
||||||
|
{"ti-file-text", 0xEAA2}, // TI_FILE_TEXT
|
||||||
};
|
};
|
||||||
auto it = map.find(name);
|
auto it = map.find(name);
|
||||||
if (it == map.end()) return 0;
|
if (it == map.end()) return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user