Commit Graph

154 Commits

Author SHA1 Message Date
thecodrr
16f2e651b4 fix: returned items are empty when groupby is se to none 2022-07-20 17:45:52 +05:00
thecodrr
ceea6e1668 fix: include conflicted & pinned groups when groupBy == none 2022-07-19 11:22:03 +05:00
thecodrr
530a1cc625 feat: add log messages all over the place 2022-07-19 11:16:46 +05:00
thecodrr
0a05ec3cbd fix: use DOMParser from globalThis 2022-07-15 09:42:30 +05:00
thecodrr
d7d21bc54b fix: handle "failed to fetch" errors better 2022-07-08 12:07:26 +05:00
thecodrr
383bdb1c8f fix: input.includes is not a function 2022-07-07 18:39:57 +05:00
Ammar Ahmed
6d4b9ca379 use localCompare for sorting 2022-06-17 16:52:00 +05:00
thecodrr
751305e04c perf: optimize grouping/sorting & id creation 2022-06-16 16:01:08 +05:00
thecodrr
e072d74483 fix: use linkedom/worker 2022-06-08 10:56:53 +05:00
thecodrr
ad10b6c98d feat: use linkedom 2022-04-19 00:28:42 +05:00
thecodrr
c9c57d87ab feat: migrate to happy-dom from node-html-parser 2022-04-19 00:04:57 +05:00
thecodrr
332e08c372 fix: clone array before adding header 2022-04-15 22:32:16 +05:00
thecodrr
7b57b0b916 fix: parse & throw json errors from signalr errors 2022-04-13 16:46:19 +05:00
thecodrr
1703420ca9 feat: allow grouping by none 2022-03-31 14:32:24 +05:00
thecodrr
4135028137 feat: improve sync over websockets 2022-03-30 15:52:48 +05:00
thecodrr
936fe4943e fix: fallback to error for errorMessage 2022-03-24 23:17:04 +05:00
thecodrr
799116efe4 fix: cleanup mfa endpoints 2022-03-21 10:23:35 +05:00
thecodrr
c3576520ec fix: invalid_grant errors are overriden 2022-03-17 22:56:10 +05:00
Abdullah Atta
c350da9fda feat: add mfa support (#23) 2022-03-11 22:49:24 +05:00
thecodrr
0a75048f68 fix: decode   html5 escape codes 2022-01-20 00:18:35 +05:00
thecodrr
2e50130c16 feat: better errors when server fails 2022-01-18 12:00:57 +05:00
thecodrr
a130db41a4 fix: try to refresh token before logging out on 401 unauthorized 2022-01-07 13:58:06 +05:00
thecodrr
4bdf5a3152 revert: do not logout on 401 unauthorized 2022-01-05 18:19:02 +05:00
thecodrr
2021fe56d5 fix: force logout user on 401 unauthorized error 2022-01-03 13:26:57 +05:00
thecodrr
c089ccbe19 feat: refresh token on 401 unauthorized error 2021-12-31 09:04:13 +05:00
thecodrr
4a6e3cf774 fix: disable fetch timeout 2021-12-30 12:12:43 +05:00
thecodrr
addde688f7 feat: timeout all requests after 20 seconds 2021-12-25 12:27:23 +05:00
thecodrr
4204d8784d test: rewrite notehistory tests for improved correctness 2021-12-22 12:07:07 +05:00
thecodrr
5337dd482c refactor: extendable formatDate function 2021-12-22 10:07:23 +05:00
thecodrr
5bbff5b88d fix: decompressSync not defined 2021-12-22 09:54:34 +05:00
thecodrr
42d6cfab95 fix: change date style to (MMM DD, YYYY, HH:mm AM/PM) 2021-12-21 14:32:14 +05:00
thecodrr
eef5e96257 fix: do not use default import for fflate 2021-12-21 14:31:11 +05:00
Abdullah Atta
630bb33b10 feat: add note version history (#20)
* feat: note version history

* fix bugs

* add tests for session history

* update tests

* add tests for restoring content

* add more tests

* update jsdoc

* return empty array if no session history present for a note

* init note history with await

* add note history versions limit

* cleanup note history after adding a new session

* fix tests

* add test for session cleanup

* test: add collector tests

* feat: dateEdited -> dateModified

* feat: migrate to liqe for searching

* chore: forceExit jest after test run

* feat: note version history

* fix bugs

* add tests for session history

* update tests

* add tests for restoring content

* add more tests

* update jsdoc

* return empty array if no session history present for a note

* init note history with await

* add note history versions limit

* cleanup note history after adding a new session

* fix tests

* add test for session cleanup

* init ContentHistory with await

* fix reference to db in init

* make sessionId in db

* check if note is locked through note metadata

* make cleanup method private

* use remove methods in notehistory and contenthistory

* restore note content via notes.add method if note is not locked

* move getting all items to seperate functions

* check if parsed json is valid

* deserialize a session only if it's sessionContent exists

* add locked property to sessionContent

* remove makeSessionId function

* update tests

* remove yarn.lock file

* update tests

Co-authored-by: ammarahm-ed <ammarahmed6506@gmail.com>
2021-12-21 13:41:08 +05:00
thecodrr
3309b3d643 feat: simplify note title & headline extraction 2021-12-16 10:10:00 +05:00
thecodrr
7d4edab92b fix: HTMLParser.createElement is not a function 2021-12-09 00:36:16 +05:00
thecodrr
fda5e0c84b fix: do not automatically delete empty notes 2021-12-08 19:32:58 +05:00
thecodrr
f488143f83 fix: do not set custom error for invalid_grant 2021-12-06 12:47:45 +05:00
thecodrr
6d36c86f0d fix: show proper error for invalid_grant 2021-12-04 10:20:08 +05:00
ammarahm-ed
4d6d36c9b8 fix items sequence in 'abc' grouping 2021-12-01 11:16:12 +05:00
thecodrr
92a8239899 feat: migrate to node-html-parser 2021-11-25 09:46:45 +05:00
thecodrr
5d198e9ea3 feat: add issue reporting api endpoint 2021-11-24 11:40:33 +05:00
thecodrr
e0bdfeab58 fix: show proper error for invalid_grant 2021-11-20 20:45:55 +05:00
thecodrr
9ccb0fee12 fix: attach alias with tag for sorting/grouping 2021-11-18 11:01:12 +05:00
thecodrr
55a538f279 fix: crash when title is empty & groupBy = abc 2021-11-03 13:33:47 +05:00
thecodrr
148b88f10d fix: make sure all setmanipulator tests pass 2021-10-30 13:48:36 +05:00
thecodrr
a2bab0940d fix: tag/color aliases not syncing 2021-10-29 14:05:11 +05:00
thecodrr
7346dd516a fix: cannot read property length of undefined 2021-10-26 09:35:56 +05:00
thecodrr
9e9386f970 fix: do not request access token eagerly 2021-10-26 09:13:18 +05:00
thecodrr
b6a5591966 Merge branch 'master' into attachments 2021-10-04 11:56:52 +05:00
thecodrr
6b619e5d3d feat: add upload/download cancellation support 2021-09-29 09:53:50 +05:00