Skip to content

Commit

Permalink
Add test CodeMirrorDotrain component to webapp test
Browse files Browse the repository at this point in the history
  • Loading branch information
ninokeldishvili committed Dec 27, 2024
1 parent e660dc7 commit f96da89
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion packages/webapp/src/routes/test/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
<script lang="ts" generics="T">
import { ButtonLoading, IconError } from '@rainlanguage/ui-components';
import { RawRainlangExtension } from 'codemirror-rainlang';
import {
IconInfo,
IconLedger,
IconSuccess,
IconTelegram,
IconWalletConnect,
IconWarning,
IconExternalLink
IconExternalLink,
CodeMirrorDotrain,
darkCodeMirrorTheme
} from '@rainlanguage/ui-components';
let isLoading: boolean = true;
let rainlangText: string = 'Hello there';
const rainlangExtension = new RawRainlangExtension({
hover: async () => null,
completion: async () => null,
diagnostics: async () => []
});
</script>

<div>
Expand All @@ -24,4 +33,11 @@
<IconTelegram dark />
<IconWalletConnect />
<IconWarning />
<CodeMirrorDotrain
codeMirrorTheme={darkCodeMirrorTheme}
{rainlangText}
disabled={false}
styles={{ '&': { minHeight: '400px' } }}
{rainlangExtension}
/>
</div>

0 comments on commit f96da89

Please sign in to comment.