vite-plugin-vue-devtools 1.0.0-rc.8 → 7.0.1

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.
Files changed (79) hide show
  1. package/README.md +8 -172
  2. package/dist/client/assets/css-a-KJtBLB.js +505 -0
  3. package/dist/client/assets/diff--l9-nN5b.js +1 -0
  4. package/dist/client/assets/html-5-AIf93y.js +74 -0
  5. package/dist/client/assets/index-NNrCE7Vx.css +1 -0
  6. package/dist/client/assets/index-oq63TS6O.js +1080 -0
  7. package/dist/client/assets/javascript-Of8SnKfU.js +699 -0
  8. package/dist/client/assets/json-t1qiHl76.js +25 -0
  9. package/dist/client/assets/onig-mBJmD8D5.js +1 -0
  10. package/dist/client/assets/shellscript-h1L64xId.js +4 -0
  11. package/dist/client/assets/typescript-b1Nw_bQe.js +666 -0
  12. package/dist/client/assets/unocss-runtime-kftsoZPE.js +2 -0
  13. package/dist/client/assets/vitesse-dark-5VceXvs6.js +1 -0
  14. package/dist/client/assets/vitesse-light-HOMMxGxw.js +1 -0
  15. package/dist/client/assets/vue-apis-Nh9IahXf.js +1 -0
  16. package/dist/client/assets/vue-html-eJ6eRCYJ.js +1 -0
  17. package/dist/client/assets/vue-nOwTje1i.js +2002 -0
  18. package/dist/client/assets/yaml-FtfhlYqU.js +200 -0
  19. package/dist/client/color-scheme.js +6 -0
  20. package/dist/client/index.html +13 -21
  21. package/dist/vite.cjs +116 -13794
  22. package/dist/vite.d.cts +6 -9
  23. package/dist/vite.d.mts +6 -9
  24. package/dist/vite.d.ts +6 -9
  25. package/dist/vite.mjs +113 -13774
  26. package/package.json +18 -19
  27. package/src/overlay/devtools-overlay.css +1 -0
  28. package/src/overlay/devtools-overlay.js +4 -0
  29. package/src/overlay.js +77 -0
  30. package/README.zh-CN.md +0 -186
  31. package/client.d.ts +0 -63
  32. package/dist/client/assets/DrawerRight.vue_vue_type_script_setup_true_lang-99688d1e.js +0 -81
  33. package/dist/client/assets/IconButton.vue_vue_type_script_setup_true_lang-48a6bea2.js +0 -26
  34. package/dist/client/assets/IconTitle.vue_vue_type_script_setup_true_lang-adb17252.js +0 -30
  35. package/dist/client/assets/IframeView.vue_vue_type_script_setup_true_lang-4ccdbf42.js +0 -96
  36. package/dist/client/assets/PanelGrids-664603ce.js +0 -15
  37. package/dist/client/assets/SectionBlock-0024395a.css +0 -18
  38. package/dist/client/assets/SectionBlock-04b7ab1e.js +0 -109
  39. package/dist/client/assets/StateFields.vue_vue_type_script_setup_true_lang-48cf50ad.js +0 -381
  40. package/dist/client/assets/Switch.vue_vue_type_script_setup_true_lang-d74bf986.js +0 -87
  41. package/dist/client/assets/TextInput.vue_vue_type_script_setup_true_lang-65c09c69.js +0 -38
  42. package/dist/client/assets/__eyedropper-7bbec9b2.js +0 -149
  43. package/dist/client/assets/_commonjsHelpers-7e83dbf2.js +0 -34
  44. package/dist/client/assets/assets-641818bf.js +0 -1597
  45. package/dist/client/assets/component-docs-7bd37475.js +0 -195
  46. package/dist/client/assets/components-b0181ea4.js +0 -790
  47. package/dist/client/assets/data-8729d21a.js +0 -399
  48. package/dist/client/assets/dayjs.min-f03ccd82.js +0 -13
  49. package/dist/client/assets/documentations-7cba8670.js +0 -276
  50. package/dist/client/assets/fuse.esm-c317b696.js +0 -1782
  51. package/dist/client/assets/graph-edf83976.js +0 -52092
  52. package/dist/client/assets/index-77d53487.js +0 -18551
  53. package/dist/client/assets/index-b5475fe0.css +0 -482
  54. package/dist/client/assets/inspect-d17224a9.js +0 -20
  55. package/dist/client/assets/jse-theme-dark-333a4654.js +0 -1565
  56. package/dist/client/assets/jse-theme-dark-351d62d5.css +0 -114
  57. package/dist/client/assets/npm-076ecb7c.js +0 -550
  58. package/dist/client/assets/npm-832f3f2c.css +0 -209
  59. package/dist/client/assets/overview-d99e7f18.js +0 -303
  60. package/dist/client/assets/pages-fca7d8d3.js +0 -561
  61. package/dist/client/assets/pinia-3f5b6c57.js +0 -108
  62. package/dist/client/assets/pinia-7ed2c830.svg +0 -1
  63. package/dist/client/assets/rerender-trace-3afd48a1.css +0 -14
  64. package/dist/client/assets/rerender-trace-5fc6fb22.js +0 -436
  65. package/dist/client/assets/routes-9567a43f.js +0 -132
  66. package/dist/client/assets/settings-5a2e184c.js +0 -9652
  67. package/dist/client/assets/settings-7bce89ae.css +0 -11
  68. package/dist/client/assets/splitpanes.es-26cdc434.js +0 -343
  69. package/dist/client/assets/timeline-20d79e43.js +0 -1480
  70. package/dist/client/assets/timeline-b315b2e0.css +0 -1
  71. package/dist/client/assets/vue-5d4e674c.svg +0 -1
  72. package/dist/client/assets/vueuse-995374f6.svg +0 -1
  73. package/src/app.js +0 -4
  74. package/src/views/ComponentInspector.vue +0 -68
  75. package/src/views/FrameBox.vue +0 -231
  76. package/src/views/Main.vue +0 -435
  77. package/src/views/RerenderIndicator.vue +0 -37
  78. package/src/views/composables.ts +0 -630
  79. package/src/views/utils.ts +0 -241
