Commit Graph

495 Commits

Author SHA1 Message Date
Tienson Qin
91d70535ee fix: set default file format to nil 2022-11-25 21:25:16 +08:00
Peng Xiao
926b7d859b Merge branch 'master' into feat/wb-linkings 2022-11-23 13:12:20 +08:00
Peng Xiao
68ea04af52 fix: focusing shape id even in the same whiteboard & display block ref correctly 2022-11-23 11:53:52 +08:00
Charlie
dda1f9bd9f Enhance / Plugin APIs (#6945)
Added
1. All configurations of current graph.
App.getCurrentGraphConfigs: () => Promise<any>
2. All favorite pages list of current graph.
App.getCurrentGraphFavorites: () => Promise<Array<string> | null>
3. All recent pages list of current graph.
App.getCurrentGraphRecent: () => Promise<Array<string> | null>
4. Clear right sidebar blocks.
App.clearRightSidebarBlocks: (opts?: { close: boolean }) => void
5. Support register CodeMirror enhancer. #Experiment feature
Experiments.registerExtensionsEnhancer<T = any>(type: 'katex' | 'codemirror', enhancer: (v: T) => Promise<any>)
6. Support hooks for app search service. #Alpha stage
App.registerSearchService<T extends IPluginSearchServiceHooks>(s: T): void
7. Support focus option for App.insertBlock. Credit to [[tennox]] #PR

Fixed
1. Adjust build script to be compatible for shadow-cljs bundler.
How to set up a clojurescript project with shadow-cljs?
https://github.com/rlhk/logseq-url-plus/blob/main/doc/dev-notes.md
2022-11-22 22:00:29 +08:00
charlie
3086fec490 improve(desktop): WIP refactor left sidebar 2022-11-22 21:43:47 +08:00
Tienson Qin
0a796d11da fix: ``` surroundings in code block disappear
close #7015
close #7378
close #5735
2022-11-22 14:43:10 +08:00
Zhizhen He
7fdb9aaffb fix: typo 2022-11-21 17:58:13 -05:00
Tienson Qin
3210d17881 enhance: subscribe to id-token for reactive change 2022-11-21 21:03:32 +08:00
Tienson Qin
3312bfc3b6 fix: sync icon is missing 2022-11-21 21:03:32 +08:00
Tienson Qin
98c8ad304c Load refresh token synchronously 2022-11-21 21:03:32 +08:00
Soumik
1e09f35063 fix: rebase issue 2022-11-21 14:03:11 +08:00
charlie
135717e08e improve: reuse function about filter installed plugins 2022-11-21 14:03:11 +08:00
Soumik
8e10239b87 feat: show theme plugin settings under Settings menu 2022-11-21 14:03:11 +08:00
Andelf
e618f5d1f7 Fix: android nav bar and status bar color (#7385)
* fix(android): set nav bar and status bar color

Close #7382
2022-11-21 10:50:10 +08:00
Charlie
dd2ef163ba Enhance/PDF viewer (#7369)
* fix(pdf): WIP potential memory leaks
* enhance(pdf): sync page number in highlights metafile
* enhance(pdf): support preview highlight area image in a lightbox
* fix: clojurescript unit tests
* fix(pdf): page number overflow when more digits
2022-11-17 20:31:08 +08:00
charlie
3940db3107 fix: disable plugins system 2022-11-15 16:01:06 +08:00
Tienson Qin
db7bc72a3c fix: don't clear selection in blocks 2022-11-14 14:32:21 +08:00
charlie
776e206249 improve(ux): support close-backdrop? for sub modal 2022-11-11 17:33:15 +08:00
situ2001
1a216aa1aa feat(paste): toggle between pasting text or file when they both exist (#7198)
* feat(paste): toggle between pasting text or file when they both exist
2022-11-09 11:15:41 +08:00
Tienson Qin
f90e8ee7d5 Merge pull request #7184 from logseq/enhance/ios-folder-picker
enhance: graph select and create on iOS
2022-11-08 23:10:25 +08:00
Peng Xiao
c3611ef77c fix: pasting text in block portal shapes 2022-11-08 19:08:37 +08:00
Tienson Qin
20e1e77362 fix: remote graphs state when create/delete a remote graph 2022-11-08 16:58:39 +08:00
Tienson Qin
5a66bf8fb9 fix: unlink wrong graphs 2022-11-08 16:58:39 +08:00
Tienson Qin
7038261fad Merge branch 'master' into enhance/ios-folder-picker 2022-11-08 16:06:03 +08:00
Peng Xiao
a5e01895c7 fix: context menu of whiteboard pages 2022-11-07 16:52:43 +08:00
charlie
52d0834d34 improve(mobile): WIP onboarding for set-up a graph 2022-11-07 10:46:51 +08:00
charlie
be46a54fbb improve(ios): add container urls 2022-11-07 10:46:51 +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
Peng Xiao
e8d1c1baa7 feat(whiteboard): onboarding whiteboard 2022-11-04 23:03:43 +08:00
Peng Xiao
90150197f8 fix(whiteboard): some shortcut conflicting issues 2022-10-27 21:23:58 +08:00
Tienson Qin
db90f5f0af fix: not scroll to top when open in the right sidebar 2022-10-25 14:25:20 +08:00
Tienson Qin
1b6060b4f4 fix: enable whiteboards on mobile (iOS/Android/Pad) 2022-10-10 14:00:05 +08: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
cca1d35510 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-10-08 17:26:45 +08:00
Junyi Du
0e4037ab61 Feat: new file name escaping rules (#6134)
* feat: new file name escaping for namespace

feat: new file name decoding back to page name

* test: file name sanitization

feat: use _0x to encode %

feat: don't create title property

test: extra URL encoding for escaped file names

fix: fit pdf prefix into new file name rules

fix: encoding rules on some characters

fix: handle the buggy file names imported by users

fix: pdf block ref failed to jump

fix: #6167

* fix: enhance backward compatibility

chore: title validation

test: fix namespace queries test

chore: use index version stored in config.edn instead of search.versions

* feat: convert old version graph mechanism

ui: file conversion UI

feat: rename files for conversion

feat: don't trigger conversion when title property is manually edited

fix: file conflict notification while renaming files on some OS

feat: re-index on update version

feat: clicking NO in the re-index dialog would update the index-ver flag to suppress the dialog

feat: use html entities for reserved char escaping

dev: remove unresolved vars & minor refactor

chore: move file name sanity from gp-util to fs-util, as it's for encoding only but not parsing

test: update file name tests to html entities rule

test: convert files from dir ver 3 for repo_tests

feat: convert Windows reserved file names

fix: save index version into idb instead of file

fix: decode uri of path while parsing files on mobile

fix: couple dir version and index version to ensure only re-index on converted dirs

feat: go back to url-encode for special chars

* chore: fix lint

chore: improve codebase to address Gabriel's comments

fix: remove file remnants on add conflict

fix: remove file remnants on rename conflict

chore: add test ns to nbb runner

Also fix typoed fn and remove unused code

* fix: issues of rebase PR6134 to master after file-sync merged

* feat: switchable filename format

* fix: use  go block to replace promesa for rename all with blocking

* feat: re-index after apply rename all

* ui: file conversion enhancement

* fix: merging filename format PR with master

* fix: filename format lint & CI

* ui: filename format flow

* fix: error handling on the rare internal file path confliction case

* chore: shorten component code for files-breaking-changed

* chore: fix CI

* Minor fixes per latest code review

- Remove unused page-name-order
- Update catch usage to be consistent with what's on master
- Place state fn in right place
- Wording fixes:
  - select and apply -> manual. There are no checkboxes for the user
  - Update -> Edit. We use edit for all other settings button
  - Alternatives to starting sentences with May. Not a common way to
    start a sentence
  - update outdated template comment

* ux: rename instruction update

* ux: rename instruction update (2)

* Tweak wording of conversion modal

Simplifed first paragraph and explained the page to the user in first
sentence, may isn't a common way to start sentences and updated outdated
wording

* Fix large-var warning by splitting out a piece of component

* fix: right slash on Windows; legacy format file sanitization

* fix: triple lowbar renaming fns

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-10-08 15:47:45 +08:00
Tienson Qin
18297c224f Merge branch 'master' into whiteboards 2022-09-30 17:38:18 +08:00
Tienson Qin
749bcf5ce2 fix: sync status not refreshed 2022-09-30 17:33:32 +08:00
Tienson Qin
cd26853499 fix: sync status not refreshed 2022-09-30 17:33:32 +08:00
Tienson Qin
eb81825946 step 4: start-time and last-synced-at 2022-09-30 17:33:32 +08:00
Tienson Qin
09e7715e2f step 3 :file-sync/progress 2022-09-30 17:33:32 +08:00
Tienson Qin
8e4fcb4f8c step 2: :file-sync/sync-state 2022-09-30 17:33:32 +08:00
Tienson Qin
308a4aeb47 refactor: step 1 file-sync/sync-manager 2022-09-30 17:33:32 +08:00
Tienson Qin
937a22c7ba Increase content-max-length to 10k 2022-09-30 11:56:00 +08:00
Peng Xiao
bb2df1b3b7 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-30 08:51:05 +08:00
Tienson Qin
287f1b32a0 fix: remove unused :file-sync/sync-state-manager 2022-09-29 21:58:27 +08:00
Peng Xiao
7bae8313d3 refactor: move tldraw shape related props into logseq.tldraw.shape/page 2022-09-29 14:41:55 +08: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
c17c9af067 fix: whiteboard saving timing delay 2022-09-24 15:32:41 +08:00
Peng Xiao
4044a458ac fix: whiteboard idle check issue 2022-09-24 12:26:35 +08:00