vite-uni-dev-tool 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/const.d.ts +4 -0
- package/dist/const.d.ts.map +1 -1
- package/dist/const.js +30 -29
- package/dist/devEvent/index.d.ts.map +1 -1
- package/dist/devEvent/index.js +13 -13
- package/dist/devIntercept/index.d.ts.map +1 -1
- package/dist/devIntercept/index.js +121 -109
- package/dist/type.d.ts +4 -1
- package/dist/type.d.ts.map +1 -1
- package/dist/v3/ConsoleList/ConsoleItem.vue +1 -1
- package/dist/v3/DevToolWindow/index.vue +78 -3
- package/dist/v3/NetworkList/NetworkDetail.vue +2 -1
- package/dist/v3/NetworkList/NetworkItem.vue +0 -11
- package/dist/v3/SettingList/index.vue +4 -1
- package/dist/v3/SettingList/typing.d.ts +2 -0
- package/dist/v3/SourceCode/Line.vue +3 -3
- package/dist/v3/SourceCode/index.vue +1 -1
- package/dist/v3/UploadList/UploadDetail.vue +36 -18
- package/dist/v3/UploadList/UploadItem.vue +38 -34
- package/dist/v3/UploadList/index.vue +12 -1
- package/dist/v3/VirtualListPro/index.vue +15 -12
- package/dist/v3/WebSocket/WebSocketDetail.vue +258 -0
- package/dist/v3/WebSocket/WebSocketItem.vue +14 -30
- package/dist/v3/WebSocket/index.vue +6 -1
- package/package.json +1 -1
- package/dist/v3/WebSocket/WebSocketList.vue +0 -161
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="web-socket-list-container" :style="{ zIndex: zIndex }">
|
|
3
|
+
<view class="web-socket-detail-control">
|
|
4
|
+
<DevToolTitle style="margin-right: 16px"> 套接字详情 </DevToolTitle>
|
|
5
|
+
<Tag
|
|
6
|
+
mode="info"
|
|
7
|
+
v-for="item in selectItems"
|
|
8
|
+
:active="item.value === currentSelect"
|
|
9
|
+
:key="item.value"
|
|
10
|
+
@click="onSelect(item)"
|
|
11
|
+
>
|
|
12
|
+
{{ item.label }}
|
|
13
|
+
</Tag>
|
|
14
|
+
<CircularButton style="margin-left: auto" text="×" @click="onClose" />
|
|
15
|
+
</view>
|
|
16
|
+
|
|
17
|
+
<view class="web-socket-data" v-if="currentSelect === 'base'">
|
|
18
|
+
<DevToolTitle> 常规 </DevToolTitle>
|
|
19
|
+
<view class="web-socket-detail-item">
|
|
20
|
+
<view>请求地址:</view>
|
|
21
|
+
<view>{{ ws.url }}</view>
|
|
22
|
+
</view>
|
|
23
|
+
|
|
24
|
+
<view class="web-socket-detail-item">
|
|
25
|
+
<view>请求方法:</view>
|
|
26
|
+
<Tag mode="info">{{ ws.method }}</Tag>
|
|
27
|
+
</view>
|
|
28
|
+
|
|
29
|
+
<DevToolTitle>请求头</DevToolTitle>
|
|
30
|
+
<template v-if="ws.headers && ws.headers?.length > 0">
|
|
31
|
+
<view
|
|
32
|
+
class="web-socket-detail-item"
|
|
33
|
+
v-for="item in ws.headers"
|
|
34
|
+
:key="item.key"
|
|
35
|
+
>
|
|
36
|
+
<view>{{ item.key }}: </view>
|
|
37
|
+
{{ item.value }}
|
|
38
|
+
</view>
|
|
39
|
+
</template>
|
|
40
|
+
<Empty v-else />
|
|
41
|
+
</view>
|
|
42
|
+
<template v-if="currentSelect === 'message'">
|
|
43
|
+
<view class="web-socket-detail-control">
|
|
44
|
+
<DevToolTitle>消息列表</DevToolTitle>
|
|
45
|
+
<Tag mode="clear" style="margin-left: auto" @click="emit('clear', ws)">
|
|
46
|
+
清除
|
|
47
|
+
</Tag>
|
|
48
|
+
</view>
|
|
49
|
+
|
|
50
|
+
<view class="web-socket-data-list">
|
|
51
|
+
<template v-if="ws.message && ws.message.length > 0">
|
|
52
|
+
<view
|
|
53
|
+
v-for="item in ws.message"
|
|
54
|
+
:key="item.time"
|
|
55
|
+
:class="`web-socket-data-item web-socket-data-item-${item.status}`"
|
|
56
|
+
@click="onClick(item)"
|
|
57
|
+
>
|
|
58
|
+
<view class="web-socket-data-time">
|
|
59
|
+
{{ item.type === 'send' ? '↑' : '↓' }}
|
|
60
|
+
{{ formatDate(item.time, 'HH:mm:ss') }}
|
|
61
|
+
</view>
|
|
62
|
+
<view class="web-socket-data-content">
|
|
63
|
+
{{ item.data }}
|
|
64
|
+
</view>
|
|
65
|
+
</view>
|
|
66
|
+
</template>
|
|
67
|
+
<Empty v-else text="暂无消息" />
|
|
68
|
+
</view>
|
|
69
|
+
|
|
70
|
+
<!-- <textarea
|
|
71
|
+
:value="sendText"
|
|
72
|
+
class="web-socket-textarea"
|
|
73
|
+
placeholder="请输入消息"
|
|
74
|
+
placeholderStyle="font-size: 12px"
|
|
75
|
+
@change="onChangeText"
|
|
76
|
+
/>
|
|
77
|
+
<button class="web-socket-send-button" size="mini">发送</button> -->
|
|
78
|
+
</template>
|
|
79
|
+
</view>
|
|
80
|
+
</template>
|
|
81
|
+
<script setup lang="ts">
|
|
82
|
+
import { ref } from 'vue';
|
|
83
|
+
import Tag from '../Tag/index.vue';
|
|
84
|
+
import CircularButton from '../CircularButton/index.vue';
|
|
85
|
+
import DevToolTitle from '../DevToolTitle/index.vue';
|
|
86
|
+
import Empty from '../Empty/index.vue';
|
|
87
|
+
import { formatDate } from '../../utils/index';
|
|
88
|
+
import type { DevTool } from '../../type';
|
|
89
|
+
|
|
90
|
+
defineProps<{ ws: DevTool.WS; zIndex?: number }>();
|
|
91
|
+
const emit = defineEmits<{
|
|
92
|
+
(e: 'close'): void;
|
|
93
|
+
(e: 'clear', value: DevTool.WS): void;
|
|
94
|
+
}>();
|
|
95
|
+
|
|
96
|
+
const selectItems = [
|
|
97
|
+
{
|
|
98
|
+
label: 'base',
|
|
99
|
+
value: 'base',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
label: 'message',
|
|
103
|
+
value: 'message',
|
|
104
|
+
},
|
|
105
|
+
];
|
|
106
|
+
const currentSelect = ref('base');
|
|
107
|
+
|
|
108
|
+
const sendText = ref('');
|
|
109
|
+
|
|
110
|
+
function onSelect(item: { label: string; value: string }) {
|
|
111
|
+
currentSelect.value = item.value;
|
|
112
|
+
}
|
|
113
|
+
function onClose() {
|
|
114
|
+
emit('close');
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function onClick(item: {
|
|
118
|
+
status: 'success' | 'error';
|
|
119
|
+
data: string;
|
|
120
|
+
time: number;
|
|
121
|
+
}) {
|
|
122
|
+
uni.setClipboardData({
|
|
123
|
+
data: JSON.stringify(item),
|
|
124
|
+
success() {
|
|
125
|
+
uni.showToast({
|
|
126
|
+
title: '复制成功',
|
|
127
|
+
icon: 'none',
|
|
128
|
+
});
|
|
129
|
+
},
|
|
130
|
+
fail() {
|
|
131
|
+
uni.showToast({
|
|
132
|
+
title: '复制失败',
|
|
133
|
+
icon: 'none',
|
|
134
|
+
});
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function onChangeText(e: any) {
|
|
140
|
+
sendText.value = e.detail.value;
|
|
141
|
+
console.log(' sendText.value: ', sendText.value);
|
|
142
|
+
}
|
|
143
|
+
</script>
|
|
144
|
+
<style>
|
|
145
|
+
.web-socket-list-container {
|
|
146
|
+
position: fixed;
|
|
147
|
+
width: 100vw;
|
|
148
|
+
height: 100vh;
|
|
149
|
+
z-index: 1001;
|
|
150
|
+
top: 0;
|
|
151
|
+
left: 0;
|
|
152
|
+
padding: 0 16px;
|
|
153
|
+
/* #ifdef H5 */
|
|
154
|
+
padding: 50px 16px;
|
|
155
|
+
/* #endif */
|
|
156
|
+
|
|
157
|
+
background-color: var(--dev-tool-bg3-color);
|
|
158
|
+
|
|
159
|
+
box-sizing: border-box;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.web-socket-detail-control {
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
/* margin-bottom: 4px; */
|
|
166
|
+
height: 32px;
|
|
167
|
+
border-bottom: 1px solid transparent;
|
|
168
|
+
box-sizing: border-box;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.web-socket-detail-control :deep(.tag) {
|
|
172
|
+
margin-right: 16px;
|
|
173
|
+
}
|
|
174
|
+
.web-socket-detail-control :deep(.tag):last-child {
|
|
175
|
+
margin-right: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.web-socket-list-title {
|
|
179
|
+
min-height: 32px;
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: center;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.web-socket-data {
|
|
185
|
+
height: calc(100% - 32px);
|
|
186
|
+
overflow: auto;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.web-socket-detail-item {
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
min-height: 28px;
|
|
193
|
+
word-break: break-all;
|
|
194
|
+
font-size: 12px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.web-socket-detail-item > view:first-child {
|
|
198
|
+
white-space: nowrap;
|
|
199
|
+
margin-right: 8px;
|
|
200
|
+
color: var(--dev-tool-info-color);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.web-socket-url {
|
|
204
|
+
display: flex;
|
|
205
|
+
align-items: center;
|
|
206
|
+
min-height: 28px;
|
|
207
|
+
|
|
208
|
+
white-space: wrap;
|
|
209
|
+
word-break: break-all;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.web-socket-data-item {
|
|
213
|
+
display: flex;
|
|
214
|
+
align-items: center;
|
|
215
|
+
min-height: 28px;
|
|
216
|
+
font-size: 12px;
|
|
217
|
+
}
|
|
218
|
+
.web-socket-data-item-error {
|
|
219
|
+
background-color: var(--dev-tool-error-bg-color);
|
|
220
|
+
}
|
|
221
|
+
.web-socket-data-item-success {
|
|
222
|
+
background-color: var(--dev-tool-success-bg-color);
|
|
223
|
+
}
|
|
224
|
+
.web-socket-data-time {
|
|
225
|
+
/* margin-right: 16px; */
|
|
226
|
+
padding: 0 6px;
|
|
227
|
+
flex-shrink: 0;
|
|
228
|
+
color: var(--dev-tool-info-color);
|
|
229
|
+
}
|
|
230
|
+
.web-socket-data-content {
|
|
231
|
+
padding: 6px;
|
|
232
|
+
flex: 1;
|
|
233
|
+
overflow: hidden;
|
|
234
|
+
text-overflow: ellipsis;
|
|
235
|
+
word-break: break-all;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.web-socket-data-list {
|
|
239
|
+
/* height: calc(100% - 32px - 32px - 130px); */
|
|
240
|
+
height: calc(100% - 32px - 32px);
|
|
241
|
+
overflow: auto;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.web-socket-textarea {
|
|
245
|
+
padding: 6px;
|
|
246
|
+
height: 80px;
|
|
247
|
+
width: 100%;
|
|
248
|
+
font-size: 12px;
|
|
249
|
+
border: 1px solid var(--dev-tool-border-color);
|
|
250
|
+
box-sizing: border-box;
|
|
251
|
+
}
|
|
252
|
+
.web-socket-send-button {
|
|
253
|
+
margin-top: 12px;
|
|
254
|
+
width: 100%;
|
|
255
|
+
color: #fff;
|
|
256
|
+
background-color: var(--dev-tool-main-color);
|
|
257
|
+
}
|
|
258
|
+
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="websocket-item">
|
|
3
|
-
<view class="websocket-url-row">
|
|
4
|
-
<Tag mode="info" v-if="ws.readyState === 'connection'">
|
|
3
|
+
<view class="websocket-url-row" @click="emit('openDetail', ws)">
|
|
4
|
+
<Tag mode="info" v-if="ws.readyState === 'connection'">connection</Tag>
|
|
5
5
|
<Tag mode="success" v-if="ws.readyState === 'open'">open</Tag>
|
|
6
6
|
<Tag
|
|
7
7
|
mode="warn"
|
|
@@ -13,49 +13,33 @@
|
|
|
13
13
|
<Tag mode="error" v-if="ws.readyState === 'error'">error</Tag>
|
|
14
14
|
|
|
15
15
|
<view class="websocket-url" v-html="ws.url" />
|
|
16
|
-
|
|
17
|
-
<Tag
|
|
18
|
-
mode="main"
|
|
19
|
-
class="websocket-detail-icon"
|
|
20
|
-
@click="showDetail = !showDetail"
|
|
21
|
-
>
|
|
22
|
-
详情
|
|
23
|
-
</Tag>
|
|
24
16
|
</view>
|
|
25
17
|
<view class="websocket-info">
|
|
26
18
|
<view class="websocket-info-last">
|
|
27
|
-
{{ ws?.message?.[ws.message.length - 1]?.data }}
|
|
19
|
+
{{ ws?.message?.[ws.message.length - 1]?.data ?? '暂无消息' }}
|
|
28
20
|
</view>
|
|
29
21
|
|
|
30
|
-
<view>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
<view>
|
|
23
|
+
{{
|
|
24
|
+
ws?.message?.[ws.message.length - 1]?.time
|
|
25
|
+
? formatDate(
|
|
26
|
+
ws?.message?.[ws.message.length - 1]?.time,
|
|
27
|
+
'HH:mm:ss:SS',
|
|
28
|
+
)
|
|
29
|
+
: '--:--:--:---'
|
|
30
|
+
}}
|
|
31
|
+
</view>
|
|
35
32
|
</view>
|
|
36
|
-
|
|
37
|
-
<WebSocketList
|
|
38
|
-
v-if="showDetail"
|
|
39
|
-
:ws="ws"
|
|
40
|
-
:zIndex="zIndex"
|
|
41
|
-
@close="onClose"
|
|
42
|
-
/>
|
|
43
33
|
</view>
|
|
44
34
|
</template>
|
|
45
35
|
<script lang="ts" setup>
|
|
46
|
-
import { ref } from 'vue';
|
|
47
|
-
|
|
48
36
|
import Tag from '../Tag/index.vue';
|
|
49
|
-
import WebSocketList from './WebSocketList.vue';
|
|
50
37
|
import { formatDate } from '../../utils';
|
|
51
38
|
import type { DevTool } from '../../type';
|
|
52
39
|
|
|
53
40
|
defineProps<{ ws: DevTool.WS; zIndex?: number }>();
|
|
54
|
-
const showDetail = ref(false);
|
|
55
41
|
|
|
56
|
-
|
|
57
|
-
showDetail.value = false;
|
|
58
|
-
}
|
|
42
|
+
const emit = defineEmits<{ (e: 'openDetail', value: DevTool.WS): void }>();
|
|
59
43
|
</script>
|
|
60
44
|
<style scoped>
|
|
61
45
|
.websocket-item {
|
|
@@ -30,7 +30,11 @@
|
|
|
30
30
|
:index="start + index"
|
|
31
31
|
:key="start + index"
|
|
32
32
|
>
|
|
33
|
-
<WebSocketItem
|
|
33
|
+
<WebSocketItem
|
|
34
|
+
:ws="item"
|
|
35
|
+
:zIndex="zIndex"
|
|
36
|
+
@openDetail="emit('openDetail', $event)"
|
|
37
|
+
/>
|
|
34
38
|
</AutoSize>
|
|
35
39
|
<Empty v-if="!wsList || wsList.length === 0" />
|
|
36
40
|
</template>
|
|
@@ -57,6 +61,7 @@ const emit = defineEmits<{
|
|
|
57
61
|
(e: 'choose', type: string): void;
|
|
58
62
|
(e: 'update:modelValue', value: string): void;
|
|
59
63
|
(e: 'search', value: string): void;
|
|
64
|
+
(e: 'openDetail', value: DevTool.WS): void;
|
|
60
65
|
}>();
|
|
61
66
|
const webSocketFilter = [
|
|
62
67
|
{
|
package/package.json
CHANGED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view class="web-socket-list-container" :style="{ zIndex: zIndex }">
|
|
3
|
-
<view class="web-socket-top">
|
|
4
|
-
请求url:
|
|
5
|
-
|
|
6
|
-
<CircularButton style="margin-left: auto" text="×" @click="onClose" />
|
|
7
|
-
</view>
|
|
8
|
-
<view class="web-socket-url">
|
|
9
|
-
{{ ws.url }}
|
|
10
|
-
</view>
|
|
11
|
-
|
|
12
|
-
<view class="web-socket-data">
|
|
13
|
-
<view class="web-socket-title"
|
|
14
|
-
>请求方式:<Tag mode="info"> {{ ws.method }} </Tag></view
|
|
15
|
-
>
|
|
16
|
-
<view class="web-socket-title">请求头:</view>
|
|
17
|
-
<view
|
|
18
|
-
class="header-detail-item"
|
|
19
|
-
v-for="item in ws.headers"
|
|
20
|
-
:key="item.key"
|
|
21
|
-
>
|
|
22
|
-
<view>{{ item.key }}: </view>
|
|
23
|
-
{{ item.value }}
|
|
24
|
-
</view>
|
|
25
|
-
|
|
26
|
-
<view class="web-socket-title">消息列表:</view>
|
|
27
|
-
<view class="web-socket-data-list">
|
|
28
|
-
<view
|
|
29
|
-
v-for="item in ws.message"
|
|
30
|
-
:key="item.time"
|
|
31
|
-
:class="`web-socket-data-item web-socket-data-item-${item.type}`"
|
|
32
|
-
@click="onClick(item)"
|
|
33
|
-
>
|
|
34
|
-
<view class="web-socket-data-time"
|
|
35
|
-
>{{ formatDate(item.time, 'HH:mm:ss') }}
|
|
36
|
-
</view>
|
|
37
|
-
<view class="web-socket-data-content">
|
|
38
|
-
{{ item.data }}
|
|
39
|
-
</view>
|
|
40
|
-
</view>
|
|
41
|
-
</view>
|
|
42
|
-
</view>
|
|
43
|
-
</view>
|
|
44
|
-
</template>
|
|
45
|
-
<script setup lang="ts">
|
|
46
|
-
import Tag from '../Tag/index.vue';
|
|
47
|
-
import CircularButton from '../CircularButton/index.vue';
|
|
48
|
-
import { formatDate } from '../../utils/index';
|
|
49
|
-
import type { DevTool } from '../../type';
|
|
50
|
-
|
|
51
|
-
defineProps<{ ws: DevTool.WS; zIndex?: number }>();
|
|
52
|
-
const emit = defineEmits<{ (e: 'close'): void }>();
|
|
53
|
-
|
|
54
|
-
function onClose() {
|
|
55
|
-
emit('close');
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function onClick(item: {
|
|
59
|
-
type: 'success' | 'error';
|
|
60
|
-
data: string;
|
|
61
|
-
time: number;
|
|
62
|
-
}) {
|
|
63
|
-
uni.setClipboardData({
|
|
64
|
-
data: JSON.stringify(item),
|
|
65
|
-
success() {
|
|
66
|
-
uni.showToast({
|
|
67
|
-
title: '复制成功',
|
|
68
|
-
icon: 'none',
|
|
69
|
-
});
|
|
70
|
-
},
|
|
71
|
-
fail() {
|
|
72
|
-
uni.showToast({
|
|
73
|
-
title: '复制失败',
|
|
74
|
-
icon: 'none',
|
|
75
|
-
});
|
|
76
|
-
},
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
</script>
|
|
80
|
-
<style>
|
|
81
|
-
.web-socket-list-container {
|
|
82
|
-
position: fixed;
|
|
83
|
-
width: 100vw;
|
|
84
|
-
height: 100vh;
|
|
85
|
-
z-index: 1001;
|
|
86
|
-
top: 0;
|
|
87
|
-
left: 0;
|
|
88
|
-
padding: 0 16px;
|
|
89
|
-
|
|
90
|
-
background-color: var(--dev-tool-bg2-color);
|
|
91
|
-
box-sizing: border-box;
|
|
92
|
-
}
|
|
93
|
-
.web-socket-list-title {
|
|
94
|
-
min-height: 32px;
|
|
95
|
-
display: flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.web-socket-data {
|
|
100
|
-
height: calc(100% - 32px);
|
|
101
|
-
overflow: auto;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.web-socket-url {
|
|
105
|
-
display: flex;
|
|
106
|
-
align-items: center;
|
|
107
|
-
min-height: 28px;
|
|
108
|
-
|
|
109
|
-
white-space: wrap;
|
|
110
|
-
word-break: break-all;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.web-socket-top {
|
|
114
|
-
display: flex;
|
|
115
|
-
align-items: center;
|
|
116
|
-
height: 32px;
|
|
117
|
-
|
|
118
|
-
border-bottom: 1px solid transparent;
|
|
119
|
-
box-sizing: border-box;
|
|
120
|
-
}
|
|
121
|
-
.web-socket-title {
|
|
122
|
-
display: flex;
|
|
123
|
-
align-items: center;
|
|
124
|
-
}
|
|
125
|
-
.header-detail-item {
|
|
126
|
-
display: flex;
|
|
127
|
-
align-items: center;
|
|
128
|
-
min-height: 28px;
|
|
129
|
-
word-break: break-all;
|
|
130
|
-
}
|
|
131
|
-
.header-detail-item > view:first-child {
|
|
132
|
-
white-space: nowrap;
|
|
133
|
-
margin-right: 8px;
|
|
134
|
-
color: var(--dev-tool-info-color);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.web-socket-data-item {
|
|
138
|
-
display: flex;
|
|
139
|
-
align-items: center;
|
|
140
|
-
min-height: 28px;
|
|
141
|
-
}
|
|
142
|
-
.web-socket-data-item-error {
|
|
143
|
-
background-color: var(--dev-tool-error-bg-color);
|
|
144
|
-
}
|
|
145
|
-
.web-socket-data-item-success {
|
|
146
|
-
background-color: var(--dev-tool-success-bg-color);
|
|
147
|
-
}
|
|
148
|
-
.web-socket-data-time {
|
|
149
|
-
/* margin-right: 16px; */
|
|
150
|
-
padding: 0 6px;
|
|
151
|
-
flex-shrink: 0;
|
|
152
|
-
color: var(--dev-tool-info-color);
|
|
153
|
-
}
|
|
154
|
-
.web-socket-data-content {
|
|
155
|
-
padding: 6px;
|
|
156
|
-
flex: 1;
|
|
157
|
-
overflow: hidden;
|
|
158
|
-
text-overflow: ellipsis;
|
|
159
|
-
word-break: break-all;
|
|
160
|
-
}
|
|
161
|
-
</style>
|