Версии: у криптосервиса видна версия «Валидаты Клиент L» (производителя), название Валидаты как у производителя

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014FsEKyJrYF69Cj9ZXzFLRi
This commit is contained in:
zuevav
2026-09-24 22:33:48 +03:00
parent 75c86246ad
commit e450887688
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ func versionProbes(rc *RuntimeConfig) []versionProbe {
ver, _, _ := strings.Cut(h.Message, " (") ver, _, _ := strings.Cut(h.Message, " (")
return ver, "провайдер " + h.Provider, nil return ver, "провайдер " + h.Provider, nil
}}, }},
{key: "validata", title: "СКЗИ «Валидата CSP»", section: "crypto", when: func() bool { return fileExists(validataUtil) }, {key: "validata", title: "СКЗИ «Валидата Клиент L» (версия производителя, как на moex.com)", section: "crypto", when: func() bool { return fileExists(validataUtil) },
fn: validataVersion}, fn: validataVersion},
{key: "java", title: "Java (для криптосервиса)", section: "crypto", {key: "java", title: "Java (для криптосервиса)", section: "crypto",
when: func() bool { _, err := exec.LookPath("java"); return err == nil }, when: func() bool { _, err := exec.LookPath("java"); return err == nil },
@@ -1107,7 +1107,7 @@ function hbBind(inp,box,list,onPick){
<thead><tr><th>Компонент</th><th>Установлена</th><th>Доступна</th><th>Служба</th><th></th></tr></thead> <thead><tr><th>Компонент</th><th>Установлена</th><th>Доступна</th><th>Служба</th><th></th></tr></thead>
<tbody> <tbody>
{{range .Components}}<tr> {{range .Components}}<tr>
<td><strong>{{.Title}}</strong><div class="muted" style="font-size:11px"><code>{{.Name}}</code></div></td> <td><strong>{{.Title}}</strong><div class="muted" style="font-size:11px"><code>{{.Name}}</code>{{if eq .Name "crypto-service.jar"}}{{with $.Versions.Get "validata"}}{{if .Version}} · работает с «Валидата Клиент L» {{.Version}}{{end}}{{end}}{{end}}</div></td>
<td>{{if .Present}}{{if .Installed}}{{.Installed}}{{else}}<span class="muted">неизвестна</span>{{end}}{{else}}<span class="muted">не установлен</span>{{end}}</td> <td>{{if .Present}}{{if .Installed}}{{.Installed}}{{else}}<span class="muted">неизвестна</span>{{end}}{{else}}<span class="muted">не установлен</span>{{end}}</td>
<td>{{if .Available}}{{.Available}}{{if .New}} <span class="hero-status warn">к установке</span>{{else if .Update}} <span class="hero-status warn">новее</span>{{end}}{{if .Blocked}}<div class="muted" style="font-size:11px;color:var(--warn)">{{.Blocked}}</div>{{end}}{{else}}<span class="muted">нет данных</span>{{end}}</td> <td>{{if .Available}}{{.Available}}{{if .New}} <span class="hero-status warn">к установке</span>{{else if .Update}} <span class="hero-status warn">новее</span>{{end}}{{if .Blocked}}<div class="muted" style="font-size:11px;color:var(--warn)">{{.Blocked}}</div>{{end}}{{else}}<span class="muted">нет данных</span>{{end}}</td>
<td><code style="font-size:11px">{{.Unit}}</code></td> <td><code style="font-size:11px">{{.Unit}}</code></td>