Skip to content

Commit 7b9dd87

Browse files
committed
fix: downgrade quicktype, bring back schema generator, fix #753
1 parent 9033ce2 commit 7b9dd87

File tree

5 files changed

+45
-29
lines changed

5 files changed

+45
-29
lines changed

packages/devtools/client/app.vue

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { useCopy } from '~/composables/editor'
99
import { rpc } from '~/composables/rpc'
1010
import { registerCommands } from '~/composables/state-commands'
1111
import { splitScreenAvailable, splitScreenEnabled } from '~/composables/storage'
12+
import { useSchemaInput } from './composables/state-schema'
1213
import { useDevToolsOptions } from './composables/storage-options'
1314
import { setupClientRPC } from './setup/client-rpc'
1415
import { setupVueDevTools } from './setup/vue-devtools'
@@ -65,7 +66,7 @@ useEventListener('keydown', (e) => {
6566
})
6667
6768
const { scale, sidebarExpanded } = useDevToolsOptions('ui')
68-
// const dataSchema = useSchemaInput()
69+
const dataSchema = useSchemaInput()
6970
7071
onMounted(async () => {
7172
const injectClient = useInjectionClient()
@@ -157,8 +158,8 @@ registerCommands(() => [
157158
</div>
158159
<DisconnectIndicator />
159160
<RestartDialogs />
160-
<!-- <div v-lazy-show="dataSchema">
161+
<div v-lazy-show="dataSchema">
161162
<LazyDataSchemaDrawer />
162-
</div> -->
163+
</div>
163164
</div>
164165
</template>

packages/devtools/client/components/ServerRouteDetails.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -589,11 +589,10 @@ const copy = useCopy()
589589
<code v-if="response.contentType" text-xs op50>
590590
{{ response.contentType }}
591591
</code>
592-
<!-- TODO: quicktype has some problem of bundling (it's in CJS), we remove this temporary -->
593-
<!-- <DataSchemaButton
592+
<DataSchemaButton
594593
v-if="response.contentType === 'application/json'"
595594
:getter="() => ({ input: responseContent })"
596-
/> -->
595+
/>
597596
<div flex-auto />
598597
<div op50>
599598
Request finished in

packages/devtools/client/components/StateEditor.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,10 @@ async function refresh() {
9494
<slot name="actions" v-bind="{ isOpen, name, state }" />
9595
<template v-if="isOpen">
9696
<NButton v-tooltip.bottom="'Refresh View'" title="Refresh View" icon="carbon-renew" :border="false" @click="refresh" />
97-
<!-- TODO: quicktype has some problem of bundling (it's in CJS), we remove this temporary -->
98-
<!-- <DataSchemaButton
97+
<DataSchemaButton
9998
v-if="proxy && !error"
10099
:getter="() => ({ name, input: JSON.stringify(proxy) })"
101-
/> -->
100+
/>
102101
</template>
103102
</div>
104103
<template v-if="isOpen || !name">

pnpm-lock.yaml

+36-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ catalog:
9494
pinia: ^2.3.1
9595
pkg-types: ^1.3.1
9696
prompts: ^2.4.2
97-
quicktype-core: ^23.0.171
97+
quicktype-core: 22.0.0
9898
rc9: ^2.1.2
9999
scule: ^1.3.0
100100
semver: ^7.7.1

0 commit comments

Comments
 (0)