feat: Passwortfeld-Sichtbarkeit mit SVG-Icons verbessert; Versionsnummer auf 1.0.59 erhöht

This commit is contained in:
2026-05-09 19:35:19 +02:00
parent ced5d77e27
commit 4b11a6663c
2 changed files with 5 additions and 3 deletions

6
app.py
View File

@@ -2597,7 +2597,7 @@ body{background:var(--bg);color:var(--txt);font-family:-apple-system,BlinkMacSys
<div class="field"><label>Passwort (min. 8 Zeichen)</label>
<div style="display:flex;gap:.4rem">
<input type="password" id="ap-pw" placeholder="PiCopy," style="flex:1">
<button type="button" class="btn sm ghost" id="ap-pw-toggle" onclick="togglePwVis('ap-pw','ap-pw-toggle')" style="flex-shrink:0;font-size:.85rem">👁</button>
<button type="button" class="btn sm ghost" id="ap-pw-toggle" onclick="togglePwVis('ap-pw','ap-pw-toggle')" style="flex-shrink:0;line-height:0"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><ellipse cx="12" cy="12" rx="6" ry="4"/><circle cx="12" cy="12" r="1.5" fill="currentColor"/></svg></button>
</div>
</div>
<button class="btn pri" onclick="saveAP()">✓&nbsp;Speichern &amp; Neustart</button>
@@ -3071,7 +3071,9 @@ function togglePwVis(inputId, btnId){
const inp=$(inputId), btn=$(btnId);
const show = inp.type==='password';
inp.type = show ? 'text' : 'password';
btn.textContent = show ? '🙈' : '👁';
const eye='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><ellipse cx="12" cy="12" rx="6" ry="4"/><circle cx="12" cy="12" r="1.5" fill="currentColor"/></svg>';
const eyeOff='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><ellipse cx="12" cy="12" rx="6" ry="4"/><line x1="3" y1="3" x2="21" y2="21"/></svg>';
btn.innerHTML = show ? eyeOff : eye;
}
async function connectWifi(){

View File

@@ -1 +1 @@
1.0.58
1.0.59