Commit Graph

442 Commits (79bf300dcbaca11fe6768ac9fb116d6e35e8120e)

Author SHA1 Message Date
Peng Xiao e0ac311f2a build: autoprefixer for generated css 2022-11-14 22:43:15 +08:00
charlie f68485208c chore: remove unnecessary deps 2022-11-11 17:33:15 +08:00
charlie 196f7ca361 improve(ux): make plugins list container netsted scrolling 2022-11-11 17:33:15 +08:00
Tienson Qin c228bba355 feat: upload files when the app switching to background
Notice: Android is not supported yet.
2022-11-11 13:59:57 +08:00
charlie fdebfb3f00 improve(mobile): WIP onboarding for set-up a graph 2022-11-05 15:25:20 +08:00
charlie 65e77e6523 fix(mobile): format of recorder audio file 2022-10-28 15:50:34 +08:00
Tienson Qin c8f19a0d54 chore: bump capacitor-file-sync to 0.0.13 2022-10-26 22:37:27 +08:00
Andelf 503e33f614 enhance(android): add sync progress 2022-10-18 11:01:05 +08:00
charlie 31f6375800 enhance(css): add line clamp plugin to tailwind 2022-10-13 16:52:51 +08:00
charlie 1d301899a1 enhance(ui): upgrade tailwind & configures 2022-10-13 16:52:51 +08:00
Konstantinos Kaloutas f70d4c6bac fix: sanitize html 2022-10-10 13:42:22 +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 c7fe4933b4 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-10-07 16:18:27 +08:00
Konstantinos Kaloutas 42f2910a0e chore: upgrade excalidraw 2022-10-04 22:37:06 +08:00
Tienson Qin 18297c224f Merge branch 'master' into whiteboards 2022-09-30 17:38:18 +08:00
Tienson Qin ba91c9615b fix: empty properties if one of them has an empty value 2022-09-30 11:23:49 +08:00
Peng Xiao bb2df1b3b7 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-30 08:51:05 +08:00
Andelf 6a6974671f chore(deps): update file-sync libs 2022-09-29 19:36:42 +08:00
Peng Xiao 4520399ddf Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-28 10:29:20 +08:00
Kan-Ru Chen 8677c74fa3
chore(deps): update rage-wasm to 0.3.0 (#6808)
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2022-09-27 16:14:56 +08:00
Peng Xiao fd94862312 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-24 09:42:00 +08:00
Andelf d1c7328a93 fix(android): use graph-uuid in call, update capacitor-file-sync 2022-09-24 00:39:29 +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
Gabriel Horner 9d9e976b8c Merge branch 'master' into refactor/refs-from-property-values 2022-09-21 15:34:47 -04:00
Peng Xiao 1553311666 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-19 15:59:27 +08:00
Andelf 634c5010a5 chore(deps): update capacitor-file-sync, native android encryption 2022-09-19 12:22:12 +08:00
Peng Xiao d59e7fdbe8 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-17 13:04:43 +08:00
Andelf 2a73019b34 refactor(mobile): use ios file-sync as lib 2022-09-16 21:12:15 +08:00
Andelf 6dc5517484 refactor(mobile): upgrade capacitor to v4 2022-09-15 20:17:57 +08:00
Peng Xiao 031ad9c4a9 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-15 09:46:44 +08:00
Tienson Qin 71514ab36c fix: extracting page's title property from mldoc ast 2022-09-14 20:29:44 +08:00
Tienson Qin 1a8c18488a Merge branch 'master' into refactor/refs-from-property-values 2022-09-14 19:53:49 +08:00
charlie 79c73eaee6 chore: typos 2022-09-14 11:30:11 +08:00
charlie 9b57580962 chore(dev): just one command for ios/android development 2022-09-14 11:30:11 +08:00
Gabriel Horner 35e526e717 Merge branch 'master' into refactor/refs-from-property-values 2022-09-13 14:52:48 -04:00
Peng Xiao eaec72e676 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-14 00:26:16 +08:00
Andelf 6253800b16 chore(deps): update some deps that have cve warnings 2022-09-13 11:51:18 +08:00
Peng Xiao 4d86f4f53f Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-10 00:45:27 +08:00
Tienson Qin 58839059ac fix: CI 2022-09-09 14:13:35 +08:00
Tienson Qin cab5dc45a2 fix: tag parsing 2022-09-09 13:19:35 +08:00
Tienson Qin 2c7bae1190 fix: , and some chars shouldn't be supported for tags 2022-09-09 12:39:28 +08:00
Tienson Qin 336fa578d5 refactor: replace directives(front matter or org) with properties 2022-09-09 12:37:55 +08:00
Tienson Qin d1d1dc50c2 wip: get references from property values 2022-09-09 12:36:54 +08:00
Konstantinos Kaloutas 44d0cd172f chore: use the axe core playwright package 2022-09-09 12:13:56 +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 74aaa378aa Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-29 11:39:07 +08:00
Andelf 2bffe0809c fix(build): use compatible escape for cross-platform 2022-08-29 10:52:24 +08:00
Peng Xiao 0ff5324c02 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-29 10:45:15 +08:00
Kan-Ru Chen 0fce4a4792 chore(deps): update electron 19.0.12 2022-08-29 06:53:34 +08:00
Peng Xiao 1e607907f3 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-26 15:46:20 +08:00
Konstantinos Kaloutas 723e860226 enhance: install axe-playwright 2022-08-26 11:52:23 +08:00
Peng Xiao 1d7374ba86 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-09 09:47:00 +08:00
Andelf 80fb12b6e7 chore(deps): update electron 19.0.10
BREAKING CHANGE: IndexDB version incomaptible, should clear cache
2022-08-09 00:08:09 +08:00
Grant Moyer 161d3174e4
Upgrade electron to 19 (#6032) 2022-08-08 23:54:30 +08:00
Peng Xiao 7ba324bfd2 fix: quick add by block or page 2022-08-06 17:36:34 +08:00
Peng Xiao ab6eec5fc3 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-03 14:12:10 +08:00
Phoenix Eliot 0747d5ccb7
Fix pasting race condition (#5964)
* Fix re-running e2e tests when it reuses old app instances

I'm not certain this doesn't break things for other OSes/setups, but it was required for e2e tests to run after the first time I ran them. It keeps a list of all previous (now missing) graphs in the sidebar, and this flow properly causes the new one to be selected, where the old flow did not match what the UI was doing anymore.

* Add e2e test for quickly pasting blocks after editing new blocks

* Fix pasting quickly after editing a new block

* Remove "test.only" focus

* Fix clicking add button in first test by closing error notification

* Improve some flaky race conditions in tests

* Remove unrelated waits in E2E tests

* Update playwright version; update tests to match

* Fix logic for checking if there are unsaved edits

* Fix typescript complaints

* Reduce how long we wait after closing each error popup
2022-08-02 10:54:09 -04:00
Peng Xiao 5702dab2d8 fix: review tldraw:build script 2022-07-20 13:54:42 +08:00
Peng Xiao d33d1cfede wip add more tests 2022-07-13 03:20:22 +08:00
Peng Xiao d3dae5fddc Merge remote-tracking branch 'upstream/master' into whiteboards 2022-07-07 14:07:35 +08:00
Phoenix Eliot cda2a1849d Replace react-visibility-sensor with react-intersection-observer 2022-07-06 22:34:04 +08:00
Peng Xiao 6b5b1940d3 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-06-14 10:17:21 +08:00
llcc e93480b664 fix app not working on iOS 13 2022-06-12 20:35:57 +08:00
Gabriel Horner 17d2462343 Move rules into db dep as it's useful for external apps
- rules is already used by logseq-query and will be useful for
  nbb-logseq
- Updated db jobs to run in deps/db by default. Less typing but
  more importantly discourages independent libraries from depending on
  external scripts.
- Moved lint-rules task into db since it is db specific now
- Also remove nbb-logseq from top-level as all nbb compatibility is in
  deps.
2022-06-10 15:39:11 +08:00
Peng Xiao 5c2e644a43 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-06-07 10:52:11 +08:00
Tienson Qin b3b406ba31 chore: bump mldoc 2022-06-05 16:54:39 +08:00
Tienson Qin e36bca4660 fix: disable cache for clj-kondo 2022-06-05 12:54:03 +08:00
Tienson Qin 3c886f4330
Merge pull request #5374 from jonasdiemer/calc-pretty-floats
Calculator: improved output of float numbers
2022-05-30 18:19:26 +08:00
Tienson Qin c7698ab77e
Merge pull request #5088 from logseq/gesture-support-on-block
Gesture support on mobile
2022-05-30 17:48:47 +08:00
Tienson Qin d428270178 enhance: keep line breaks for exported markdown
bump mldoc
2022-05-29 16:18:11 +08:00
Peng Xiao a72b28145c
Merge branch 'master' into whiteboards 2022-05-28 02:13:33 +08:00
llcc aa1abfc71e
Merge branch 'master' into gesture-support-on-block 2022-05-24 17:24:38 +08:00
Andelf ce3fef7368 fix(android): use es6 as build target 2022-05-24 17:22:49 +08:00
llcc ee3b578d99
Merge branch 'master' into gesture-support-on-block 2022-05-23 22:07:36 +08:00
Peng Xiao 5f78337163 fix: wip 2022-05-22 13:51:35 +08:00
Jonas Diemer dcddb9e935 use bignumber.js for calculations 2022-05-21 22:52:44 +02:00
Peng Xiao 7038e6cbe6
Merge branch 'master' into whiteboards 2022-05-20 16:08:35 +08:00
Andelf 013f15dfbe fix(publishing): use release build for publishing js
Fix #5368
2022-05-20 09:50:40 +08:00
Gabriel Horner 6f68d985bd Use core uuid fns where possible
No need for medley or personal util fns when core fns
are available. Also upgraded nbb-logseq to be 1.11.X cljs compatible

- uuid is the same as medley/uuid
- random-uuid is the same as medley/random-uuid
- uuid-string? and uuid is the same as parse-uuid
2022-05-19 14:58:33 +08:00
Peng Xiao e02a7dd344 move tldraw/next inside of logseq 2022-05-16 19:55:07 +08:00
Peng Xiao a62d6e7e90 Merge remote-tracking branch 'upstream/master' into feat/tldraw-basic 2022-05-16 15:57:40 +08:00
Peng Xiao 97120441db wip
wip
2022-05-16 15:53:10 +08:00
Tienson Qin 0e5d1614a0
Merge pull request #5265 from logseq/enhance/graph-parser-part-two
Enhance: Migrate mldoc and text to graph-parser
2022-05-12 20:22:51 +08:00
llcc 60fad0d3ba open PDF with external app on mobile 2022-05-12 20:13:13 +08:00
llcc e119fef6bd
Merge branch 'master' into gesture-support-on-block 2022-05-12 09:58:53 +08:00
Gabriel Horner a9664272db Merge branch 'master' into enhance/graph-parser-part-two 2022-05-11 20:22:31 -04:00
Tienson Qin 3ca8228a74 Only render references when it's visible in the window viewport 2022-05-12 07:39:37 +08:00
Gabriel Horner 112e6e2d97 Test second nbb ns thanks to upstream nbb fix :) 2022-05-11 12:33:17 -04:00
llcc 312f6b968f feat(gesture): add haptics impact on action 2022-05-06 16:20:00 +08:00
Gabriel Horner c0e1e16372 Finish up CI job for requiring nbb-compatible namespaces 2022-05-04 12:02:36 -04:00
Tienson Qin 50f8954886 fix: markdown fenced code parsing 2022-04-24 11:48:30 +08:00
llcc 4207df1b1a fix copy to clipboard failure on iOS 2022-04-15 17:30:59 +08:00
Peng Xiao ec4008d054 chore: upgrade tailwindcss to most compatible version 2022-04-12 10:00:06 -04:00
llcc f4985fd8ef
Feat: record audio on mobile (#4766)
* feat(audio): render audio link as component

* refactor frontend/component/block/inline

* fix audio component on mobile

* Fix(iOS): allow clock to replay audio

* feat(mobile): audio record

* add permission request code on record

* rename `editor/recording?` to `editor/record-status`

* move `get-asset-path` into handler/editor.cljs

* add android settings

* support sharing audio file from some apps

* enhance(record): insert audio link in a new block if non-editing

* feat(audio): allow cancelling record

* fix lints

* feat(iOS): add a tab bar

* tweak some css on mobile

* fix lints

* fix https://github.com/logseq/logseq/issues/4798

* enable tab bar on Android

* fix landscape height of tab bar

* add :reuse-last-block? option

* dont't show tab bar when editing mirror code

* tweak code-editor css

* increase width for more functional buttons

* fix card preview css on iPad

* add document-mode to tab bar

* remove tabbar when editing code and tweak textarea resize cursor behavior

* reduce SplashScreen launch screen duration

* don't show tabbar when editing page title

* enhance: float timer

* fix lint

* fix tabbar height on iPhone without notch

* remove .embed-page width

* fix lint

Co-authored-by: Andelf <andelf@gmail.com>
2022-04-12 20:17:54 +08:00
llcc 21e172feb6
feat(mobile): share intent (#4599)
* feat(mobile): share intent

* feat(ios): share content

* feat(share): fix kUTType* deprecation

* feat(share): fix result of call to 'openURL' is unused

* fix screenshot copy rewrite issue

* fix AndroidManifest.xml

* fix(iOS): app not showing in share list

* address comment
2022-03-28 12:30:32 +08:00
Tienson Qin 8454ec1ee5 fix: sentry
close #4613
2022-03-18 16:44:03 +08:00
Andelf 1b163d7bff chore(deps): upgrade playwright 2022-03-15 11:56:32 +08:00
Tienson Qin 725ca1c6a1
Feature: flashcards random mode (#4535)
* feat: add flashcards shuffle mode
* fix: flashcards navigation
* refactor(build): use @tabler/icons from node_modules

Co-authored-by: Andelf <andelf@gmail.com>
2022-03-11 00:13:37 +08:00
Andelf 46d9cbaa5f fix(dev): sourcemap path in electron while dev 2022-03-09 18:06:08 +08:00