Skip to content

Commit

Permalink
chore: rename page page
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 23, 2023
1 parent 5ce8df3 commit 21919b1
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/devtools-kit/src/_types/custom-tabs.ts
Expand Up @@ -112,7 +112,7 @@ export interface ModuleBuiltinTab {
title?: string
path?: string
category?: TabCategory
shouldShow?: () => any
show?: () => any
badge?: () => number | string | undefined
}

Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/client/composables/state.ts
Expand Up @@ -143,7 +143,7 @@ export function useEnabledTabs() {

return computed(() => tabs.value.filter((tab) => {
const _tab = tab as ModuleBuiltinTab
if (_tab.shouldShow && !_tab.shouldShow())
if (_tab.show && !_tab.show())
return false
if (settings.hiddenTabs.value.includes(_tab.name))
return false
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/client/meta.d.ts
Expand Up @@ -6,7 +6,7 @@ declare module '#app' {
title?: string
order?: number
category?: TabCategory
shouldShow?: () => any
show?: () => any
badge?: () => string | number | undefined
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/client/pages/modules/pages.vue
Expand Up @@ -6,7 +6,7 @@ import type { RouteInfo } from '~~/../src/types'
definePageMeta({
icon: 'carbon-tree-view-alt',
title: 'Pages',
shouldShow: () => !!useClient().value,
show: () => !!useClient().value,
order: 1,
})
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/client/pages/modules/payload.vue
Expand Up @@ -3,7 +3,7 @@ definePageMeta({
icon: 'carbon-data-set',
title: 'Payload',
category: 'analyze',
shouldShow: () => !!useClient().value,
show: () => !!useClient().value,
order: 7,
})
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/client/pages/modules/runtime-configs.vue
Expand Up @@ -3,7 +3,7 @@ definePageMeta({
icon: 'carbon-settings-services',
title: 'Runtime Configs',
category: 'analyze',
shouldShow: () => !!useClient().value,
show: () => !!useClient().value,
order: 6,
})
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/client/pages/modules/server-routes.vue
Expand Up @@ -7,7 +7,7 @@ definePageMeta({
layout: 'full',
experimental: true,
category: 'server',
shouldShow() {
show() {
return useServerRoutes().value?.length
},
})
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/client/pages/modules/terminals.vue
Expand Up @@ -3,7 +3,7 @@ definePageMeta({
icon: 'carbon-terminal',
title: 'Terminals',
layout: 'full',
shouldShow() {
show() {
return !!useTerminals().value?.length
},
badge() {
Expand Down

0 comments on commit 21919b1

Please sign in to comment.