Commit Graph

295 Commits

Author SHA1 Message Date
Tienson Qin
7c9c6bd913 Merge branch 'master' into feat/reproducible-plugin 2022-10-18 20:23:18 +08:00
Konstantinos Kaloutas
8445458fdc fix: command width 2022-10-18 19:52:26 +08:00
Konstantinos Kaloutas
32abc786ae fix: shortcut alignment on command palette 2022-10-18 19:52:26 +08:00
situ2001
8df094c569 fix: fn make-confirm-modal not respond to enter key-down 2022-10-18 16:54:16 +08:00
Konstantinos Kaloutas
6ed58e1654 feat: support disabled button state 2022-10-18 16:54:16 +08:00
Konstantinos Kaloutas
40632a1a78 feat: auto heading 2022-10-18 16:54:16 +08:00
situ2001
e7188a643e fix: fn make-confirm-modal not respond to enter key-down 2022-10-18 10:48:44 +08:00
Konstantinos Kaloutas
cce937b9d7 feat: support disabled button state 2022-10-18 10:42:41 +08:00
Konstantinos Kaloutas
6e3a54677d feat: auto heading 2022-10-18 10:42:41 +08:00
Gabriel Horner
0c570a0300 Fix more bugs, move plugins.edn and add enabled
- Move plugins.edn to config/ as it is user configuration
- Add plugin-config enabled flag and moved plugin enabled
- Fixed bugs with manual install
- Refactored plugin-config component to have its own listener
- Split out shared plugin fns to a common ns - plugin-config shouldn't
  need to depend on a component like plugin-handler
- Bump rewrite-edn to include upstream fix and avoid tons of cljs
  warnings with earlier versions
