style: match KAAK password dialogs to reference

This commit is contained in:
illusia committed 2026-10-12 11:23:31 +08:00
1 parent 2f5cdcba90
commit 53324ef02b
12 files changed
+228 -12

No files matched your search

Binary file not shown.
@@ -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"
+1 -1
View File
@@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
{
id: BUILTIN_KAAK_SKIN_ID,
name: "KAAK",
version: "3.1.77",
version: "3.1.78",
author: "WebSpeak Project",
license: "AGPL-3.0-only",
description: "A KOOK-inspired voice-room workspace with a searchable server header, TeamSpeak banner and welcome message, nested channel members, attached channel chat, and a compact WebSpeak audio dock.",
+6 -1
View File
@@ -479,7 +479,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
const file = new File([archive], "kaak-voice.wskin", { type: "application/octet-stream" });
const skin = await importSkinPack(file);
assert.equal(skin.id, "community.kaak-voice");
assert.equal(skin.version, "3.1.77");
assert.equal(skin.version, "3.1.78");
assert.equal(BUILTIN_SKIN_CATALOG.find((entry) => entry.id === skin.id)?.version, skin.version);
assert.equal(skin.schemaVersion, 3);
const home = skin.pluginData?.components.find((component) => component.page === "home");
@@ -584,6 +584,11 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
assert.match(skin.css, /ws-voice-channel-member-avatar[\s\S]*?border-radius: 50%;/);
assert.match(skin.css, /--skin-kaak-font:[\s\S]*?PingFang SC/);
assert.match(skin.css, /--skin-kaak-accent: #6cbf00;/);
assert.match(skin.css, /\[data-ws-part="auth\.password\.backdrop"\]\s*\{[^}]*background: rgba\(10, 11, 13, \.54\);/);
assert.match(skin.css, /\[data-ws-part="auth\.password\.dialog"\]\s*\{[^}]*width: min\(438px, calc\(100vw - 32px\)\);[^}]*min-height: 204px;[^}]*background: #242529;/);
assert.match(skin.css, /\[data-ws-part="auth\.password\.title"\]\s*\{[^}]*font-size: 13px;[^}]*font-weight: 700;/);
assert.match(skin.css, /\[data-ws-part="auth\.password\.field"\]\s*\{[^}]*height: 40px;[^}]*border: 1px solid #3b3c40;[^}]*border-radius: 12px;/);
assert.match(skin.css, /\[data-ws-part="auth\.password\.actions"\] > button:last-child\s*\{[^}]*width: 82px;[^}]*height: 36px;[^}]*background: #6cbf00;/);
assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.voice-dock"\] \{[\s\S]*?width: min\(282px, calc\(100% - 22px\)\);[\s\S]*?margin-bottom: 11px;[\s\S]*?border-radius: 17px;/);
assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.voice-dock-actions"\] \{[\s\S]*?grid-template-columns: minmax\(0, 1fr\) 28px 28px 36px;[\s\S]*?grid-template-rows: 29px 26px;[\s\S]*?row-gap: 21px;/);
assert.match(skin.css, /ws-voice-channel-tree\[data-layout="server-sidebar"\] \.ws-voice-channel-line[\s\S]*?min-height: 38px;/);