package/README.md CHANGED
@@ -1,109 +1,16 @@
1
- > [!IMPORTANT]
2
- > We are heavily refactoring the codebase, so there might only be limited support and a slow response now. The new version will be released soon, if you have any suggestions, please feel free to [create an issue](https://github.com/webfansplz/vite-plugin-vue-devtools/issues/new).
1
+ # vite-plugin-vue-devtools
3
2
 
4
- <p align="center">
5
- <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/bg.png" />
6
- </p>
7
- <h1 align="center">
8
- Vue DevTools <sup>Preview</sup>
9
- </h1>
3
+ > `vite-plugin-vue-devtools` is a `Vite` plugin designed to enhance the `Vue` developer experience.
10
4
 
11
- <p align="center">
12
- English | <a href="./README.zh-CN.md">简体中文</a>
13
- </p>
5
+ ## Installation
14
6
 
15
- <p align="center">
16
- <a href="https://www.npmjs.com/package/vite-plugin-vue-devtools" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/npm/v/vite-plugin-vue-devtools" alt="NPM Version" /></a>
17
- <a href="https://www.npmjs.com/package/vite-plugin-vue-devtools" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/npm/dt/vite-plugin-vue-devtools" alt="NPM Downloads" /></a>
18
- <a href="https://www.npmjs.com/package/vite-plugin-vue-devtools" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/node/v/vite-plugin-vue-devtools" alt="Node Compatibility" /></a>
19
- <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/blob/main/LICENSE" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/github/license/webfansplz/vite-plugin-vue-devtools" alt="License" /></a>
20
- </p>
7
+ ```sh
21
8
 
22
- <p align="center">
23
- <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/1">💡 Ideas & Suggestions</a> |
24
- <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/2">🗺️ Project Roadmap</a> |
25
- <a href="https://discord.gg/sHyy7gVPUG">🧑‍💻 Discord Channel</a>
26
- </p>
27
-
28
- <p align="center">
29
- <a href="https://stackblitz.com/edit/vitejs-vite-oxbwzk?file=vite.config.ts&view=preview"><img src="https://developer.stackblitz.com/img/open_in_stackblitz.svg" alt=""></a>
30
- </p>
31
-
32
-
33
- ## 📖 Introduction
34
-
35
- `vite-plugin-vue-devtools` is a `Vite` plugin designed to enhance the `Vue` developer experience.
36
-
37
-
38
-
39
- ## 🎉 Features
40
-
41
- ### Pages
42
-
43
- The pages tab shows your current routes and provide a quick way to navigate to them. For dynamic routes, it also provide a form to fill with each params interactively. You can also use the textbox to play and test how each route is matched.
44
-
45
- <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/pages.png" />
46
-
47
-
48
- ### Components
49
-
50
- Components tab show all the components you are using in your app and hierarchy. You can also select them to see the details of the component (e.g. data,props).
51
-
52
- <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/components.png" />
53
-
54
- ### Assets
55
-
56
- Assets tab that shows all your static assets and their information. You can open the asset in the browser or download it.
57
-
58
- <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/assets.png" />
59
-
60
- ### Timeline
61
-
62
- Timeline tab has three categories: Performance, Router Navigations, and [Pinia](https://github.com/vuejs/pinia). You can switch between them to see the state changes and timelines.
63
-
64
- <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/timeline.png" />
65
-
66
- ### Routes
67
-
68
- Routes tab is a feature integrated with [Vue Router](https://github.com/vuejs/router), allowing you to view the registered routes and their details.
69
-
70
- <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/routes.png" />
71
-
72
- ### Pinia
73
-
74
- Pinia tab is a feature integrated with [Pinia](https://github.com/vuejs/pinia), allowing you to view the registered modules and their details.
75
-
76
- <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/pinia.png" />
77
-
78
- ### Graph
79
-
80
- Graph tab provides a graph view that show the relationship between components.
81
-
82
- <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/graph.png" />
83
-
84
- ### Inspect
85
-
86
- Inspect expose the [vite-plugin-inspect](https://github.com/antfu/vite-plugin-inspect) integration, allowing you to inspect transformation steps of [Vite](https://vitejs.dev/). It can be helpful to understand how each plugin is transforming your code and spot potential issues.
87
-
88
- <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/inspect.png" />
89
-
90
- ### Inspector
91
-
92
- You can also use the "Inspector" feature to inspect the DOM tree and see which component is rendering it. Click to go to your editor of the specific line. Making it much easier to make changes, without the requirement of understanding the project structure thoroughly. (This feature is implemented based on the [vite-plugin-vue-inspector](https://github.com/webfansplz/vite-plugin-vue-inspector))
93
-
94
- <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/inspector.png" height=450 />
95
-
96
- ## 📦 Installation
9
+ npm add -D vite-plugin-vue-devtools
97
10
 
98
11
  ```
99
12
 
100
- # vite-plugin-vue-devtools
101
-
102
- pnpm install vite-plugin-vue-devtools -D
103
-
104
- ```
105
-
106
- ## 🦄 Usage
13
+ ## Usage
107
14
 
108
15
  ### Configuration Vite
109
16
 
@@ -119,77 +26,6 @@ export default defineConfig({
119
26
  })
120
27
  ```
121
28
 
122
- ### Options
123
-
124
- ```ts
125
- interface AnalyzeOptions {
126
- /**
127
- * @default true
128
- */
129
- rerenderTrace: boolean
130
- }
131
-
132
- interface VitePluginVueDevToolsOptions {
133
- /**
134
- * append an import to the module id ending with `appendTo` instead of adding a script into body
135
- * useful for projects that do not use html file as an entry
136
- *
137
- * WARNING: only set this if you know exactly what it does.
138
- */
139
- appendTo?: string | RegExp
140
- /**
141
- * Enable Vue DevTools to analyze the codebase by using Babel
142
- * @default
143
- * {
144
- * rerenderTrace: true, // enable rerenderTrace feature
145
- * }
146
- */
147
- analyze?: Partial<AnalyzeOptions>
148
-
149
- /**
150
- * Customize openInEditor host (e.g. http://localhost:3000)
151
- * @default false
152
- */
153
- openInEditorHost?: string | false
154
- }
155
- ```
156
-
157
- ## 💡 Notice
158
-
159
- - Only available in `development mode`.
160
- - Only support `Vue3.0+` and `Vite 3.1+`.
161
- - Only supports single-instance `Vue` applications.
162
- - Doesn't support `SSR` (If you're using `Nuxt`, use [nuxt/devtools](https://github.com/nuxt/devtools) directly).
163
- - The plugin follows `Vue's DevTools` configuration, so if you have configured the `hide` option, it will also be applied in this plugin. e.g.
164
-
165
- ```js
166
- // This Vue instance will be ignored by the plugin.
167
- createApp({
168
- render: () => h(App),
169
- devtools: {
170
- hide: true,
171
- },
172
- })
173
- ```
174
-
175
- ## 📖 Blog Post
176
-
177
- - [Introducing Vue DevTools (Vite Plugin)](https://gist.github.com/webfansplz/bc90a773a0dd474a34e043ab2d2a37a4)
178
-
179
- ## 🌸 Credits
180
-
181
- - This project is highly inspired by [nuxt/devtools](https://github.com/nuxt/devtools). Kudos to [Anthony Fu](https://github.com/antfu) and `Nuxt` team for the awesome work!
182
-
183
- - [vuejs/devtools](https://github.com/vuejs/devtools)
184
-
185
-
186
- ## 👨‍💻 Contributors
187
-
188
- <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/graphs/contributors">
189
- <img src="https://contrib.rocks/image?repo=webfansplz/vite-plugin-vue-devtools" />
190
- </a>
191
-
192
- ## 📄 License
193
-
194
- [MIT LICENSE](./LICENSE)
29
+ ## Documentation
195
30
 
31
+ Check out all the DevTools details at [devtools-next.vuejs.org](https://devtools-next.vuejs.org).