feat: add Vite configuration with custom plugins and server settings
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
Icon,
|
||||
IconButton,
|
||||
Icons,
|
||||
Input,
|
||||
Menu,
|
||||
MenuItem,
|
||||
PopOut,
|
||||
@@ -450,6 +451,7 @@ export function Audio({ requestClose }: AudioProps) {
|
||||
const [settings, setSettings] = useState<AudioSettings>(loadAudioSettings);
|
||||
const [permissionStatus, setPermissionStatus] = useState<'granted' | 'denied' | 'prompt'>('prompt');
|
||||
const [showRemoteCursor, setShowRemoteCursor] = useSetting(settingsAtom, 'showRemoteCursor');
|
||||
const [livekitServiceUrl, setLivekitServiceUrl] = useSetting(settingsAtom, 'livekitServiceUrl');
|
||||
|
||||
useEffect(() => {
|
||||
const loadDevices = async () => {
|
||||
@@ -813,6 +815,33 @@ export function Audio({ requestClose }: AudioProps) {
|
||||
/>
|
||||
</SequenceCard>
|
||||
|
||||
<SequenceCard
|
||||
className={SequenceCardStyle}
|
||||
variant="SurfaceVariant"
|
||||
direction="Column"
|
||||
gap="400"
|
||||
>
|
||||
<Header size="400">
|
||||
<Box gap="200" grow="Yes">
|
||||
<Text size="H4">LiveKit Configuration</Text>
|
||||
</Box>
|
||||
</Header>
|
||||
<SettingTile
|
||||
title="LiveKit Service URL"
|
||||
description="Custom LiveKit JWT service endpoint for Matrix RTC calls. Leave empty to use the default configured server."
|
||||
after={
|
||||
<Input
|
||||
size="300"
|
||||
variant="Background"
|
||||
value={livekitServiceUrl ?? ''}
|
||||
onChange={(e) => setLivekitServiceUrl(e.target.value || undefined)}
|
||||
placeholder="https://example.com/livekit/jwt"
|
||||
style={{ minWidth: toRem(300) }}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
</SequenceCard>
|
||||
|
||||
<SequenceCard
|
||||
className={SequenceCardStyle}
|
||||
variant="SurfaceVariant"
|
||||
|
||||
Reference in New Issue
Block a user