mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Rework Identitäten dialog to match the native client's layout
The old dialog was a flat list with an inline rename field and a radio button per row - visually and structurally nothing like the native myTeamSpeak-style Identitäten window. Reworked to the same list + detail panel layout: pick an identity on the left, edit its Name/Nickname/ Phonetischer Nickname on the right, see its Eindeutige ID (once known) and creation status, Standard/Löschen/Exportieren buttons per identity. Also added what was actually missing functionally, not just visually: - Import/Export: an identity's opaque tsclientlib blob can be downloaded as a JSON file and re-imported later (backup/transfer between browsers). - Per-identity nickname: each identity now remembers its own nickname (like native TS3), applied when switching identities in the connect dialog and saved back after a successful connect - previously there was only one global nickname shared by every identity. Deliberately left out of scope (documented inline in the component): myTeamSpeak cloud-synced identities (a whole separate account system this self-hosted client has no equivalent of) and the manual "Sicherheitsstufe erhöhen" button (tsclientlib already runs that proof-of-work step automatically during connect whenever a server demands a higher level, so a manual trigger wouldn't add functionality, only let you pre-compute it before connecting). Verified interactively in demo mode: dialog renders in the new layout, fields are all editable, Standard/Löschen/Export honor their expected enabled/disabled states.
This commit is contained in:
1 parent
ea7b97b161
commit
17899ae137
3 files changed
+265
-51
No files matched your search
+35
-10
@@ -996,7 +996,19 @@
|
||||
}
|
||||
|
||||
.ts-identities-dialog {
|
||||
width: 460px;
|
||||
width: 520px;
|
||||
}
|
||||
|
||||
.ts-identities-body {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.ts-identities-list-label {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.ts-identities-list {
|
||||
@@ -1005,32 +1017,45 @@
|
||||
padding: 0;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 3px;
|
||||
width: 180px;
|
||||
max-height: 260px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.ts-identities-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.35rem 0.5rem;
|
||||
.ts-identities-list li {
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
}
|
||||
|
||||
.ts-identities-list li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.ts-identities-list-item {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 0.35rem 0.5rem;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ts-identities-item-active {
|
||||
background: var(--accent-soft, rgba(78, 161, 247, 0.15));
|
||||
.ts-identities-list-item-default {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.ts-identities-name {
|
||||
.ts-identities-detail {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.ts-identities-readonly {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-identities-status {
|
||||
color: var(--text-muted);
|
||||
font-size: 11px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ts-log-level-row {
|
||||
|
||||
Reference in new issue
Block a user