diff --git a/client/components/CodeContainer.vue b/client/components/CodeContainer.vue index 1eeafdb..97e5d26 100644 --- a/client/components/CodeContainer.vue +++ b/client/components/CodeContainer.vue @@ -1,12 +1,16 @@ @@ -135,4 +187,25 @@ const tab = ref(0) overflow: auto; white-space: break-spaces; } + +.dark, +.jse-theme-dark { + --jse-panel-background: #111 !important; + --jse-theme-color: #111 !important; + --jse-text-color-inverse: #fff !important; + --jse-main-border: none !important; +} + +.json-editor-vue .no-main-menu { + border: none !important; +} + +.json-editor-vue .jse-main { + min-height: 1em !important; +} + +.json-editor-vue .jse-contents { + border-width: 0 !important; + border-radius: 5px !important; +} diff --git a/client/composables/shiki.ts b/client/composables/shiki.ts index 8323d46..0d62c40 100644 --- a/client/composables/shiki.ts +++ b/client/composables/shiki.ts @@ -1,5 +1,5 @@ -import type { Highlighter } from 'shikiji' -import { getHighlighter } from 'shikiji' +import type { Highlighter } from 'shiki' +import { getHighlighter } from 'shiki' import { ref } from 'vue' export const shiki = ref() diff --git a/client/composables/useEmail.ts b/client/composables/useEmail.ts index fe495d8..da5d504 100644 --- a/client/composables/useEmail.ts +++ b/client/composables/useEmail.ts @@ -1,17 +1,13 @@ import pretty from 'pretty' import type { Result } from '@vue-email/compiler' -import type { Email } from '@/types/email' +import type { Email, Template } from '@/types/email' export function useEmail() { const emails = useState('emails') const email = useState('email') const sending = useState('sending', () => false) const refresh = useState('refresh', () => false) - const template = useState<{ - vue: string - html: string - txt: string - }>('template') + const template = useState