简单渲染wyxd,未整合

This commit is contained in:
2026-07-24 09:18:10 +08:00
parent 9ace485cbd
commit dc4f6b2132
11 changed files with 7420 additions and 1435 deletions

View File

@@ -78,16 +78,6 @@
}
}
},
{
"path" : "pages/text/text",
"style" : {
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/text/text2",
"style" : {}
},
{
"path": "pages/CloudDatabase/CloudDatabase",
"style": {
@@ -111,6 +101,18 @@
"softinputMode": "adjustResize"
}
}
},
{
"path" : "pages/text/text",
"style" : {
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/text/IntuitiveAipptViewer",
"style" : {
"navigationBarTitleText" : ""
}
}
],
"uniIdRouter" : {},

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -1,538 +0,0 @@
<template>
<view class="container">
<!-- 连接状态卡片 -->
<view class="status-card">
<text class="status-label">连接状态</text>
<view class="status-value" :class="connectionStatusClass">
<text>{{ socketStore.getStatusText() }}</text>
</view>
<view class="status-info" v-if="socketStore.reconnectAttempts > 0">
<text class="reconnect-info">重连次数: {{ socketStore.reconnectAttempts }}</text>
</view>
</view>
<!-- 配置区域 -->
<view class="config-card">
<text class="section-title">连接配置</text>
<view class="input-group">
<text class="input-label">Token</text>
<input class="input-field" v-model="config.token" placeholder="请输入Token" />
</view>
<view class="input-group">
<text class="input-label">Conversation ID</text>
<input class="input-field" v-model="config.conversationId" placeholder="请输入会话ID(可选)" />
</view>
</view>
<!-- 连接控制 -->
<view class="control-card">
<button class="btn btn-primary" :disabled="socketStore.isConnected || socketStore.isConnecting"
@click="handleConnect">
{{ socketStore.isConnecting ? '连接中...' : '连接' }}
</button>
<button class="btn btn-danger" :disabled="!socketStore.isConnected" @click="handleDisconnect">
断开
</button>
<button class="btn btn-secondary" @click="handleSendPing" :disabled="!socketStore.isConnected">
Ping
</button>
</view>
<!-- 发送消息区域 -->
<view class="send-card">
<text class="section-title">发送消息</text>
<view class="send-input-wrapper">
<textarea class="send-input" v-model="sendMessage" placeholder="输入要发送的消息(JSON格式)"
:disabled="!socketStore.isConnected"></textarea>
<view class="send-buttons">
<button class="btn btn-primary btn-small"
:disabled="!socketStore.isConnected || !sendMessage.trim()" @click="handleSend">
发送
</button>
<button class="btn btn-outline btn-small" :disabled="!sendMessage.trim()" @click="formatJson">
格式化
</button>
</view>
</view>
<!-- 快捷消息 -->
<view class="quick-messages">
<text class="quick-label">快捷消息:</text>
<view class="quick-btns">
<button v-for="item in quickMessages" :key="item.label" class="quick-btn"
:disabled="!socketStore.isConnected" @click="sendQuickMessage(item.data)">
{{ item.label }}
</button>
</view>
</view>
</view>
<!-- 日志区域 -->
<view class="log-card">
<view class="log-header">
<view class="log-title-wrapper">
<text class="section-title">日志</text>
<text class="log-count">({{ socketStore.logs.length }})</text>
</view>
<view class="log-actions">
<button class="btn btn-small btn-secondary" @click="socketStore.clearLogs">清空</button>
</view>
</view>
<scroll-view class="log-list" scroll-y @scrolltoupper="loadMoreLogs">
<view v-for="(log, index) in socketStore.logs" :key="index" class="log-item" :class="'log-' + log.type">
<text class="log-time">{{ log.time }}</text>
<text class="log-content">{{ log.content }}</text>
</view>
</scroll-view>
</view>
</view>
</template>
<script setup>
import {
ref,
computed,
onMounted,
onUnmounted,
watch
} from 'vue'
import {
useSocketStore
} from '@/stores/socket.js'
import {
getToken,
getTaskCallId,
getCurrentSessionId
} from '@/utils/user-info.js'
// Store
const socketStore = useSocketStore()
// 响应式数据
const config = ref({
token: getToken(),
conversationId: getCurrentSessionId()
})
const sendMessage = ref('')
const quickMessages = ref([{
label: 'Ping',
data: {
ws_event: 'ping'
}
},
{
label: '认证',
data: {
ws_event: 'auth',
data: {
token: '',
conversation_id: ''
}
}
},
{
label: '测试消息',
data: {
ws_event: 'message',
data: {
task_call_id: getTaskCallId(),
token: getToken(),
conversation_id: getCurrentSessionId()
}
}
}
])
// 计算属性
const connectionStatusClass = computed(() => {
const status = socketStore.connectionStatus
return {
'status-connected': status === 'connected',
'status-connecting': status === 'connecting',
'status-error': status === 'error',
'status-disconnected': status === 'disconnected'
}
})
// 方法
const handleConnect = () => {
if (!config.value.token) {
uni.showToast({
title: '请输入Token',
icon: 'none'
})
return
}
socketStore.connect({
token: config.value.token,
conversationId: getCurrentSessionId()
})
}
const handleDisconnect = () => {
socketStore.disconnect()
}
const handleSendPing = async () => {
try {
await socketStore.sendPing()
} catch (e) {
uni.showToast({
title: '发送失败',
icon: 'none'
})
}
}
const handleSend = async () => {
if (!sendMessage.value.trim()) return
try {
const messageData = {
ws_event: 'message',
data: {
task_call_id: getTaskCallId(),
result: {
tools: []
}
}
}
await socketStore.send(messageData)
sendMessage.value = ''
} catch (e) {
uni.showToast({
title: '发送失败',
icon: 'none'
})
}
}
const sendQuickMessage = async (template) => {
// console.log('getCurrentSessionId:', getCurrentSessionId())
const messageData = {
ws_event: 'message',
data: {
task_call_id: getTaskCallId(),
token: getToken(),
conversation_id: getCurrentSessionId()
}
}
try {
await socketStore.send(messageData)
} catch (e) {
uni.showToast({
title: '发送失败',
icon: 'none'
})
}
}
const formatJson = () => {
if (!sendMessage.value.trim()) return
try {
const obj = JSON.parse(sendMessage.value)
sendMessage.value = JSON.stringify(obj, null, 2)
} catch {
uni.showToast({
title: '不是有效的JSON',
icon: 'none'
})
}
}
const loadMoreLogs = () => {
// 预留扩展
}
watch(() => socketStore.isDisconnected, (newVal) => {
if (newVal && socketStore.messageString) {
console.log(socketStore.messageString);
}
})
// 生命周期
onMounted(() => {
socketStore.addLog('info', '=== Socket测试页面 ===')
socketStore.addLog('info', '页面已加载')
if (socketStore.isConnected) {
socketStore.addLog('info', '当前已处于连接状态')
}
})
onUnmounted(() => {
socketStore.addLog('info', '页面卸载')
// 注意这里不主动断开连接由App级别管理
})
</script>
<style scoped>
.container {
padding: 20rpx;
background-color: #f5f5f5;
min-height: 100vh;
}
.status-card,
.config-card,
.control-card,
.send-card,
.log-card {
background-color: #fff;
border-radius: 16rpx;
padding: 30rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
}
.status-label {
font-size: 28rpx;
color: #666;
margin-bottom: 16rpx;
}
.status-value {
display: inline-block;
padding: 12rpx 32rpx;
border-radius: 8rpx;
font-size: 28rpx;
font-weight: 500;
}
.status-connected {
background-color: #e6f7e6;
color: #52c41a;
}
.status-connecting {
background-color: #fff7e6;
color: #faad14;
}
.status-disconnected {
background-color: #f5f5f5;
color: #999;
}
.status-error {
background-color: #fff1f0;
color: #ff4d4f;
}
.status-info {
margin-top: 16rpx;
}
.reconnect-info {
font-size: 24rpx;
color: #faad14;
}
.section-title {
font-size: 32rpx;
font-weight: 600;
color: #333;
margin-bottom: 24rpx;
display: block;
}
.input-group {
margin-bottom: 24rpx;
}
.input-label {
font-size: 28rpx;
color: #666;
margin-bottom: 12rpx;
display: block;
}
.input-field {
border: 2rpx solid #e8e8e8;
border-radius: 8rpx;
padding: 20rpx;
font-size: 28rpx;
background-color: #fafafa;
}
.control-card {
display: flex;
gap: 20rpx;
}
.btn {
flex: 1;
height: 88rpx;
line-height: 88rpx;
border-radius: 12rpx;
font-size: 32rpx;
text-align: center;
border: none;
}
.btn-primary {
background-color: #1890ff;
color: #fff;
}
.btn-danger {
background-color: #ff4d4f;
color: #fff;
}
.btn-secondary {
background-color: #f0f0f0;
color: #666;
}
.btn-outline {
background-color: transparent;
color: #1890ff;
border: 2rpx solid #1890ff;
}
.btn-small {
height: 64rpx;
line-height: 64rpx;
font-size: 26rpx;
padding: 0 24rpx;
}
.btn[disabled] {
opacity: 0.5;
}
.send-input-wrapper {
display: flex;
flex-direction: column;
gap: 20rpx;
}
.send-input {
border: 2rpx solid #e8e8e8;
border-radius: 8rpx;
padding: 20rpx;
font-size: 28rpx;
min-height: 160rpx;
background-color: #fafafa;
box-sizing: border-box;
}
.send-buttons {
display: flex;
gap: 20rpx;
}
.quick-messages {
margin-top: 24rpx;
padding-top: 24rpx;
border-top: 2rpx solid #f0f0f0;
}
.quick-label {
font-size: 26rpx;
color: #999;
margin-bottom: 16rpx;
display: block;
}
.quick-btns {
display: flex;
flex-wrap: wrap;
gap: 16rpx;
}
.quick-btn {
padding: 12rpx 24rpx;
background-color: #f0f5ff;
color: #1890ff;
border-radius: 8rpx;
font-size: 26rpx;
border: none;
}
.quick-btn[disabled] {
opacity: 0.5;
}
.log-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24rpx;
}
.log-title-wrapper {
display: flex;
align-items: center;
gap: 12rpx;
}
.log-title-wrapper .section-title {
margin-bottom: 0;
}
.log-count {
font-size: 24rpx;
color: #999;
}
.log-actions {
display: flex;
gap: 12rpx;
}
.log-list {
max-height: 500rpx;
background-color: #1e1e1e;
border-radius: 8rpx;
padding: 20rpx;
}
.log-item {
display: flex;
margin-bottom: 12rpx;
font-family: 'Courier New', monospace;
font-size: 24rpx;
line-height: 1.6;
}
.log-time {
color: #888;
margin-right: 16rpx;
flex-shrink: 0;
}
.log-content {
word-break: break-all;
flex: 1;
color: #fff;
}
.log-info .log-content {
color: #fff;
}
.log-success .log-content {
color: #52c41a;
}
.log-error .log-content {
color: #ff4d4f;
}
.log-warn .log-content {
color: #faad14;
}
.log-send .log-content {
color: #1890ff;
}
.log-receive .log-content {
color: #52c41a;
}
</style>

