mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
feat: 修复图片url, 开始弹幕机编写
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { isDarkMode } from '@/Utils'
|
||||
import { ThemeType } from '@/api/api-models'
|
||||
import { AuthInfo } from '@/data/DanmakuClients/OpenLiveClient'
|
||||
import { useDanmakuClient } from '@/store/useDanmakuClient'
|
||||
import { useDanmakuClient } from '@/store/useDanmakuClient';
|
||||
import { Lottery24Filled, PeopleQueue24Filled, TabletSpeaker24Filled } from '@vicons/fluent'
|
||||
import { Moon, MusicalNote, Sunny } from '@vicons/ionicons5'
|
||||
import { useElementSize, useStorage } from '@vueuse/core'
|
||||
@@ -39,7 +39,7 @@ const sider = ref()
|
||||
const { width } = useElementSize(sider)
|
||||
|
||||
const authInfo = ref<AuthInfo>()
|
||||
const danmakuClient = await useDanmakuClient()
|
||||
const danmakuClient = await useDanmakuClient().initOpenlive();
|
||||
|
||||
const menuOptions = [
|
||||
{
|
||||
@@ -111,7 +111,7 @@ const danmakuClientError = ref<string>()
|
||||
onMounted(async () => {
|
||||
authInfo.value = route.query as unknown as AuthInfo
|
||||
if (authInfo.value?.Code) {
|
||||
danmakuClient.initClient(authInfo.value)
|
||||
danmakuClient.initOpenlive(authInfo.value)
|
||||
} else {
|
||||
message.error('你不是从幻星平台访问此页面, 或未提供对应参数, 无法使用此功能')
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import { useAccount } from '@/api/account';
|
||||
import { BaseRTCClient, MasterRTCClient, SlaveRTCClient } from '@/data/RTCClient';
|
||||
import { useDanmakuClient } from '@/store/useDanmakuClient';
|
||||
import { useWebRTC } from '@/store/useRTC';
|
||||
import { NButton, NInput, NSpin } from 'naive-ui';
|
||||
import { computed, Ref, ref } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import DanmujiOBS from './obs/DanmujiOBS.vue';
|
||||
import { useDanmakuClient } from '@/store/useDanmakuClient';
|
||||
|
||||
const target = ref('');
|
||||
const accountInfo = useAccount()
|
||||
@@ -16,7 +16,7 @@ const inputMsg = ref('')
|
||||
const isMaster = computed(() => {
|
||||
return route.query.slave == null || route.query.slave == undefined
|
||||
})
|
||||
const dc = await useDanmakuClient().initClient()
|
||||
const dc = useDanmakuClient()
|
||||
const customCss = ref('')
|
||||
|
||||
let rtc= useWebRTC()
|
||||
@@ -24,7 +24,7 @@ const danmujiRef = ref()
|
||||
|
||||
async function mount() {
|
||||
rtc.Init(isMaster.value ? 'master' : 'slave')
|
||||
dc.initClient()
|
||||
dc.initOpenlive()
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { NAlert } from 'naive-ui'
|
||||
import OpenLottery from '../open_live/OpenLottery.vue'
|
||||
|
||||
const accountInfo = useAccount()
|
||||
const client = await useDanmakuClient().initClient()
|
||||
const client = await useDanmakuClient().initOpenlive()
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { NAlert } from 'naive-ui'
|
||||
import MusicRequest from '../open_live/MusicRequest.vue'
|
||||
|
||||
const accountInfo = useAccount()
|
||||
const client = await useDanmakuClient().initClient()
|
||||
const client = await useDanmakuClient().initOpenlive()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -49,7 +49,7 @@ const { customCss, isOBS = true } = defineProps<{
|
||||
}>()
|
||||
|
||||
const messageRender = ref()
|
||||
const client = await useDanmakuClient().initClient()
|
||||
const client = await useDanmakuClient().initOpenlive()
|
||||
const pronunciationConverter = new pronunciation.PronunciationConverter()
|
||||
const accountInfo = useAccount()
|
||||
const route = useRoute()
|
||||
|
||||
@@ -104,7 +104,7 @@ const route = useRoute()
|
||||
const accountInfo = useAccount()
|
||||
const message = useMessage()
|
||||
const notice = useNotification()
|
||||
const client = await useDanmakuClient().initClient()
|
||||
const client = await useDanmakuClient().initOpenlive()
|
||||
|
||||
const isWarnMessageAutoClose = useStorage('SongRequest.Settings.WarnMessageAutoClose', false)
|
||||
const volumn = useStorage('Settings.Volumn', 0.5)
|
||||
|
||||
@@ -64,7 +64,7 @@ const settings = computed(() => {
|
||||
})
|
||||
const cooldown = useStorage<{ [id: number]: number }>('Setting.MusicRequest.Cooldown', {})
|
||||
const musicRquestStore = useMusicRequestProvider()
|
||||
const client = await useDanmakuClient().initClient()
|
||||
const client = await useDanmakuClient().initOpenlive()
|
||||
|
||||
const props = defineProps<{
|
||||
roomInfo?: OpenLiveInfo
|
||||
|
||||
@@ -84,7 +84,7 @@ const route = useRoute()
|
||||
const message = useMessage()
|
||||
const accountInfo = useAccount()
|
||||
const notification = useNotification()
|
||||
const client = await useDanmakuClient().initClient()
|
||||
const client = await useDanmakuClient().initOpenlive()
|
||||
|
||||
const originUsers = ref<OpenLiveLotteryUserInfo[]>([])
|
||||
const currentUsers = ref<OpenLiveLotteryUserInfo[]>([])
|
||||
|
||||
@@ -113,7 +113,7 @@ const route = useRoute()
|
||||
const accountInfo = useAccount()
|
||||
const message = useMessage()
|
||||
const notice = useNotification()
|
||||
const client = await useDanmakuClient().initClient()
|
||||
const client = await useDanmakuClient().initOpenlive()
|
||||
|
||||
const isWarnMessageAutoClose = useStorage('Queue.Settings.WarnMessageAutoClose', false)
|
||||
const isReverse = useStorage('Queue.Settings.Reverse', false)
|
||||
|
||||
@@ -73,7 +73,7 @@ type SpeechInfo = {
|
||||
const accountInfo = useAccount()
|
||||
const message = useMessage()
|
||||
const route = useRoute()
|
||||
const client = await useDanmakuClient().initClient()
|
||||
const client = await useDanmakuClient().initOpenlive()
|
||||
const settings = useStorage<SpeechSettings>('Setting.Speech', {
|
||||
speechInfo: {
|
||||
volume: 1,
|
||||
|
||||
Reference in New Issue
Block a user