重构多个组件以优化代码格式和可读性,删除不必要的文件,更新类型定义,添加数据分析路由

This commit is contained in:
2025-03-27 18:37:01 +08:00
parent 8bcf201fd4
commit 24f1c413c4
115 changed files with 10879 additions and 2691 deletions

View File

@@ -1,24 +1,21 @@
<script setup lang="ts">
import { useDanmakuClient } from '@/store/useDanmakuClient';
import { computed, onMounted, onUnmounted, ref } from 'vue';
import MessageRender from './blivechat/MessageRender.vue';
import { useDanmakuClient } from '@/store/useDanmakuClient';
// @ts-ignore
import * as constants from './blivechat/constants';
// @ts-ignore
import * as chatModels from '../../data/chat/models';
import * as pronunciation from './blivechat/utils/pronunciation';
// @ts-ignore
import * as pronunciation from './blivechat/utils/pronunciation'
// @ts-ignore
import * as trie from './blivechat/utils/trie'
import { EventModel } from '@/api/api-models';
import { DownloadConfig, useAccount } from '@/api/account';
import { useWebRTC } from '@/store/useRTC';
import { QueryGetAPI } from '@/api/query';
import { OPEN_LIVE_API_URL, VTSURU_API_URL } from '@/data/constants';
import { CustomChart } from 'echarts/charts';
import { useRoute } from 'vue-router';
import { NAlert } from 'naive-ui';
import { VTSURU_API_URL } from '@/data/constants';
import { DanmakuInfo, GiftInfo, GuardInfo, SCInfo } from '@/data/DanmakuClients/OpenLiveClient';
import { useWebRTC } from '@/store/useRTC';
import { NAlert } from 'naive-ui';
import { useRoute } from 'vue-router';
// @ts-ignore
import * as trie from './blivechat/utils/trie';
export interface DanmujiConfig {
minGiftPrice: number,
@@ -411,7 +408,17 @@ onUnmounted(() => {
</script>
<template>
<NAlert v-if="!$route.query.token && isOBS" type="error"> 未携带token参数 </NAlert>
<MessageRender v-else ref="messageRender" :customCss="customCss" :showGiftName="config.showGiftName"
style="height: 100%; width: 100%" />
<NAlert
v-if="!$route.query.token && isOBS"
type="error"
>
未携带token参数
</NAlert>
<MessageRender
v-else
ref="messageRender"
:custom-css="customCss"
:show-gift-name="config.showGiftName"
style="height: 100%; width: 100%"
/>
</template>