<script>
import 'codemirror/mode/javascript/javascript'
import 'codemirror/mode/ruby/ruby'
import 'codemirror/mode/shell/shell'
import 'codemirror-mode-elixir'
import 'codemirror/mode/markdown/markdown'
import { Screen } from 'svelte-preview-ui'
import CodeMirror from '@joshnuss/svelte-codemirror'
import { tweened } from 'svelte/motion'
import { quartInOut } from 'svelte/easing'
const shellOptions = {
mode: "shell",
readOnly: true,
lineNumbers: false,
value: `> vi templates/welcome.md
> git add templates/welcome.md
> git commit --message "Adds welcome template"
> git push
> curl domain.tld/welcome \\
--header "Authorization: Bearer <api-key>" \\
--data '{"confirmationUrl": '...'}'
{"status": 200, "message": "sent", "id": 1234}
> `
}
const editorOptions = {
mode: "markdown",
readOnly: true,
lineNumbers: true,
value: `---
subject: Welcome
---
# Welcome!