Charlie
dd2ef163ba
Enhance/PDF viewer ( #7369 )
...
* fix(pdf): WIP potential memory leaks
* enhance(pdf): sync page number in highlights metafile
* enhance(pdf): support preview highlight area image in a lightbox
* fix: clojurescript unit tests
* fix(pdf): page number overflow when more digits
2022-11-17 20:31:08 +08:00
Darwis
66f7656fd8
add and expose current block into sci namespace (editor/block)
...
add logseq-api and logseq-graph-parser into sci classes to make it avaliable in sci eval-string
add bindings custom-js to window object that can be defined in custom.js file as `customJs` object (for custom javascript function to be called from sci)
2022-11-16 15:13:53 -05:00
Tienson Qin
db7bc72a3c
fix: don't clear selection in blocks
2022-11-14 14:32:21 +08:00
Junyi Du
c598fcf234
rm debug print
2022-11-10 20:47:22 +08:00
Junyi Du
77ff2515b8
fix: href asset is not loaded on Electron
2022-11-10 20:47:22 +08:00
David Vargas
1bfb7321ec
Always render the invalid block ref regardless of contents
2022-11-09 11:22:35 +08:00
charlie
3145cba42d
enhance(ui): polish indent/outdent swipe icons
2022-11-08 12:02:43 +08:00
Tienson Qin
dd0169b068
fix: notify users to switch to the new filename format
...
Notify users to switch to the new filename format if there're reserved
chars when syncing.
Also, this commit replace all `js/decodeURIComponent` with
`safe-decode-uri-component` to avoid UI crashes.
2022-11-07 09:22:27 +08:00
Tienson Qin
ef7e3d2fa4
fix: slide bugs
...
close #4799
2022-10-29 08:47:44 +08:00
Peng Xiao
65ecde222e
fix: several issues on clicking the whiteboard shape ref
2022-10-27 21:06:27 +08:00
Konstantinos Kaloutas
dbd53bd896
fix: block-uuid on page-reference
2022-10-19 21:25:56 +08:00
Tienson Qin
2d9e62caf4
chore: use .inline directly
2022-10-18 20:34:56 +08:00
yoyurec
eaa8bbc072
feat: Wrap page props value with span
2022-10-18 20:31:19 +08:00
Konstantinos Kaloutas
ed1dcb9e7e
fix: minimum auto heading level
2022-10-18 16:54:16 +08:00
Konstantinos Kaloutas
2487a3fe2f
chore: auto heading based on level
2022-10-18 16:54:16 +08:00
Gabriel Horner
0c570a0300
Fix more bugs, move plugins.edn and add enabled
...
- Move plugins.edn to config/ as it is user configuration
- Add plugin-config enabled flag and moved plugin enabled
- Fixed bugs with manual install
- Refactored plugin-config component to have its own listener
- Split out shared plugin fns to a common ns - plugin-config shouldn't
need to depend on a component like plugin-handler
- Bump rewrite-edn to include upstream fix and avoid tons of cljs
warnings with earlier versions
- Fix react warning introduced outside this PR in ui/icon
2022-10-17 10:13:27 -04:00
Konstantinos Kaloutas
b536e78ec0
chore: hide portal icons
2022-10-13 16:52:51 +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
df67c68005
fix(whiteboard): shape block-ref display issue
2022-10-10 22:09:43 +08:00
Konstantinos Kaloutas
d70c291d8e
refactor: hiccup to html
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
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
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
Tienson Qin
18297c224f
Merge branch 'master' into whiteboards
2022-09-30 17:38:18 +08:00
Tienson Qin
8e4fcb4f8c
step 2: :file-sync/sync-state
2022-09-30 17:33:32 +08:00
Peng Xiao
bb2df1b3b7
Merge remote-tracking branch 'upstream/master' into whiteboards
2022-09-30 08:51:05 +08:00
Tienson Qin
6894b997de
fix: backward compatiblity with heading-level
2022-09-30 00:34:17 +08:00
Peng Xiao
2ffbaa3fa1
fix: clicking block bullets in portal
2022-09-28 22:46:30 +08:00
Peng Xiao
52b81c809c
feat: create new portal shape when left-clicking block/page refs inside of portal shape
2022-09-28 22:37:37 +08:00
Peng Xiao
ce4b2a4ad1
fix: use :block/type instead of :block/whiteboard?
2022-09-28 18:27:03 +08:00
Peng Xiao
4520399ddf
Merge remote-tracking branch 'upstream/master' into whiteboards
2022-09-28 10:29:20 +08:00
Tienson Qin
8b144269f7
refactor: unify heading UX for both markdown and org mode
2022-09-27 16:12:23 +08:00
Peng Xiao
fd94862312
Merge remote-tracking branch 'upstream/master' into whiteboards
2022-09-24 09:42:00 +08:00
Gabriel Horner
2ce6dfad41
Use catch :default for default error handling in cljs
...
This is considered normal practice for cljs. See
https://clojure.atlassian.net/browse/CLJS-661 for when it was introduced
and background on it
2022-09-23 02:00:55 +08:00
Tienson Qin
1fbb364512
Add :block/properties-text-values
2022-09-21 15:06:48 +08:00
Tienson Qin
da72d4d620
Some cleanup suggested by Gabe
2022-09-21 12:59:14 +08:00
Peng Xiao
564e2fe1b4
fix: lint issues
2022-09-17 22:53:08 +08:00
Tienson Qin
71514ab36c
fix: extracting page's title property from mldoc ast
2022-09-14 20:29:44 +08:00
Peng Xiao
4d86f4f53f
Merge remote-tracking branch 'upstream/master' into whiteboards
2022-09-10 00:45:27 +08:00
Tienson Qin
b516c1db5f
Add :property/separated-by-commas option
2022-09-09 12:40:14 +08:00
Tienson Qin
336fa578d5
refactor: replace directives(front matter or org) with properties
2022-09-09 12:37:55 +08:00
Gabriel Horner
51c318e2da
Enable two disabled linters and bump kondo dep
...
All the fixes were on used-underscored-binding
2022-09-09 12:14:32 +08:00
Konstantinos Kaloutas
7c6ab463e3
fix: alignment of bullet on headings
2022-09-09 12:13:56 +08:00
Konstantinos Kaloutas
58b8f0ce21
fix: link color on highlighted areas
2022-09-09 12:13:56 +08:00
Gabriel Horner
7ade955df7
Additional polish and fixes
...
- fix two bugs with subs - didn't have global config and missing merge
- explicit re-watch for global config
- more docs
2022-09-08 12:34:27 +08:00
Peng Xiao
050cea4b35
Merge remote-tracking branch 'upstream/master' into whiteboards
2022-09-06 10:08:24 +08:00