mirror of
https://github.com/PRVTPRO/Amnezia-Web-Panel.git
synced 2026-10-23 03:37:36 +09:00
ui(rknblock): 2x2 action grid, drop base-updated line; .server-icon white color
This commit is contained in:
1 parent
341876016a
commit
a1a6a70426
7 files changed
+10
-16
No files matched your search
@@ -677,6 +677,7 @@ a:hover {
|
||||
justify-content: center;
|
||||
font-size: 1.4rem;
|
||||
flex-shrink: 0;
|
||||
color: #fff;
|
||||
box-shadow: 0 2px 12px rgba(139, 92, 246, 0.2);
|
||||
}
|
||||
|
||||
@@ -2913,3 +2914,10 @@ body,
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* RKN Block installed actions: 2x2 grid of buttons */
|
||||
#rknblock-installed-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 8px;
|
||||
}
|
||||
@@ -521,7 +521,7 @@
|
||||
{{ _('install') }}
|
||||
</button>
|
||||
</div>
|
||||
<div class="flex gap-sm" id="rknblock-installed-actions" style="display:none;">
|
||||
<div id="rknblock-installed-actions" style="display:none;">
|
||||
<button class="btn btn-secondary btn-sm" onclick="toggleRknBlockApp(false)" id="rknblock-toggle-btn"
|
||||
style="flex:1">
|
||||
{{ _('rknblock_stop') }}
|
||||
@@ -4383,14 +4383,10 @@
|
||||
if (flags.block_in === 'off') flagBits.push(_('rknblock_opt_block_in_short'));
|
||||
if (flags.block_out === 'off') flagBits.push(_('rknblock_opt_block_out_short'));
|
||||
if (flags.log_in === 'off' || flags.log_out === 'off') flagBits.push(_('rknblock_opt_log_off_short'));
|
||||
const lastUp = d.last_update
|
||||
? new Date(d.last_update).toLocaleString()
|
||||
: _('rknblock_base_unknown');
|
||||
grid.innerHTML = `
|
||||
<div class="text-sm">${_('rkn_block_agent')}: ${escapeHtml(d.agent_state)} •
|
||||
${_('rkn_block_lists')}: ${_('rkn_block_in_short')} ${inN}, ${_('rkn_block_out_short')} ${outN}` +
|
||||
(setsEmpty ? ` ⚠️ ${_('rkn_block_sets_empty')}` : '') + `</div>
|
||||
<div class="text-sm text-muted">${_('rkn_block_base_updated')}: ${escapeHtml(lastUp)}` +
|
||||
(setsEmpty ? ` ⚠️ ${_('rkn_block_sets_empty')}` : '') +
|
||||
(flagBits.length ? ` • ⚠️ ${_('rknblock_disabled_short')}: ${escapeHtml(flagBits.join(', '))}` : '') + `</div>`;
|
||||
infoEl.classList.remove('hidden');
|
||||
if (location.hash === '#proto-rknblock') {
|
||||
|
||||
@@ -760,8 +760,6 @@
|
||||
"rknblock_opt_log_in": "Log scans",
|
||||
"rknblock_opt_log_out": "Log outbound",
|
||||
"rknblock_opts_saved": "Options saved",
|
||||
"rkn_block_base_updated": "Base updated",
|
||||
"rknblock_base_unknown": "base update time unknown",
|
||||
"rknblock_disabled_short": "disabled",
|
||||
"rknblock_opt_block_in_short": "inbound",
|
||||
"rknblock_opt_block_out_short": "outbound",
|
||||
|
||||
@@ -760,8 +760,6 @@
|
||||
"rknblock_opt_log_in": "ثبت اسکنها",
|
||||
"rknblock_opt_log_out": "ثبت خروجیها",
|
||||
"rknblock_opts_saved": "گزینهها ذخیره شد",
|
||||
"rkn_block_base_updated": "پایگاه بهروز شد",
|
||||
"rknblock_base_unknown": "زمان بهروزرسانی پایگاه نامشخص است",
|
||||
"rknblock_disabled_short": "خاموش",
|
||||
"rknblock_opt_block_in_short": "ورودی",
|
||||
"rknblock_opt_block_out_short": "خروجی",
|
||||
|
||||
@@ -760,8 +760,6 @@
|
||||
"rknblock_opt_log_in": "Journaliser les scans",
|
||||
"rknblock_opt_log_out": "Journaliser le sortant",
|
||||
"rknblock_opts_saved": "Paramètres enregistrés",
|
||||
"rkn_block_base_updated": "Base mise à jour",
|
||||
"rknblock_base_unknown": "date de mise à jour inconnue",
|
||||
"rknblock_disabled_short": "désactivé",
|
||||
"rknblock_opt_block_in_short": "entrant",
|
||||
"rknblock_opt_block_out_short": "sortant",
|
||||
|
||||
@@ -760,8 +760,6 @@
|
||||
"rknblock_opt_log_in": "Логировать сканирования",
|
||||
"rknblock_opt_log_out": "Логировать исходящие",
|
||||
"rknblock_opts_saved": "Параметры сохранены",
|
||||
"rkn_block_base_updated": "База обновлена",
|
||||
"rknblock_base_unknown": "дата обновления базы неизвестна",
|
||||
"rknblock_disabled_short": "выключено",
|
||||
"rknblock_opt_block_in_short": "входящие",
|
||||
"rknblock_opt_block_out_short": "исходящие",
|
||||
|
||||
@@ -760,8 +760,6 @@
|
||||
"rknblock_opt_log_in": "记录扫描",
|
||||
"rknblock_opt_log_out": "记录出站",
|
||||
"rknblock_opts_saved": "参数已保存",
|
||||
"rkn_block_base_updated": "库已更新",
|
||||
"rknblock_base_unknown": "库更新时间未知",
|
||||
"rknblock_disabled_short": "已关闭",
|
||||
"rknblock_opt_block_in_short": "入站",
|
||||
"rknblock_opt_block_out_short": "出站",
|
||||
|
||||
Reference in new issue
Block a user