Skip to content

Commit 3b5d705

Browse files
committed
feat: icon draggleable
1 parent d2ba3c6 commit 3b5d705

4 files changed

Lines changed: 32 additions & 26 deletions

File tree

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
21
<p align="center">
3-
<a href="https://github.com/hellof2e/vite-plugin-dev-inspector"><img src="./logo.svg" width="180" alt="vite-plugin-dev-inspector"></a>
2+
<a href="https://github.com/hellof2e/vite-plugin-dev-inspector">
3+
<img src="https://raw.githubusercontent.com/hellof2e/vite-plugin-dev-inspector/988a71dca91490cf4a604c98609b24f80f7eb383/logo.svg" width="180" alt="vite-plugin-dev-inspector">
4+
</a>
45
</p>
56

67
<p align="center">
@@ -10,23 +11,23 @@
1011

1112

1213
<p align="center">
13-
(开发环境)点击页面元素,IDE直接打开对应代码文件。支持 Vue2, Vue3, React, Svelte,Angular, SSR等任何前端工程。
14+
(开发环境)点击页面元素,IDE直接打开对应代码文件。支持 Vue2, Vue3, React, Svelte,Angular, SSR等任何前端工程。
1415
</p>
16+
1517
<p align="center">
1618
<a href="https://stackblitz.com/edit/vitejs-vite-shxjct?file=src%2FApp.vue"><img src="https://developer.stackblitz.com/img/open_in_stackblitz.svg" alt=""></a>
1719
</p>
1820

1921

22+
2023
## Introduction
2124

2225
A vite plugin which provides the ability that to jump to the local IDE when you click the element of browser automatically. It supports Vue2, Vue3, React, Svelte,Angular, SSR(All frameworks).
2326

24-
2527
<p align="center">
2628
<img src="./preview.gif" alt="vite-plugin-vue-inspector">
2729
</p>
2830

29-
3031
## Installation
3132

3233
```bash
@@ -40,7 +41,6 @@ npm install vite-plugin-dev-inspector -D
4041

4142
## Usage
4243

43-
4444
### Keyboard shortcut
4545

4646
- Mac: <kbd>⌘</kbd> + <kbd>⇧</kbd>
@@ -111,7 +111,7 @@ export default defineConfig({
111111

112112

113113
```ts
114-
// for Svelte
114+
// for preact
115115
import { defineConfig } from 'vite'
116116
import { svelte } from '@sveltejs/vite-plugin-svelte'
117117
import inspector from 'vite-plugin-dev-inspector'
@@ -129,7 +129,13 @@ export default defineConfig({
129129

130130

131131
```ts
132-
interface VitePluginInspectorOptions {
132+
inspector({
133+
/**
134+
* Toggle button visibility
135+
* @default 'active'
136+
*/
137+
toggleButtonVisibility?: 'always' | 'active' | 'never'
138+
133139
/**
134140
* Default enable state
135141
* @default false
@@ -148,12 +154,6 @@ interface VitePluginInspectorOptions {
148154
*/
149155
toggleComboKey?: string | false
150156

151-
/**
152-
* Toggle button visibility
153-
* @default 'active'
154-
*/
155-
toggleButtonVisibility?: 'always' | 'active' | 'never'
156-
157157
/**
158158
* Toggle button display position
159159
* @default top-right
@@ -202,12 +202,12 @@ interface VitePluginInspectorOptions {
202202
* @default code (Visual Studio Code)
203203
*/
204204
launchEditor?: 'appcode' | 'atom' | 'atom-beta' | 'brackets' | 'clion' | 'code' | 'code-insiders' | 'codium' | 'emacs' | 'idea' | 'notepad++' | 'pycharm' | 'phpstorm' | 'rubymine' | 'sublime' | 'vim' | 'visualstudio' | 'webstorm'
205-
}
205+
})
206206
```
207207

208208

209209
## Notes
210-
Vite-plugin-dev-inspector was inspired by [vite-plugin-vue-inspector](https://github.com/webfansplz/vite-plugin-vue-inspector).
210+
Vite-plugin-dev-inspector is fork from [vite-plugin-vue-inspector](https://github.com/webfansplz/vite-plugin-vue-inspector), but it does not repy on front-end frameworks. It can support any front-end technology stack at the same time, such as Vue 2 & 3, React, Angular, Svelte, Nuxt and SSR.
211211

212212
## License
213213

packages/core/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# vite-plugin-dev-inspector
22

3+
## 2.2.0
4+
5+
### Minor Changes
6+
7+
- icon button dragglable
8+
39
## 2.1.9
410

511
### Patch Changes

packages/core/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,13 @@ export default defineConfig({
129129

130130

131131
```ts
132-
interface VitePluginInspectorOptions {
132+
inspector({
133+
/**
134+
* Toggle button visibility
135+
* @default 'active'
136+
*/
137+
toggleButtonVisibility?: 'always' | 'active' | 'never'
138+
133139
/**
134140
* Default enable state
135141
* @default false
@@ -148,12 +154,6 @@ interface VitePluginInspectorOptions {
148154
*/
149155
toggleComboKey?: string | false
150156

151-
/**
152-
* Toggle button visibility
153-
* @default 'active'
154-
*/
155-
toggleButtonVisibility?: 'always' | 'active' | 'never'
156-
157157
/**
158158
* Toggle button display position
159159
* @default top-right
@@ -202,12 +202,12 @@ interface VitePluginInspectorOptions {
202202
* @default code (Visual Studio Code)
203203
*/
204204
launchEditor?: 'appcode' | 'atom' | 'atom-beta' | 'brackets' | 'clion' | 'code' | 'code-insiders' | 'codium' | 'emacs' | 'idea' | 'notepad++' | 'pycharm' | 'phpstorm' | 'rubymine' | 'sublime' | 'vim' | 'visualstudio' | 'webstorm'
205-
}
205+
})
206206
```
207207

208208

209209
## Notes
210-
Vite-plugin-dev-inspector is fork from [vite-plugin-vue-inspector](https://github.com/webfansplz/vite-plugin-vue-inspector) and I rewrote it in order to better serve my working scenarios.
210+
Vite-plugin-dev-inspector is fork from [vite-plugin-vue-inspector](https://github.com/webfansplz/vite-plugin-vue-inspector), but it does not repy on front-end frameworks. It can support any front-end technology stack at the same time, such as Vue 2 & 3, React, Angular, Svelte, Nuxt and SSR.
211211

212212
## License
213213

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vite-plugin-dev-inspector",
3-
"version": "2.1.9",
3+
"version": "2.2.0",
44
"description": "jump to local IDE source code while click the element of browser automatically.",
55
"author": "xsf0105",
66
"license": "MIT",

0 commit comments

Comments
 (0)