mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat: refine KAAK navigation and join experience
This commit is contained in:
1 parent
319a16f384
commit
458f95c2dc
21 files changed
+2017
-996
No files matched your search
@@ -40,8 +40,10 @@ export const SKIN_PLUGIN_PERMISSIONS = Object.freeze({
|
||||
export type SkinPluginPermission = keyof typeof SKIN_PLUGIN_PERMISSIONS;
|
||||
export type SkinPluginPage = "home" | "voice" | "demo";
|
||||
export type SkinPluginComponentMode = "widget" | "surface";
|
||||
export const SKIN_PLUGIN_HOST_WIDGETS = Object.freeze([
|
||||
"home.connection-form",
|
||||
export const SKIN_PLUGIN_HOST_WIDGETS = Object.freeze([
|
||||
"home.connection-form",
|
||||
"home.connection-status",
|
||||
"home.myts-login",
|
||||
"app.skin-switcher",
|
||||
"app.language-switcher",
|
||||
"voice.server-switcher",
|
||||
@@ -72,6 +74,7 @@ export interface SkinPluginWidgetOptions {
|
||||
}
|
||||
const widgetPermissions = (...permissions: SkinPluginPermission[]): readonly SkinPluginPermission[] => Object.freeze(permissions);
|
||||
export const SKIN_PLUGIN_HOST_WIDGET_PERMISSIONS: Partial<Record<SkinPluginHostWidget, readonly SkinPluginPermission[]>> = Object.freeze({
|
||||
"home.connection-status": widgetPermissions("session.status.read"),
|
||||
"voice.channel-tree": widgetPermissions("session.channels.read", "session.members.read", "session.memberAvatars.read", "session.channel.join"),
|
||||
"voice.server-switcher": widgetPermissions("servers.quickList.read", "servers.quickList.switch"),
|
||||
"voice.server-header": widgetPermissions("session.status.read", "servers.quickList.read", "servers.quickList.switch"),
|
||||
@@ -175,11 +178,11 @@ export const SKIN_PLUGIN_ALLOWED_ELEMENTS = Object.freeze([
|
||||
] as const);
|
||||
const ELEMENTS = new Set<string>(SKIN_PLUGIN_ALLOWED_ELEMENTS);
|
||||
const VOID_ELEMENTS = new Set(["br", "circle", "hr", "img", "input", "line", "path", "polyline", "rect", "wbr"]);
|
||||
const ATTRIBUTES = new Set([
|
||||
"alt", "aria-current", "aria-expanded", "aria-hidden", "aria-label", "aria-pressed", "aria-selected", "autocomplete", "checked", "class", "colspan", "disabled", "draggable", "fill", "height", "inputmode", "max", "maxlength", "min",
|
||||
"minlength", "multiple", "name", "open", "placeholder", "required", "role", "rows", "rowspan", "step", "stroke", "stroke-linecap", "stroke-linejoin",
|
||||
"src", "stroke-width", "tabindex", "title", "type", "value", "viewbox", "width", "x", "x1", "x2", "y", "y1", "y2",
|
||||
]);
|
||||
const ATTRIBUTES = new Set([
|
||||
"alt", "aria-current", "aria-expanded", "aria-hidden", "aria-label", "aria-pressed", "aria-selected", "autocomplete", "checked", "class", "colspan", "cx", "cy", "d", "disabled", "draggable", "fill", "height", "inputmode", "max", "maxlength", "min",
|
||||
"minlength", "multiple", "name", "open", "placeholder", "required", "role", "rows", "rowspan", "step", "stroke", "stroke-linecap", "stroke-linejoin",
|
||||
"r", "rx", "src", "stroke-width", "tabindex", "title", "type", "value", "viewbox", "width", "x", "x1", "x2", "y", "y1", "y2",
|
||||
]);
|
||||
const EVENTS = new Set<string>([
|
||||
"click", "dblclick", "change", "input", "submit", "keydown", "keyup", "contextmenu", "focus", "blur", "pointerdown", "pointerup",
|
||||
"pointerenter", "pointerleave", "dragstart", "dragover", "drop",
|
||||
|
||||
Reference in new issue
Block a user