v0.6.3: убрал (имперсонация) у email, жёлтый баннер сверху

This commit is contained in:
2026-06-15 09:57:35 +04:00
parent 9f7150c345
commit ed58df38d8
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "ipwhitelist", "name": "ipwhitelist",
"version": "0.6.2", "version": "0.6.3",
"description": "IP WhiteList microservice for cloud provider", "description": "IP WhiteList microservice for cloud provider",
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {
+1 -1
View File
@@ -9,7 +9,7 @@
// ═══════════════════════════════════════════════════════════════════════════════ // ═══════════════════════════════════════════════════════════════════════════════
module.exports = { module.exports = {
version: '0.6.2', version: '0.6.3',
// ── IAM ────────────────────────────────────────────────────────────────── // ── IAM ──────────────────────────────────────────────────────────────────
iamUrl: process.env.V2_IAM_URL || 'https://auth-api.ngcloud.ru/api/v1/auth/user', iamUrl: process.env.V2_IAM_URL || 'https://auth-api.ngcloud.ru/api/v1/auth/user',
+3 -2
View File
@@ -78,10 +78,12 @@
<!-- Имперсонация --> <!-- Имперсонация -->
<% if (typeof isImpersonated !== 'undefined' && isImpersonated) { %> <% if (typeof isImpersonated !== 'undefined' && isImpersonated) { %>
<% if (isImpersonated) { %>
<div class="alert alert-warn"> <div class="alert alert-warn">
⚠️ Режим имперсонации — данные от имени <strong><%= activeClientId %></strong> ⚠️ Режим имперсонации — данные сохраняются от имени <strong><%= activeClientId %></strong>
(вы: <%= loginEmail %>) (вы: <%= loginEmail %>)
</div> </div>
<% } %>
<% } %> <% } %>
<!-- Сообщения --> <!-- Сообщения -->
@@ -100,7 +102,6 @@
<div class="stat <%= used >= limit ? 'full' : '' %>"><div class="num"><%= used %></div><div class="lbl">из <%= limit %></div></div> <div class="stat <%= used >= limit ? 'full' : '' %>"><div class="num"><%= used %></div><div class="lbl">из <%= limit %></div></div>
<div style="margin-left:auto;display:flex;align-items:center;font-weight:600;font-size:1.1rem;color:var(--text);"> <div style="margin-left:auto;display:flex;align-items:center;font-weight:600;font-size:1.1rem;color:var(--text);">
<%= email %> <%= email %>
<% if (isImpersonated) { %><span style="font-size:.75rem;color:var(--amber);margin-left:.5rem;">(имперсонация)</span><% } %>
</div> </div>
</div> </div>