feat(desktop): Setup-Seite zeigt Version und Stand der installierten App
Neues Command get_client_info liefert "Tessera-App X.Y.Z · Stand <sha7>" (ohne Stempel nur die Version); die Setup-Seite blendet die Zeile beim Erststart und unter "Server-Adresse ändern" dezent ein. So ist ohne Adressleiste erkennbar, welcher Client-Stand läuft. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -141,6 +141,13 @@
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.client-info {
|
||||
margin: 20px 0 0;
|
||||
font-size: 0.75rem;
|
||||
color: oklch(0.6 0 0);
|
||||
min-height: 1em;
|
||||
}
|
||||
|
||||
.current-server {
|
||||
display: none;
|
||||
text-align: left;
|
||||
@@ -192,6 +199,7 @@
|
||||
|
||||
<button id="connect-btn" type="button">Verbinden</button>
|
||||
<button id="cancel-btn" type="button" class="secondary" hidden>Abbrechen</button>
|
||||
<p id="client-info" class="client-info"></p>
|
||||
</div>
|
||||
|
||||
<script type="module">
|
||||
@@ -360,6 +368,16 @@
|
||||
// gespeicherte Adresse (oder wenn der Aufruf fehlschlaegt) bleibt es
|
||||
// beim bisherigen Erststart-Verhalten.
|
||||
async function init() {
|
||||
// Version und Stand der installierten App -- rein informativ; ein
|
||||
// Fehlschlag laesst die Zeile einfach leer.
|
||||
try {
|
||||
const info = await invoke('get_client_info');
|
||||
if (typeof info === 'string') {
|
||||
document.getElementById('client-info').textContent = info;
|
||||
}
|
||||
} catch {
|
||||
// Zeile bleibt leer.
|
||||
}
|
||||
try {
|
||||
const current = await invoke('get_server_url');
|
||||
if (typeof current === 'string' && current) {
|
||||
|
||||
Reference in New Issue
Block a user