Commit Graph

56 Commits

Author SHA1 Message Date
Abdullah Atta
f4f33fc852 core: fix null is not an object error
This fixes #1231#1230 #1235 #1224
2022-10-26 08:51:37 +05:00
Abdullah Atta
0b971bda38 core: minor refactors 2022-10-17 22:46:43 +05:00
Abdullah Atta
0e6150a0f5 core: change db keys to include collection name
This should not affect the items or their server representation.
This change is necessary to allow multiple items with same id
that live in different collections.
For example, shortcuts have the same id as the inner reference they
point to. This was not possible before and would cause an overwrite
of the original value.
2022-10-13 19:18:52 +05:00
Abdullah Atta
1e99d7732c core: add new collection for shortcuts 2022-09-07 12:47:02 +05:00
Abdullah Atta
d81f5dba65 refactor: migrate to theme-ui from rebass 2022-08-31 07:26:27 +05:00
Abdullah Atta
c317774c8a docs: add license header 2022-08-30 16:17:04 +05:00
thecodrr
62b715645f fix: cachedcollection returns empty array on db reinit 2022-08-06 10:30:25 +05:00
thecodrr
751305e04c perf: optimize grouping/sorting & id creation 2022-06-16 16:01:08 +05:00
thecodrr
4135028137 feat: improve sync over websockets 2022-03-30 15:52:48 +05:00
thecodrr
32545d4320 feat: disable at rest encryption 2022-03-28 10:22:26 +05:00
thecodrr
bb675e9da2 initial 2022-02-08 13:16:41 +05:00
thecodrr
9ccb0fee12 fix: attach alias with tag for sorting/grouping 2021-11-18 11:01:12 +05:00
thecodrr
dfa612ab84 fix: init map instance when cachedcollection is made 2021-06-08 12:00:34 +05:00
thecodrr
ec5e5fca1b feat: add mapstub for overriding map implementation 2021-06-07 23:44:48 +05:00
thecodrr
8eb590f9d2 fix: sort everything by dateCreated descending 2021-02-27 11:55:13 +05:00
thecodrr
ee30d30506 fix: send databaseUpdated event on all writes 2021-02-20 18:25:34 +05:00
thecodrr
b5a0b9e649 feat: remove trash collection 2021-02-16 16:56:06 +05:00
thecodrr
4e262e615e refactor: change all event strings to constants 2021-01-23 10:48:21 +05:00
thecodrr
d3d299aa6d fix: tag not being removed from memory 2021-01-13 13:02:35 +05:00
thecodrr
9626319fe6 fix: do not return items without an id in getItems 2021-01-10 11:12:54 +05:00
thecodrr
24d7b21a1d fix: do not cause a rollover sync on remote item write 2020-12-07 19:00:16 +05:00
thecodrr
1eee45643e feat: defer notes loading 2020-11-24 01:39:32 +05:00
thecodrr
caaa808174 Revert "feat: add hypersearch for searching"
This reverts commit 5362e54428.
2020-11-16 15:01:16 +05:00
thecodrr
c81c0feda8 Revert "feat: impl fully indexed & searchable data stores"
This reverts commit 56297da18b.
2020-11-16 15:00:52 +05:00
thecodrr
20a3d1ab20 Revert "feat: improve indexing performance"
This reverts commit 0c7f058051.
2020-11-16 14:59:15 +05:00
thecodrr
0c7f058051 feat: improve indexing performance 2020-11-16 12:57:39 +05:00
thecodrr
56297da18b feat: impl fully indexed & searchable data stores 2020-11-06 22:44:16 +05:00
thecodrr
5362e54428 feat: add hypersearch for searching 2020-11-05 15:50:10 +05:00
thecodrr
54dfea77fe refactor: derive CachedCollection from IndexedCollection 2020-11-04 10:42:19 +05:00
thecodrr
0d8b755970 feat: remove unnecessary db transaction logic 2020-11-04 10:28:52 +05:00
thecodrr
6fdb81fd84 feat: add 1 min rollover auto syncing 2020-11-02 09:50:27 +05:00
thecodrr
2aa0fa592c fix: properly clear data from memory on logout 2020-09-19 11:33:31 +05:00
thecodrr
1c253b2170 fix: do not get undefined items 2020-04-21 12:23:51 +05:00
thecodrr
14b72ee2f4 collections: check if collection has clear fn 2020-04-16 03:30:16 +05:00
thecodrr
55b6b0733b core: clear cache and database on logout 2020-04-16 03:27:22 +05:00
thecodrr
c5af1ab9ae sync: send dateEdited and dateCreated with deleted items 2020-03-24 12:00:54 +05:00
thecodrr
84c045445b fix: add id with deleted item 2020-03-23 15:32:06 +05:00
thecodrr
9439ba7739 fix: send raw collections 2020-03-23 15:06:12 +05:00
thecodrr
025a953cea feat: handle deletion for sync 2020-03-23 13:22:28 +05:00
thecodrr
4928de3fac fix: collection map not being updated 2020-03-21 12:33:39 +05:00
thecodrr
5d766448a6 fix: crash when there's no data in db 2020-03-09 11:11:09 +05:00
thecodrr
76ba8b7492 perf: do not sort indices 2020-03-09 10:45:39 +05:00
thecodrr
746613420e fix: sort indices before readMulti 2020-03-09 09:35:27 +05:00
thecodrr
fdfd920074 perf: do not do object.entries 2020-03-09 09:19:16 +05:00
thecodrr
2c3c1a6c31 fix: convert object to array using object.entries 2020-03-09 00:36:21 +05:00
thecodrr
a88552cea3 perf: add readMulti for reading multiple keys 2020-03-09 00:12:40 +05:00
thecodrr
b453f5f4cd fix: trash not being sorted 2020-03-01 11:42:30 +05:00
thecodrr
8335f08fda feat: sort all items by dateCreated 2020-03-01 11:37:59 +05:00
thecodrr
6bc4e2327b fix: items not deleting from collection 2020-02-20 13:00:38 +05:00
thecodrr
389e4612db fix: remove/clear is not async 2020-02-20 12:11:16 +05:00