Skip to content

Commit 79a5b76

Browse files
committed
feat: add <PreJoinView /> for voice channel
1 parent e828c41 commit 79a5b76

File tree

11 files changed

+646
-3
lines changed

11 files changed

+646
-3
lines changed

client/web/plugins/com.msgbyte.mdpanel/src/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ const PLUGIN_NAME = 'Markdown Panel';
77

88
console.log(`Plugin ${PLUGIN_NAME}(${PLUGIN_ID}) is loaded`);
99

10+
/**
11+
* @note 应该用 PLUGIN_ID 而不是 PLUGIN_NAME, 后续需要逐步迁移
12+
*/
1013
regGroupPanel({
1114
name: `${PLUGIN_NAME}/customwebpanel`,
1215
label: Translate.name,

client/web/src/plugin/component/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export { Link } from 'react-router-dom';
3535
export { MessageAckContainer } from '@/components/ChatBox/ChatMessageList/MessageAckContainer';
3636
export { BaseChatInputButton } from '@/components/ChatBox/ChatInputBox/BaseChatInputButton';
3737
export { useChatInputActionContext } from '@/components/ChatBox/ChatInputBox/context';
38+
export { GroupPanelContainer } from '@/components/Panel/group/shared/GroupPanelContainer';
3839
export { GroupExtraDataPanel } from '@/components/Panel/group/GroupExtraDataPanel';
3940
export { Image } from '@/components/Image';
4041
export { IconBtn } from '@/components/IconBtn';

client/web/tailchat.d.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ declare module '@capital/common' {
153153
deps?: React.DependencyList
154154
) => [{ loading: boolean; value?: any }, T];
155155

156-
export const useEvent: any;
156+
export const useEvent: <T extends (this: any, ...args: any[]) => any>(
157+
fn: T
158+
) => T;
157159

158160
export const uploadFile: any;
159161

@@ -204,7 +206,12 @@ declare module '@capital/common' {
204206

205207
export const getTextColorHex: any;
206208

207-
export const useCurrentUserInfo: any;
209+
export const useCurrentUserInfo: () => {
210+
email?: string;
211+
nickname?: string;
212+
discriminator: string;
213+
avatar?: string;
214+
};
208215

209216
export const createPluginRequest: (pluginName: string) => {
210217
get: (actionName: string, config?: any) => Promise<any>;

pnpm-lock.yaml

Lines changed: 213 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/plugins/com.msgbyte.livekit/web/plugins/com.msgbyte.livekit/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
"scripts": {
88
"sync:declaration": "tailchat declaration github"
99
},
10-
"dependencies": {},
10+
"dependencies": {
11+
"@livekit/components-core": "^0.6.11",
12+
"@livekit/components-react": "^1.0.8",
13+
"@livekit/components-styles": "^1.0.4",
14+
"livekit-client": "^1.12.1"
15+
},
1116
"devDependencies": {
1217
"@types/styled-components": "^5.1.26",
1318
"react": "18.2.0",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import styled from 'styled-components';
2+
import '@livekit/components-styles';
3+
4+
export const LivekitContainer = styled.div.attrs({
5+
'data-lk-theme': 'default',
6+
})`
7+
height: 100%;
8+
background-color: var(--lk-bg);
9+
`;

0 commit comments

Comments
 (0)