Skip to content

Commit d3bd5b3

Browse files
committed
fix: fix eyedropper dialog can not close
1 parent 95490b8 commit d3bd5b3

File tree

6 files changed

+30
-19
lines changed

6 files changed

+30
-19
lines changed

PLAN.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# readme.md
21
# ci
2+
33
# PlAN
4+
45
# drag
5-
# close bug
6+
# 关闭后会到 overview

README.md

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,79 +8,89 @@ ikun-svelte-devtools
88
🍨 A vite plugin that improves the svelte development experience
99
</p>
1010

11-
1211
## Features
1312

1413
![overview.png](public%2Foverview.png)
1514

1615
### page
1716

18-
In the pages module, you can quickly understand which pages the project contains
17+
In the pages module, you can quickly understand which pages the project contains
1918

2019
![page.png](public%2Fpage.png)
2120

2221
### Routes
23-
In the Routes module, you can quickly understand the routing information of the project
22+
23+
In the Routes module, you can quickly understand the routing information of the project
2424

2525
![router.png](public%2Frouter.png)
2626

2727
### Assets
28-
In the Assets module, you can quickly understand the static resources of the project, including pictures, fonts, etc.
28+
29+
In the Assets module, you can quickly understand the static resources of the project, including pictures, fonts, etc.
2930

3031
![assets.png](public%2Fassets.png)
3132

3233
### Search Packages
33-
In the Search Packages module you can search for dependencies and install or uninstall them
34+
35+
In the Search Packages module you can search for dependencies and install or uninstall them
3436

3537
![search-package.png](public%2Fsearch-package.png)
3638

3739
### Inspect
38-
In the Inspect module you can view the compiled code, It comes from `vite-plugin-inspect` support.
40+
41+
In the Inspect module you can view the compiled code, It comes from `vite-plugin-inspect` support.
3942

4043
![inpect.png](public%2Finpect.png)
4144

4245
### Graph
43-
In the Graph module, you can quickly understand the reference relationship between js and sfc through visualization
46+
47+
In the Graph module, you can quickly understand the reference relationship between js and sfc through visualization
4448

4549
![graph.png](public%2Fgraph.png)
4650

4751
### Inspector
52+
4853
In the Inspector module, you can click on an element on the page to open the corresponding source code in the IDE.
4954
It comes from `svelte-kit-inspector` support.
5055

51-
5256
### EyeDropper
57+
5358
EyeDropper module can open a color picker
5459

5560
## Install
5661

5762
```bash
5863
npm i @ikun-svelte-devtools/server -D
5964
```
65+
6066
Or
67+
6168
```bash
6269
yarn add @ikun-svelte-devtools/server -D
6370
```
71+
6472
Or
73+
6574
```bash
6675
pnpm add @ikun-svelte-devtools/server -D
6776
```
6877

6978
## Usage
79+
7080
```ts
7181
// vite.config.ts
7282
import { sveltekit } from '@sveltejs/kit/vite';
7383
import { defineConfig } from 'vite';
7484
import svelteDevtools from '@ikun-svelte-devtools/server';
7585
export default defineConfig({
76-
plugins: [
77-
svelteDevtools({
78-
sveltekit: sveltekit()
79-
}),
80-
],
86+
plugins: [
87+
svelteDevtools({
88+
sveltekit: sveltekit()
89+
})
90+
]
8191
});
82-
8392
```
93+
8494
## Thanks
8595

8696
- [svelte](https://github.com/sveltejs/svelte)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ikun-svelte-devtools/core",
3-
"description": "\uD83C\uDF68 A vite plugin that improves the svelte development experience",
3+
"description": "🍨 A vite plugin that improves the svelte development experience",
44
"type": "module",
55
"version": "0.0.1-beta.12",
66
"keywords": [

packages/client/src/views/pages.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
6464
function setCurrentAndNextRoute(path = ''){
6565
nextRoute = currentRoute = path ? path : window.parent.location.pathname;
66-
console.log(currentRoute, nextRoute)
6766
}
6867
6968

packages/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ikun-svelte-devtools/server",
3-
"description": "\uD83C\uDF68 A vite plugin that improves the svelte development experience",
3+
"description": "🍨 A vite plugin that improves the svelte development experience",
44
"type": "module",
55
"version": "0.0.1-beta.12",
66
"main": "./dist/index.js",

packages/server/src/app/devtools-container.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
eyeDropperRef && (eyeDropperRef.style.display = 'flex')
9595
setTimeout(() => modalRef && (modalRef.style.display = 'none'), 350)
9696
}else {
97+
eyeDropperRef && (eyeDropperRef.style.display = 'none')
9798
setTimeout(() => bubbleRef && (bubbleRef.style.display = 'none'), 350)
9899
modalRef && (modalRef.style.display = 'initial')
99100
}

0 commit comments

Comments
 (0)