Skip to content

Commit 90d29a5

Browse files
committed
chore: update
1 parent aef55c4 commit 90d29a5

File tree

6 files changed

+26
-20
lines changed

6 files changed

+26
-20
lines changed

packages/self-inspect/src/app/components/ClientScriptsList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import type { ClientScriptInfo } from '~~/node/rpc/functions/get-client-scripts'
2+
import type { ClientScriptInfo } from '../../types'
33
44
defineProps<{
55
scripts: ClientScriptInfo[]

packages/self-inspect/src/app/components/DevtoolsPluginsList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import type { DevtoolsPluginInfo } from '~~/node/rpc/functions/get-devtools-plugins'
2+
import type { DevtoolsPluginInfo } from '../../types'
33
import { computed, ref } from 'vue'
44
55
const props = defineProps<{

packages/self-inspect/src/node/rpc/functions/get-client-scripts.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
import type { ClientScriptEntry } from '@vitejs/devtools-kit'
1+
import type { ClientScriptInfo } from '../../../types'
22
import { defineRpcFunction } from '@vitejs/devtools-kit'
33

4-
export interface ClientScriptInfo {
5-
dockId: string
6-
dockTitle: string
7-
dockType: string
8-
script: ClientScriptEntry
9-
}
10-
114
export const getClientScripts = defineRpcFunction({
125
name: 'devtoolskit:self-inspect:get-client-scripts',
136
type: 'query',

packages/self-inspect/src/node/rpc/functions/get-devtools-plugins.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
1+
import type { DevtoolsPluginInfo } from '../../../types'
12
import { defineRpcFunction } from '@vitejs/devtools-kit'
23

3-
export interface DevtoolsPluginInfo {
4-
name: string
5-
hasDevtools: boolean
6-
hasSetup: boolean
7-
capabilities?: {
8-
dev?: unknown
9-
build?: unknown
10-
}
11-
}
12-
134
export const getDevtoolsPlugins = defineRpcFunction({
145
name: 'devtoolskit:self-inspect:get-devtools-plugins',
156
type: 'query',

packages/self-inspect/src/types.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import type { ClientScriptEntry } from '@vitejs/devtools-kit'
2+
3+
export interface ClientScriptInfo {
4+
dockId: string
5+
dockTitle: string
6+
dockType: string
7+
script: ClientScriptEntry
8+
}
9+
10+
export interface DevtoolsPluginInfo {
11+
name: string
12+
hasDevtools: boolean
13+
hasSetup: boolean
14+
capabilities?: {
15+
dev?: unknown
16+
build?: unknown
17+
}
18+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.:
2+
DevToolsSelfInspect: function
3+
./dirs:
4+
clientPublicDir: string

0 commit comments

Comments
 (0)