<%= diagram.name %>

<%= diagram.client_name %>
<%= diagram.diagram_type.replace(/_/g,' ') %> · <%= nodes.length %> componenten · <%= edges.length %> connecties · <%= new Date(diagram.updated_at).toLocaleDateString('nl-NL',{year:'numeric',month:'long',day:'numeric'}) %>

Samenvatting

<%= nodes.length %>
Componenten
<%= edges.length %>
Connecties
<%= Object.keys(typeCount).length %>
Type Categorieën
<%= Object.keys(vendorCount).length %>
Vendoren
<% var colors={source:'#d29922',ingest:'#58a6ff',storage:'#3fb950',compute:'#a855f7',hw:'#ff7b00',net:'#34d399',ai:'#fb7185',queue:'#38bdf8',security:'#f472b6',infra:'#6e7681',other:'#8b949e'}; %> <% Object.entries(typeCount).forEach(function(e){ %>
<%= e[0] %>: <%= e[1] %>
<% }) %>

Componenten Detail

<% if (nodes.length === 0) { %>

Geen componenten in dit diagram.

<% } else { %> <% nodes.forEach(function(n,i){ %> <% }) %>
#LabelTypeVendorModelIP AdresSpecs
<%= i+1 %> <%= n.label||'—' %> <%= (n.type||'').split('-').pop() %> <% if(n.vendor){ %> <% var vc='#555d66';var vl=(n.vendor||'').toLowerCase(); %> <% if(vl.includes('hpe')) vc='#ff7b00';else if(vl.includes('dell')) vc='#0076a8';else if(vl.includes('lenovo')) vc='#e41f33';else if(vl.includes('cisco')) vc='#00529a';else if(vl.includes('juniper')) vc='#44a833';else if(vl.includes('arista')) vc='#cc3333';else if(vl.includes('netapp')) vc='#00a1df';else if(vl.includes('pure')) vc='#4a90d9';else if(vl.includes('fortinet')) vc='#ee3124';else if(vl.includes('apc')) vc='#6e7681';else if(vl.includes('nvidia')) vc='#76b900';%> <%= n.vendor %> <% } else { %>—<% } %> <%= n.model||'—' %> <%= n.ip||'—' %> <%= n.specs||'—' %>
<% } %>

Connecties (<%= edges.length %>)

<% if (edges.length === 0) { %>

Geen connecties in dit diagram.

<% } else { %> <% edges.forEach(function(e,i){ var from=nodes.find(function(n){return n.id==e.from}); var to=nodes.find(function(n){return n.id==e.to}); %> <% }) %>
#VanNaar
<%= i+1 %> <%= from?from.label+' ('+from.type.split('-').pop()+')':'ID:'+e.from %> → <%= to?to.label+' ('+to.type.split('-').pop()+')':'ID:'+e.to %>
<% } %>
<% if (diagram.description) { %>

Beschrijving

<%= diagram.description %>

<% } %>