mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-02 19:42:51 +08:00
style: match KAAK password dialogs to reference
This commit is contained in:
1 parent
2f5cdcba90
commit
53324ef02b
12 files changed
+228
-12
No files matched your search
@@ -1,10 +1,12 @@
|
||||
<template>
|
||||
<div
|
||||
class="modal-backdrop channel-password-backdrop"
|
||||
data-ws-part="auth.password.backdrop"
|
||||
@click.self="emit('cancel')"
|
||||
>
|
||||
<section
|
||||
class="channel-password-modal"
|
||||
data-ws-part="auth.password.dialog"
|
||||
ref="dialog"
|
||||
tabindex="-1"
|
||||
@keydown="onDialogKeydown"
|
||||
@@ -24,25 +26,30 @@
|
||||
:size="19"
|
||||
/></button>
|
||||
<div class="channel-password-icon"
|
||||
data-ws-part="auth.password.decoration"
|
||||
><Icon
|
||||
name="lock"
|
||||
:size="22"
|
||||
/></div>
|
||||
<span class="card-kicker">{{ t("channelPasswordPrompt") }}</span>
|
||||
<h2 id="channel-password-title">{{ t("channelPasswordTitle") }}</h2>
|
||||
<p>{{ t("channelPasswordLead") }}</p>
|
||||
<span class="card-kicker" data-ws-part="auth.password.eyebrow">{{ t("channelPasswordPrompt") }}</span>
|
||||
<h2 id="channel-password-title" data-ws-part="auth.password.title">{{ t("channelPasswordTitle") }}</h2>
|
||||
<p data-ws-part="auth.password.lead">{{ t("channelPasswordLead") }}</p>
|
||||
<form
|
||||
class="channel-password-form"
|
||||
data-ws-part="auth.password.form"
|
||||
@submit.prevent="emit('submit')"
|
||||
>
|
||||
<label
|
||||
class="field-label"
|
||||
data-ws-part="auth.password.label"
|
||||
for="channel-password-input"
|
||||
>{{ t("channelPasswordPrompt") }}</label
|
||||
>
|
||||
<div class="field-wrap"
|
||||
data-ws-part="auth.password.field"
|
||||
><Icon
|
||||
name="lock"
|
||||
data-ws-part="auth.password.field-icon"
|
||||
:size="17" /><input
|
||||
id="channel-password-input"
|
||||
v-model="password"
|
||||
@@ -55,9 +62,11 @@
|
||||
<div
|
||||
v-if="error"
|
||||
class="notice error-notice channel-password-error"
|
||||
data-ws-part="auth.password.error"
|
||||
><span class="notice-symbol">!</span><span>{{ error }}</span></div
|
||||
>
|
||||
<div class="channel-password-actions"
|
||||
data-ws-part="auth.password.actions"
|
||||
><button
|
||||
type="button"
|
||||
class="text-button"
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
<template>
|
||||
<div
|
||||
class="modal-backdrop channel-password-backdrop"
|
||||
data-ws-part="auth.password.backdrop"
|
||||
@click.self="emit('cancel')"
|
||||
>
|
||||
<section
|
||||
class="channel-password-modal server-password-modal"
|
||||
data-ws-part="auth.password.dialog"
|
||||
ref="dialog"
|
||||
tabindex="-1"
|
||||
@keydown="onDialogKeydown"
|
||||
@@ -24,29 +26,34 @@
|
||||
:size="19"
|
||||
/></button>
|
||||
<div class="channel-password-icon"
|
||||
data-ws-part="auth.password.decoration"
|
||||
><Icon
|
||||
name="lock"
|
||||
:size="22"
|
||||
/></div>
|
||||
<span class="card-kicker">{{ t("serverPasswordPrompt") }}</span>
|
||||
<h2 id="server-password-title">{{ t("serverPasswordTitle") }}</h2>
|
||||
<p>{{
|
||||
<span class="card-kicker" data-ws-part="auth.password.eyebrow">{{ t("serverPasswordPrompt") }}</span>
|
||||
<h2 id="server-password-title" data-ws-part="auth.password.title">{{ t("serverPasswordTitle") }}</h2>
|
||||
<p data-ws-part="auth.password.lead">{{
|
||||
errorCode === "INVALID_SERVER_PASSWORD"
|
||||
? t("serverPasswordInvalidLead")
|
||||
: t("serverPasswordRequiredLead")
|
||||
}}</p>
|
||||
<form
|
||||
class="channel-password-form"
|
||||
data-ws-part="auth.password.form"
|
||||
@submit.prevent="emit('submit')"
|
||||
>
|
||||
<label
|
||||
class="field-label"
|
||||
data-ws-part="auth.password.label"
|
||||
for="retry-server-password-input"
|
||||
>{{ t("serverPasswordPrompt") }}</label
|
||||
>
|
||||
<div class="field-wrap"
|
||||
data-ws-part="auth.password.field"
|
||||
><Icon
|
||||
name="lock"
|
||||
data-ws-part="auth.password.field-icon"
|
||||
:size="17" /><input
|
||||
id="retry-server-password-input"
|
||||
v-model="password"
|
||||
@@ -56,6 +63,7 @@
|
||||
autofocus
|
||||
/></div>
|
||||
<div class="channel-password-actions"
|
||||
data-ws-part="auth.password.actions"
|
||||
><button
|
||||
type="button"
|
||||
class="text-button"
|
||||
|
||||
Reference in new issue
Block a user