Andelf
1caba0359f
fix: error while backup global config under windows
2022-11-17 17:10:49 -05:00
Tienson Qin
e56fb0fa53
fix: remove redundancy paths on db
...
This commit also removes the fragile files including page-metadata.edn
and metadata.edn.
2022-11-07 13:29:15 +08:00
Tienson Qin
2dfac3d774
deprecate: on-disk encryption
...
Why?
1. there're still a lot issues on it and there's no resource to
maintain and develop it considering we need to support it on all the
platforms.
2. it creates more bugs with Logseq Sync.
2022-11-07 10:46:17 +08:00
charlie
db70ec13c1
fix: remove debug
2022-10-21 16:13:50 +08:00
charlie
0f17276977
fix: stop whole app re-render when assets file changes
2022-10-21 16:13:50 +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
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
Gabriel Horner
6e3f784626
Fix global directory watcher not working for multiple windows
...
Fix also simplifies global config component and generalizes file watcher
to handle any global directory. Also fixed intermittent, annoying "object could not
be cloned" error
2022-09-08 12:34:27 +08:00
Gabriel Horner
51ed2f94f1
Encapsulate global config state and add global watcher
...
Correct merge with local state and testing is still TODO
2022-09-08 12:34:27 +08:00
Andelf
9146dad0a4
refactor: db content backup
2022-08-19 18:18:04 +08:00
charlie
005719cb06
fix(mobile): bak files
2022-08-19 18:18:04 +08:00
charlie
b6caba48d8
fix: WIP file bak when external file changed
2022-08-19 18:18:04 +08:00
Gabriel Horner
4ec5827902
Move block-ref fns and vars to their own ns
...
Similar to page-ref to keep namespaces explicit
2022-08-04 17:25:29 +08:00
Gabriel Horner
001e0d302d
Finish block-ref helpers
...
There were a couple scattered in 2 text namespaces and there were
a couple uses of block-ref that involved escaping.
Removed block-ref-un-brackets! once it was seen as the equivalent
of an or statement
2022-08-04 17:25:29 +08:00
Tienson Qin
cc643f8487
fix: wrong parameter for delete-file
2022-07-05 00:45:56 +08:00
Tienson Qin
e7c64d3dfd
fix: don't unlink file when receiving the unlink event from watcher
2022-07-04 20:19:22 +08:00
Tienson Qin
8e1ae84baa
fix: don't delete page temporally
...
related to #5904
2022-07-04 19:54:31 +08:00
Tienson Qin
658d1d315a
fix: lint warnings
2022-06-13 19:16:34 +08:00
Tienson Qin
b7ae3684be
fix: notify graph dir is gone when starting or running the apps
...
Also, disabled both re-index and refresh when logseq detects that
a graph's dir doesn't exists anymore.
2022-06-13 19:16:34 +08:00
Tienson Qin
8cc4b357a4
enhance: re-enable file watcher when the folder is back
...
By following the great suggestions from https://github.com/hakon-j-d-johnsen .
2022-06-08 15:12:47 +08:00
Tienson Qin
307f7bd755
fix: re-create the page when the file appears again
...
related to #5549
2022-06-07 12:17:36 +08:00
Tienson Qin
781062a4ce
fix: disable editing when the graph's directory is renamed or deleted
...
related to #5549
2022-06-06 18:05:48 +08:00
Gabriel Horner
15b8e5e9df
Setup CI jobs that are only for graph-parser
...
Also move all non graph-parser fns to frontend thanks to carve lint
2022-05-26 18:04:45 -04:00
Gabriel Horner
b9bbd0c605
Finish migrating extract to nbb
2022-05-13 15:47:54 -04:00
Tienson Qin
83569141fc
feat: add encryption back
2022-05-09 22:15:30 +08:00
Gabriel Horner
85bd1fecb2
Move first batch of util fns to graph-parser.util
...
Still need to fix external.roam
2022-05-04 12:02:36 -04:00
Tienson Qin
b3f67c69b1
misc: delete both web github integration and encryption
2022-04-24 11:17:47 +08:00
Tienson Qin
71e9bdee49
enhance: parsing progress bar
2022-04-21 08:42:52 +08:00
Tienson Qin
8e6fb5613d
enhance: backup files when there're differences between db and disk
...
Previously, files are backuped to logseq/bak when logseq detects
there're differences between the db and disk. But it has two problems:
1. Only a few of users know `logseq/bak`, other users think that their
data has been lost.
2. Files in the logseq/bak folder are never truncated.
This PR backups old file in DB with timestamp suffixes instead of
logesq/bak, and only keep the latest 10 versions of any changed file.
2022-03-08 12:58:59 +08:00
Junyi Du
f1aff93807
enhance: add pages-metadata.edn watcher behavior
2022-03-04 17:13:33 +08:00
Junyi Du
1905d1e32c
enhance: update timestamp on pages-metadata is watched
2022-03-04 17:13:33 +08:00
Junyi Du
89e13b58f9
fix: missing normalized for file watcher ipc
2022-02-19 23:01:20 +08:00
Andelf
b1eb9117be
enhance: reload custom.css when changed
2022-01-04 21:35:53 +08:00
Tienson Qin
b0372cc53d
fix: typo
2022-01-04 17:38:36 +08:00
Tienson Qin
ec289c788f
enhance: backup when add is notified and db content is not empty
2022-01-04 17:36:17 +08:00
Tienson Qin
7491857460
fix: close the existing watcher when adding new graph
...
Also, don't create today's journal file during parsing
2021-11-25 13:30:49 +08:00
Tienson Qin
a9f21cd76c
fix: compare contents when new files detected
2021-11-22 22:25:59 +08:00
Tienson Qin
0273a18a5f
fix: don't delete files if it's triggered by third-party sync services
2021-11-22 18:55:34 +08:00
Tienson Qin
45af02ee2a
fix: delete page if its file was deleted
...
close #2962
2021-11-16 18:22:40 +08:00
Tienson Qin
73d141ed76
fix: encrypted graph
...
close #2691
2021-09-22 21:29:04 +08:00
Tienson Qin
5d5d88f8df
enhance: save files to logseq/bak when changes detected from the disk
2021-09-22 18:13:54 +08:00
Tienson Qin
f59f59b9ae
enhance: don't overwrite logseq's file if changes from journal file
...
is empty or the default template content.
To prevent overwritten when using iCloud/OneDrive/GDrive.
2021-09-15 21:47:05 +08:00
llcc
fef5bbf068
enhance(clock): support recording in repeated block // cleanup unused namespaces ( #2777 )
...
* enhance(clock): support recording in repeated block
* cleanup: unused namespaces
* cleanup: missing-else-branch if --> when
* enhance: wider search results window for mobile browser
* fix: namespace requirement
2021-09-08 10:23:16 +08:00
Tienson Qin
d94ce5e78b
enhance: detect file changes when starting
2021-09-07 21:13:25 +08:00
Tienson Qin
0b55d119aa
fix: save the previous content in Logseq first and commit it
...
to avoid overwritten when syncing with iCloud/Dropbox/syncthing.
2021-09-06 22:39:06 +08:00
Tienson Qin
e0baf4b05c
fix: close file watcher when exit the app
2021-09-06 22:18:45 +08:00
Tienson Qin
c79e9f9e3e
code: cleanup
2021-09-06 12:10:38 +08:00
Tienson Qin
7273112a00
git: revert back
2021-09-06 11:23:31 +08:00
Tienson Qin
cd853b5864
git: should compare ignored-files with disk content
2021-09-06 10:39:08 +08:00
Tienson Qin
a84dfb5eff
git: add ignore-files to avoid repeated notifications
2021-09-06 10:31:16 +08:00