View File

@@ -1,8 +1,8 @@
;(function(){
let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"uni-app","type":"default","titleColor":"#000000"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"test1","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"5.07","entryPagePath":"pages/Login/Login","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{},"darkmode":false,"themeConfig":{}};
const __uniRoutes = [{"path":"pages/Login/Login","meta":{"isQuit":true,"isEntry":true,"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"登录页面","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/Chat/Chat","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"聊天页面(主页面)","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/WorkSpace/WorkSpace","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"工作区文件管理","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/UserProfileModal/UserProfileModal","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/ContactPages/ContactPages","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/WorkSpace/TemplateSpace/TemplateSpace","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/text/text","meta":{"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/text/text2","meta":{"navigationBar":{"type":"default"},"isNVue":false}},{"path":"pages/CloudDatabase/CloudDatabase","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"云端数据","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/CloudDbDetail/CloudDbDetail","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"数据库详情","style":"custom","type":"default"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute));
const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"uni-app","type":"default","titleColor":"#000000"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"test1","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"5.07","entryPagePath":"pages/text/IntuitiveAipptViewer","entryPageQuery":"","realEntryPagePath":"pages/Login/Login","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{},"darkmode":false,"themeConfig":{}};
const __uniRoutes = [{"path":"pages/Login/Login","meta":{"isQuit":true,"isEntry":true,"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"登录页面","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/Chat/Chat","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"聊天页面(主页面)","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/WorkSpace/WorkSpace","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"工作区文件管理","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/UserProfileModal/UserProfileModal","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/ContactPages/ContactPages","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/WorkSpace/TemplateSpace/TemplateSpace","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/CloudDatabase/CloudDatabase","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"云端数据","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/CloudDbDetail/CloudDbDetail","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"数据库详情","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/text/text","meta":{"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/text/IntuitiveAipptViewer","meta":{"navigationBar":{"titleText":"","type":"default"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute));
__uniConfig.styles=[];//styles
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});

File diff suppressed because one or more lines are too long

View File

@@ -124,7 +124,7 @@
"style": "dark",
"background": "#F8F8F8"
},
"arguments": "{\"name\":\"\",\"path\":\"\",\"query\":\"\"}",
"arguments": "{\"path\":\"pages/text/IntuitiveAipptViewer\"}",
"uniStatistics": {
"enable": false
},

View File

@@ -0,0 +1,526 @@
.book-viewer[data-v-dc6aee90] {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: #1a1a2e;
z-index: 9999;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* ========== 工具栏 ========== */
.toolbar[data-v-dc6aee90] {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 0.625rem;
height: 2.1875rem;
background: rgba(26, 26, 46, 0.95);
border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.08);
flex-shrink: 0;
}
.toolbar-left[data-v-dc6aee90] {
display: flex;
align-items: center;
gap: 0.5rem;
flex: 1;
min-width: 0;
}
.toolbar-brand[data-v-dc6aee90] {
font-size: 0.6875rem;
font-weight: 800;
color: #0ea5e9;
letter-spacing: 0.0625rem;
flex-shrink: 0;
}
.toolbar-title[data-v-dc6aee90] {
font-size: 0.8125rem;
color: #e2e8f0;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.toolbar-right[data-v-dc6aee90] {
display: flex;
align-items: center;
gap: 0.25rem;
flex-shrink: 0;
}
.toolbar-btn[data-v-dc6aee90] {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0.25rem 0.4375rem;
border-radius: 0.25rem;
background: rgba(255, 255, 255, 0.06);
min-width: 2.125rem;
}
.toolbar-btn[data-v-dc6aee90]:active {
background: rgba(255, 255, 255, 0.15);
}
.toolbar-close[data-v-dc6aee90] {
background: rgba(239, 68, 68, 0.15);
margin-left: 0.25rem;
}
.toolbar-close[data-v-dc6aee90]:active {
background: rgba(239, 68, 68, 0.3);
}
.toolbar-icon[data-v-dc6aee90] {
font-size: 0.875rem;
color: #cbd5e1;
}
.toolbar-label[data-v-dc6aee90] {
font-size: 0.5625rem;
color: #94a3b8;
margin-top: 0.0625rem;
}
.page-display[data-v-dc6aee90] {
display: flex;
align-items: center;
gap: 0.1875rem;
padding: 0 0.3125rem;
font-size: 0.75rem;
color: #e2e8f0;
font-weight: 600;
min-width: 2.5rem;
justify-content: center;
}
/* ========== 目录侧边栏 ========== */
.toc-overlay[data-v-dc6aee90] {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 10001;
}
.toc-sidebar[data-v-dc6aee90] {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 13.75rem;
background: #16213e;
display: flex;
flex-direction: column;
box-shadow: 0.25rem 0 1.25rem rgba(0, 0, 0, 0.4);
}
.toc-header[data-v-dc6aee90] {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem 0.875rem;
border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.08);
flex-shrink: 0;
}
.toc-header-title[data-v-dc6aee90] {
font-size: 0.9375rem;
font-weight: 700;
color: #e2e8f0;
}
.toc-close[data-v-dc6aee90] {
width: 1.625rem;
height: 1.625rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: rgba(255, 255, 255, 0.08);
font-size: 0.875rem;
color: #94a3b8;
}
.toc-close[data-v-dc6aee90]:active {
background: rgba(255, 255, 255, 0.2);
}
.toc-list[data-v-dc6aee90] {
flex: 1;
overflow: hidden;
}
.toc-item[data-v-dc6aee90] {
display: flex;
align-items: center;
padding: 0.625rem 0.875rem;
border-bottom: 0.03125rem solid rgba(255, 255, 255, 0.04);
gap: 0.4375rem;
}
.toc-item[data-v-dc6aee90]:active {
background: rgba(255, 255, 255, 0.05);
}
.toc-active[data-v-dc6aee90] {
background: rgba(14, 165, 233, 0.12);
border-left: 0.1875rem solid #0ea5e9;
}
.toc-level-1 .toc-text[data-v-dc6aee90] {
font-weight: 700;
font-size: 0.8125rem;
color: #e2e8f0;
}
.toc-level-2 .toc-text[data-v-dc6aee90] {
padding-left: 0.75rem;
font-size: 0.75rem;
color: #cbd5e1;
}
.toc-level-3 .toc-text[data-v-dc6aee90] {
padding-left: 1.5rem;
font-size: 0.6875rem;
color: #94a3b8;
}
.toc-bullet[data-v-dc6aee90] {
font-size: 0.5rem;
color: #0ea5e9;
flex-shrink: 0;
}
.toc-text[data-v-dc6aee90] {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.toc-page[data-v-dc6aee90] {
font-size: 0.625rem;
color: #64748b;
flex-shrink: 0;
}
/* ========== 书本舞台 ========== */
.book-stage[data-v-dc6aee90] {
flex: 1;
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
background: #1a1a2e;
}
/* ========== 3D 书本容器 ========== */
.book-flip-container[data-v-dc6aee90] {
width: 92%;
height: 88%;
position: relative;
perspective: 1600px;
display: flex;
}
/* ========== 展开页(底层) ========== */
.book-spread[data-v-dc6aee90] {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
z-index: 1;
}
.book-page[data-v-dc6aee90] {
flex: 1;
height: 100%;
position: relative;
}
.book-page-left[data-v-dc6aee90] {
border-radius: 0.375rem 0 0 0.375rem;
}
.book-page-right[data-v-dc6aee90] {
border-radius: 0 0.375rem 0.375rem 0;
}
/* ========== 翻页层 ========== */
.book-flipper[data-v-dc6aee90] {
position: absolute;
top: 0;
width: 50%;
height: 100%;
transform-style: preserve-3d;
z-index: 10;
}
.flipper-right[data-v-dc6aee90] {
right: 0;
border-radius: 0 0.375rem 0.375rem 0;
}
.flipper-left[data-v-dc6aee90] {
left: 0;
border-radius: 0.375rem 0 0 0.375rem;
}
.flipper-face[data-v-dc6aee90] {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
overflow: hidden;
}
.flipper-front[data-v-dc6aee90] {
z-index: 2;
background: linear-gradient(135deg, #fefefe 0%, #f5f5f4 100%);
}
.flipper-right .flipper-front[data-v-dc6aee90] {
border-radius: 0 0.375rem 0.375rem 0;
box-shadow: -0.125rem 0 0.9375rem rgba(0, 0, 0, 0.3);
}
.flipper-left .flipper-front[data-v-dc6aee90] {
border-radius: 0.375rem 0 0 0.375rem;
box-shadow: 0.125rem 0 0.9375rem rgba(0, 0, 0, 0.3);
}
.flipper-back[data-v-dc6aee90] {
transform: rotateY(180deg);
background: linear-gradient(135deg, #fefefe 0%, #f5f5f4 100%);
}
.flipper-right .flipper-back[data-v-dc6aee90] {
border-radius: 0.375rem 0 0 0.375rem;
box-shadow: 0.125rem 0 0.9375rem rgba(0, 0, 0, 0.3);
}
.flipper-left .flipper-back[data-v-dc6aee90] {
border-radius: 0 0.375rem 0.375rem 0;
box-shadow: -0.125rem 0 0.9375rem rgba(0, 0, 0, 0.3);
}
/* ========== 书脊线 ========== */
.book-spine[data-v-dc6aee90] {
position: absolute;
top: 4%;
left: 50%;
bottom: 4%;
width: 0.0625rem;
background: linear-gradient(180deg,
transparent 0%,
rgba(0,0,0,0.15) 15%,
rgba(0,0,0,0.15) 85%,
transparent 100%);
z-index: 5;
pointer-events: none;
}
/* ========== 页面内容通用 ========== */
.page-scroll[data-v-dc6aee90] {
height: 100%;
box-sizing: border-box;
}
.page-content[data-v-dc6aee90] {
min-height: 100%;
padding: 1.25rem;
background: linear-gradient(135deg, #fefefe 0%, #f5f5f4 100%);
border-radius: 0.375rem;
box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.35);
color: #1e293b;
font-size: 0.875rem;
line-height: 1.8;
word-break: break-word;
}
/* ========== 底部翻页提示 ========== */
.page-hint[data-v-dc6aee90] {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.4375rem 1rem;
flex-shrink: 0;
background: rgba(26, 26, 46, 0.95);
border-top: 0.0625rem solid rgba(255, 255, 255, 0.08);
}
.hint-btn[data-v-dc6aee90] {
padding: 0.3125rem 0.875rem;
border-radius: 0.625rem;
background: rgba(14, 165, 233, 0.15);
color: #0ea5e9;
font-size: 0.75rem;
}
.hint-btn[data-v-dc6aee90]:active {
background: rgba(14, 165, 233, 0.3);
}
.hint-disabled[data-v-dc6aee90] {
background: rgba(255, 255, 255, 0.05);
color: #475569;
pointer-events: none;
}
.hint-center[data-v-dc6aee90] {
font-size: 0.75rem;
color: #94a3b8;
padding: 0.3125rem 0.75rem;
border-radius: 0.625rem;
background: rgba(255, 255, 255, 0.05);
}
.hint-center[data-v-dc6aee90]:active {
background: rgba(255, 255, 255, 0.12);
}
/* 页面内部元素自适应 */
.book-stage[data-v-dc6aee90] img {
max-width: 100%;
height: auto;
border-radius: 0.25rem;
}
.book-stage[data-v-dc6aee90] table {
width: 100%;
border-collapse: collapse;
font-size: 0.75rem;
}
.book-stage[data-v-dc6aee90] th,
.book-stage[data-v-dc6aee90] td {
border: 0.03125rem solid #cbd5e1;
padding: 0.375rem 0.5rem;
text-align: left;
}
.book-stage[data-v-dc6aee90] th {
background: #f1f5f9;
font-weight: 600;
}
.book-stage[data-v-dc6aee90] pre {
background: #1e293b;
color: #e2e8f0;
padding: 0.75rem;
border-radius: 0.3125rem;
overflow-x: auto;
font-size: 0.75rem;
line-height: 1.5;
}
.book-stage[data-v-dc6aee90] code {
font-family: 'SF Mono', 'Menlo', monospace;
}
.book-stage[data-v-dc6aee90] blockquote {
border-left: 0.1875rem solid #0ea5e9;
padding: 0.5rem 0.875rem;
margin: 0.625rem 0;
background: #f0f9ff;
border-radius: 0 0.25rem 0.25rem 0;
color: #334155;
}
.book-stage[data-v-dc6aee90] h1 {
font-size: 1.25rem;
font-weight: 800;
color: #0f172a;
margin: 0.5rem 0 0.75rem;
padding-bottom: 0.375rem;
border-bottom: 0.09375rem solid #0ea5e9;
}
.book-stage[data-v-dc6aee90] h2 {
font-size: 1.0625rem;
font-weight: 700;
color: #1e293b;
margin: 0.5rem 0 0.625rem;
}
.book-stage[data-v-dc6aee90] h3 {
font-size: 0.9375rem;
font-weight: 600;
color: #334155;
margin: 0.4375rem 0 0.5rem;
}
.book-stage[data-v-dc6aee90] h4,
.book-stage[data-v-dc6aee90] h5,
.book-stage[data-v-dc6aee90] h6 {
font-size: 0.875rem;
font-weight: 600;
color: #475569;
margin: 0.375rem 0 0.4375rem;
}
.book-stage[data-v-dc6aee90] ul,
.book-stage[data-v-dc6aee90] ol {
padding-left: 1.25rem;
}
.book-stage[data-v-dc6aee90] li {
margin: 0.3125rem 0;
}
.book-stage[data-v-dc6aee90] p {
margin: 0.4375rem 0;
}
.book-stage[data-v-dc6aee90] a {
color: #0ea5e9;
text-decoration: none;
}
.book-stage[data-v-dc6aee90] hr {
border: none;
border-top: 0.0625rem solid #e2e8f0;
margin: 0.875rem 0;
}
.book-stage[data-v-dc6aee90] uni-video {
max-width: 100%;
height: auto;
border-radius: 0.25rem;
}
/* ========== 加载状态 ========== */
.book-loading[data-v-dc6aee90] {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.9375rem;
}
.loading-spinner[data-v-dc6aee90] {
width: 1.875rem;
height: 1.875rem;
border: 0.125rem solid rgba(14, 165, 233, 0.2);
border-top-color: #0ea5e9;
border-radius: 50%;
animation: spin-dc6aee90 0.8s linear infinite;
}
@keyframes spin-dc6aee90 {
to {
transform: rotate(360deg);
}
}
.loading-text[data-v-dc6aee90] {
font-size: 0.8125rem;
color: #94a3b8;
}
/* ========== 空状态 ========== */
.book-empty[data-v-dc6aee90] {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.75rem;
}
.empty-icon[data-v-dc6aee90] {
font-size: 2.5rem;
}
.empty-text[data-v-dc6aee90] {
font-size: 0.875rem;
color: #64748b;
}
/* ========== 页码跳转浮层 ========== */
.page-jump-bar[data-v-dc6aee90] {
position: absolute;
top: 0.5rem;
right: 0.9375rem;
z-index: 99;
}
.jump-input[data-v-dc6aee90] {
width: 6.25rem;
height: 1.875rem;
background: rgba(255, 255, 255, 0.95);
border: 0.0625rem solid #0ea5e9;
border-radius: 0.3125rem;
padding: 0 0.625rem;
font-size: 0.8125rem;
color: #1e293b;
text-align: center;
}
/* ========== 错误提示 ========== */
.error-toast[data-v-dc6aee90] {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(239, 68, 68, 0.92);
color: #fff;
padding: 0.625rem 1.25rem;
border-radius: 0.375rem;
font-size: 0.8125rem;
z-index: 10010;
max-width: 80vw;
text-align: center;
}

View File

@@ -0,0 +1,303 @@
.ia-root[data-v-2050f472] {
display: flex;
flex-direction: column;
height: 100vh;
width: 100%;
background: #f0f0f3;
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
sans-serif;
font-size: 0.875rem;
color: #0f172a;
overflow: hidden;
}
/* ===== 顶部工具栏 ===== */
.ia-toolbar[data-v-2050f472] {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 0.5rem 0.75rem;
background: #fff;
border-bottom: 0.0625rem solid rgba(15, 23, 42, 0.08);
flex-shrink: 0;
}
.ia-title[data-v-2050f472] {
display: flex;
flex-direction: row;
align-items: center;
flex: 1;
min-width: 0;
}
.ia-badge[data-v-2050f472] {
flex-shrink: 0;
background: #eef4ff;
color: #2563eb;
font-size: 0.6875rem;
font-weight: 900;
padding: 0.1875rem 0.5rem;
border-radius: 1.25rem;
margin-right: 0.5rem;
}
.ia-title-copy[data-v-2050f472] {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
}
.ia-title-strong[data-v-2050f472] {
font-size: 0.875rem;
font-weight: 700;
color: #0f172a;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ia-title-em[data-v-2050f472] {
font-size: 0.6875rem;
color: #94a3b8;
}
.ia-actions[data-v-2050f472] {
display: flex;
flex-direction: row;
align-items: center;
flex-shrink: 0;
margin-left: 0.5rem;
}
.ia-icon-btn[data-v-2050f472] {
width: 1.875rem;
height: 1.875rem;
display: flex;
align-items: center;
justify-content: center;
margin-left: 0.375rem;
border-radius: 1.25rem;
background: rgba(37, 99, 235, 0.06);
transition: background 0.15s;
}
.ia-icon-btn[data-v-2050f472]:active {
background: rgba(37, 99, 235, 0.15);
}
.ia-close-btn[data-v-2050f472] {
background: rgba(239, 68, 68, 0.06);
}
.ia-close-btn[data-v-2050f472]:active {
background: rgba(239, 68, 68, 0.15);
}
.ia-icon[data-v-2050f472] {
font-size: 1.125rem;
color: #2563eb;
}
.ia-close-btn .ia-icon[data-v-2050f472] {
color: #ef4444;
}
/* ===== 主舞台 ===== */
.ia-canvas[data-v-2050f472] {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
background: linear-gradient(180deg, #f8fafc, #e9eef6);
}
/* ===== 空状态 ===== */
.ia-empty[data-v-2050f472] {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1.25rem;
text-align: center;
}
.ia-empty-icon[data-v-2050f472] {
font-size: 2.5rem;
margin-bottom: 0.75rem;
}
.ia-empty-title[data-v-2050f472] {
font-size: 1.0625rem;
font-weight: 700;
color: #0f172a;
margin-bottom: 0.375rem;
}
.ia-empty-desc[data-v-2050f472] {
font-size: 0.8125rem;
color: #64748b;
max-width: 12.5rem;
line-height: 1.6;
}
/* ===== 幻灯片区域 ===== */
.ia-slide-area[data-v-2050f472] {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
padding: 0.75rem;
}
.ia-frame-shell[data-v-2050f472] {
flex: 1;
min-height: 0;
border-radius: 0.5rem;
background: #fff;
box-shadow: 0 0.125rem 0.625rem rgba(15, 23, 42, 0.08);
overflow: hidden;
display: flex;
flex-direction: column;
position: relative;
}
.ia-frame-scroll[data-v-2050f472] {
flex: 1;
width: 100%;
height: 100%;
}
.ia-frame[data-v-2050f472] {
width: 100%;
min-height: 100%;
}
/* 滑动提示 */
.ia-swipe-hint[data-v-2050f472] {
position: absolute;
bottom: 0.375rem;
left: 50%;
transform: translateX(-50%);
background: rgba(15, 23, 42, 0.55);
padding: 0.25rem 0.75rem;
border-radius: 1.25rem;
}
.ia-swipe-hint-text[data-v-2050f472] {
color: #fff;
font-size: 0.6875rem;
}
/* ===== 缩略图条 ===== */
.ia-thumb-strip[data-v-2050f472] {
flex-shrink: 0;
margin-top: 0.5rem;
width: 100%;
white-space: nowrap;
}
.ia-thumb-list[data-v-2050f472] {
display: flex;
flex-direction: row;
padding: 0.125rem 0;
}
.ia-thumb-item[data-v-2050f472] {
flex-shrink: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 3.75rem;
height: 2.5rem;
padding: 0.25rem 0.5rem;
margin-right: 0.375rem;
border-radius: 0.375rem;
background: rgba(255, 255, 255, 0.7);
border: 0.0625rem solid rgba(15, 23, 42, 0.06);
transition: all 0.2s;
}
.ia-thumb-item.active[data-v-2050f472] {
background: linear-gradient(135deg, #2563eb, #23b9ad);
border-color: transparent;
}
.ia-thumb-num[data-v-2050f472] {
font-size: 0.6875rem;
font-weight: 900;
color: #1d4ed8;
}
.ia-thumb-item.active .ia-thumb-num[data-v-2050f472] {
color: #fff;
}
.ia-thumb-title[data-v-2050f472] {
font-size: 0.625rem;
color: #64748b;
margin-top: 0.125rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 5rem;
}
.ia-thumb-item.active .ia-thumb-title[data-v-2050f472] {
color: rgba(255, 255, 255, 0.85);
}
/* ===== 底部导航栏 ===== */
.ia-pager[data-v-2050f472] {
flex-shrink: 0;
padding: 0.5rem 0.75rem;
padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
background: rgba(248, 251, 255, 0.92);
border-top: 0.0625rem solid rgba(15, 23, 42, 0.06);
}
.ia-pager-shell[data-v-2050f472] {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 0.75rem;
}
.ia-page-btn[data-v-2050f472] {
width: 2.5rem;
height: 2.25rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 1.25rem;
background: rgba(37, 99, 235, 0.08);
transition: all 0.15s;
}
.ia-page-btn[data-v-2050f472]:active:not(.disabled) {
background: rgba(37, 99, 235, 0.18);
transform: scale(0.95);
}
.ia-page-btn.disabled[data-v-2050f472] {
opacity: 0.35;
}
.ia-next-btn[data-v-2050f472] {
background: linear-gradient(135deg, #2563eb, #23b9ad);
}
.ia-next-btn.disabled[data-v-2050f472] {
background: rgba(37, 99, 235, 0.08);
}
.ia-nav-icon[data-v-2050f472] {
font-size: 1.125rem;
color: #1e40af;
font-weight: bold;
}
.ia-next-btn .ia-nav-icon[data-v-2050f472] {
color: #fff;
}
.ia-next-btn.disabled .ia-nav-icon[data-v-2050f472] {
color: #1e40af;
}
.ia-page-count[data-v-2050f472] {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 0.375rem 0.875rem;
border-radius: 1.25rem;
background: rgba(238, 244, 255, 0.78);
border: 0.0625rem solid rgba(37, 99, 235, 0.08);
}
.ia-current-page[data-v-2050f472] {
font-size: 1.25rem;
font-weight: 900;
color: #1d4ed8;
font-family: "SFMono-Regular", Consolas, monospace;
}
.ia-page-divider[data-v-2050f472] {
font-size: 0.875rem;
color: rgba(51, 65, 85, 0.5);
margin: 0 0.25rem;
}
.ia-total-page[data-v-2050f472] {
font-size: 0.875rem;
color: rgba(51, 65, 85, 0.5);
font-family: "SFMono-Regular", Consolas, monospace;
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,222 +0,0 @@
.container[data-v-cd5869b7] {
padding: 0.625rem;
background-color: #f5f5f5;
min-height: 100vh;
}
.status-card[data-v-cd5869b7],
.config-card[data-v-cd5869b7],
.control-card[data-v-cd5869b7],
.send-card[data-v-cd5869b7],
.log-card[data-v-cd5869b7] {
background-color: #fff;
border-radius: 0.5rem;
padding: 0.9375rem;
margin-bottom: 0.625rem;
box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.05);
}
.status-label[data-v-cd5869b7] {
font-size: 0.875rem;
color: #666;
margin-bottom: 0.5rem;
}
.status-value[data-v-cd5869b7] {
display: inline-block;
padding: 0.375rem 1rem;
border-radius: 0.25rem;
font-size: 0.875rem;
font-weight: 500;
}
.status-connected[data-v-cd5869b7] {
background-color: #e6f7e6;
color: #52c41a;
}
.status-connecting[data-v-cd5869b7] {
background-color: #fff7e6;
color: #faad14;
}
.status-disconnected[data-v-cd5869b7] {
background-color: #f5f5f5;
color: #999;
}
.status-error[data-v-cd5869b7] {
background-color: #fff1f0;
color: #ff4d4f;
}
.status-info[data-v-cd5869b7] {
margin-top: 0.5rem;
}
.reconnect-info[data-v-cd5869b7] {
font-size: 0.75rem;
color: #faad14;
}
.section-title[data-v-cd5869b7] {
font-size: 1rem;
font-weight: 600;
color: #333;
margin-bottom: 0.75rem;
display: block;
}
.input-group[data-v-cd5869b7] {
margin-bottom: 0.75rem;
}
.input-label[data-v-cd5869b7] {
font-size: 0.875rem;
color: #666;
margin-bottom: 0.375rem;
display: block;
}
.input-field[data-v-cd5869b7] {
border: 0.0625rem solid #e8e8e8;
border-radius: 0.25rem;
padding: 0.625rem;
font-size: 0.875rem;
background-color: #fafafa;
}
.control-card[data-v-cd5869b7] {
display: flex;
gap: 0.625rem;
}
.btn[data-v-cd5869b7] {
flex: 1;
height: 2.75rem;
line-height: 2.75rem;
border-radius: 0.375rem;
font-size: 1rem;
text-align: center;
border: none;
}
.btn-primary[data-v-cd5869b7] {
background-color: #1890ff;
color: #fff;
}
.btn-danger[data-v-cd5869b7] {
background-color: #ff4d4f;
color: #fff;
}
.btn-secondary[data-v-cd5869b7] {
background-color: #f0f0f0;
color: #666;
}
.btn-outline[data-v-cd5869b7] {
background-color: transparent;
color: #1890ff;
border: 0.0625rem solid #1890ff;
}
.btn-small[data-v-cd5869b7] {
height: 2rem;
line-height: 2rem;
font-size: 0.8125rem;
padding: 0 0.75rem;
}
.btn[disabled][data-v-cd5869b7] {
opacity: 0.5;
}
.send-input-wrapper[data-v-cd5869b7] {
display: flex;
flex-direction: column;
gap: 0.625rem;
}
.send-input[data-v-cd5869b7] {
border: 0.0625rem solid #e8e8e8;
border-radius: 0.25rem;
padding: 0.625rem;
font-size: 0.875rem;
min-height: 5rem;
background-color: #fafafa;
box-sizing: border-box;
}
.send-buttons[data-v-cd5869b7] {
display: flex;
gap: 0.625rem;
}
.quick-messages[data-v-cd5869b7] {
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 0.0625rem solid #f0f0f0;
}
.quick-label[data-v-cd5869b7] {
font-size: 0.8125rem;
color: #999;
margin-bottom: 0.5rem;
display: block;
}
.quick-btns[data-v-cd5869b7] {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.quick-btn[data-v-cd5869b7] {
padding: 0.375rem 0.75rem;
background-color: #f0f5ff;
color: #1890ff;
border-radius: 0.25rem;
font-size: 0.8125rem;
border: none;
}
.quick-btn[disabled][data-v-cd5869b7] {
opacity: 0.5;
}
.log-header[data-v-cd5869b7] {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
}
.log-title-wrapper[data-v-cd5869b7] {
display: flex;
align-items: center;
gap: 0.375rem;
}
.log-title-wrapper .section-title[data-v-cd5869b7] {
margin-bottom: 0;
}
.log-count[data-v-cd5869b7] {
font-size: 0.75rem;
color: #999;
}
.log-actions[data-v-cd5869b7] {
display: flex;
gap: 0.375rem;
}
.log-list[data-v-cd5869b7] {
max-height: 15.625rem;
background-color: #1e1e1e;
border-radius: 0.25rem;
padding: 0.625rem;
}
.log-item[data-v-cd5869b7] {
display: flex;
margin-bottom: 0.375rem;
font-family: 'Courier New', monospace;
font-size: 0.75rem;
line-height: 1.6;
}
.log-time[data-v-cd5869b7] {
color: #888;
margin-right: 0.5rem;
flex-shrink: 0;
}
.log-content[data-v-cd5869b7] {
word-break: break-all;
flex: 1;
color: #fff;
}
.log-info .log-content[data-v-cd5869b7] {
color: #fff;
}
.log-success .log-content[data-v-cd5869b7] {
color: #52c41a;
}
.log-error .log-content[data-v-cd5869b7] {
color: #ff4d4f;
}
.log-warn .log-content[data-v-cd5869b7] {
color: #faad14;
}
.log-send .log-content[data-v-cd5869b7] {
color: #1890ff;
}
.log-receive .log-content[data-v-cd5869b7] {
color: #52c41a;
}