File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
components/admin-new/surveys Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 66 ShallowReadingSessionDto
77 } from ' @/types/dtos/ShallowReadingSessionDto' ;
88 import SwitchOption from ' @/components/settings/SwitchOption.vue' ;
9+ import { adminBaseRoute } from ' ../adminConfig' ;
910 import inputFilter from ' @/ts/util/inputFilter' ;
1011 import {
1112 ref
1415 import {
1516 useNotification
1617 } from ' @kyvg/vue3-notification' ;
18+ import { useRouter } from ' vue-router' ;
1719 import {
1820 useStatusStore
1921 } from ' @/ts/stores/status' ;
2022 import {
2123 useSurveyStore
2224 } from ' @/ts/stores/admin' ;
23- import { useRouter } from ' vue-router' ;
24- import { adminBaseRoute } from ' ../adminConfig' ;
2525
2626 interface Text {
2727 ' sessions' : ShallowReadingSessionDto [];
Original file line number Diff line number Diff line change 8383 */
8484 watch (
8585 () => route .params .id ,
86- ( newId , _oldId ) => {
86+ ( newId ) => {
8787 console .log ( newId );
8888
8989 if ( newId === undefined ) surveyStore .setSurveyIndex (- 1 );
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export const parseFixationsCSV = (
1818 readerName : string = 'reader' ,
1919 textName : string = 'text' ,
2020 idName : string = 'fixid' ,
21- lang : string = 'lang'
21+ // lang: string ='lang'
2222) : ImportReadingSessionDto [ ] => {
2323 const lines = text . split ( / \r ? \n / ) . filter ( l => l . trim ( ) !== '' ) ;
2424 const header = lines . shift ( ) ! . split ( ',' )
@@ -28,7 +28,7 @@ export const parseFixationsCSV = (
2828 const xIndex = header . indexOf ( xName ) ;
2929 const yIndex = header . indexOf ( yName ) ;
3030 const idIndex = header . indexOf ( idName ) ;
31- const language = header . indexOf ( lang ) ;
31+ // const language = header.indexOf( lang );
3232
3333 if ( xIndex < 0 )
3434 throw new InvalidIndexNameError ( 'X coordinate' ) ;
You can’t perform that action at this time.
0 commit comments