Skip to content

Commit

Permalink
fix: disable quicktype schema generation temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 19, 2024
1 parent 808e493 commit c1554a3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions packages/devtools/client/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ useEventListener('keydown', (e) => {
})
const { scale, sidebarExpanded } = useDevToolsUIOptions()
const dataSchema = useSchemaInput()
// const dataSchema = useSchemaInput()
onMounted(async () => {
const injectClient = useInjectionClient()
Expand Down Expand Up @@ -148,8 +148,8 @@ registerCommands(() => [
</div>
<DisconnectIndicator />
<RestartDialogs />
<div v-lazy-show="dataSchema">
<!-- <div v-lazy-show="dataSchema">
<LazyDataSchemaDrawer />
</div>
</div> -->
</div>
</template>
5 changes: 3 additions & 2 deletions packages/devtools/client/components/ServerRouteDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -578,10 +578,11 @@ const copy = useCopy()
<code v-if="response.contentType" text-xs op50>
{{ response.contentType }}
</code>
<DataSchemaButton
<!-- TODO: quicktype has some problem of bundling (it's in CJS), we remove this temporary -->
<!-- <DataSchemaButton
v-if="response.contentType === 'application/json'"
:getter="() => ({ input: responseContent })"
/>
/> -->
<div flex-auto />
<div op50>
Request finished in
Expand Down
5 changes: 3 additions & 2 deletions packages/devtools/client/components/StateEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ async function refresh() {
<slot name="actions" v-bind="{ isOpen, name, state }" />
<template v-if="isOpen">
<NButton v-tooltip.bottom="'Refresh View'" title="Refresh View" icon="carbon-renew" :border="false" @click="refresh" />
<DataSchemaButton
<!-- TODO: quicktype has some problem of bundling (it's in CJS), we remove this temporary -->
<!-- <DataSchemaButton
v-if="proxy && !error"
:getter="() => ({ name, input: JSON.stringify(proxy) })"
/>
/> -->
</template>
</div>
<template v-if="isOpen || !name">
Expand Down
2 changes: 0 additions & 2 deletions packages/devtools/client/components/docs/timeline.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Timeline

<p>
<blockquote text-orange bg-orange:10 py1>
This is an experimental feature
</blockquote>
</p>

Timeline tracks your route navigations and functions calls in your Nuxt application. It can be used to debug performance issues and to understand how your application works.

Expand Down

0 comments on commit c1554a3

Please sign in to comment.