APmanageur Wi-Fi V1.0

This commit is contained in:
yoannmultigaming committed 2026-11-20 00:29:15 +01:00
1 parent a72d161092
commit 33cf355785
4 files changed
+825 -266

No files matched your search

+167 -44
View File
@@ -443,74 +443,162 @@
}
/* Boutons de sélection du fournisseur de stockage distant */
.backup-prov-btn {
.backup-prov-btn,
button.backup-prov-btn {
background: var(--panel2) !important;
border: 1px solid var(--line) !important;
color: var(--text) !important;
color: #ffffff !important;
transition: all .15s ease;
user-select: none;
}
.backup-prov-btn span {
color: inherit !important;
.backup-prov-btn span,
button.backup-prov-btn span {
color: #ffffff !important;
}
.backup-prov-btn:hover:not(.active) {
.backup-prov-btn:hover:not(.active),
button.backup-prov-btn:hover:not(.active) {
background: var(--panel) !important;
border-color: var(--blue) !important;
color: var(--text) !important;
color: #ffffff !important;
}
.backup-prov-btn.active {
.backup-prov-btn.active,
button.backup-prov-btn.active {
border: 2px solid var(--blue) !important;
box-shadow: 0 0 0 1px var(--blue) !important;
font-weight: 700 !important;
background: rgba(92, 167, 255, 0.22) !important;
background: rgba(92, 167, 255, 0.28) !important;
color: #ffffff !important;
}
.backup-prov-btn.active span {
color: inherit !important;
.backup-prov-btn.active span,
button.backup-prov-btn.active span {
color: #ffffff !important;
}
/* Adaptation pour les thèmes clairs (Light, Windows XP, macOS Clair) */
/* Thème Clair */
html[data-theme="light"] .backup-prov-btn,
html[data-theme="winxp"] .backup-prov-btn,
html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn,
html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn {
background: var(--panel2) !important;
border-color: var(--line) !important;
color: var(--text) !important;
html[data-theme="light"] button.backup-prov-btn {
background: #f0f2f5 !important;
border-color: #d1d5db !important;
color: #111827 !important;
}
html[data-theme="light"] .backup-prov-btn span,
html[data-theme="winxp"] .backup-prov-btn span,
html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn span,
html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn span {
color: var(--text) !important;
html[data-theme="light"] button.backup-prov-btn span {
color: #111827 !important;
}
html[data-theme="light"] .backup-prov-btn.active,
html[data-theme="winxp"] .backup-prov-btn.active,
html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn.active,
html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn.active {
background: rgba(30, 110, 240, 0.12) !important;
html[data-theme="light"] button.backup-prov-btn.active {
background: var(--blue) !important;
border-color: var(--blue) !important;
color: var(--blue) !important;
color: #ffffff !important;
}
html[data-theme="light"] .backup-prov-btn.active span,
html[data-theme="light"] button.backup-prov-btn.active span {
color: #ffffff !important;
}
/* Thème Windows XP */
html[data-theme="winxp"] .backup-prov-btn,
html[data-theme="winxp"] button.backup-prov-btn {
background: #ece9d8 !important;
border-color: #7f9db9 !important;
color: #000000 !important;
}
html[data-theme="winxp"] .backup-prov-btn span,
html[data-theme="winxp"] button.backup-prov-btn span {
color: #000000 !important;
}
html[data-theme="winxp"] .backup-prov-btn.active,
html[data-theme="winxp"] button.backup-prov-btn.active {
background: #0a246a !important;
border-color: #0a246a !important;
color: #ffffff !important;
}
html[data-theme="winxp"] .backup-prov-btn.active span,
html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn.active span,
html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn.active span {
color: var(--blue) !important;
html[data-theme="winxp"] button.backup-prov-btn.active span {
color: #ffffff !important;
}
/* Thème macOS (Clair & Sombre) */
html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn,
html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn,
html[data-theme="macos"][data-macos-mode="light"] button.backup-prov-btn,
html[data-theme="macos"]:not([data-macos-mode="dark"]) button.backup-prov-btn {
background: #f2f2f7 !important;
border-color: rgba(0, 0, 0, 0.12) !important;
color: #1d1d1f !important;
}
html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn span,
html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn span,
html[data-theme="macos"][data-macos-mode="light"] button.backup-prov-btn span,
html[data-theme="macos"]:not([data-macos-mode="dark"]) button.backup-prov-btn span {
color: #1d1d1f !important;
}
html[data-theme="macos"][data-macos-mode="dark"] .backup-prov-btn,
html[data-theme="macos"][data-macos-mode="dark"] button.backup-prov-btn {
background: rgba(255, 255, 255, 0.08) !important;
border-color: rgba(255, 255, 255, 0.15) !important;
color: #ffffff !important;
}
html[data-theme="macos"][data-macos-mode="dark"] .backup-prov-btn span,
html[data-theme="macos"][data-macos-mode="dark"] button.backup-prov-btn span {
color: #ffffff !important;
}
html[data-theme="macos"] .backup-prov-btn.active,
html[data-theme="macos"] button.backup-prov-btn.active {
background: #0071e3 !important;
border-color: #0071e3 !important;
color: #ffffff !important;
}
html[data-theme="macos"] .backup-prov-btn.active span,
html[data-theme="macos"] button.backup-prov-btn.active span {
color: #ffffff !important;
}
/* Thème Hacker */
html[data-theme="hacker"] .backup-prov-btn.active {
background: rgba(0, 255, 65, 0.25) !important;
border-color: #00ff41 !important;
html[data-theme="hacker"] .backup-prov-btn,
html[data-theme="hacker"] button.backup-prov-btn {
background: #020a04 !important;
border-color: rgba(0, 255, 65, 0.3) !important;
color: #00ff41 !important;
}
html[data-theme="hacker"] .backup-prov-btn span,
html[data-theme="hacker"] button.backup-prov-btn span {
color: #00ff41 !important;
}
html[data-theme="hacker"] .backup-prov-btn.active,
html[data-theme="hacker"] button.backup-prov-btn.active {
background: rgba(0, 255, 65, 0.25) !important;
border-color: #00ff41 !important;
box-shadow: 0 0 10px rgba(0, 255, 65, 0.4) !important;
color: #ffffff !important;
}
html[data-theme="hacker"] .backup-prov-btn.active span,
html[data-theme="hacker"] button.backup-prov-btn.active span {
color: #ffffff !important;
}
/* Thème Futuriste */
html[data-theme="futuristic"] .backup-prov-btn.active {
background: rgba(0, 240, 255, 0.22) !important;
border-color: #00f0ff !important;
html[data-theme="futuristic"] .backup-prov-btn,
html[data-theme="futuristic"] button.backup-prov-btn {
background: rgba(8, 20, 44, 0.8) !important;
border-color: rgba(0, 240, 255, 0.3) !important;
color: #e6f6ff !important;
}
html[data-theme="futuristic"] .backup-prov-btn span,
html[data-theme="futuristic"] button.backup-prov-btn span {
color: #e6f6ff !important;
}
html[data-theme="futuristic"] .backup-prov-btn.active,
html[data-theme="futuristic"] button.backup-prov-btn.active {
background: rgba(0, 240, 255, 0.28) !important;
border-color: #00f0ff !important;
box-shadow: 0 0 10px rgba(0, 240, 255, 0.35) !important;
color: #ffffff !important;
}
html[data-theme="futuristic"] .backup-prov-btn.active span,
html[data-theme="futuristic"] button.backup-prov-btn.active span {
color: #ffffff !important;
}
/* Boutons de sélection de jeu Easter Egg */
.game-switch-btn.active {
@@ -5195,27 +5283,27 @@
<!-- Grille de sélection rapide du fournisseur avec les vrais logos officiels -->
<div id="backupProviderSelector" style="display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px">
<button type="button" class="backup-prov-btn secondary" data-provider="ftp" onclick="selectBackupRemoteProvider('ftp')" style="padding:6px 12px;font-size:12px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer">
<button type="button" class="backup-prov-btn" data-provider="ftp" onclick="selectBackupRemoteProvider('ftp')" style="padding:6px 12px;font-size:12px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer">
📡 <span>FTP / FTPS</span>
</button>
<button type="button" class="backup-prov-btn secondary" data-provider="sftp" onclick="selectBackupRemoteProvider('sftp')" style="padding:6px 12px;font-size:12px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer">
<button type="button" class="backup-prov-btn" data-provider="sftp" onclick="selectBackupRemoteProvider('sftp')" style="padding:6px 12px;font-size:12px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer">
🔐 <span>SFTP (SSH)</span>
</button>
<button type="button" class="backup-prov-btn secondary" data-provider="gdrive" onclick="selectBackupRemoteProvider('gdrive')" style="padding:6px 12px;font-size:12px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer">
<button type="button" class="backup-prov-btn" data-provider="gdrive" onclick="selectBackupRemoteProvider('gdrive')" style="padding:6px 12px;font-size:12px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer">
<img src="/images/gdrive.svg" width="16" height="15" alt="Google Drive" style="object-fit:contain;vertical-align:middle">
<span>Google Drive</span>
</button>
<button type="button" class="backup-prov-btn secondary" data-provider="dropbox" onclick="selectBackupRemoteProvider('dropbox')" style="padding:6px 12px;font-size:12px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer">
<button type="button" class="backup-prov-btn" data-provider="dropbox" onclick="selectBackupRemoteProvider('dropbox')" style="padding:6px 12px;font-size:12px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer">
<img src="/images/dropbox.svg" width="16" height="16" alt="Dropbox" style="object-fit:contain;vertical-align:middle">
<span>Dropbox</span>
</button>
<button type="button" class="backup-prov-btn secondary" data-provider="webdav" onclick="selectBackupRemoteProvider('webdav')" style="padding:6px 12px;font-size:12px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer">
<button type="button" class="backup-prov-btn" data-provider="webdav" onclick="selectBackupRemoteProvider('webdav')" style="padding:6px 12px;font-size:12px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer">
🌐 <span>WebDAV</span>
</button>
<button type="button" class="backup-prov-btn secondary" data-provider="s3" onclick="selectBackupRemoteProvider('s3')" style="padding:6px 12px;font-size:12px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer">
<button type="button" class="backup-prov-btn" data-provider="s3" onclick="selectBackupRemoteProvider('s3')" style="padding:6px 12px;font-size:12px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer">
🪣 <span>S3 / MinIO</span>
</button>
<button type="button" class="backup-prov-btn secondary" data-provider="webhook" onclick="selectBackupRemoteProvider('webhook')" style="padding:6px 12px;font-size:12px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer">
<button type="button" class="backup-prov-btn" data-provider="webhook" onclick="selectBackupRemoteProvider('webhook')" style="padding:6px 12px;font-size:12px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer">
🔗 <span>Webhook</span>
</button>
</div>
@@ -8214,7 +8302,8 @@ ${vpnBadgeTopo}
// $ est défini globalement en haut du script
let themePref = localStorage.getItem('apTheme') || 'dark'; const themeMedia = window.matchMedia('(prefers-color-scheme: light)');
function applyTheme() {
document.documentElement.dataset.theme = themePref === 'auto' ? (themeMedia.matches ? 'light' : 'dark') : themePref;
const activeTheme = themePref === 'auto' ? (themeMedia.matches ? 'light' : 'dark') : themePref;
document.documentElement.dataset.theme = activeTheme;
if (themePref === 'macos') {
document.documentElement.dataset.macosMode = themeMedia.matches ? 'light' : 'dark';
} else {
@@ -8222,6 +8311,17 @@ ${vpnBadgeTopo}
}
const s = document.getElementById('themeSelect'); if (s) s.value = themePref;
if (typeof renderStatsChart === 'function' && statsDataCache) renderStatsChart(currentStatsRange, true);
// Synchroniser le thème avec le jeu d'arcade Easter Egg (si ouvert)
try {
const iframe = document.getElementById('easterEggGameIframe');
if (iframe && iframe.contentWindow) {
iframe.contentWindow.postMessage({
type: 'themeChange',
theme: activeTheme,
macosMode: document.documentElement.dataset.macosMode || ''
}, '*');
}
} catch (_) { }
}
themeMedia.addEventListener('change', () => { if (themePref === 'auto' || themePref === 'macos') applyTheme() }); applyTheme();
@@ -14367,7 +14467,10 @@ ${vpnBadgeTopo}
const iframe = $('easterEggGameIframe');
if (iframe) {
iframe.src = '/jeux/' + gameName + '.html';
const activeTheme = document.documentElement.dataset.theme || 'dark';
const activeMacosMode = document.documentElement.dataset.macosMode || '';
const themeQuery = '?theme=' + encodeURIComponent(activeTheme) + (activeMacosMode ? '&macosMode=' + encodeURIComponent(activeMacosMode) : '');
iframe.src = '/jeux/' + gameName + '.html' + themeQuery;
setTimeout(() => {
try { iframe.focus(); if (iframe.contentWindow) iframe.contentWindow.focus(); } catch (e) { }
}, 150);
@@ -14394,6 +14497,26 @@ ${vpnBadgeTopo}
if (game) {
e.preventDefault();
e.stopPropagation();
// 1. Effacer immédiatement la saisie de texte
inputEl.value = '';
// 2. Réinitialiser les filtres associés pour ne pas fausser l'affichage du tableau
if (inputEl.id === 'packetFilterInput') {
captureFilter = '';
capturePage = 1;
document.querySelectorAll('.filter-chip').forEach(c => c.classList.remove('active'));
const allChip = document.querySelector('.filter-chip[data-filter=""]');
if (allChip) allChip.classList.add('active');
if (typeof renderCaptureTable === 'function') renderCaptureTable();
} else if (inputEl.id === 'devicesSearchInput') {
deviceFilter = '';
if (typeof renderDevicesTable === 'function') renderDevicesTable();
} else if (inputEl.id === 'vpnClientsSearchInput') {
if (typeof renderVpnClientsTable === 'function') renderVpnClientsTable();
}
// 3. Ouvrir l'arcade Easter Egg
openEasterEggModal(game);
}
}