mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat(kaak): match channel sidebar and audio dock reference
This commit is contained in:
1 parent
b13bdf1eb2
commit
96d2ebae01
17 files changed
+847
-135
No files matched your search
@@ -981,6 +981,7 @@ import VoiceMemberCards from "../components/web-client/VoiceMemberCards.vue";
|
||||
import VoicePerformancePanel from "../components/web-client/VoicePerformancePanel.vue";
|
||||
import VoiceChannelTree from "../components/web-client/VoiceChannelTree.vue";
|
||||
import VoiceServerSwitcher from "../components/web-client/VoiceServerSwitcher.vue";
|
||||
import VoiceServerHeader from "../components/web-client/VoiceServerHeader.vue";
|
||||
import ScreenShareSettingsDialog from "../components/web-client/ScreenShareSettingsDialog.vue";
|
||||
import ScreenSharePlayer from "../components/web-client/ScreenSharePlayer.vue";
|
||||
import AudioDock from "../components/web-client/AudioDock.vue";
|
||||
@@ -1121,7 +1122,8 @@ const serverPassword = ref("");
|
||||
const rememberIdentity = ref(localStorage.getItem("webspeak:remember-identity") !== "0");
|
||||
const accelerationRelayId = ref("");
|
||||
const browserError = ref("");
|
||||
const memberQuery = ref("");
|
||||
const memberQuery = ref("");
|
||||
const channelTreeSearchQuery = ref("");
|
||||
const selectedChannelId = ref("");
|
||||
const settingsOpen = ref(false);
|
||||
const favoriteServerDialogOpen = ref(false);
|
||||
@@ -1779,9 +1781,18 @@ const skinPluginWidgets = {
|
||||
servers: skinPluginQuickList.value,
|
||||
onSwitchServer: switchQuickServerByOpaqueId,
|
||||
}),
|
||||
"voice.channel-tree": () => h(VoiceChannelTree, {
|
||||
"voice.server-header": () => h(VoiceServerHeader, {
|
||||
serverLabel: currentServerDisplayName.value,
|
||||
connectionState: voiceState.connected ? "connected" : voiceState.connecting || voiceState.reconnecting ? "connecting" : "disconnected",
|
||||
servers: skinPluginQuickList.value,
|
||||
onSwitchServer: switchQuickServerByOpaqueId,
|
||||
"onUpdate:query": (value: string) => { channelTreeSearchQuery.value = value; },
|
||||
}),
|
||||
"voice.channel-tree": (options?: SkinPluginWidgetOptions) => h(VoiceChannelTree, {
|
||||
channels: channelTree.value,
|
||||
currentChannelId: currentChannel.value?.id,
|
||||
query: channelTreeSearchQuery.value,
|
||||
layout: options?.layout === "server-sidebar" ? "server-sidebar" : "default",
|
||||
avatarStyle,
|
||||
avatarInitial,
|
||||
isSpeaking,
|
||||
@@ -1857,10 +1868,10 @@ const skinPluginWidgets = {
|
||||
}, [h(Icon, { name: "music", size: 18 })]),
|
||||
] : []),
|
||||
])
|
||||
: h(AudioDock, {
|
||||
: h(AudioDock, {
|
||||
model: audioDockState,
|
||||
controls: audioControls,
|
||||
layout: options?.layout,
|
||||
layout: options?.layout === "room-panel" ? "room-panel" : "default",
|
||||
t,
|
||||
rangeStyle,
|
||||
onSettings: () => { settingsOpen.value = true; },
|
||||
|
||||
Reference in new issue
Block a user