APmanageur Wi-Fi V1.1 (Bêta)

This commit is contained in:
yoannmultigaming committed 2026-11-22 23:22:19 +01:00
1 parent 4ab701ee58
commit da07838fda
4 files changed
+169 -139

No files matched your search

+10 -4
View File
@@ -5577,7 +5577,7 @@
<div style="background:var(--panel2);padding:10px 12px;border-radius:8px;border:1px solid var(--line)">
<div class="label" data-i18n="adv_update_current_ver" style="font-size:11px">Version actuelle</div>
<div id="advUpdateCurrentCommit" style="font-family:monospace;font-size:16px;font-weight:700;color:var(--text);margin-top:2px">—</div>
<div class="muted" style="font-size:11px;margin-top:2px" id="advUpdateVersionTag">AP Manageur V1.1 (Béta)</div>
<div class="muted" style="font-size:11px;margin-top:2px" id="advUpdateVersionTag"><span class="app-short-title">AP Manageur</span> <span class="app-version">V1.1 (Béta)</span></div>
</div>
<div style="background:var(--panel2);padding:10px 12px;border-radius:8px;border:1px solid var(--line)">
<div class="label" data-i18n="adv_update_latest_ver" style="font-size:11px">Dernière version (Gitea)</div>
@@ -7179,7 +7179,7 @@
function $(id) { return document.getElementById(id); }
const API_URL = location.protocol === 'file:' ? 'http://127.0.0.1:8080' : '';
/* Version de l'application */
const APP_VERSION = "V1.1 (Béta)";
let APP_VERSION = "V1.1 (Béta)";
const ICON_REFRESH_ARROW = '<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" style="display:inline-block;vertical-align:middle"><path d="M21 12a9 9 0 1 1-9-9c2.52 0 4.9 1 6.7 2.4L21 8"/><polyline points="21 3 21 8 16 8"/></svg>';
const ICON_GEAR = '⚙️';
const ICON_TABLET = '<svg width="1.15em" height="1.15em" viewBox="0 0 24 24" fill="none" style="display:inline-block;vertical-align:-0.18em;flex-shrink:0" aria-label="Tablette"><rect x="2.5" y="1.5" width="19" height="21" rx="2.5" fill="#1e293b" stroke="#64748b" stroke-width="1"/><rect x="4" y="3.2" width="16" height="15.6" rx="1.2" fill="#38bdf8"/><circle cx="12" cy="2.3" r="0.5" fill="#94a3b8"/><rect x="10" y="20" width="4" height="1.2" rx="0.6" fill="#94a3b8"/></svg>';
@@ -7740,7 +7740,8 @@
/* Nom du projet configurable */
let PROJECT_NAME = "Administration de l’AP Wi‑Fi";
let PROJECT_SHORT_NAME = "AP Manageur";
function applyProjectTitle(name = PROJECT_NAME, shortName = PROJECT_SHORT_NAME) {
function applyProjectTitle(name = PROJECT_NAME, shortName = PROJECT_SHORT_NAME, ver = APP_VERSION) {
if (ver) APP_VERSION = ver;
PROJECT_NAME = name; PROJECT_SHORT_NAME = shortName; document.title = shortName + ' ' + APP_VERSION;
document.querySelectorAll('.app-title').forEach(el => el.textContent = name);
document.querySelectorAll('.app-short-title').forEach(el => el.textContent = shortName);
@@ -9594,6 +9595,9 @@ ${vpnBadgeTopo}
const signature = nextClients.map(client => client.mac).sort().join('|');
const changed = previousClientSignature !== null && signature !== previousClientSignature;
status = nextStatus; clients = nextClients; previousClientSignature = signature;
if (nextStatus.version && nextStatus.version !== APP_VERSION) {
applyProjectTitle(PROJECT_NAME, PROJECT_SHORT_NAME, nextStatus.version);
}
loadFailureCount = 0;
render(); if (changed) { loadLogs(); } if (currentTab === 'devices') { loadDevices(); }
} catch (e) {
@@ -14986,7 +14990,9 @@ ${vpnBadgeTopo}
applyLanguage(data.language, false);
}
if (data.username && $('authSettingsUsername')) $('authSettingsUsername').value = data.username;
if (data.app_name) applyProjectTitle(data.app_name, data.app_short_name);
if (data.version) APP_VERSION = data.version;
if (data.app_name) applyProjectTitle(data.app_name, data.app_short_name, data.version || APP_VERSION);
else document.querySelectorAll('.app-version').forEach(el => el.textContent = APP_VERSION);
const currentBootTime = Number(data.boot_time || 0);
const storedBootTime = Number(sessionStorage.getItem('apBootTime') || localStorage.getItem('apBootTime') || 0);