- Fix react warning introduced outside this PR in ui/icon
2022-10-17 10:13:27 -04:00
Charlie
d53ac94bfc Enhance/pdf improvements (#6475)
Full-text search, highlights and assets alias support 
It also exposes a plugin API for highlight context menu   
    ```ts
    /**
       * Current it's only available for pdf viewer
       * @param label - displayed name of command
       * @param action - callback for the clickable item
       * @param opts - clearSelection: clear highlight selection when callback invoked
       */
      registerHighlightContextMenuItem: (
        label: string,
        action: SimpleCommandCallback,
        opts?: {
          clearSelection: boolean
        }
      ) => unknown
    ```
2022-10-09 20:44:18 +08:00
Peng Xiao
c7fe4933b4 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-10-07 16:18:27 +08:00
Tienson Qin
91dddd7541 Fix: stuck re-index when there're multiple whiteboards have the same UUID (#6890)
* fix: keep parsing even if some whiteboards can't be transacted

* enhance: notice parse errors

* enhance: instrument parse-and-load-error

* chore: add tests for whiteboards parsing and loading
2022-10-07 12:04:43 +08:00
Konstantinos
6007d6061f Enhance: Color system (#6821)
* refactor: remove redundant utility classes

* chore: expose tailwind colors to css vars

* refactor: introduce error/warning/success colors

* fix: move tailwind utilities import

* fix: extend tailwind font sizes

* fix: exclude color classes from purge

* refactor: admonition component

* fix: admonition warning color

* fix: notification icon color

* fix: capitalize icon title

* chore: remove caution color

* feat: highlighting system

* chore: add color title and remove comment

* chore: add color translations

* chore: add missing bg classes

* refactor: highlight system

* fix: color id

* fix: bg color value

* fix: pdf highlight colors

* fix: resolve conflicts

* fix: class directive typo
2022-10-07 11:54:06 +08:00
Konstantinos Kaloutas
cbd6b54414 refactor: add icon support to button component 2022-10-05 12:25:48 +03:00
Konstantinos Kaloutas
5549b72e20 fix: sidebar icons alignment issues 2022-09-29 11:59:13 +03:00
Peng Xiao
4520399ddf Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-28 10:29:20 +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
Peng Xiao
5f8385b098 fix: whiteboard ref dropdown not showing issue 2022-09-24 14:56:04 +08:00
Peng Xiao
526a8d99c8 fix: merge issues 2022-09-24 10:16:19 +08:00
Peng Xiao
fd94862312 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-24 09:42:00 +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
charlie
eb46482a75 fix: lint 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
f8cc6378c3 improve(ui): update built-in icon mode 2022-09-21 14:49:20 +08:00
Konstantinos Kaloutas
3e74e715a1 Merge branch 'whiteboards' into feat/whiteboards-create-button 2022-09-19 10:34:40 +03:00
Peng Xiao
874b8d5be4 fix: minor style change 2022-09-17 18:42:16 +08:00
Peng Xiao
ec3ab1cc79 fix: Shrink Page title after input on canvas 2022-09-17 18:31:40 +08:00
Peng Xiao
f933cca5ad fix: should be able to show references on tooltip off 2022-09-17 15:30:41 +08:00
Konstantinos Kaloutas
c8506fed20 chore: add shortcuts to menu 2022-09-16 14:07:50 +03:00
Konstantinos Kaloutas
f0471bf902 chore: introduce type icon 2022-09-15 12:18:58 +03:00
Gabriel Horner
51c318e2da Enable two disabled linters and bump kondo dep
All the fixes were on used-underscored-binding
2022-09-09 12:14:32 +08:00
Konstantinos Kaloutas
18d58d4026 refactor: window events 2022-09-09 12:13:56 +08:00
Konstantinos Kaloutas
73bbcc2ba0 fix: persist zoom level on navigation 2022-09-09 12:13:56 +08:00
Andelf
00bc964a9c fix(dev): avoid react same key warnings 2022-09-08 12:35:13 +08:00
Charlie
01d879c18e feat!: File Sync (#5355)
- file sync for electron/ios/android
- age encryption of both file content and file path
- massive UI enhancement
- corresponding CI tasks

Co-authored-by: llcc <lzhes43@gmail.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-09-01 00:31:49 +08:00
charlie
04e04e4005 improve(plugin): plugin perf tips for initial loader 2022-08-26 18:48:00 +08:00
Konstantinos Kaloutas
5ff79cbba0 fix: add aria label to textarea 2022-08-26 11:52:23 +08:00
Konstantinos Kaloutas
322e3a730a fix: search input issues 2022-08-24 16:47:49 +08:00
Konstantinos Kaloutas
16a6a64ceb fix: linting errors 2022-08-22 19:07:40 +08:00
Konstantinos Kaloutas
c75580f98b enhance: add shortcuts to menu items 2022-08-22 19:07:40 +08:00
Konstantinos Kaloutas
7d426983a8 enhance: make contranst of menu separator subtle 2022-08-22 19:07:40 +08:00
Konstantinos Kaloutas
bc21daee88 enhance: context and dropdown menu 2022-08-22 19:07:40 +08:00
Tienson Qin
dbf82ebdc1 fix: set triggerOnce for references 2022-08-22 17:08:53 +08:00
Tienson Qin
ce61b01634 enhance: separate includes, excludes and other references for filters 2022-08-22 17:08:53 +08:00
Tienson Qin
48ce3bf4c5 revert back 2022-08-15 21:58:46 +08:00
Tienson Qin
453c17289a fix: lint warnings 2022-08-15 21:58:46 +08:00
Tienson Qin
eff9072564 fix: remove unused time check for invisible components 2022-08-15 21:58:46 +08:00
Tienson Qin
a1ca6820df Fix: broken linked references (#6105)
* enhance: clicking the refresh button if a query is slow

* fix: skip running slow queries if there's no need to refresh

* fix: linked reference filtering does not work on TASK items

close #1669

* fix: each block should have its own page as a reference when query page references

* fix: references

* fix: non consecutive blocks in query result and filtered linked references

* simplify filters logic

* fix: ref numbers

* Save both :block/refs and :block/path-refs for different usage

* fix: block refs

* enhance: move scheduled and deadlines to its own ns

* linked references performance tweaks

* mouse hover filters icon to expand the collapsed linked refs

* perf: react/refresh! once instead twice

* enhance: compute flashcards every hour instead of every 5s

* feat: macros as blocks

* feat: flashcards list

* fix: refed pages count

* fix: can't select in linked references

* fix: block editing on linked refs

* perf: editing in linked references

* enhance: update srs cards number when clicking flashcards

* Add a test for the case fixed in #6100

* Address feedbacks from Gabriel

* fix: Block Ref Indicator is missing from the references-blocks class

close #5375

* fix: referenced pages

* fix: page refs

* fix: Using filters pushed the title property to the second block

close #5845

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-08-04 13:03:12 +08:00