Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit da8f7bd

Browse files
committed
chore: update
1 parent 719c6e0 commit da8f7bd

File tree

2 files changed

+2
-381
lines changed

2 files changed

+2
-381
lines changed

README.md

Lines changed: 1 addition & 194 deletions
Original file line numberDiff line numberDiff line change
@@ -1,194 +1 @@
1-
# Project Moved to [vuejs/devtools-next](https://github.com/vuejs/devtools-next)
2-
3-
<p align="center">
4-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/bg.png" />
5-
</p>
6-
<h1 align="center">
7-
Vue DevTools <sup>Preview</sup>
8-
</h1>
9-
10-
<p align="center">
11-
English | <a href="./README.zh-CN.md">简体中文</a>
12-
</p>
13-
14-
<p align="center">
15-
<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>
16-
<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>
17-
<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>
18-
<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>
19-
</p>
20-
21-
<p align="center">
22-
<a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/1">💡 Ideas & Suggestions</a> |
23-
<a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/2">🗺️ Project Roadmap</a> |
24-
<a href="https://discord.gg/sHyy7gVPUG">🧑‍💻 Discord Channel</a>
25-
</p>
26-
27-
<p align="center">
28-
<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>
29-
</p>
30-
31-
32-
## 📖 Introduction
33-
34-
`vite-plugin-vue-devtools` is a `Vite` plugin designed to enhance the `Vue` developer experience.
35-
36-
37-
38-
## 🎉 Features
39-
40-
### Pages
41-
42-
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.
43-
44-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/pages.png" />
45-
46-
47-
### Components
48-
49-
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).
50-
51-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/components.png" />
52-
53-
### Assets
54-
55-
Assets tab that shows all your static assets and their information. You can open the asset in the browser or download it.
56-
57-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/assets.png" />
58-
59-
### Timeline
60-
61-
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.
62-
63-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/timeline.png" />
64-
65-
### Routes
66-
67-
Routes tab is a feature integrated with [Vue Router](https://github.com/vuejs/router), allowing you to view the registered routes and their details.
68-
69-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/routes.png" />
70-
71-
### Pinia
72-
73-
Pinia tab is a feature integrated with [Pinia](https://github.com/vuejs/pinia), allowing you to view the registered modules and their details.
74-
75-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/pinia.png" />
76-
77-
### Graph
78-
79-
Graph tab provides a graph view that show the relationship between components.
80-
81-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/graph.png" />
82-
83-
### Inspect
84-
85-
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.
86-
87-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/inspect.png" />
88-
89-
### Inspector
90-
91-
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))
92-
93-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/inspector.png" height=450 />
94-
95-
## 📦 Installation
96-
97-
```
98-
99-
# vite-plugin-vue-devtools
100-
101-
pnpm install vite-plugin-vue-devtools -D
102-
103-
```
104-
105-
## 🦄 Usage
106-
107-
### Configuration Vite
108-
109-
```ts
110-
import { defineConfig } from 'vite'
111-
import VueDevTools from 'vite-plugin-vue-devtools'
112-
113-
export default defineConfig({
114-
plugins: [
115-
VueDevTools(),
116-
vue(),
117-
],
118-
})
119-
```
120-
121-
### Options
122-
123-
```ts
124-
interface AnalyzeOptions {
125-
/**
126-
* @default true
127-
*/
128-
rerenderTrace: boolean
129-
}
130-
131-
interface VitePluginVueDevToolsOptions {
132-
/**
133-
* append an import to the module id ending with `appendTo` instead of adding a script into body
134-
* useful for projects that do not use html file as an entry
135-
*
136-
* WARNING: only set this if you know exactly what it does.
137-
*/
138-
appendTo?: string | RegExp
139-
/**
140-
* Enable Vue DevTools to analyze the codebase by using Babel
141-
* @default
142-
* {
143-
* rerenderTrace: true, // enable rerenderTrace feature
144-
* }
145-
*/
146-
analyze?: Partial<AnalyzeOptions>
147-
148-
/**
149-
* Customize openInEditor host (e.g. http://localhost:3000)
150-
* @default false
151-
*/
152-
openInEditorHost?: string | false
153-
}
154-
```
155-
156-
## 💡 Notice
157-
158-
- Only available in `development mode`.
159-
- Only support `Vue3.0+` and `Vite 3.1+`.
160-
- Only supports single-instance `Vue` applications.
161-
- Doesn't support `SSR` (If you're using `Nuxt`, use [nuxt/devtools](https://github.com/nuxt/devtools) directly).
162-
- 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.
163-
164-
```js
165-
// This Vue instance will be ignored by the plugin.
166-
createApp({
167-
render: () => h(App),
168-
devtools: {
169-
hide: true,
170-
},
171-
})
172-
```
173-
174-
## 📖 Blog Post
175-
176-
- [Introducing Vue DevTools (Vite Plugin)](https://gist.github.com/webfansplz/bc90a773a0dd474a34e043ab2d2a37a4)
177-
178-
## 🌸 Credits
179-
180-
- 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!
181-
182-
- [vuejs/devtools](https://github.com/vuejs/devtools)
183-
184-
185-
## 👨‍💻 Contributors
186-
187-
<a href="https://github.com/webfansplz/vite-plugin-vue-devtools/graphs/contributors">
188-
<img src="https://contrib.rocks/image?repo=webfansplz/vite-plugin-vue-devtools" />
189-
</a>
190-
191-
## 📄 License
192-
193-
[MIT LICENSE](./LICENSE)
194-
1+
# 💡 Project Moved to [vuejs/devtools-next](https://github.com/vuejs/devtools-next)

README.zh-CN.md

Lines changed: 1 addition & 187 deletions
Original file line numberDiff line numberDiff line change
@@ -1,188 +1,2 @@
1-
# 项目迁移至 [vuejs/devtools-next](https://github.com/vuejs/devtools-next)
2-
3-
<p align="center">
4-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/bg.png" />
5-
</p>
6-
<h1 align="center">
7-
Vue DevTools <sup>预览</sup>
8-
</h1>
9-
10-
<p align="center">
11-
<a href="./README.md">English</a> | 简体中文
12-
</p>
13-
14-
<p align="center">
15-
<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>
16-
<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>
17-
<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>
18-
</p>
19-
20-
<p align="center">
21-
<a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/1">💡 想法 & 建议</a> |
22-
<a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/2">🗺️ 项目路线图</a> |
23-
<a href="https://discord.gg/sHyy7gVPUG">🧑‍💻 Discord 频道</a>
24-
</p>
25-
26-
<p align="center">
27-
<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>
28-
</p>
29-
30-
31-
## 📖 介绍
32-
33-
`vite-plugin-vue-devtools` 是一个旨在增强 `Vue` 开发者体验的 `Vite` 插件。
34-
35-
36-
37-
## 🎉 特性
38-
39-
### Pages
40-
41-
`Pages` 选项卡显示您当前的页面路由并提供快速导航的方法。对于动态路由,它还提供了一个表单来交互式地填写每个参数。您还可以使用文本框来测试每个路由的匹配情况。
42-
43-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/pages.png" />
44-
45-
46-
### Components
47-
48-
`Components` 选项卡显示您应用程序的所有组件树,您还可以选择它们来查看组件的详细信息(例如数据、属性)。
49-
50-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/components.png" />
51-
52-
### Assets
53-
54-
`Assets` 选项卡显示所有静态资源及其信息,您可以在浏览器中打开或下载它。
55-
56-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/assets.png" />
57-
58-
### Timeline
59-
60-
`Timeline` 选项卡包含三个类别:性能、路由导航和 [Pinia](https://github.com/vuejs/pinia),您可以在它们之间切换以查看状态变化和时间线。
61-
62-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/timeline.png" />
63-
64-
### Routes
65-
66-
`Routes` 选项卡是与 [Vue Router](https://github.com/vuejs/router) 集成的功能,允许您查看注册的路由及其详细信息。
67-
68-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/routes.png" />
69-
70-
### Pinia
71-
72-
`Pinia` 选项卡是与 [Pinia](https://github.com/vuejs/pinia) 集成的功能,允许您查看注册的模块及其详细信息。
73-
74-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/pinia.png" />
75-
76-
### Graph
77-
78-
`Graph` 选项卡提供了显示组件依赖关系的视图。
79-
80-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/graph.png" />
81-
82-
### Inspect
83-
84-
`Inspect` 公开 [vite-plugin-inspect](https://github.com/antfu/vite-plugin-inspect) 集成,允许您检查 [Vite](https://vitejs.dev/) 的转换步骤,了解每个插件如何改变您的代码并发现潜在问题可能会有所帮助。
85-
86-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/inspect.png" />
87-
88-
### Inspector
89-
90-
您还可以使用 `Inspector` 功能来检查 `DOM` 树并查看哪个组件正在渲染它,单击可转到编辑器的特定行,使更改变得更加容易,而无需彻底了解项目结构。 (该功能基于 [vite-plugin-vue-inspector](https://github.com/webfansplz/vite-plugin-vue-inspector))
91-
92-
<img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/inspector.png" height=450 />
93-
94-
## 📦 安装
95-
96-
```
97-
98-
# vite-plugin-vue-devtools
99-
100-
pnpm install vite-plugin-vue-devtools -D
101-
102-
```
103-
104-
## 🦄 示例
105-
106-
### Vite 配置
107-
108-
```ts
109-
import { defineConfig } from 'vite'
110-
import VueDevTools from 'vite-plugin-vue-devtools'
111-
112-
export default defineConfig({
113-
plugins: [
114-
VueDevTools(),
115-
vue(),
116-
],
117-
})
118-
```
119-
120-
### 选项
121-
122-
```ts
123-
interface AnalyzeOptions {
124-
/**
125-
* @default true
126-
*/
127-
rerenderTrace: boolean
128-
}
129-
130-
interface VitePluginVueDevToolsOptions {
131-
/**
132-
* append an import to the module id ending with `appendTo` instead of adding a script into body
133-
* useful for projects that do not use html file as an entry
134-
*
135-
* WARNING: only set this if you know exactly what it does.
136-
*/
137-
appendTo?: string | RegExp
138-
139-
/**
140-
* Enable Vue DevTools to analyze the codebase by using Babel
141-
* @default
142-
* {
143-
* rerenderTrace: true, // enable rerenderTrace feature
144-
* }
145-
*/
146-
analyze?: Partial<AnalyzeOptions>
147-
}
148-
```
149-
150-
## 💡 注意
151-
152-
- 仅在 `开发模式` 下可用。
153-
- 仅支持 `Vue3.0+``Vite 3.1+`
154-
- 仅支持单实例 `Vue` 应用程序。
155-
- 不支持 `SSR` (如果您使用 `Nuxt` ,请使用 [nuxt/devtools](https://github.com/nuxt/devtools))。
156-
- 该插件遵循 `Vue``DevTools` 配置,因此如果您配置了 `hide` 选项,它也将应用于该插件。例如
157-
158-
```js
159-
// This Vue instance will be ignored by the plugin.
160-
createApp({
161-
render: () => h(App),
162-
devtools: {
163-
hide: true,
164-
},
165-
})
166-
```
167-
168-
## 📖 博客
169-
170-
- [介绍 Vue DevTools (Vite 插件)](https://gist.github.com/webfansplz/bc90a773a0dd474a34e043ab2d2a37a4)
171-
172-
## 🌸 致谢
173-
174-
- 该项目深受 [nuxt/devtools](https://github.com/nuxt/devtools) 的启发,感谢 [Anthony Fu](https://github.com/antfu)`Nuxt` 团队的出色工作
175-
176-
- [vuejs/devtools](https://github.com/vuejs/devtools)
177-
178-
179-
## 👨‍💻 贡献者
180-
181-
<a href="https://github.com/webfansplz/vite-plugin-vue-devtools/graphs/contributors">
182-
<img src="https://contrib.rocks/image?repo=webfansplz/vite-plugin-vue-devtools" />
183-
</a>
184-
185-
## 📄 License
186-
187-
[MIT LICENSE](./LICENSE)
1+
# 💡 项目迁移至 [vuejs/devtools-next](https://github.com/vuejs/devtools-next)
1882

0 commit comments

Comments
 (0)