-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathWebrtcSettingsModal.vue
More file actions
78 lines (68 loc) · 1.94 KB
/
Copy pathWebrtcSettingsModal.vue
File metadata and controls
78 lines (68 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<template>
<j-modal
size="lg"
:open="modalStore.showWebrtcSettings"
@toggle="(e: any) => (modalStore.showWebrtcSettings = e.target.open)"
>
<div class="wrapper">
<div class="menu">
<j-menu-group-item title="Settings">
<j-menu-item :selected="currentTab === 'voice-video'" @click="currentTab = 'voice-video'">
Voice & Video
</j-menu-item>
<j-menu-item :selected="currentTab === 'transcription'" @click="currentTab = 'transcription'">
Transcription
</j-menu-item>
<!-- <j-menu-item :selected="currentTab === 'debug'" @click="currentTab = 'debug'"> Debug </j-menu-item> -->
</j-menu-group-item>
</div>
<div class="contents">
<VoiceVideo v-if="currentTab === 'voice-video'" />
<Transcription v-if="currentTab === 'transcription'" />
<Debug v-if="currentTab === 'debug'" />
</div>
</div>
</j-modal>
</template>
<script setup lang="ts">
import { useModalStore } from '@/stores';
import { ref } from 'vue';
import Debug from './Debug.vue';
import Transcription from './Transcription.vue';
import VoiceVideo from './VoiceVideo.vue';
const modalStore = useModalStore();
const currentTab = ref('voice-video');
</script>
<style lang="scss" scoped>
.wrapper {
display: grid;
gap: var(--j-space-200);
}
@media screen and (min-width: calc($breakpoint-mobile + 1px)) {
.wrapper {
grid-template-columns: 1fr 3fr;
gap: var(--j-space-300);
}
}
.menu {
display: block;
padding: var(--j-space-800) 0 var(--j-space-400) 0;
background: var(--j-color-ui-50);
}
@media screen and (min-width: calc($breakpoint-mobile + 1px)) {
.menu {
padding: var(--j-space-400) 0;
}
}
.contents {
display: flex;
flex-direction: column;
min-height: 30rem;
padding: var(--j-space-400);
}
@media screen and (min-width: calc($breakpoint-mobile + 1px)) {
.contents {
padding: var(--j-space-500);
}
}
</style>