Commit Graph

605 Commits

Author SHA1 Message Date
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
6b3d92684c fix(pdf): turn on annotations layer for built-in contents links 2022-10-16 12:18:31 +08:00
situ2001
015bb1efa8 fix(excalidraw): grid mode status not correctly shown 2022-10-13 17:45:57 +08:00
Konstantinos Kaloutas
b536e78ec0 chore: hide portal icons 2022-10-13 16:52:51 +08:00
charlie
3c937520a6 fix(ui): polish form input 2022-10-13 16:52:51 +08:00
Tienson Qin
53265f6c34 fix: make sure that highlight content exists 2022-10-12 22:11:02 +08:00
Tienson Qin
a8244a8e1b fix: trim on nil 2022-10-12 20:52:30 +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
Peng Xiao
c7fe4933b4 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-10-07 16:18:27 +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
35763e75ce fix: reset width on resize 2022-10-04 22:37:06 +08:00
Konstantinos Kaloutas
b270ed4a9d chore: remove empty line 2022-10-04 22:37:06 +08:00
Konstantinos Kaloutas
107af5da30 fix: update component on main node resize 2022-10-04 22:37:06 +08:00
Konstantinos Kaloutas
306ec17ebd chore: remove unneeded file extension 2022-10-04 22:37:06 +08:00
Konstantinos Kaloutas
42f2910a0e chore: upgrade excalidraw 2022-10-04 22:37:06 +08:00
Peng Xiao
562417baf3 fix: whiteboard crash issue 2022-09-28 23:54:26 +08:00
Peng Xiao
eaba28e7ca fix: shape deserialize issue 2022-09-28 19:42:18 +08:00
Peng Xiao
e65a5a1280 feat: remember whiteboard camera in session storage 2022-09-28 19:03:26 +08:00
Peng Xiao
4d3decd218 fix: code cleanup 2022-09-28 11:00:57 +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
Gabriel Horner
96ebd7d8b3 Put tldraw-logseq.js in same source path as other js files
No need for a separate source path
2022-09-24 02:58:10 -04: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
Peng Xiao
bb5b8b98b3 feat: create binding api 2022-09-17 13:02:02 +08:00
Peng Xiao
4d86f4f53f Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-10 00:45:27 +08:00
Andelf
853c6d44c5 fix(latex): avoid accessing null 2022-09-08 12:35:13 +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
Peng Xiao
33885e619b Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-01 10:29:29 +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
Peng Xiao
f5d83483ce Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-31 10:44:18 +08:00
Charlie
d9c9438abf Fix/custom css not reload (#6510)
* fix: custom css not reload when switching graph
* fix(ux): sometimes code editing auto save not work with blur event
2022-08-30 09:06:45 +08:00
Gabriel Horner
0275e5a067 Fix tabindex console react warnings (#6520)
Follow up to #6442
2022-08-29 15:37:56 -04:00
Peng Xiao
482799eb4f fix: return more filter values 2022-08-29 21:01:38 +08:00
Peng Xiao
98216cc714 fix: redirect to page button for whiteboards 2022-08-22 14:30:18 +08:00
Peng Xiao
81637484d2 feat: more toolbar actions 2022-08-21 15:36:28 +08:00
Peng Xiao
6ba0d5aa56 feat: open page actions 2022-08-20 23:47:40 +08:00
Peng Xiao
c2c3378faa fix: blur clearing editing state issue 2022-08-15 22:47:20 +08:00
Peng Xiao
d0ddbf19a2 fix: bring back shape rotation 2022-08-15 21:57:56 +08:00
Peng Xiao
7fc649dd08 fix: dnd block into whiteboard should also persist the source id 2022-08-15 16:31:01 +08:00
Peng Xiao
ce9a112ff0 fix: save image into asset folder instead of using base64 2022-08-15 13:54:48 +08:00
Peng Xiao
6bb6acc437 fix: issue with stale cache 2022-08-10 11:50:57 +08:00
Peng Xiao
1d7374ba86 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-09 09:47:00 +08:00
Tienson Qin
b6be007d98 fix: don't replace _ for the page name if it's not a local asset 2022-08-08 13:34:47 +08:00
Peng Xiao
eef15ab991 fix: hide breadcrumb preview in whiteboard 2022-08-06 23:15:45 +08:00
Peng Xiao
7ba324bfd2 fix: quick add by block or page 2022-08-06 17:36:34 +08:00
Peng Xiao
ecfb82d8a3 fix: dashboard preview 2022-08-06 15:50:34 +08:00
Peng Xiao
357a51c8bd fix: normal page cannot be saved 2022-08-06 15:45:43 +08:00