app

Local-first trade for farms and co-ops
git clone https://radroots.dev/git/app.git
Log | Files | Refs | README | LICENSE

NoticeHarness.svelte (706B)


      1 <script lang="ts">
      2   import Notice from '../../../src/lib/components/Notice.svelte';
      3   import OperationStatus from '../../../src/lib/components/OperationStatus.svelte';
      4   import ErrorSummary from '../../../src/lib/components/ErrorSummary.svelte';
      5 </script>
      6 
      7 <Notice tone="error" text="<img src=x>" />
      8 <OperationStatus
      9   fact="unknown"
     10   receipts={[
     11     {
     12       role: 'archive',
     13       outcome: 'accepted',
     14       readback: 'confirmed',
     15       eventId: 'event-A',
     16       destination: 'target-A'
     17     }
     18   ]}
     19 />
     20 <ErrorSummary
     21   errors={[
     22     { href: '#food', text: 'Enter food.' },
     23     { href: 'https://example.com', text: 'Unsafe destination' },
     24     { href: 'javascript:alert(1)', text: 'Unsafe scheme' }
     25   ]}
     26 />