This repository was archived by the owner on Sep 19, 2025. It is now read-only.
Commit 03710d5
committed
Refactor FileReader and enhance note-taking functionality
- Updated the default marker color in FileReaderContent to blue for better visibility.
- Integrated current file path management in EditHistoryContext to support file-specific annotations.
- Enhanced note management in NoteBar with improved state handling and integration with EditHistoryContext.
- Added file path awareness in PDFViewer and DocumentViewer to ensure correct loading of annotations.
- Introduced FileAnnotationStorage service for persistent storage of annotations and history in localStorage.
- Improved popover behavior in LeftToolbar for better user experience.1 parent ad56ca8 commit 03710d5
9 files changed
Lines changed: 471 additions & 127 deletions
File tree
- src/frontend
- components
- reader
- viewer
- lib
- contexts
- hooks
- services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
81 | 88 | | |
82 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
83 | 93 | | |
84 | 94 | | |
85 | 95 | | |
| |||
95 | 105 | | |
96 | 106 | | |
97 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
98 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
99 | 117 | | |
100 | 118 | | |
101 | 119 | | |
102 | 120 | | |
103 | 121 | | |
104 | | - | |
| 122 | + | |
105 | 123 | | |
106 | 124 | | |
107 | 125 | | |
| |||
278 | 296 | | |
279 | 297 | | |
280 | 298 | | |
281 | | - | |
| 299 | + | |
282 | 300 | | |
283 | 301 | | |
284 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| |||
166 | 171 | | |
167 | 172 | | |
168 | 173 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
174 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
175 | 195 | | |
176 | 196 | | |
177 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
178 | 207 | | |
179 | 208 | | |
180 | 209 | | |
| |||
212 | 241 | | |
213 | 242 | | |
214 | 243 | | |
215 | | - | |
216 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
217 | 256 | | |
218 | | - | |
219 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
220 | 265 | | |
221 | 266 | | |
222 | 267 | | |
| |||
246 | 291 | | |
247 | 292 | | |
248 | 293 | | |
249 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
250 | 301 | | |
251 | 302 | | |
252 | 303 | | |
| |||
329 | 380 | | |
330 | 381 | | |
331 | 382 | | |
332 | | - | |
| 383 | + | |
333 | 384 | | |
334 | 385 | | |
335 | 386 | | |
| |||
347 | 398 | | |
348 | 399 | | |
349 | 400 | | |
| 401 | + | |
350 | 402 | | |
351 | 403 | | |
352 | 404 | | |
| |||
0 commit comments