Commit Graph

9387 Commits (9ab554408623643c1253fa853b63d349aa28db59)

Author SHA1 Message Date
Peng Xiao 9ab5544086 fix(whiteboard): some shortcuts does not work in sidebar when whiteboard is opened 2022-10-10 22:09:43 +08:00
Peng Xiao d172c4cce3 fix: remove debug log 2022-10-10 22:09:43 +08:00
Peng Xiao a06cb23c7f fix(whiteboard): fallback codemirror to hljs in whiteboard 2022-10-10 22:09:43 +08:00
Peng Xiao 46d873b61d fix(whiteboard): another possible issue of missing uuid 2022-10-10 22:09:43 +08:00
Peng Xiao df67c68005 fix(whiteboard): shape block-ref display issue 2022-10-10 22:09:43 +08:00
Peng Xiao 7afea4376b fix(whiteboard): dnd missing uuid issue 2022-10-10 22:09:43 +08:00
charlie efbd8d0027 fix(plugin): enter to break line not work for textarea settings item 2022-10-10 18:09:16 +08:00
charlie 766f0e56ce improve(ui): alignment of toggle right sidebar icon 2022-10-10 18:08:48 +08:00
Tienson Qin 7d3ed2bc97 Style tweaks 2022-10-10 18:08:48 +08:00
Peng Xiao 0903af6ab3 test(e2e): add a test case for whiteboard quick add 2022-10-10 17:12:23 +08:00
Tienson Qin 3e06beb23e fix: lint warnings 2022-10-10 17:04:59 +08:00
Tienson Qin 1b6060b4f4 fix: enable whiteboards on mobile (iOS/Android/Pad) 2022-10-10 14:00:05 +08:00
Konstantinos Kaloutas 30ffaf9b2e fix: e2e tests 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas 852d3b5e4a fix: disallow remote files 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas 81a6d23c4d fix: filter protocols on open 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas d238c88afd chore: add allowed protocols for openExternal 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas 23f44a5e50 fix: e2e tests 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas f9644ab37b chore: add hiccup test 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas d70c291d8e refactor: hiccup to html 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas 60790763dd fix: remove attributes and protocols 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas c5ebca26b6 fix: hiccup to string 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas 604dd20d33 fix: inline hiccup 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas a36f56c8df chore: add tests 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas f18cc5c6fb chore: remove redundant functions 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas 56584121e6 chore: add sanitization options 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas f70d4c6bac fix: sanitize html 2022-10-10 13:42:22 +08:00
Andelf c837afd075 ci: ignore stderr for bb lint tasks 2022-10-10 13:14:50 +08:00
Tienson Qin adb4d84e31 fix: disable assets alias temporally 2022-10-09 23:43:09 +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
Andelf ad4fec8ce7 enhance(ios): add sync progress 2022-10-09 19:36:05 +08:00
rcmerci bc89d60664 fix: refresh tokens when almost-expired-or-expired 2022-10-08 20:49:40 +08:00
Andelf df15c68f16 ci(ios): add ios build ci 2022-10-08 20:29:03 +08:00
Andelf 6e2292e40a fix(build): rm old pod spec 2022-10-08 20:29:03 +08:00
Tienson Qin bc568f6d5b
Merge pull request #5341 from logseq/whiteboards
feat: whiteboards support
2022-10-08 20:24:48 +08:00
Peng Xiao cffc30a076 fix: icon styles 2022-10-08 18:20:25 +08:00
Peng Xiao 1588cf9bd4 fix: merge issues 2022-10-08 17:27:19 +08:00
Peng Xiao cca1d35510 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-10-08 17:26:45 +08:00
Peng Xiao 68084bbf0b fix: html shape display issue 2022-10-08 17:00:36 +08:00
Tienson Qin 8ec98c0a68 instrument: db persist failed 2022-10-08 15:52:24 +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 b864b88907 chore: remove false commit 2022-10-08 10:12:22 +08:00
Peng Xiao 316be7e260 fix(whiteboard): deleting the last block in a logseq portal block shape 2022-10-07 20:46:56 +08:00
Peng Xiao fea248a03c fix(whiteboard): clearing state when exiting editing state 2022-10-07 20:18:11 +08:00
Peng Xiao 2ade3d326d fix(whiteboard): an issue on clicking logseq search items 2022-10-07 18:47:30 +08:00
Peng Xiao 9608910055 fix(whiteboard): allows pasting HTML content with format 2022-10-07 18:39:46 +08:00
Peng Xiao 66470437ae chore(tldraw): using https for local dev 2022-10-07 18:39:11 +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
Peng Xiao e975974638
Merge pull request #6894 from logseq/enhance/activation-settings 2022-10-05 19:12:35 +08:00