refactor: remove legacy modules from API and UI

This commit is contained in:
2026-02-15 22:20:50 +03:00
parent 5518c3b405
commit 93c99b4506
45 changed files with 464 additions and 5610 deletions

View File

@@ -9,7 +9,6 @@
<section class="card">
<h2>Registry Snapshot</h2>
<div class="stats">
<div class="stat"><span>Customers</span><strong>{{.CustomerCount}}</strong></div>
<div class="stat"><span>Projects</span><strong>{{.ProjectCount}}</strong></div>
<div class="stat"><span>Assets</span><strong>{{.AssetCount}}</strong></div>
<div class="stat"><span>Components</span><strong>{{.ComponentCount}}</strong></div>
@@ -26,7 +25,6 @@
<th>Name</th>
<th>Vendor Serial</th>
<th>Project</th>
<th>Location</th>
<th>Created</th>
</tr>
</thead>
@@ -38,7 +36,6 @@
<td>{{$item.Name}}</td>
<td>{{$item.VendorSerial}}</td>
<td>{{projectName $item.ProjectID $.ProjectByID}}</td>
<td>{{locationName $item.LocationID $.LocationByID}}</td>
<td title="{{formatTimeFull $item.CreatedAt}}">{{formatTime $item.CreatedAt}}</td>
</tr>
{{end}}
@@ -59,7 +56,6 @@
<tr>
<th>Status</th>
<th>Vendor Serial</th>
<th>Lot</th>
<th>First Seen</th>
<th>Created</th>
</tr>
@@ -70,7 +66,6 @@
<tr class="clickable" onclick="navigateToRow('/ui/components/{{$item.ID}}')">
<td><span class="badge {{componentStatusClass (index $.ComponentStatusByID $item.ID)}}">{{componentStatusText (index $.ComponentStatusByID $item.ID)}}</span></td>
<td>{{componentLabelByID $item.ID $.ComponentLabelByID}}</td>
<td>{{lotCode $item.LotID $.LotCodes}}</td>
<td title="{{formatTimePtrFull $item.FirstSeenAt}}">{{formatTimePtr $item.FirstSeenAt}}</td>
<td title="{{formatTimeFull $item.CreatedAt}}">{{formatTime $item.CreatedAt}}</td>
</tr>