File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ const HighlightPopup = ({
47
47
const PRIMARY_PDF_URL = "https://arxiv.org/pdf/1708.08021" ;
48
48
const SECONDARY_PDF_URL = "https://arxiv.org/pdf/1604.02480" ;
49
49
50
- const searchParams = new URLSearchParams ( document . location . search ) ;
51
- const initialUrl = searchParams . get ( "url" ) || PRIMARY_PDF_URL ;
52
-
53
50
export function App ( ) {
51
+ const searchParams = new URLSearchParams ( document . location . search ) ;
52
+ const initialUrl = searchParams . get ( "url" ) || PRIMARY_PDF_URL ;
53
+
54
54
const [ url , setUrl ] = useState ( initialUrl ) ;
55
55
const [ highlights , setHighlights ] = useState < Array < IHighlight > > (
56
56
testHighlights [ initialUrl ] ? [ ...testHighlights [ initialUrl ] ] : [ ] ,
@@ -67,9 +67,7 @@ export function App() {
67
67
setHighlights ( testHighlights [ newUrl ] ? [ ...testHighlights [ newUrl ] ] : [ ] ) ;
68
68
} ;
69
69
70
- const scrollViewerTo = useRef ( ( highlight : IHighlight ) => {
71
- // Implement scrolling logic here
72
- } ) ;
70
+ const scrollViewerTo = useRef ( ( highlight : IHighlight ) => { } ) ;
73
71
74
72
const scrollToHighlightFromHash = useCallback ( ( ) => {
75
73
const highlight = getHighlightById ( parseIdFromHash ( ) ) ;
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " ../tsconfig.json" ,
3
- "compilerOptions" : {
4
- "target" : " ESNext" ,
5
- "module" : " ESNext" ,
6
- "lib" : [" ESNext" , " DOM" ],
7
- "noEmit" : true
8
- },
9
- "include" : [" ./src" , " ../decs.d.ts" ]
2
+ "extends" : " ../tsconfig.json"
10
3
}
Original file line number Diff line number Diff line change 23
23
"start" : " npm run dev" ,
24
24
"dev" : " vite build && (cd ./example && vite)" ,
25
25
"build" : " npm run clean && npm run compile && vite build && npm run build:example" ,
26
- "compile" : " tsc --noEmit" ,
26
+ "compile" : " tsc --noEmit && (cd ./example && tsc --noEmit) " ,
27
27
"build:example" : " vite build && (cd ./example && vite build)" ,
28
28
"test" : " npm run build && npm run lint && npm run test:e2e" ,
29
29
"test:e2e" : " playwright test" ,
You can’t perform that action at this time.
0 commit comments