vite-uni-dev-tool 0.0.31 → 0.0.33
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
CHANGED
package/dist/core.js
CHANGED
|
@@ -3,7 +3,7 @@ import { DevEvent as u } from "./devEvent/index.js";
|
|
|
3
3
|
import { DevIntercept as a } from "./devIntercept/index.js";
|
|
4
4
|
import { DevConsole as v } from "./devConsole/index.js";
|
|
5
5
|
import { EventBus as D } from "./devEventBus/index.js";
|
|
6
|
-
const i = "0.0.
|
|
6
|
+
const i = "0.0.32", l = "2025/12/24 14:30:16", g = {
|
|
7
7
|
// log: console.log,
|
|
8
8
|
// info: console.info,
|
|
9
9
|
// warn: console.warn,
|
package/dist/devStore/index.js
CHANGED
|
@@ -86,7 +86,7 @@ class C {
|
|
|
86
86
|
var o, i, a;
|
|
87
87
|
this.devToolOptions = t, this.uploadMaxSize = t.uploadMaxSize || 1e3, this.consoleMaxSize = t.consoleMaxSize || 1e3, this.networkMaxSize = t.networkMaxSize || 1e3, this.wsDataMaxSize = t.wsDataMaxSize || 1e3, this.cacheMaxSize = t.cacheMaxSize || 8 * 1024 * 1024 * 10, this.eventListMaxSize = t.eventListMaxSize || 1e3, this.captureScreenMaxSize = t.captureScreenMaxSize || 1e3, this.zIndex = t.zIndex || 998, this.devToolVersion = t.devToolVersion ?? "0.0.0", this.devToolBuildTime = t.devToolBuildTime ?? "";
|
|
88
88
|
const { devToolButtonVisible: e } = d();
|
|
89
|
-
this.devToolVisible = f(e) ? e : t.initShowDevTool ?? !0, this.setDevToolVisible(this.devToolVisible), this.setDevToolDestroy(!this.
|
|
89
|
+
this.devToolVisible = f(e) ? e : t.initShowDevTool ?? !0, this.setDevToolVisible(this.devToolVisible), this.setDevToolDestroy(!this.devToolVisible);
|
|
90
90
|
const s = ((o = t.pagesJson) == null ? void 0 : o.pages.map((r) => {
|
|
91
91
|
var n, l, u;
|
|
92
92
|
const h = (u = (l = (n = t.pagesJson) == null ? void 0 : n.tabBar) == null ? void 0 : l.list) == null ? void 0 : u.some(
|
|
@@ -99,7 +99,6 @@ function onSendMessage(param: { type: string; data: Record<string, any> }) {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
function onDevOptionSend(options: DevTool.DevToolOptions) {
|
|
102
|
-
console.log('options: ', options);
|
|
103
102
|
if (options) {
|
|
104
103
|
buttonProps.buttonSize = options.buttonSize ?? 50;
|
|
105
104
|
buttonProps.buttonText = options.buttonText ?? '🐜';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="network-item"
|
|
2
|
+
<view class="network-item">
|
|
3
3
|
<view class="network-url-row">
|
|
4
4
|
<Tag mode="error" style="margin-right: 6px" v-if="network?.intercepted">
|
|
5
5
|
拦
|
|
6
6
|
</Tag>
|
|
7
7
|
<Tag mode="info">{{ network.method }}</Tag>
|
|
8
8
|
|
|
9
|
-
<view class="network-url" v-html="lastUrl"
|
|
9
|
+
<view class="network-url" v-html="lastUrl" @click="emit('openDetail')">
|
|
10
|
+
</view>
|
|
10
11
|
|
|
11
12
|
<Tag mode="main" class="network-detail-icon" @click.stop="emit('resend')">
|
|
12
13
|
重发
|
|
@@ -107,6 +108,7 @@ const tagMode = computed(() => {
|
|
|
107
108
|
white-space: nowrap;
|
|
108
109
|
overflow: hidden;
|
|
109
110
|
text-overflow: ellipsis;
|
|
111
|
+
text-decoration: underline;
|
|
110
112
|
}
|
|
111
113
|
.network-detail-icon {
|
|
112
114
|
margin-left: auto;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="upload-item"
|
|
3
|
-
<view class="upload-url-row">
|
|
2
|
+
<view class="upload-item">
|
|
3
|
+
<view class="upload-url-row" @click="emit('openDetail', upload)">
|
|
4
4
|
<Tag mode="info">POST</Tag>
|
|
5
5
|
<view class="upload-url" v-html="upload.url" />
|
|
6
6
|
</view>
|
|
@@ -76,12 +76,12 @@ const isUseDevSource = computed(() => {
|
|
|
76
76
|
border-bottom: 1px solid var(--dev-tool-border-color);
|
|
77
77
|
font-size: var(--dev-tool-base-font-size);
|
|
78
78
|
}
|
|
79
|
-
.upload-
|
|
79
|
+
.upload-url-row {
|
|
80
80
|
display: flex;
|
|
81
81
|
align-items: center;
|
|
82
82
|
word-break: break-all;
|
|
83
83
|
}
|
|
84
|
-
.websocket-
|
|
84
|
+
.websocket-url {
|
|
85
85
|
margin-left: 4px;
|
|
86
86
|
flex: 1;
|
|
87
87
|
white-space: nowrap;
|
|
@@ -89,7 +89,7 @@ const isUseDevSource = computed(() => {
|
|
|
89
89
|
text-overflow: ellipsis;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.upload-
|
|
92
|
+
.upload-detail-icon {
|
|
93
93
|
flex-shrink: 0;
|
|
94
94
|
margin-left: auto;
|
|
95
95
|
}
|
|
@@ -99,11 +99,12 @@ const isUseDevSource = computed(() => {
|
|
|
99
99
|
white-space: nowrap;
|
|
100
100
|
overflow: hidden;
|
|
101
101
|
text-overflow: ellipsis;
|
|
102
|
+
text-decoration: underline;
|
|
102
103
|
}
|
|
103
|
-
.upload-
|
|
104
|
+
.upload-detail-active {
|
|
104
105
|
transform: rotate(135deg);
|
|
105
106
|
}
|
|
106
|
-
.upload-
|
|
107
|
+
.upload-info {
|
|
107
108
|
display: flex;
|
|
108
109
|
align-items: center;
|
|
109
110
|
justify-content: space-between;
|