chore(ui): replace specific examples with generic placeholders and generalize phone and gateway brands

This commit is contained in:
sorcier committed 2026-11-04 00:40:24 +01:00
1 parent b3c98834c8
commit a308f5d0ed
5 files changed
+50 -50

No files matched your search

+5 -5
View File
@@ -393,7 +393,7 @@ function renderDashboardMetrics() {
if (osVerEl && m.os_version) osVerEl.textContent = m.os_version;
const astVerEl = document.getElementById('sidebar-ast-version');
if (astVerEl && m.asterisk?.version) astVerEl.textContent = m.asterisk.version;
document.getElementById('sidebar-ip').textContent = m.network?.ip || '10.10.175.204';
document.getElementById('sidebar-ip').textContent = m.network?.ip || '192.168.1.100';
document.getElementById('sidebar-uptime').textContent = m.uptime || '—';
document.getElementById('sidebar-online-phones').textContent = `${m.asterisk?.online_contacts ?? 0} / ${(appState.extensions || []).length}`;
@@ -1906,7 +1906,7 @@ function addTrunkInboundRouteRow(cid = 'Any', did = 'Any', description = '', des
<label class="text-[11px] font-semibold text-slate-300 flex items-center gap-1">
<span>🏷️ Préfixe CID spécifique à cette règle :</span>
</label>
<input type="text" placeholder="ex: [Livebox] (vide = hériter du Trunk)" value="${escapeHtml(tcCidPrefix)}"
<input type="text" placeholder="ex: [Ligne-1] (vide = hériter du Trunk)" value="${escapeHtml(tcCidPrefix)}"
class="trunk-did-prefix px-2.5 py-1 rounded bg-anthracite-900 border border-anthracite-700 text-xs text-white font-mono w-56 focus:outline-none focus:border-indigo-500">
<span class="text-[10px] text-slate-400">Ajouté devant le nom de l'appelant sur le téléphone (laisser vide pour utiliser le préfixe général du Trunk).</span>
</div>
@@ -2131,7 +2131,7 @@ function onTrunkRegistrationModeChange(mode) {
if (mode === 'receive') {
if (hostInput) {
hostInput.required = false;
hostInput.placeholder = 'Optionnel (vide = IP découverte dynamiquement au REGISTER du HT813)';
hostInput.placeholder = 'Optionnel (vide = IP découverte dynamiquement au REGISTER de la passerelle)';
}
if (hostLabel) {
hostLabel.innerHTML = 'Serveur SIP / IP Passerelle <span class="text-emerald-400 font-semibold">(Optionnel en mode Réception)</span>';
@@ -2187,7 +2187,7 @@ function applyTrunkArchitecture(arch) {
qualify_frequency: 60
},
gateway_receive: {
label: 'Passerelle FXO / Analogique (Grandstream HT813, Livebox, ATA)',
label: 'Passerelle FXO / Ligne Box (Grandstream HT813, Cisco SPA, AudioCodes, ATA)',
port: 5060,
transport: 'udp',
auth_mode: 'userpass',
@@ -5578,7 +5578,7 @@ function openYealinkXmlModal() {
function updateYealinkXmlUrls() {
const sel = document.getElementById('yealink-modal-group-select');
const grp = sel ? sel.value : 'all';
const host = window.location.hostname || '10.10.175.204';
const host = window.location.hostname || '192.168.1.100';
const httpsPort = window.location.port || '8443';
const groupParam = grp !== 'all' ? `?group=${encodeURIComponent(grp)}` : `?group=all`;