Commit f626ddb
authored
Simplify fetch data (#200)
* Create napi safe wrap
* Extract create folder placeholder
* Extract create file placeholder
* Extract get file identity
* Update package.json
* Extract connect sync root
* Extract hydrate file
* Hydrate file thread safe
* Improve safe wrap
* Remove delete file from c++
* Extract convert to placeholder
* Refactor register sync root
* Extract code
* Improve
* Simplify providerId
* Commit
* Commit
* Commit
* Update get_registered_sync_roots.cpp
* Update addon.node
* Commt
* Commit
* Simplify unregister
* Fix wrapper
* Remove context
* Improve napi
* Template napi_extract_args
* Extract dehydrate file wrapper
* Refactor dehydrate file
* Throw exceptions
* Commit
* Extract disconnect sync root
* Extract get placeholder state
* Remove sync state
* Extract update sync status
* Update publish-npm.yml
* Update addon.node
* Clean
* Refactor cancel fetch data
* Update CancelFetchDataCallback.cpp
* Update addon.node
* Simplify fetch data
* Remove AddFolderToSearchIndexer
* Update node
* Update FetchData.cpp
* Update addon.node
* Update sonar-analysis.yml
* Fix pipelines
* Update package.json1 parent 4b2e121 commit f626ddb
8 files changed
Lines changed: 21 additions & 86 deletions
File tree
- .github/workflows
- dist
- native-src/sync_root_interface/callbacks
- CancelFetchData
- FetchData
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 29 | | |
36 | 30 | | |
37 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Binary file not shown.
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 26 | | |
32 | 27 | | |
33 | 28 | | |
| |||
89 | 84 | | |
90 | 85 | | |
91 | 86 | | |
92 | | - | |
| 87 | + | |
93 | 88 | | |
94 | 89 | | |
95 | 90 | | |
| |||
Lines changed: 11 additions & 59 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 24 | | |
32 | 25 | | |
33 | 26 | | |
| |||
38 | 31 | | |
39 | 32 | | |
40 | 33 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 34 | | |
54 | 35 | | |
55 | 36 | | |
| |||
72 | 53 | | |
73 | 54 | | |
74 | 55 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 56 | | |
95 | 57 | | |
96 | 58 | | |
| |||
342 | 304 | | |
343 | 305 | | |
344 | 306 | | |
345 | | - | |
346 | | - | |
| 307 | + | |
347 | 308 | | |
348 | 309 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
| 310 | + | |
353 | 311 | | |
354 | 312 | | |
355 | 313 | | |
356 | | - | |
357 | | - | |
358 | | - | |
| 314 | + | |
359 | 315 | | |
360 | 316 | | |
361 | 317 | | |
| |||
370 | 326 | | |
371 | 327 | | |
372 | 328 | | |
373 | | - | |
374 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
375 | 332 | | |
376 | 333 | | |
377 | 334 | | |
| |||
392 | 349 | | |
393 | 350 | | |
394 | 351 | | |
395 | | - | |
396 | | - | |
397 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
398 | 356 | | |
399 | 357 | | |
400 | 358 | | |
| |||
406 | 364 | | |
407 | 365 | | |
408 | 366 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
| 367 | + | |
416 | 368 | | |
417 | 369 | | |
418 | 370 | | |
| |||
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
13 | 11 | | |
14 | 12 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 13 | + | |
19 | 14 | | |
20 | 15 | | |
21 | 16 | | |
| |||
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
33 | | - | |
34 | | - | |
| 28 | + | |
35 | 29 | | |
36 | 30 | | |
37 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments