-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
304 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/Components/ChatComponent/ChatMainComponent/ChatMainComponent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/Components/ChatComponent/ChatMainComponent/ChatMessages/ChatMessages.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
import { message } from 'antd'; | ||
import message from 'antd/lib/message'; | ||
|
||
const vh = window.innerHeight / 100; | ||
|
||
message.config({ | ||
maxCount: 2, | ||
top: 10 * vh, | ||
duration: 1, | ||
maxCount: 2, | ||
top: 10 * vh, | ||
duration: 1, | ||
}); | ||
|
||
export { message as globalMessage }; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 14 additions & 15 deletions
29
src/Components/Meeting/MeetingRoom/ToolBar/ToolButton/ToolButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
import React, { ReactNode } from "react"; | ||
|
||
import React, { ReactNode } from 'react'; | ||
|
||
interface ToolButtonProps { | ||
onClick: React.MouseEventHandler<HTMLDivElement>; | ||
title: string; | ||
icon: ReactNode; | ||
text: string; | ||
onClick: React.MouseEventHandler<HTMLDivElement>; | ||
title: string; | ||
icon: ReactNode; | ||
text: string; | ||
} | ||
export default function ToolButton(props: ToolButtonProps) { | ||
return ( | ||
<> | ||
<div className='mettingRoom_toolButton' onClick={props.onClick} title={props.title}> | ||
<div className='mettingRoom_toolButton_icon'>{props.icon}</div> | ||
<div className='mettingRoom_toolButton_text'>{props.text}</div> | ||
</div> | ||
</> | ||
); | ||
} | ||
return ( | ||
<> | ||
<div className='mettingRoom_toolButton' onClick={props.onClick} title={props.title}> | ||
<div className='mettingRoom_toolButton_icon'>{props.icon}</div> | ||
<div className='mettingRoom_toolButton_text'>{props.text}</div> | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,48 @@ | ||
import { CopyOutlined, DisconnectOutlined, LeftOutlined } from "@ant-design/icons"; | ||
import { Button, Modal } from "antd"; | ||
import { globalMessage } from "Components/GlobalMessage/GlobalMessage"; | ||
import React, { useRef } from "react"; | ||
import { CopyOutlined, DisconnectOutlined, LeftOutlined } from '@ant-design/icons'; | ||
import Button from 'antd/lib/button'; | ||
import Modal from 'antd/lib/modal'; | ||
import { globalMessage } from 'Components/GlobalMessage/GlobalMessage'; | ||
import React, { useRef } from 'react'; | ||
|
||
interface TopbarProps { | ||
leaveMeeting: Function, | ||
meetingId: string | ||
leaveMeeting: Function; | ||
meetingId: string; | ||
} | ||
|
||
export default function Topbar(props: TopbarProps) { | ||
const meetingIdRef = useRef<HTMLSpanElement>(null); | ||
const meetingIdRef = useRef<HTMLSpanElement>(null); | ||
|
||
return ( | ||
<div className='topbar'> | ||
<Button | ||
type='text' | ||
className='btn' | ||
onClick={() => { | ||
Modal.confirm({ | ||
title: '退出会议', | ||
icon: <DisconnectOutlined />, | ||
content: '您确认要退出会议吗?', | ||
onOk: () => { | ||
props.leaveMeeting(); | ||
}, | ||
}); | ||
}}> | ||
<LeftOutlined /> | ||
退出会议 | ||
</Button> | ||
<span ref={meetingIdRef}>{props.meetingId}</span> | ||
<Button | ||
type='text' | ||
id='copyBtn' | ||
title='复制会议号' | ||
onClick={() => { | ||
const clipBoard = navigator.clipboard; | ||
clipBoard.writeText(props.meetingId).then(() => { | ||
globalMessage.success('会议号复制成功'); | ||
}); | ||
}}> | ||
<CopyOutlined /> | ||
</Button> | ||
</div> | ||
) | ||
} | ||
return ( | ||
<div className='topbar'> | ||
<Button | ||
type='text' | ||
className='btn' | ||
onClick={() => { | ||
Modal.confirm({ | ||
title: '退出会议', | ||
icon: <DisconnectOutlined />, | ||
content: '您确认要退出会议吗?', | ||
onOk: () => { | ||
props.leaveMeeting(); | ||
}, | ||
}); | ||
}}> | ||
<LeftOutlined /> | ||
退出会议 | ||
</Button> | ||
<span ref={meetingIdRef}>{props.meetingId}</span> | ||
<Button | ||
type='text' | ||
id='copyBtn' | ||
title='复制会议号' | ||
onClick={() => { | ||
const clipBoard = navigator.clipboard; | ||
clipBoard.writeText(props.meetingId).then(() => { | ||
globalMessage.success('会议号复制成功'); | ||
}); | ||
}}> | ||
<CopyOutlined /> | ||
</Button> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
import { Checkbox } from 'antd'; | ||
import Checkbox from 'antd/lib/checkbox'; | ||
import React, { useState } from 'react'; | ||
|
||
export default function MeetingStatus() { | ||
const [autoOpenMicroPhone, setAutoOpenMicroPhone] = useState( | ||
localStorage.getItem('autoOpenMicroPhone') === 'true' | ||
); | ||
const [autoOpenCamera, setAutoOpenCamera] = useState( | ||
localStorage.getItem('autoOpenCamera') === 'true' | ||
); | ||
const [autoOpenMicroPhone, setAutoOpenMicroPhone] = useState( | ||
localStorage.getItem('autoOpenMicroPhone') === 'true' | ||
); | ||
const [autoOpenCamera, setAutoOpenCamera] = useState( | ||
localStorage.getItem('autoOpenCamera') === 'true' | ||
); | ||
|
||
return ( | ||
<> | ||
<Checkbox | ||
checked={autoOpenMicroPhone} | ||
onChange={(e) => { | ||
setAutoOpenMicroPhone(e.target.checked); | ||
localStorage.setItem('autoOpenMicroPhone', `${e.target.checked}`); | ||
}}> | ||
与会时打开麦克风 | ||
</Checkbox> | ||
<Checkbox | ||
checked={autoOpenCamera} | ||
onChange={(e) => { | ||
setAutoOpenCamera(e.target.checked); | ||
localStorage.setItem('autoOpenCamera', `${e.target.checked}`); | ||
}}> | ||
与会时打开摄像头 | ||
</Checkbox> | ||
</> | ||
); | ||
return ( | ||
<> | ||
<Checkbox | ||
checked={autoOpenMicroPhone} | ||
onChange={(e) => { | ||
setAutoOpenMicroPhone(e.target.checked); | ||
localStorage.setItem('autoOpenMicroPhone', `${e.target.checked}`); | ||
}}> | ||
与会时打开麦克风 | ||
</Checkbox> | ||
<Checkbox | ||
checked={autoOpenCamera} | ||
onChange={(e) => { | ||
setAutoOpenCamera(e.target.checked); | ||
localStorage.setItem('autoOpenCamera', `${e.target.checked}`); | ||
}}> | ||
与会时打开摄像头 | ||
</Checkbox> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.