Commit Graph

147 Commits (5cd3bec91153c94561a67eb8c3fafaeb30c6777e)

Author SHA1 Message Date
Konstantinos Kaloutas f9b8f69c16 handle amplify 2023-08-04 11:17:30 +08:00
Konstantinos Kaloutas abbd35a042 handle pdfjs 2023-08-04 11:17:30 +08:00
Konstantinos Kaloutas 677cada2ba Revert "Revert "Revert "handle magic-portal"""
This reverts commit b1f12048ac310ea80fba835f932d7e38f74056b9.
2023-08-04 11:17:30 +08:00
Konstantinos Kaloutas deb0a43e8b Revert "Revert "handle magic-portal""
This reverts commit 9011fa7f9e54ae8a3b587da6d61affa31e3cd727.
2023-08-04 11:17:30 +08:00
Konstantinos Kaloutas a19c5feb85 Revert "handle magic-portal"
This reverts commit 8146430b0fc88b600a8f93164e0b39d05353bbb6.
2023-08-04 11:17:30 +08:00
Konstantinos Kaloutas 46208a7753 Revert "Revert "handle lightning-fs""
This reverts commit 840cb90ed5f0fc2704b80f975d08179050cee8b0.
2023-08-04 11:17:30 +08:00
Konstantinos Kaloutas bffeddff4c Revert "handle lightning-fs"
This reverts commit 005f56deb42d6d40776282baf91fe79cd2c30d29.
2023-08-04 11:17:30 +08:00
Konstantinos Kaloutas eb6a045619 handle magic-portal 2023-08-04 11:17:30 +08:00
Konstantinos Kaloutas 20421e4cc4 handle lightning-fs 2023-08-04 11:17:30 +08:00
Konstantinos Kaloutas 1a9017f757 handle highlight.js 2023-08-04 11:17:30 +08:00
Konstantinos Kaloutas 56e6e934b8 handle marked js 2023-08-04 11:17:30 +08:00
Konstantinos Kaloutas 7d6aae0c08 handle mhchem 2023-07-21 10:07:06 -04:00
Konstantinos Kaloutas 86d3cad507 handle shepherd.js 2023-07-21 10:07:06 -04:00
Konstantinos Kaloutas 9fd3deb39e handle reveal.js 2023-07-21 10:07:06 -04:00
Konstantinos Kaloutas fed6dea816 convert interact.js 2023-07-10 00:54:54 +08:00
Konstantinos Kaloutas 6e100f0dd1 convert swiped events 2023-07-10 00:54:54 +08:00
Konstantinos Kaloutas 1f09012f01 convert photoswipe 2023-07-10 00:54:54 +08:00
Konstantinos Kaloutas e04d0c498d convert html2canvas and Inter 2023-07-10 00:54:54 +08:00
Allan Chain 6d0033e645 chore: include katex resources from npm 2023-06-23 10:05:45 -04:00
Allan Chain 9a8d5ea6a5
chore: update KaTeX from 0.13.18 to 0.16.7 (#9625) 2023-06-13 22:42:52 +08:00
charlie c6c58a025d refactor: react components of the tabler extension icons 2023-05-12 18:52:11 +08:00
charlie 2bc8691c23 enhance(ui): support tabler extensions icons to the react components 2023-05-12 18:52:11 +08:00
Charlie 60fbfdf2f7
Enhance: plugin-related improvements (#8787)
- fix: Select and Input elements rendered using provideUI via onMacroRendererSlotted don't function #8374
 - fix: logseq.Editor.getPageBlocksTree does not work when page uuid is passed in as param #4920
 - feat: add a plug-in flag for the plugin slash commands item
 - feat: add logseq.App.setCurrentGraphConfigs: (configs: {}) => Promise<void>
 - feat: add hook logseq.App.onTodayJournalCreated: IUserHook<{ title: string }
 - enhance: auto-check updates for the installed plugins from Marketplace
 - feat: expose template-related APIs to SDK
2023-04-12 21:27:40 +08:00
Konstantinos 95149e13f6
Feat: Export to image (#9037)
* feat: export to image

* chore: export selection on whiteboards

* fix: whiteboards zoom on export

* fix: loading position

* chore: support video thumb

* core: add export to  whiteboards context menu

* fix: context menu entry

* fix; copy image to clipboard

* fix: copy / export label

* fix: hide ui elements

* fix: remove random character

* fix: graph export

* chore: remove console log and jpg format

* style: run prettier

* fix: disable on multiple selected blocks

* fix: multiple blocks

* enhance: restrict bounds of selected shapes

* chore: export selection on whiteboards

* fix: whiteboards zoom on export

* chore: support video thumb

* core: add export to  whiteboards context menu

* fix: context menu entry

* fix; copy image to clipboard

* fix: copy / export label

* fix: hide ui elements

* fix: remove random character

* fix: graph export

* chore: remove console log and jpg format

* style: run prettier

* fix: disable on multiple selected blocks

* fix: multiple blocks

* enhance: restrict bounds of selected shapes

* Fix any html2canvas related functionality failing in publishing

* fix: portal header gradient on export

* chore: add comment about html2canvas-ignore attr

* fix: use export padding constant

* fix: export collapsed portals with size >  medium

* fix: reset export type

* enhance: export filename

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2023-04-12 17:39:22 +08:00
Charlie 95c5cba9db
Feat: The new login UI (#8865)
Built-in login UI instead of callback

---------

Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Konstantinos Kaloutas <konstantinos@logseq.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2023-03-27 19:56:18 +08:00
charlie 1df54a6b54 chore(plugin): build libs core 2023-03-06 12:05:39 +08:00
charlie ec6e99e447 fix(plugin): force disable the unloaded(error) plugin 2023-02-28 15:13:42 +08:00
Charlie 675811ccde
Enhance/plugins (#8202)
* improve(plugins): install hooks with user options

* improve(plugin): remove todos

* improve(plugin): hook for a specific plugin

* e2e tests

* improve(ui): global search bar for the results from the custom search service
2023-01-05 19:30:41 +08:00
charlie db284f1132 chore: build libs 2022-12-26 12:10:23 +08:00
Charlie 020317911f
Enhance/plugin APIs (#7555)
* feat: WIP native cli command support

* Add :shell/command-whitelist option

* Integrate cli to code block

* Add :code-block/command-whitelist option

* fix: size of icon

* improve(shell): cache user shell whitelist on application configures file

* improve(electron): promisify run cli command

* chore(libs): update version

* fix(plugin): incorrect payload of pdf highlights section hook

* improve(plugin): block renderer with specific block uuid

* improve(plugin): expose logger for user lib

* improve(plugin): block hooks type

* improve(plugin): block slot hook with specific block

* improve(plugin): auto generate key for provide UI options

* improve(plugin): style of injected ui container

* improve(plugin): types

* improve(plugin): async messaging api from host to plugin

* improve(plugin): add types

* improve(apis): get external plugin metadata

* improve(apis): invoke external plugin impls

* improve(apis): call external plugin impls for simple commands

* enhance(apis): datascript query api for predicate inputs

* enhance(apis): datascript query api for predicate inputs

* fix(apis): redundant args of datascript query api

* enhance(plugins): position of float ui container

* enhance(plugins): style of setting options

* enhance(plugins): layouts data for float ui

* chore(plugins): update CHANGELOG.md

* improve(apis): add types

* chore: fix some inclusive terms

* improve(apis): types

* chore(plugins): update CHANGELOG.md

* chore(plugins): build libs

* chore: update CHANGELOG.md

* chore: remove experiemental alda integration

* fix(lint): remove unused methods

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
2022-12-19 20:23:25 +08:00
Charlie dda1f9bd9f
Enhance / Plugin APIs (#6945)
Added
1. All configurations of current graph.
App.getCurrentGraphConfigs: () => Promise<any>
2. All favorite pages list of current graph.
App.getCurrentGraphFavorites: () => Promise<Array<string> | null>
3. All recent pages list of current graph.
App.getCurrentGraphRecent: () => Promise<Array<string> | null>
4. Clear right sidebar blocks.
App.clearRightSidebarBlocks: (opts?: { close: boolean }) => void
5. Support register CodeMirror enhancer. #Experiment feature
Experiments.registerExtensionsEnhancer<T = any>(type: 'katex' | 'codemirror', enhancer: (v: T) => Promise<any>)
6. Support hooks for app search service. #Alpha stage
App.registerSearchService<T extends IPluginSearchServiceHooks>(s: T): void
7. Support focus option for App.insertBlock. Credit to [[tennox]] #PR

Fixed
1. Adjust build script to be compatible for shadow-cljs bundler.
How to set up a clojurescript project with shadow-cljs?
https://github.com/rlhk/logseq-url-plus/blob/main/doc/dev-notes.md
2022-11-22 22:00:29 +08:00
charlie d04a0ac66b enhance(pdf): sync page number in highlights metafile 2022-11-22 21:43:47 +08:00
charlie 438f0b9e3d chore(plugins): build libs core 2022-11-11 17:33:15 +08:00
charlie 3068868347 fix(electron): open custom protocol links as default condition 2022-10-16 12:17:44 +08:00
Konstantinos Kaloutas d238c88afd chore: add allowed protocols for openExternal 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
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
charlie f8cc6378c3 improve(ui): update built-in icon mode 2022-09-21 14:49:20 +08:00
Konstantinos Kaloutas 73bbcc2ba0 fix: persist zoom level on navigation 2022-09-09 12:13:56 +08:00
charlie c7f17e905e chore: build libs core 2022-08-26 18:48:00 +08:00
Andelf fe99ca703f fix(windows): handle open dir
Fix #6438
2022-08-23 11:38:43 +08:00
charlie 7e3610077b chore: build libs core with more debug info 2022-08-22 21:54:17 +08:00
charlie 9fbea041ae chore: build libs core 2022-08-22 21:54:17 +08:00
charlie 040c8282be chore: build libs core 2022-08-08 15:49:11 +08:00
charlie 390a2469da chore(plugin): build libs core 2022-07-14 11:09:10 +08:00
Peng Xiao d8fe1b0b37 fix: export as html issue 2022-07-14 11:07:26 +08:00
Wojciech Nawrocki 2390846531
feat(pdf): fix formatting of copied text (#4564)
* chore(pdf): update pdfjs to 2.13.216

Also reapplied pdf_viewer fix from d3b4773.

* fix(pdf): formatting of copied text

* chore(pdf): update viewer CSS to 2.13.216

* chore(pdf): remove deprecated option

* chore(pdf): update pdfjs to 2.14.305

* doc(pdf): document some functions

* fix(pdf): highlight positioning
2022-07-12 18:30:50 +08:00
charlie f3bedb200e improve(plugin): add theme changed hook 2022-06-16 01:43:49 +08:00
Charlie 55ccdd5dba
Feature/onboarding Quick tour (#5247)
* enhance(ui): polish elements of left sidebar

* enhance(ui): active state of nav item from left sidebar

* enhance(ui): active state of nav item from left sidebar

* enhance(ui): WIP quick tour tips

* enhance(ui): WIP quick tour tips

* enhance(ui): WIP quick tour tips

* enhance(ux): add quick tour palette command

* enhance(ui): add step dots for quick tour tips

* enhance(ux): title hints for sidebar link items

* fix(ui): active state for journals from left sidebar

* enhance(ux): support quick tour command when initial app

* fix(ui): position of journal page quick tour tip box

* fix: cljs lint

* fix: remove unused method

* fix(e2e): e2e test for new left sidebar
2022-05-31 16:41:17 +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