File tree 5 files changed +16
-13
lines changed
5 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 1
1
export type TabCategory =
2
2
| 'pinned'
3
3
| 'app'
4
+ | 'vue-devtools'
4
5
| 'analyze'
5
6
| 'server'
6
7
| 'modules'
Original file line number Diff line number Diff line change @@ -52,13 +52,14 @@ export function useAllTabs() {
52
52
53
53
function getCategorizedRecord ( ) : Record < TabCategory , ( ModuleCustomTab | ModuleBuiltinTab ) [ ] > {
54
54
return {
55
- pinned : [ ] ,
56
- app : [ ] ,
57
- analyze : [ ] ,
58
- server : [ ] ,
59
- modules : [ ] ,
60
- documentation : [ ] ,
61
- advanced : [ ] ,
55
+ 'pinned' : [ ] ,
56
+ 'app' : [ ] ,
57
+ 'vue-devtools' : [ ] ,
58
+ 'analyze' : [ ] ,
59
+ 'server' : [ ] ,
60
+ 'modules' : [ ] ,
61
+ 'documentation' : [ ] ,
62
+ 'advanced' : [ ] ,
62
63
}
63
64
}
64
65
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ definePageMeta({
10
10
icon: ' i-logos-pinia' ,
11
11
title: ' Pinia' ,
12
12
layout: ' full' ,
13
+ category: ' vue-devtools' ,
13
14
show() {
14
15
const configs = useServerConfig ()
15
16
return () => configs .value ?.modules ?.some (item => (item as string | Array <unknown >)?.includes (' @pinia/nuxt' ))
Original file line number Diff line number Diff line change @@ -11,13 +11,14 @@ const openInEditor = useOpenInEditor()
11
11
12
12
definePageMeta ({
13
13
icon: ' i-carbon-category' ,
14
- title: ' Components Tree' ,
14
+ title: ' Render Tree' ,
15
15
layout: ' full' ,
16
16
show : () => {
17
17
const client = useClient ()
18
18
return () => !! client .value
19
19
},
20
- order: 3 ,
20
+ order: 1 ,
21
+ category: ' vue-devtools' ,
21
22
})
22
23
23
24
function togglePanel(status : boolean ) {
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ watchEffect(() => {
113
113
icon =" i-carbon-settings-adjust"
114
114
text =" DevTools Settings"
115
115
/>
116
- <div grid =" ~ md :cols-2 gap-x-10 gap-y-3" max-w-300 >
116
+ <div grid =" ~ lg :cols-2 gap-x-10 gap-y-3" max-w-300 >
117
117
<div flex =" ~ col gap-2" >
118
118
<h3 text-lg >
119
119
Tabs
@@ -141,10 +141,9 @@ watchEffect(() => {
141
141
:model-value =" !hiddenTabs.includes(tab.name)"
142
142
@update:model-value =" (v: boolean) => toggleTab(tab.name, v)"
143
143
>
144
- <div flex =" ~ gap-2" flex-auto items-center justify-start pr-4 :class =" hiddenTabs.includes(tab.name) ? 'op25' : ''" >
144
+ <div flex =" ~ gap-2" flex-auto items-center justify-start of-hidden pr-4 :class =" hiddenTabs.includes(tab.name) ? 'op25' : ''" >
145
145
<TabIcon text-xl :icon =" tab.icon" :title =" tab.title" />
146
- <span >{{ tab.title }}</span >
147
- <div flex-auto />
146
+ <span flex-auto overflow-hidden text-ellipsis ws-nowrap >{{ tab.title }}</span >
148
147
<template v-if =" pinnedTabs .includes (tab .name )" >
149
148
<NButton
150
149
icon =" i-carbon-caret-up"
You can’t perform that action at this time.
0 commit comments