Commit Graph

6012 Commits

Author SHA1 Message Date
Gabriel Horner
9c7b4ea201 Delete unused ns
Commented out a long time ago in
4e0f65a17f
2022-09-27 13:55:16 +08:00
Gabriel Horner
1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
Andelf
0cebfb7779 fix: lint 2022-09-24 00:39:29 +08:00
Andelf
d1c7328a93 fix(android): use graph-uuid in call, update capacitor-file-sync 2022-09-24 00:39:29 +08:00
Andelf
dd91207d6f chore: rm debug print 2022-09-23 11:08:06 +08:00
Gabriel Horner
2ce6dfad41 Use catch :default for default error handling in cljs
This is considered normal practice for cljs. See
https://clojure.atlassian.net/browse/CLJS-661 for when it was introduced
and background on it
2022-09-23 02:00:55 +08:00
Andelf
ae114afbd8 Feat: sync progress for electron (#6662)
* fix: state shouldn't be returned in ipc

* feat: download && upload processing

* enhance(ui):  interaction of show password checkbox

* feat: time left

* feat: download progress

* Set download batch size to 100

* improve(ui): progress pane of file sync indicator

* improve(ui): progress pie of each file state

* improve(ui): progress pie of each file state

* improve(ui): progress pie of each downloading file

* fix: add last changed time

* enhance: time left

* fix: total needs to be larger than finished

* fix: wait for update-graphs-txid!

* enhance: show in-progress files first

* chore: ui polish

* improve(ui): persist stauts of sync files list toggle switch

* fix(ui): visibility of sync now button on mobile

* chore: remove ios static out after sync

* fix: debounce clicking on sync icon

* fix: repos not refreshed after unlink or delete

* enhance: automatically save page-metadata.edn to avoid sync when restart

* improve(ui): sync now shortcut for file sync progress pane

* enhance: data transfer icons

* fix: stop sync if switched to another graph

* fix: can't switch

* enhance: sort files first before uploading or downloading

* fix: clear current graph uuid when sync stops

* fix: separate progress by graphs

* fix: check files only in the current progress

* fix: prevent multiple sync managers for the same graph

* fix: remove redundant files watchers

* enhance(sync): re-exec remote->local-full-sync when exception

re-exec remote->local-full-sync when <update-local-files return exceptions

* enhance(sync): re-exec remote->local-full-sync when exception

re-exec remote->local-full-sync when <update-local-files return exceptions

* fix(sync): set-progress-callback, update rsapi

* fix(sync): uploading progress bar

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: charlie <xyhp915@qq.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
2022-09-23 02:00:24 +08:00
Gabriel Horner
9d9e976b8c Merge branch 'master' into refactor/refs-from-property-values 2022-09-21 15:34:47 -04:00
Tienson Qin
310bff0fad fix: CI 2022-09-21 16:02:21 +08:00
Tienson Qin
1fbb364512 Add :block/properties-text-values 2022-09-21 15:06:48 +08:00
charlie
0422f31130 fix(ui): color of block control arrow 2022-09-21 14:49:20 +08:00
charlie
50b4f6577d improve(ui): polish built-in icon 2022-09-21 14:49:20 +08:00
charlie
8f96f4b176 improve(ui): polish built-in icon 2022-09-21 14:49:20 +08:00
charlie
eb46482a75 fix: lint 2022-09-21 14:49:20 +08:00
charlie
6d72dc584c improve(ui): polish built-in icon 2022-09-21 14:49:20 +08:00
charlie
424cc3c3ee fix(pdf): calculate highlight selection async 2022-09-21 14:49:20 +08:00
charlie
dad5bc3609 improve(ui): polish built-in icon 2022-09-21 14:49:20 +08:00
charlie
f8cc6378c3 improve(ui): update built-in icon mode 2022-09-21 14:49:20 +08:00
Konstantinos Kaloutas
a0b37fa20e fix: restore zoom level 2022-09-21 14:48:50 +08:00
Konstantinos Kaloutas
7770d7246c fix; persist zoom level on app close 2022-09-21 14:48:50 +08:00
Tienson Qin
da72d4d620 Some cleanup suggested by Gabe 2022-09-21 12:59:14 +08:00
Gabriel Horner
b4c4a5bd96 Remove unused local state from query table
Also renamed key to column
2022-09-20 12:20:17 -04:00
Gabriel Horner
60067cb817 Disable sorting if query contains and there is no default sorting
- Also fixed caret not showing up when sorting occurs by default for
  a default sorting state coming from :query-sort-by and
  :query-sort-desc
- Also cleaned up sort state. Rum local state doesn't seem necessary
2022-09-20 12:20:17 -04:00
Gabriel Horner
91d6d14720 Fix sort-by not working for blocks
- Also add sort-by support for pages which fixes #5643
- Add sort-by tests
- Fix sample producing weird queries e.g. mixed block and page clauses
- Clean up last, hard to read test setup in query-dsl
2022-09-20 12:20:17 -04:00
ingepettersen
d190168059 Updated Norwegian translation (#6798)
Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
2022-09-20 09:39:23 -04:00
ingepettersen
5a4074d083 Update Norwegian translation 2022-09-20 09:25:13 -04:00
Tienson Qin
2762dce3e7 Merge pull request #6796 from japaul527/messageRefreshTypo
issue #6782- changed message typo
2022-09-20 15:21:50 +08:00
rcmerci
41b4cdb938 fix(sync): check sync-state is valid to accept filewatcher events 2022-09-20 15:06:17 +08:00
rcmerci
5a006c59f8 fix(sync): add graph-uuid arg to <get-local-files-meta 2022-09-20 15:06:17 +08:00
Andelf
dfbb42a1b3 fix(sync): update rsapi, add graph-uuid to all fn 2022-09-20 15:06:17 +08:00
Andelf
c6ff4e8084 chore: rm unused code 2022-09-20 15:06:17 +08:00
paul
bfdae9c1a0 changed message typo from
"Refresh detects and processes files modified on your disk and diverged from the actual Logseq page content. Continue?" to

"Refresh detects and processes files modified on your disk that have diverged from the current Logseq page content. Continue?"
2022-09-20 12:23:39 +05:30
imaginalis
f40ab3552f Fix & refine Polish (pl) translations 2022-09-19 15:00:55 +08:00
rcmerci
ef8d74d68b enhance(sync): add get-deletion-logs
remove local files according to deletion-logs when local->remote-full-sync
2022-09-19 14:59:43 +08:00
Andelf
bada72fe28 fix(mobile): stat should fail 2022-09-19 12:22:12 +08:00
Andelf
f71a80341e fix(mobile): unlink did not create parent dir correctly 2022-09-19 12:22:12 +08:00
Andelf
634c5010a5 chore(deps): update capacitor-file-sync, native android encryption 2022-09-19 12:22:12 +08:00
Andelf
437b928fc4 fix(mobile): capacitor v4 readdir api 2022-09-19 12:22:12 +08:00
Konstantinos Kaloutas
a183533947 fix: resizer position 2022-09-18 11:15:57 +08:00
Andelf
2a73019b34 refactor(mobile): use ios file-sync as lib 2022-09-16 21:12:15 +08:00
Konstantinos Kaloutas
0d9eeaa442 fix: make resizer draggable on desktop only 2022-09-16 00:01:49 +08:00
Tienson Qin
1edf70de8a chore: easy to use for get-file-sync-state 2022-09-15 23:58:55 +08:00
Tienson Qin
de092405a9 fix: repeated sync restart 2022-09-15 23:58:55 +08:00
Tienson Qin
c300d6bc02 fix: sync status 2022-09-15 23:58:55 +08:00
Tienson Qin
40221d4799 fix: sync works but uploading/downloading files are not shown 2022-09-15 23:58:55 +08:00
Tienson Qin
ed071cb363 fix: stop sync when binding a local directory to a remote graph 2022-09-15 23:58:55 +08:00
Tienson Qin
d08eed503f fix: restart sync when a graph is added 2022-09-15 23:58:55 +08:00
Gabriel Horner
ecce39d13b Misc cleanup and test improvements
- Remove incorrect carve entry
- Move test-only code for extract-properties to test
- Remove unused if branches in extract-properties
- Move json parsing of get-references into mldoc to be consistent about
  json encapsulation like other mldoc fns
- reorganize relevant unit tests
- add tests for alias, tags and comma separated config properties
- Update incorrect docstring
2022-09-14 23:26:00 -04:00
Andelf
23ecc641ef chore: debug print 2022-09-15 11:17:35 +08:00
Konstantinos Kaloutas
b150e1aa09 fix: remove resizing class on tab 2022-09-14 23:49:37 +08:00