Commit Graph

50 Commits

Author SHA1 Message Date
Tienson Qin
ed83d2bd0f fix: can't paste on iOS
fix #6898
fix #7122
fix #6513
fix #6898
2022-11-08 21:51:26 +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
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
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
Andelf
1987c4149a fix(fs): check wrong url for windows 2022-08-23 11:38:43 +08:00
charlie
13091b8781 enhance: utils of safe path join 2022-08-19 18:18:04 +08:00
charlie
5373da2deb fix: safe path join 2022-08-19 18:18:04 +08:00
charlie
1a6379f118 improve: add safe path join 2022-08-19 18:18:04 +08:00
Andelf
88b3962dd0 fix(editor): copy with both plain and rich text 2022-06-01 15:51:37 +08:00
Junyi Du
dc8be8cdfc test(e2e): handle case that has no ClipboardItem available 2022-04-26 15:00:45 +08:00
Junyi Du
472f548d50 test(e2e): emulate copy-to-clipboard when no webAPI permission 2022-04-26 15:00:45 +08:00
llcc
4207df1b1a fix copy to clipboard failure on iOS 2022-04-15 17:30:59 +08:00
leizhe
eeea1698a8 fix(iOS): rewrite status-bar style js code by clojurescript code
Javascript code only works in development mode.
2022-01-26 01:35:31 +08:00
llcc
1c127bb6a9 feat(ios): status bar style changes with logseq theme (#3947)
Co-authored-by: leizhe <leizhe@leizhedeMacBook-Air.local>
2022-01-21 17:14:18 +08:00
Tienson Qin
a1c8a78034 fix(mobile): swiper not working 2021-12-01 12:26:25 +08:00
Tienson Qin
b4ca337af3 feat(mobile): swipe right/left to toggle the left sidebar 2021-11-30 15:15:04 +08:00
leizhe
9559dda3fe enhance: more path functions from JS 2021-11-09 10:05:21 +08:00
charlie
e10361824d Revert "fix(dev): using latest path-browserify"
This reverts commit 647c92c0aa.
2021-11-09 10:04:11 +08:00
charlie
2a812cced3 fix(dev): using latest path-browserify 2021-11-09 10:04:11 +08:00
charlie
2512b5d246 fix(dev): load npm path.js lib instead of internal path lib from shadow-cljs 2021-11-09 10:04:11 +08:00
charlie
e62e2d8ed6 fix(pdf): support the raw path under win32 that included backslash for pdf local resource 2021-10-06 23:51:47 +08:00
clark-cui
01eb9085e8 jscode enhance
jscode enhance
2021-09-26 18:04:55 +08:00
rcmerci
07917b36c7 feat: set text/html when copy html text 2021-08-06 15:29:22 +08:00
Tienson Qin
1008efdc0d enhance: ask clipboard permission
Notice, it still doesn't work for firefox.
2021-07-25 17:55:34 +08:00
Tienson Qin
b2b5acb6f1 fix: can't edit on iOS 2021-03-31 16:30:17 +08:00
Tienson Qin
fdd1538820 fix: use fuse.js for both fuzzy search and full-text search 2021-02-21 21:54:46 +08:00
Tienson Qin
c13cf6a75e fix: full-text search 2021-02-15 16:45:11 +08:00
Tienson Qin
1e4fdc5508 feat(full-text-search): enable forward for ascii text 2021-02-14 13:51:58 +08:00
Tienson Qin
771b09b12a feat(full-text-search): support both ascii and non-ascii chars 2021-02-14 13:51:58 +08:00
Tienson Qin
66a545c306 feat(electron): fix windows path 2021-01-27 21:38:18 +08:00
Tienson Qin
013b4fbd8f Merge pull request #1072 from logseq/enhance/undo-redo
Enhance/undo redo
2021-01-12 07:16:50 -08:00
Charlie
4b2dde2228 Feature/attachment with native fs (#1078)
* feat: upload image with native fs

* improve: life of loading assets image file with nfs

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2021-01-12 21:25:37 +08:00
Tienson Qin
eb4d56f666 Merge branch 'master' into enhance/undo-redo 2021-01-12 05:12:32 -08:00
Kaile
a335b9718a Add externs for external JS libs to prevent name been munged when building with release 2021-01-07 07:05:56 -08:00
Tienson Qin
249bf680c1 enhance: undo redo use patches instead of full text 2021-01-07 10:31:14 +08:00
Tienson Qin
c611a7a8e1 fix: weird buy introduced by bumping shadow-cljs 2021-01-04 18:36:23 +08:00
Yukun Guo
92e791ecad fix: only proceed if permission verified 2020-12-11 12:10:05 +08:00
Tienson Qin
17bb4be3ad fix: add loading status 2020-12-04 18:25:46 +08:00
Tienson Qin
4c738d3824 Merge branch 'master' into feat/chrome-native-fs 2020-12-03 17:02:45 +08:00
Tienson Qin
bcb40c6629 fix: only show open a directory when nfs api is supported
Also, ask for permission when clicking the refresh button
2020-12-02 23:29:16 +08:00
Tienson Qin
4d59e4317d fix(editor): add yarn test and fix CI 2020-12-02 11:27:57 +08:00
charlie
eb651cfe81 [refactor] support React change event for set-edit-content! & fix image style of block conent 2020-12-01 15:56:38 +08:00
Tienson Qin
0b90dcf71b feat(chrome native fs): add sync button 2020-12-01 00:30:00 +08:00
Tienson Qin
d93b298714 Merge branch 'feat/chrome-native-fs' of github.com:logseq/logseq into feat/chrome-native-fs 2020-11-30 12:17:55 +08:00
Tienson Qin
50a7a7c585 feat: chrome native compatible fs api 2020-11-30 11:50:18 +08:00
Tienson Qin
6c3da67f6b feat: native filesystem api integration WIP 2020-11-30 11:49:46 +08:00
Tienson Qin
a98239ea20 fix: get-selection-text not working on Firefox 2020-11-25 19:57:25 +08:00
Tienson Qin
0793f991dc feat: chrome native compatible fs api 2020-11-23 17:10:29 +08:00
Tienson Qin
a6a675045e feat: native filesystem api integration WIP 2020-11-22 01:17:47 +08:00
Tienson Qin
2d1fa33204 refactor: remove web 2020-10-27 23:19:40 +08:00