AP manageur V1.2 (Bêta)
This commit is contained in:
1 parent
7fb398090d
commit
6a6cfffca2
2 files changed
+22
-5
No files matched your search
+20
-3
@@ -2598,6 +2598,7 @@
|
|||||||
<div class="recap-box-title"><span>🎨</span> <span data-i18n="recap_options_title">Options & Thème</span>
|
<div class="recap-box-title"><span>🎨</span> <span data-i18n="recap_options_title">Options & Thème</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="recap-box-val" id="recapTheme">Auto (Système)</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 class="recap-box-sub" id="recapAutoconnect" data-i18n="recap_auto_start_yes">Démarrage auto : Oui
|
||||||
</div>
|
</div>
|
||||||
<div class="recap-box-sub" id="recapUpdateChecker">Mise à jour auto : Toutes les 30 min</div>
|
<div class="recap-box-sub" id="recapUpdateChecker">Mise à jour auto : Toutes les 30 min</div>
|
||||||
@@ -4686,6 +4687,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateRecap() {
|
function updateRecap() {
|
||||||
|
try {
|
||||||
const isEn = currentLanguage.startsWith('en');
|
const isEn = currentLanguage.startsWith('en');
|
||||||
|
|
||||||
// Wi-Fi
|
// Wi-Fi
|
||||||
@@ -4732,7 +4734,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($('recapNotifSub')) {
|
if ($('recapNotifSub')) {
|
||||||
if (notifOn && activeChannels.length) {
|
if (activeChannels.length) {
|
||||||
let evCount = 0;
|
let evCount = 0;
|
||||||
const evIds = ['notifEvtNewDevice', 'notifEvtDeviceConnected', 'notifEvtDeviceDisconnected', 'notifEvtAdminLogin', 'notifEvtAdminLoginFailed', 'notifEvtDeviceBlocked', 'notifEvtSettingsChanged', 'notifEvtVpnClientConnected', 'notifEvtVpnClientDisconnected', 'notifEvtVpnProfileConnected', 'notifEvtVpnProfileDisconnected', 'notifEvtQuotaExceeded', 'notifEvtBackupSuccess', 'notifEvtBackupRemoteSuccess', 'notifEvtUpdateAvailable', 'notifEvtStatsReport'];
|
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++; });
|
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 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 themeNamesEn = { 'auto': 'Auto (System)', 'dark': 'Dark', 'light': 'Light', 'winxp': 'Windows XP', 'futuristic': 'Futuristic', 'macos': 'macOS', 'hacker': 'Hacker' };
|
||||||
const themeDict = isEn ? themeNamesEn : themeNamesFr;
|
const themeDict = isEn ? themeNamesEn : themeNamesFr;
|
||||||
if ($('recapTheme')) $('recapTheme').textContent = themeDict[currentTheme] || currentTheme;
|
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;
|
const autoOn = $('setupAutoconnect') && $('setupAutoconnect').checked;
|
||||||
if ($('recapAutoconnect')) {
|
if ($('recapAutoconnect')) {
|
||||||
$('recapAutoconnect').textContent = isEn ? ('Autostart: ' + (autoOn ? 'Yes' : 'No')) : ('Démarrage auto : ' + (autoOn ? 'Oui' : 'Non'));
|
$('recapAutoconnect').textContent = isEn ? ('Autostart: ' + (autoOn ? 'Yes' : 'No')) : ('Démarrage auto : ' + (autoOn ? 'Oui' : 'Non'));
|
||||||
@@ -4790,7 +4804,7 @@
|
|||||||
// Sauvegardes
|
// Sauvegardes
|
||||||
if ($('recapBackupSchedule')) {
|
if ($('recapBackupSchedule')) {
|
||||||
const bkOn = $('setupBackupCronEnabled') && $('setupBackupCronEnabled').checked;
|
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';
|
const bkRet = $('setupBackupCronRetention')?.value || '7';
|
||||||
if (bkOn) {
|
if (bkOn) {
|
||||||
$('recapBackupSchedule').textContent = isEn
|
$('recapBackupSchedule').textContent = isEn
|
||||||
@@ -4800,6 +4814,9 @@
|
|||||||
$('recapBackupSchedule').textContent = isEn ? 'Backups: Disabled' : 'Sauvegardes : Désactivées';
|
$('recapBackupSchedule').textContent = isEn ? 'Backups: Disabled' : 'Sauvegardes : Désactivées';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.warn('Error updating setup recap:', err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function onToggleSetupUpdateChecker(enabled) {
|
function onToggleSetupUpdateChecker(enabled) {
|
||||||
|
|||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "V1.2 (Bêta)",
|
"version": "V1.2 (Bêta)",
|
||||||
"commit": "e905ce909768b6edbc136cebff3e15c7da86ba96",
|
"commit": "7fb398090df4b37af7a945dcbeb15b7cb6aa1bc7",
|
||||||
"build_date": "2026-11-23T16:39:51Z"
|
"build_date": "2026-11-23T17:09:26Z"
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user