-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: back title * feat: 本地联调 * feat: 聊天室初始化,以及联动query * feat: useSocket,online users count * feat: 调整useSocket、useCreateRoom(优化hook) * feat: 拆分roomInfo、roomConnect 的 hook * feat: chat room 基本布局 * feat: chat * fix: 样式 + emoji * feat: 拖拽改变元素大小的hook,一些样式fix * feat: video chat init * feat: 调试摄像头、audio信息 * feat: video的一些设置,代码优化 * fix: 样式 * feat: 视频聊天的连接测试 * feat: https * feat: 多人视频通话,待优化整理代码 * feat: 代码优化、边界处理 * feat: 优化一轮使用体验 * feat: 构建相关
- Loading branch information
Showing
77 changed files
with
3,483 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,5 @@ package-lock.json | |
|
||
|
||
docker/mysql/data/* | ||
|
||
client_dist |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
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,8 +1,20 @@ | ||
<script lang="ts" setup> | ||
import Layout from '@/layout/index.vue'; | ||
import ErrorBoundary from '@/components/error-boundary/index.vue'; | ||
import { useErrorCaptured } from '@/hooks'; | ||
const errors = useErrorCaptured(); | ||
</script> | ||
|
||
<!-- 这里后面可以加 provider、区分登录和未登录页面 --> | ||
<template> | ||
<Layout /> | ||
<Suspense> | ||
<Layout /> | ||
<template v-if="errors.length" #fallback> | ||
<ErrorBoundary | ||
class="h-screen" | ||
:tips-list="['服务器开小差了,请联系管理员']" | ||
/> | ||
</template> | ||
</Suspense> | ||
</template> |
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 +1,21 @@ | ||
@import './tailwindcss'; | ||
|
||
/* width */ | ||
::-webkit-scrollbar { | ||
width: 4px; | ||
} | ||
|
||
/* Track */ | ||
::-webkit-scrollbar-track { | ||
background: #f1f1f1; | ||
} | ||
|
||
/* Handle */ | ||
::-webkit-scrollbar-thumb { | ||
background: #888; | ||
} | ||
|
||
/* Handle on hover */ | ||
::-webkit-scrollbar-thumb:hover { | ||
background: #555; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions
19
client/packages/rtc-web/src/components/back/back-previous-level.vue
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<script lang="ts" setup> | ||
defineOptions({ | ||
name: 'BackPreviousLevel', | ||
}); | ||
const emits = defineEmits(['back']); | ||
</script> | ||
|
||
<template> | ||
<div class="flex items-center"> | ||
<button | ||
class="btn-circle btn border-0 bg-transparent" | ||
@click="emits('back')" | ||
> | ||
<svg-icon name="back" class="h-6 w-6" /> | ||
</button> | ||
<slot></slot> | ||
</div> | ||
</template> |
26 changes: 26 additions & 0 deletions
26
client/packages/rtc-web/src/components/back/back-title.vue
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script lang="ts" setup> | ||
import { PropType } from 'vue'; | ||
defineOptions({ | ||
name: 'BackTitle', | ||
}); | ||
const props = defineProps({ | ||
svgName: { | ||
type: String as PropType<string>, | ||
required: true, | ||
}, | ||
title: { | ||
type: String as PropType<string>, | ||
default: '', | ||
}, | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div class="flex items-center"> | ||
<!-- <svg-icon :name="props.svgName" class="mr-1 h-8 w-8"></svg-icon> --> | ||
<div v-if="props.title">{{ props.title }}</div> | ||
<slot v-else></slot> | ||
</div> | ||
</template> |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default as BackPreviousLevel } from './back-previous-level.vue'; | ||
export { default as BackTitle } from './back-title.vue'; |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<script lang="ts" setup> | ||
import { useVModel } from '@vueuse/core'; | ||
import { PropType } from 'vue'; | ||
defineOptions({ | ||
name: 'DropDown', | ||
}); | ||
const props = defineProps({ | ||
visible: { | ||
type: Boolean as PropType<boolean>, | ||
default: false, | ||
}, | ||
}); | ||
const emits = defineEmits(['update:visible']); | ||
const visibleVm = useVModel(props, 'visible', emits); | ||
</script> | ||
|
||
<template> | ||
<div class="dropdown-top dropdown-end dropdown"> | ||
<label tabindex="0"> | ||
<slot></slot> | ||
</label> | ||
<div | ||
v-if="visibleVm" | ||
tabindex="0" | ||
class="dropdown-content menu rounded-box z-[1] bg-base-100 shadow" | ||
> | ||
<slot name="content"></slot> | ||
</div> | ||
</div> | ||
</template> |
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,3 +1,5 @@ | ||
export { default as SvgIcon } from './svg-icon.vue'; | ||
export { default as NavIcons } from './nav-icons.vue'; | ||
export { default as Modal } from './modal.vue'; | ||
export { default as Dropdown } from './dropdown.vue'; | ||
export { default as ToastBox } from './toast.vue'; |
Oops, something went wrong.