Browse Source

feat(gui-v2): add debug meta

pull/3157/head
Wing-Kam Wong 2 years ago
parent
commit
8818227606
  1. 20
      packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/DebugMeta.vue

20
packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/DebugMeta.vue

@ -0,0 +1,20 @@
<script setup lang="ts">
import { MetaInj } from '#imports'
const editorOpen = ref(false)
const meta = $(inject(MetaInj))
</script>
<template>
<a-tooltip>
<template #title>
<span> Debug Meta </span>
</template>
<mdi-bug-outline class="cursor-pointer" @click="editorOpen = true" />
</a-tooltip>
<a-modal v-model:visible="editorOpen" :footer="null" width="80%" :title="meta.title">
<MonacoEditor ref="jsonEditorRef" v-model="meta" class="h-max-[70vh]" />
</a-modal>
</template>
Loading…
Cancel
Save