vite-uni-dev-tool 0.0.2 → 0.0.4

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
@@ -52,69 +52,71 @@ export default defineConfig({
52
52
 
53
53
  | vue2 | vue3 |
54
54
  | ---- | ---- |
55
- | x | |
55
+ | N | Y |
56
56
 
57
- | 微信小程序 | 安卓 | 其他 |
58
- | ---------- | ---- | ---- |
59
- | | | x |
57
+ | 微信小程序 | 安卓 | 其他 |
58
+ | ---------- | ---- | ------ |
59
+ | Y | Y | 未测试 |
60
60
 
61
61
  ### 预览
62
62
 
63
+ ![all.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/all.png)
64
+
63
65
  - 支持 console 日志
64
66
 
65
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/console.jpg)
67
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/console.jpg)
66
68
 
67
69
  - 支持 network 监控
68
70
 
69
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/network1.jpg)
70
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/network2.jpg)
71
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/network3.jpg)
72
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/network4.jpg)
71
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/network1.jpg)
72
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/network2.jpg)
73
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/network3.jpg)
74
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/network4.jpg)
73
75
 
74
76
  - 支持 upload 监控
75
77
 
76
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/upload1.jpg)
77
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/upload2.jpg)
78
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/upload3.jpg)
79
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/upload4.jpg)
78
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/upload1.jpg)
79
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/upload2.jpg)
80
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/upload3.jpg)
81
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/upload4.jpg)
80
82
 
81
83
  - 支持 websocket 监控
82
84
 
83
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/websocket1.jpg)
84
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/websocket2.jpg)
85
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/websocket1.jpg)
86
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/websocket2.jpg)
85
87
 
86
88
  - 支持 connection 网络状态查看
87
89
 
88
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/connection.jpg)
90
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/connection.jpg)
89
91
 
90
92
  - 支持 route 查看,跳转
91
93
 
92
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/route.jpg)
94
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/route.jpg)
93
95
 
94
96
  - 支持 storage 监控,编辑
95
97
 
96
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/storage.jpg)
98
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/storage.jpg)
97
99
 
98
100
  - 支持 vuex 监控,编辑
99
101
 
100
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/vuex.jpg)
102
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/vuex.jpg)
101
103
 
102
104
  - 支持 pinia 监控,编辑
103
105
 
104
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/pinia.jpg)
106
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/pinia.jpg)
105
107
 
106
108
  - 支持查看 window 信息
107
109
 
108
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/window.jpg)
110
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/window.jpg)
109
111
 
110
112
  - 支持查看 device 信息
111
113
 
112
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/device.jpg)
114
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/device.jpg)
113
115
 
114
116
  - 支持查看 system 信息
115
117
 
116
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/system.jpg)
118
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/system.jpg)
117
119
 
118
120
  - setting 页,支持重启,导出日志(h5,app)
119
121
 
120
- ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/core/public/setting.jpg)
122
+ ![image.png](https://gitee.com/cloud_l/vite-uni-dev-tool/raw/master/packages/docs/public/setting.jpg)
@@ -9,6 +9,7 @@ import {
9
9
  getLanIp,
10
10
  getMicroAppIp,
11
11
  getWifiIp,
12
+ isBoolean,
12
13
  } from '../utils/index';
13
14
 
14
15
  /** 数据存储中心 */
@@ -131,6 +132,13 @@ export class DevStore {
131
132
  this.wsDataMaxSize = options.wsDataMaxSize || 1000;
132
133
  this.cacheMaxSize = options.cacheMaxSize || 8 * 1024 * 1024 * 10;
133
134
 
135
+ const devToolVisible = uni.getStorageSync(EVENT_DEV_BUTTON);
136
+ this.devToolVisible = isBoolean(devToolVisible)
137
+ ? devToolVisible
138
+ : (options.initShowDevTool ?? true);
139
+
140
+ this.setDevToolVisible(this.devToolVisible);
141
+
134
142
  const pages =
135
143
  options.pagesJson?.pages.map((page) => {
136
144
  const isNav = options.pagesJson?.tabBar?.list?.some(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-uni-dev-tool",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "vite-uni-dev-tool, debug, uni-app, 一处编写,到处调试",
5
5
  "keywords": [
6
6
  "vite",