Add Command Center v2: DQ/RAG integration, S3 browser, Jupyter, GPU matrix.

Mirror mo/atc-GPU layout with config/, docs/, scripts/ for Gitea deploy.
This commit is contained in:
mo
2026-06-25 00:28:23 +00:00
parent fb9cc21c9a
commit a11621b21f
110 changed files with 14622 additions and 529 deletions
+41
View File
@@ -0,0 +1,41 @@
const ICON_MAP: [RegExp, string][] = [
[/trino/i, '🔷'],
[/spark/i, '⚡'],
[/kafka/i, '📨'],
[/connect/i, '🔗'],
[/postgres/i, '🐘'],
[/mysql/i, '🐬'],
[/mongo/i, '🍃'],
[/cassandra/i, '💿'],
[/neo4j/i, '🔴'],
[/airflow/i, '🌀'],
[/superset/i, '📊'],
[/forgejo|gitea/i, '🦊'],
[/homepage/i, '🏠'],
[/dockhand/i, '🐳'],
[/redis/i, '⚙️'],
[/nginx|caddy/i, '🌐'],
[/hdfs|namenode|datanode/i, '🌲'],
[/gpu|vllm|nvidia/i, '🎮'],
[/lam-|ldap/i, '👤'],
[/cadvisor/i, '📈'],
]
export function appIcon(name: string, image?: string): string {
const hay = `${name} ${image || ''}`
for (const [re, icon] of ICON_MAP) {
if (re.test(hay)) return icon
}
return '📦'
}
export function shortName(name: string, max = 14): string {
return name.length > max ? `${name.slice(0, max - 1)}` : name
}
export const LEVEL_COLOR: Record<string, string> = {
ok: 'var(--status-ok)',
warn: 'var(--status-warn)',
down: 'var(--status-down)',
unknown: 'var(--text-faint)',
}