platform: modularize api/gui, add docs-tests-web foundation, and refresh root config

This commit is contained in:
beckline
2026-03-26 22:40:54 +03:00
parent 0e2d7f61ea
commit 6a56d734c2
562 changed files with 70151 additions and 16423 deletions

View File

@@ -0,0 +1,17 @@
package app
func allocateTransportSlots(items []TransportClient) (string, int) {
usedMarks := map[uint64]struct{}{}
usedPrefs := map[int]struct{}{}
for _, it := range items {
if n, ok := parseTransportMarkHex(it.MarkHex); ok {
usedMarks[n] = struct{}{}
}
if p, ok := parseTransportPref(it.PriorityBase); ok {
usedPrefs[p] = struct{}{}
}
}
mark := nextTransportMark(usedMarks)
pref := nextTransportPref(usedPrefs)
return formatTransportMarkHex(mark), pref
}