alihamuh
2b15d5d85f
web: refactored code in core and web components
...
Signed-off-by: Muhammad Ali <alihamuh@gmail.com >
2023-01-07 14:25:59 +05:00
alihamuh
c58c138996
web: added code to move topic betwen notebooks (code added in core)
...
Signed-off-by: Muhammad Ali <alihamuh@gmail.com >
2022-12-08 19:49:01 +05:00
ammarahm-ed
64bf627462
mobile: use editor state to check whether
...
content update is needed on item sync
2022-12-05 17:55:53 +05:00
Abdullah Atta
003178ba20
web: fix all tests
2022-12-05 16:52:44 +05:00
Abdullah Atta
6269a8415b
Merge branch 'web-extension'
2022-12-05 15:23:03 +05:00
ammarahm-ed
9af102451d
editor: add webclipSettings to tool definitons
2022-12-05 15:20:54 +05:00
Abdullah Atta
1a40c8ec77
clipper(core): change cors host to cors.notesnook.com
2022-12-05 15:20:54 +05:00
Abdullah Atta
c5faf62398
web: lazily load web clips just like images
2022-12-05 15:20:54 +05:00
ammarahm-ed
58a17f620b
mobile: add readAttachment function
2022-12-05 15:20:54 +05:00
Abdullah Atta
47dcbba522
clipper(web): make ready for publishing
2022-12-05 15:20:54 +05:00
Abdullah Atta
e17bd79004
editor: decrease embed extension priority
2022-12-05 15:20:54 +05:00
Abdullah Atta
2fdbc9cb1d
web: connect with web clipper & save web clips
2022-12-05 15:20:54 +05:00
Abdullah Atta
ad91da9f2d
clipper: minor refactors and cleanup
2022-12-05 15:17:38 +05:00
Abdullah Atta
3037cf8cfb
web: read & load web clip from attachments
2022-12-05 15:17:38 +05:00
Abdullah Atta
aa0bf3b3dc
editor: add extension for embedding web clips
2022-12-05 15:17:38 +05:00
Abdullah Atta
96a3d8edac
clipper: implement web clipper core library
2022-12-05 15:16:51 +05:00
Abdullah Atta
611c229ece
editor: use noto serif as a serif font
2022-12-05 15:13:35 +05:00
Muhammad Ali
fcfe9ff23b
editor: add button to delete a task item in a task list ( #1423 )
...
Signed-off-by: Muhammad Ali <alihamuh@gmail.com >
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co >
2022-12-05 12:22:58 +05:00
Ammar Ahmed
5445ee0335
core: handle crash when sorting if item doesn't have a title ( #1447 )
2022-12-05 10:54:55 +05:00
Muhammad Ali
d2f65c435d
editor: do not add line break at the start of copied text ( #1443 )
...
Signed-off-by: Muhammad Ali <alihamuh@gmail.com >
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co >
2022-12-05 10:52:54 +05:00
Muhammad Ali
bbe21eb7db
editor: fix clear completed tasks button hidden by progress bar ( #1444 )
...
Signed-off-by: Muhammad Ali <alihamuh@gmail.com >
2022-12-05 10:42:13 +05:00
Muhammad Ali
d39426a57a
editor: fix persistent editor dropdown toolbar when changing notes ( #1413 )
...
Signed-off-by: Muhammad Ali <alihamuh@gmail.com >
2022-12-05 10:40:13 +05:00
Abdullah Atta
f1a2afd9d6
core: do not sync vault key alone
...
this caused a sync loop because vault key is always synced regardless of
whether it has changed or not.
2022-12-02 11:24:56 +05:00
Abdullah Atta
8bc58b7869
editor: enable embed specific tools on mobile
2022-11-28 15:25:28 +05:00
Abdullah Atta
1f61742786
core: fix cannot read properties of undefined (reading '_note')
2022-11-24 16:12:57 +05:00
Abdullah Atta
222fc00bd7
core: update export templates
2022-11-23 16:22:04 +05:00
Abdullah Atta
5e6caa7273
core: use upstream htmlparser2 instead of in-house
...
This is mostly because I am not 100% certain about how stable our own
optimized version is. While it does perform a lot better, there is
significant risk that things might break in production. To avoid
that, I am replacing it with the upstream version which is much more
heavily tested.
2022-11-23 14:58:34 +05:00
Abdullah Atta
b1f5ffc2ec
core: add dateModified comparator
2022-11-23 12:33:35 +05:00
Abdullah Atta
8af8b69cbf
web: add streaming support for importing huge zips
2022-11-23 12:19:32 +05:00
Abdullah Atta
0c0dff3b28
core: fix "Cannot send data if connection is not in "Connected" state"
2022-11-23 12:19:12 +05:00
Abdullah Atta
3ab6c4646c
core: use mutex to establish only 1 connection at a time
2022-11-23 12:19:12 +05:00
Muhammad Ali
f5a7beef17
editor: add button to clear completed tasks ( #1336 )
...
Signed-off-by: Muhammad Ali <alihamuh@gmail.com >
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co >
2022-11-23 10:24:45 +05:00
Muhammad Ali
82b584b3d1
core: include tags in exported note ( #1345 )
...
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co >
2022-11-23 09:19:07 +05:00
Muhammad Ali
a70961b662
core: respect numbers when sorting items ( #1337 )
...
Signed-off-by: Muhammad Ali <alihamuh@gmail.com >
2022-11-17 19:38:05 +05:00
Abdullah Atta
d14be59204
Merge pull request #1314 from streetwriters/new-html-parser
...
Improve HTML parsing performance
2022-11-16 11:21:59 +05:00
Abdullah Atta
c3965a3b0e
Merge pull request #1312 from streetwriters/custom-colors-in-pallete
...
Add support for saving custom colors in editor color picker
2022-11-12 16:39:00 +05:00
Abdullah Atta
808270d2ef
editor: saving a color now updates the color list
2022-11-12 16:38:19 +05:00
alihamuh
a8a8080835
editor: implement saving custom colors in color picker
...
Signed-off-by: Muhammad Ali <alihamuh@gmail.com >
2022-11-12 16:38:02 +05:00
Abdullah Atta
d372c2daf9
core: fix do not eagerly parse HTML
2022-11-11 18:42:23 +05:00
Abdullah Atta
8f5ebe315e
core: use client given compression module
2022-11-11 17:01:01 +05:00
Abdullah Atta
1823a4f4ba
core: fix convert is not defined error
2022-11-11 16:57:05 +05:00
Abdullah Atta
fa6e88a0b0
Merge branch 'master' into new-html-parser
2022-11-10 17:02:32 +05:00
Abdullah Atta
eacbbe2ad8
core: use html-to-text library for better text conversion
2022-11-10 17:00:11 +05:00
alihamuh
4c6c42c794
web: impl preview for trashed notes
...
Signed-off-by: Muhammad Ali <alihamuh@gmail.com >
web: done suggested changes
Signed-off-by: Muhammad Ali <alihamuh@gmail.com >
Update apps/web/src/stores/editor-store.js
Signed-off-by: Abdullah Atta <thecodrr@protonmail.com >
Update apps/web/src/stores/editor-store.js
Signed-off-by: Abdullah Atta <thecodrr@protonmail.com >
2022-11-10 15:44:50 +05:00
Abdullah Atta
205373dca3
core: use htmlparser2 for html rewriting
...
This replaces DOMParser with htmlparser2 which is much, much faster.
How much faster? 80%. This new implementation can parse at 50mb/s
which is insane! The old one could only do 5-10mb/s
We still haven't gotten rid of the DOMParser though since HTML-to-MD
conversion still needs it. This will be done soon though by using `dr-sax`.
This uses a custom implementation of htmlparser2 instead of the default
one which is 50% faster.
2022-11-10 15:16:13 +05:00
Abdullah Atta
349cd27650
core: refactor collector to do everything in 1 step
...
This will speed up the sync slightly since we aren't iterating over all
items twice. It also simplifies the code a bit.
2022-11-10 14:38:32 +05:00
Muhammad Ali
f62c045350
core: fix v5.8 backups not restoring due to changed item ids ( #1303 )
...
* core: back restore repaired due to version change
Signed-off-by: Muhammad Ali <alihamuh@gmail.com >
2022-11-09 12:26:33 +05:00
Muhammad Ali
a973a5cdf0
editor: fix incorrect paragraph formatting in copied text ( #1299 )
...
Signed-off-by: Muhammad Ali <alihamuh@gmail.com >
2022-11-08 16:57:48 +05:00
Abdullah Atta
545c78361b
editor: set proper checks when scrolling result into view
2022-11-07 13:05:06 +05:00
Muhammad Ali
d7a80c631b
editor: jump to search result using arrow keys not working ( #1289 )
...
* editor: search occurence scroll into view corrected
Signed-off-by: Muhammad Ali <alihamuh@gmail.com >
* Update packages/editor/src/extensions/search-replace/search-replace.ts
Signed-off-by: Abdullah Atta <thecodrr@protonmail.com >
Signed-off-by: Abdullah Atta <thecodrr@protonmail.com >
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co >
2022-11-05 15:50:42 +05:00