feat: modalità amichevole e fix URL remoti in dev (WSL2)

- Aggiunge modalità "Amichevole" in config: i set si vincono normalmente
  ma la partita non termina mai automaticamente (checkVittoriaPartita
  restituisce false), consentendo di giocare set illimitati
- Dev server ora espone su tutte le interfacce (vite --host)
- printServerInfo mostra Display + Controller per dispositivi remoti
- Su WSL2 getNetworkIPs() interroga PowerShell per ottenere gli IP
  Windows reali invece degli IP interni WSL (172.x)
This commit is contained in:
2026-06-20 15:42:57 +02:00
parent 38703116ff
commit 87ce0e26b8
4 changed files with 34 additions and 16 deletions
+3 -1
View File
@@ -113,6 +113,8 @@
@click="configData.modalita = '2/3'">2/3</button>
<button :class="['btn', 'btn-mode', configData.modalita === '3/5' ? 'active' : '']"
@click="configData.modalita = '3/5'">3/5</button>
<button :class="['btn', 'btn-mode', configData.modalita === 'amichevole' ? 'active' : '']"
@click="configData.modalita = 'amichevole'">Amichevole</button>
</div>
</div>
@@ -228,7 +230,7 @@ export default {
return null
},
isPartitaFinita() {
if (!this.setVintoTeam) return false
if (!this.setVintoTeam || this.state.modalitaPartita === 'amichevole') return false
const setsToWin = this.state.modalitaPartita === '2/3' ? 2 : 3
return this.set[this.setVintoTeam] + 1 >= setsToWin
},