Commit Graph

163 Commits (c4604c9254aba344fc0be6348e77f27b85c250f8)

Author SHA1 Message Date
charlie 7c6c829d87 fix(plugin): strategy to validate plugin id duplicated 2022-11-11 17:33:15 +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
Tienson Qin f4262cf919
Enhance/api storages for graph assets (#6488)
* improve(api): assets storage for plugin

Co-authored-by: charlie <xyhp915@qq.com>
2022-10-04 12:30:19 +08:00
Peng Xiao 4d3decd218 fix: code cleanup 2022-09-28 11:00:57 +08:00
lord63 5dd7312342 Guide developer to use logseq.UI.showMsg 2022-09-19 15:00:16 +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
charlie 04e04e4005 improve(plugin): plugin perf tips for initial loader 2022-08-26 18:48:00 +08:00
charlie 85aeba99ab improve(api): types & typos 2022-08-22 21:54:17 +08:00
charlie 7e3610077b chore: build libs core with more debug info 2022-08-22 21:54:17 +08:00
charlie 09d43983f2 improve(api): event hook of after graph indexed 2022-08-22 21:54:17 +08:00
charlie 5815f37df1 improve(api): expose more values for user configures 2022-08-22 21:54:17 +08:00
charlie eb72f2e3c7 improve(plugin): api to create block uuid 2022-08-22 21:54:17 +08:00
charlie af49427ef1 improve(plugin): api of select single block 2022-08-08 15:49:11 +08:00
charlie 7bd32fb911 improve(plugin): update types 2022-08-08 15:49:11 +08:00
charlie 1665058386 improve(plugin): perf console table 2022-08-08 15:49:11 +08:00
charlie 3e7c20fd80 improve(plugin): support textarea for settings input item 2022-08-08 15:49:11 +08:00
dependabot[bot] 82671fd612 chore(deps): bump terser from 5.7.1 to 5.14.2 in /libs
Bumps [terser](https://github.com/terser/terser) from 5.7.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-26 22:34:02 +08:00
charlie cc04718576 fix(plugin): occasional memory leak when dynamic slot ui with provide ui 2022-07-14 11:09:10 +08:00
yoyurec 3b383a918b Add heading in plugin settings 2022-07-09 23:20:27 +08:00
Scott Block d15fb1c56a
(chore): Update getAllPages typescript (#5908)
* Update getAllPages typescript

* Optionally add updatedAt to PageEntity
2022-07-04 15:40:44 +08:00
charlie 35331334f3 chore: update libs version 2022-06-16 01:43:49 +08:00
charlie f3bedb200e improve(plugin): add theme changed hook 2022-06-16 01:43:49 +08:00
charlie e4b71a4ccf improve(plugin): support abortable controller of request api 2022-06-16 01:43:49 +08:00
charlie 7b2ce59787 improve(plugin): types of request api 2022-06-16 01:43:49 +08:00
charlie 98ea0148ff improve(plugin): WIP api of http request 2022-06-16 01:43:49 +08:00
charlie a134267c39 chore(libs): update dependencies 2022-06-16 01:43:49 +08:00
charlie 3b0e1c58a3 improve(plugin): WIP api of http request 2022-06-16 01:43:49 +08:00
charlie a9c02b87fd improve(plugin): update types 2022-06-16 01:43:49 +08:00
charlie 2aa50f6199 feat(plugin): WIP request api 2022-06-16 01:43:49 +08:00
Yue Yang 17b91e51c3
feat: custom theme switching (#4741)
* feat: custom theme switching

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: handle reset-custom-theme

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: unregisterTheme

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: format with ts-standard

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: reset extra formats

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: simplify array types

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* Update lsplugin.core.js

* fix: sync upstream

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: add `no mode` themes into panel

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: ci

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: remove first <hr />

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: lockfile

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: update

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: set-theme! => set-theme-mode!

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: selectTheme

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* perf: reduce unnecessary logic

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
2022-05-19 10:18:43 +08:00
charlie 7a7dbd5e68 enhance(shortcut): support intuitional keyboard chars for binding key 2022-05-06 23:39:51 +08:00
charlie de0d6e0e04 chore(plugin): bump libs minor version 2022-04-29 18:51:25 +08:00
charlie a33bb0cad1 fix(plugin): fix code style 2022-04-29 18:51:25 +08:00
Charlie 9885dc64e0 Update libs/src/LSPlugin.user.ts
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2022-04-29 18:51:25 +08:00
charlie 9032d67113 chore(plugin): bump libs minor version 2022-04-29 18:51:25 +08:00
charlie 2b826f17de improve(plugin): add api of query element rect data from host 2022-04-29 18:51:25 +08:00
charlie 8f9d21af0f improve(plugin): simplify identity string of injected ui 2022-04-29 18:51:25 +08:00
charlie 2c33c1111f chore: rebuild libs core 2022-04-29 18:51:25 +08:00
charlie 403128f7fa fix(plugin): hooks of register katex extensions 2022-04-29 18:51:25 +08:00
charlie a0e494f7c7 improve(plugin): add katex hooks 2022-04-29 18:51:25 +08:00
charlie 80bc3f0337 improve(plugin): support to get app info from api 2022-04-29 18:51:25 +08:00
charlie ad17bc97e1 improve(plugin): api types of `setBlockCollapsed` 2022-04-29 18:51:25 +08:00
charlie c36a026502 chore(plugin): build libs core & update README.md 2022-04-29 18:51:25 +08:00
charlie f4bb7bfa9b fix(plugin): return clear handle for hooks api 2022-04-29 18:51:25 +08:00
charlie 1963a9709c fix(plugin): make the latest user sdk compatible for old plugin core 2022-04-22 15:51:40 +08:00
charlie c363c47a21 fix(plugin): compatible hooks strategy for old libs sdk 2022-04-22 15:51:40 +08:00
Charlie 79bc33e1e3
Enhance/more ns plugin api (#4828)
* improve(plugin): WIP add settings schema

* improve(plugin): add identity for settings modal

* improve(plugin): WIP add settings input

* fix(ui): scrollbar overlay of modal panel content

* improve(plugin): WIP add more render types of setting item

* improve(plugin): WIP polish settings items

* improve(plugin): WIP settings list of plugins

* improve(plugin): more settings types & polish releated ui

* fix(plugin): sometimes disable plugin not work

* improve(plugin): polish ui of plugin settings

* fix(dev): warning of lint

* improve(plugin): add api of settings changed

* chore: build libs core

* fix(ui): width of settings panel wrap

* improve(plugin): separate layouts data from settings aio file

* imporve(plugin): container size of single plugin settings

* fix: add missing state

* improve(plugin): add Git ns

* improve(plugin): git related api

* improve(api): type of git result

* chore: build libs core

* fix(dev): kondo lint

* fix(plugin): use cdn sdk when js entry

* chore: build libs core

* fix(plugin): env condition

* improve(plugin): add UI ns

* fix(api): arguments of datascript query

* enhance(api): manageable message instance of UI tools

* enhance(api): WIP add experiments api

* enhance(api): WIP add resources state of plugin

* improve(plugin): add status of loading script resources

* improve(plugin): more opts for script loader

* improve(plugin): WIP add fenced code renderer hook

* improve(plugin): fenced code renderer hook

* fix(plugin): resource root path of plugin fs location

* imporve(plugin): support local files for loading scripts

* improve(plugin): types of expirements api

* fix: typo of class

* enhance(api): add namespace related apis

* enhance(api): add linked refrences related apis

* enhance(plugin): add sample links to related api comments

* improve(plugin): add db changed hook & optimize strategy of caller for hooks

* improve(plugin): compatible commands registration for old sdk

* improve(plugin): collect user sdk version for plugin local

* improve(plugin): add internal callable apis for user sdk

* chore(plugin): missing files & bump libs version

* improve(plugin): compatiable for old sdk about hook messaging optimization

* improve(plugin): db hook optimization for old sdk

* enhance(ux): auto focus searchbar when open plugins list

* improve(plugin): api of a hook from specific block changed event

* improve(plugin): api of db block change hook

* improve(plugin): add show bracket user config of api

* improve(plugin): api of db block change hook

* fix(api): toggle collapsed of block

* improve(api): try to init grpah with git before exec git commands

* improve(plugin): attributes of sandbox container

* improve(dev): support register command with keybinding

* improve(plugin): add api of register shortcut command

* fix(plugin): reubild slash commands when new command registration

* fix(dev): lint

* improve(dev): lint script of libs codebase

* chore(dev): remove useless codes

* improve(plugin):sanitize path string of plugin repo value

* fix(plugin): rebuild commands list when unregister a plugin

* fix(ui): overflow width of query result table

* chore: rebuild libs core

* improve(plugin): add assets related apis

* chore: rebuild libs core

* improve(plugin): support replace state of into block in page api

* improve(plugin): prepend/append child block in page

* improve(plugin): polished exceptions message of plugin update/install

* fix(plugin): update settings within gui

* improve(ux): debounce change event of input for plugin settings gui

* chore: rebuild libs core

* enhance(plugin): catch exception of hook plugin
2022-04-21 18:43:16 +08:00
Peng Xiao 019e67ac1f feat: expose start-of-week to plugins 2022-04-21 08:43:53 +08:00
dependabot[bot] 21a41b2d7f chore(deps): bump minimist from 1.2.5 to 1.2.6 in /libs
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-24 14:46:10 +08:00