File tree Expand file tree Collapse file tree 2 files changed +25
-10
lines changed
Expand file tree Collapse file tree 2 files changed +25
-10
lines changed Original file line number Diff line number Diff line change 1+ <script setup lang="ts">
2+ import type {
3+ ImportConfig
4+ } from ' @/types/import' ;
5+
6+ const props = defineProps <{
7+ ' parsers' : ImportConfig <unknown >[]
8+ }>();
9+ </script >
10+
11+ <template >
12+ <div >
13+ <div v-for =" parser, idx in props.parsers" :key =" idx" >
14+ <h3 >{{ parser.display }}</h3 >
15+ <p >Required columns</p >
16+ <ul >
17+ <li v-for =" opt, key in parser.options" :key =" key" >
18+ {{ opt.display }}: {{ opt.searchTerms?.reduce( ( str, val ) => str + ', ' + val ) ?? 'No requirements' }}
19+ Default: {{ opt.value }}
20+ {{ opt.notes ? 'Notes: ' + opt.notes : '' }}
21+ </li >
22+ </ul >
23+ </div >
24+ </div >
25+ </template >
Original file line number Diff line number Diff line change 150150 const fileLoadTrigger = () => {
151151 index .value ++ ;
152152 };
153-
154- const annotationsLoadTrigger = () => {
155- // TODO: import --> Likely not needed
156- notifications .notify ( {
157- ' text' : ' Machine generated annotations successfuly imported.' ,
158- ' type' : ' success' ,
159- ' title' : ' Annotations imported'
160- } );
161- };
162153 </script >
163154
164155<template >
241232 type =" file"
242233 accept =" text/csv"
243234 multiple
244- @change =" annotationsLoadTrigger"
245235 >
246236 </label >
247237 </div >
You can’t perform that action at this time.
0 commit comments