AP manageur V1.2 (Bêta)

This commit is contained in:
yoannmultigaming committed 2026-11-23 18:27:54 +01:00
1 parent 7fb398090d
commit 6a6cfffca2
2 files changed
+22 -5

No files matched your search

+20 -3
View File
@@ -2598,6 +2598,7 @@
<div class="recap-box-title"><span>🎨</span> <span data-i18n="recap_options_title">Options & Thème</span>
</div>
<div class="recap-box-val" id="recapTheme">Auto (Système)</div>
<div class="recap-box-sub" id="recapAppName" style="display:none"></div>
<div class="recap-box-sub" id="recapAutoconnect" data-i18n="recap_auto_start_yes">Démarrage auto : Oui
</div>
<div class="recap-box-sub" id="recapUpdateChecker">Mise à jour auto : Toutes les 30 min</div>
@@ -4686,6 +4687,7 @@
}
function updateRecap() {
try {
const isEn = currentLanguage.startsWith('en');
// Wi-Fi
@@ -4732,7 +4734,7 @@
}
}
if ($('recapNotifSub')) {
if (notifOn && activeChannels.length) {
if (activeChannels.length) {
let evCount = 0;
const evIds = ['notifEvtNewDevice', 'notifEvtDeviceConnected', 'notifEvtDeviceDisconnected', 'notifEvtAdminLogin', 'notifEvtAdminLoginFailed', 'notifEvtDeviceBlocked', 'notifEvtSettingsChanged', 'notifEvtVpnClientConnected', 'notifEvtVpnClientDisconnected', 'notifEvtVpnProfileConnected', 'notifEvtVpnProfileDisconnected', 'notifEvtQuotaExceeded', 'notifEvtBackupSuccess', 'notifEvtBackupRemoteSuccess', 'notifEvtUpdateAvailable', 'notifEvtStatsReport'];
evIds.forEach(eid => { if ($(eid) && $(eid).checked) evCount++; });
@@ -4756,11 +4758,23 @@
}
}
// Thème
// Thème & Options
const themeNamesFr = { 'auto': 'Auto (Système)', 'dark': 'Sombre', 'light': 'Clair', 'winxp': 'Windows XP', 'futuristic': 'Futuriste', 'macos': 'macOS', 'hacker': 'Hacker' };
const themeNamesEn = { 'auto': 'Auto (System)', 'dark': 'Dark', 'light': 'Light', 'winxp': 'Windows XP', 'futuristic': 'Futuristic', 'macos': 'macOS', 'hacker': 'Hacker' };
const themeDict = isEn ? themeNamesEn : themeNamesFr;
if ($('recapTheme')) $('recapTheme').textContent = themeDict[currentTheme] || currentTheme;
// Titre personnalisé de l'application
if ($('recapAppName')) {
const appTitle = $('setupAppName') ? $('setupAppName').value.trim() : '';
if (appTitle) {
$('recapAppName').style.display = 'block';
$('recapAppName').textContent = (isEn ? 'App title: ' : 'Titre de l’application : ') + appTitle;
} else {
$('recapAppName').style.display = 'none';
}
}
const autoOn = $('setupAutoconnect') && $('setupAutoconnect').checked;
if ($('recapAutoconnect')) {
$('recapAutoconnect').textContent = isEn ? ('Autostart: ' + (autoOn ? 'Yes' : 'No')) : ('Démarrage auto : ' + (autoOn ? 'Oui' : 'Non'));
@@ -4790,7 +4804,7 @@
// Sauvegardes
if ($('recapBackupSchedule')) {
const bkOn = $('setupBackupCronEnabled') && $('setupBackupCronEnabled').checked;
const bkSummary = $('setupBackupCronHuman') ? $('setupBackupCronHuman').textContent.replace(/^[📅⚠️]\s*/, '') : '';
const bkSummary = ($('setupBackupCronHuman') ? $('setupBackupCronHuman').textContent.replace(/^[📅⚠️]\s*/, '').trim() : '') || ($('setupBackupCronExpr')?.value || '0 3 * * *');
const bkRet = $('setupBackupCronRetention')?.value || '7';
if (bkOn) {
$('recapBackupSchedule').textContent = isEn
@@ -4800,6 +4814,9 @@
$('recapBackupSchedule').textContent = isEn ? 'Backups: Disabled' : 'Sauvegardes : Désactivées';
}
}
} catch (err) {
console.warn('Error updating setup recap:', err);
}
}
function onToggleSetupUpdateChecker(enabled) {
+2 -2
View File
@@ -1,5 +1,5 @@
{
"version": "V1.2 (Bêta)",
"commit": "e905ce909768b6edbc136cebff3e15c7da86ba96",
"build_date": "2026-11-23T16:39:51Z"
"commit": "7fb398090df4b37af7a945dcbeb15b7cb6aa1bc7",
"build_date": "2026-11-23T17:09:26Z"
}