ui: give the Requires table its own AID column (v3.5.18)
The imported-library AIDs are now shown in a dedicated column between the library name and the minimum version (Library | AID | Version | Family | Refs), monospace and break-all so the 32-char UICC/3GPP AIDs wrap cleanly on narrow panels. When a library name cannot be resolved (vendor AID) the name cell shows a dash instead of repeating the AID now carried by the column. Tests updated: the Requires slice asserts the AID header and every row's AID, and the unresolved-name case expects the dash plus the AID column. Help EN/RU reworded; the AID key is a no-op in RU. 592 frontend / 473 Python green; version 3.5.18; sw simple-v271.
This commit is contained in:
+7
-3
@@ -1616,7 +1616,7 @@
|
||||
// ===== Version =====
|
||||
// Single source of truth for the PWA version: shown in the header and used
|
||||
// by the server version check in pysimConnect().
|
||||
const SIMPLE_VERSION = '3.5.17';
|
||||
const SIMPLE_VERSION = '3.5.18';
|
||||
document.getElementById('app-version').textContent = 'v' + SIMPLE_VERSION;
|
||||
|
||||
// ===== Tab switching =====
|
||||
@@ -8083,12 +8083,15 @@ function capMemHtml(mem) {
|
||||
// ">=" requirements: same major, minor >= the export version (4.5.2);
|
||||
// refs = distinct constant-pool references to the package (6.7) ──
|
||||
if (imports.length) {
|
||||
let reqRows = row(head('', 'text-left') + head(esc(t('Version')), 'pl-4 text-right whitespace-nowrap') +
|
||||
let reqRows = row(head('', 'text-left') + head(esc(t('AID')), 'pl-4 text-left') +
|
||||
head(esc(t('Version')), 'pl-4 text-right whitespace-nowrap') +
|
||||
head(esc(t('Family')), 'pl-4 text-left') + head(esc(t('Refs')), 'pl-4 text-right whitespace-nowrap'));
|
||||
imports.forEach(im => {
|
||||
const name = jcAidName(im.aid);
|
||||
const fam = jcAidFamily(im.aid);
|
||||
reqRows += row(cell(name ? esc(name) : '<span class="font-mono break-all">' + esc(im.aid) + '</span>', 'whitespace-nowrap') +
|
||||
// unresolved names show a dash: the AID column carries the identifier
|
||||
reqRows += row(cell(name ? esc(name) : '\u2014', 'whitespace-nowrap') +
|
||||
cell(esc(im.aid), 'pl-4 font-mono break-all') +
|
||||
num('\u2265 ' + (Number(im.major) || 0) + '.' + (Number(im.minor) || 0)) +
|
||||
part(esc(fam)) + num(String(Number(im.refs) || 0)));
|
||||
});
|
||||
@@ -16180,6 +16183,7 @@ const LANG_RU = {
|
||||
'Compiled': 'Собрано',
|
||||
'Requires': 'Требуются',
|
||||
'Family': 'Семейство',
|
||||
'AID': 'AID',
|
||||
'Refs': 'Ссылки',
|
||||
'NVRAM requirement': 'Требование NVRAM',
|
||||
'code image (load file)': 'образ кода (load-файл)',
|
||||
|
||||
Reference in New Issue
Block a user