File tree Expand file tree Collapse file tree 6 files changed +26
-20
lines changed
packages/self-inspect/src Expand file tree Collapse file tree 6 files changed +26
-20
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
2- import type { ClientScriptInfo } from ' ~~/node/rpc/functions/get-client-scripts '
2+ import type { ClientScriptInfo } from ' ../../types '
33
44defineProps <{
55 scripts: ClientScriptInfo []
Original file line number Diff line number Diff line change 11<script setup lang="ts">
2- import type { DevtoolsPluginInfo } from ' ~~/node/rpc/functions/get-devtools-plugins '
2+ import type { DevtoolsPluginInfo } from ' ../../types '
33import { computed , ref } from ' vue'
44
55const props = defineProps <{
Original file line number Diff line number Diff line change 1- import type { ClientScriptEntry } from '@vitejs/devtools-kit '
1+ import type { ClientScriptInfo } from '../../../types '
22import { defineRpcFunction } from '@vitejs/devtools-kit'
33
4- export interface ClientScriptInfo {
5- dockId : string
6- dockTitle : string
7- dockType : string
8- script : ClientScriptEntry
9- }
10-
114export const getClientScripts = defineRpcFunction ( {
125 name : 'devtoolskit:self-inspect:get-client-scripts' ,
136 type : 'query' ,
Original file line number Diff line number Diff line change 1+ import type { DevtoolsPluginInfo } from '../../../types'
12import { 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-
134export const getDevtoolsPlugins = defineRpcFunction ( {
145 name : 'devtoolskit:self-inspect:get-devtools-plugins' ,
156 type : 'query' ,
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ . :
2+ DevToolsSelfInspect : function
3+ ./dirs :
4+ clientPublicDir : string
You can’t perform that action at this time.
0 commit comments