44 Commits

Author SHA1 Message Date
Abdullah Atta
ccae629833 web: update sqlite3-fts5-html to 0.0.4 2025-06-27 09:43:36 +05:00
Abdullah Atta
e6a5b85011 web: register fts5 extensions after db decryption 2025-06-21 13:00:46 +05:00
Abdullah Atta
409c5a2517 web: update sqlite to v3.49.2 2025-06-21 13:00:46 +05:00
Abdullah Atta
565a2396f1 web: enable regexp in sqlite 2025-06-16 14:09:26 +05:00
Abdullah Atta
c0d64ff674 web: update sqlite3-fts5-html to v0.0.3 2025-06-16 14:08:55 +05:00
Abdullah Atta
ea14db77de web: update wa-sqlite to use sqlite3-fts5-html for stripping html 2025-06-16 14:08:24 +05:00
Abdullah Atta
1cc0cf19c8 core: update sqlite-better-trigram to v0.0.3 2025-06-16 14:08:24 +05:00
Abdullah Atta
c23f31f284 web: use service worker for cross-tab communication only as a fallback
This commit basically reverts 1b63b2dccf.
Using service worker for this by default is a bad idea because:

1. It takes some time for the service worker to be installed and ready
which slows down first launch significantly
2. Service worker is not as reliable when updating from version to
version

We can, however, use it as a fallback i.e for devices that don't yet
support shared worker.
2025-04-10 10:29:26 +05:00
Abdullah Atta
117fc44f00 web: replace shared worker with service worker for sqlite 2025-04-10 10:28:58 +05:00
luzpaz
5ffae2a08b global: fix various typos (#7463)
Found via `codespell -q 3 -D ../dictionary.txt -S "*.patch,*.po" -L actualy,childs,modifer,ontext,ontop,ony,recieved,reciever,se,seperator,te`

Signed-off-by: Luz Paz <luzpaz@pm.me>
2025-02-05 09:28:06 +05:00
Abdullah Atta
522ea1520d web: fix tests failing on macos 2025-01-20 11:28:26 +05:00
Abdullah Atta
b7f1f36090 web: fix async sqlite
async sqlite mode uses indexeddb and has some limitations like:
- running 1 query at a time
This commit uses a mutex to run all queries sequentially
2024-11-25 12:31:11 +05:00
Abdullah Atta
c9ea9b1d4e web: fix app note starting due to outdated sqlite wasm libs 2024-11-16 14:16:01 +05:00
Abdullah Atta
e02970b936 web: install better trigram sqlite extension 2024-11-16 14:16:01 +05:00
Abdullah Atta
5a16403a13 web: fix Could not find a provider port to communicate with. error 2024-11-16 07:42:37 +05:00
Abdullah Atta
4e0e8dbb66 web: even faster startup 2024-11-15 16:02:55 +05:00
Abdullah Atta
89aba00aac web: fix imports 2024-09-23 15:32:13 +05:00
Abdullah Atta
020244231f desktop: update electron to v30 (#6498) 2024-09-13 08:39:18 +05:00
Abdullah Atta
8d8acfb99d web: fix crash on browsers that doesn't have asyncIterator 2024-07-11 11:55:17 +05:00
Abdullah Atta
727ac6d907 web: allow multi tab access when using idb vfs 2024-07-10 09:04:23 +05:00
Abdullah Atta
8302f8ba4c web: update wa-sqlite 2024-07-10 09:04:23 +05:00
Abdullah Atta
6e6b793568 web: fix web app on mobile browsers 2024-07-01 09:51:29 +05:00
Abdullah Atta
9693c8ea54 desktop: run sqlite on another thread 2024-05-21 09:59:20 +05:00
Abdullah Atta
bd6a1b9bff web: add support for opening multiple sqlite databases 2024-05-20 15:05:18 +05:00
Abdullah Atta
62d677f9ad web: fix web app not working on safari 2024-05-16 09:30:49 +05:00
Abdullah Atta
cb27039245 web: close shared service on window close 2024-05-09 10:30:46 +05:00
Abdullah Atta
0b3060e4c0 web: improve error reporting if a query fails 2024-04-22 09:14:10 +05:00
Abdullah Atta
8788a14229 web: send error as is instead of copying it in shared service 2024-04-09 12:19:23 +05:00
Abdullah Atta
b44d2e5c9b web: fix tests 2024-04-02 11:51:33 +05:00
Abdullah Atta
f99d4bc013 web: fix pressing Fix it resulted in database error 2024-04-01 12:50:11 +05:00
Abdullah Atta
ebe3f2b771 web: make shared sqlite more robust 2024-03-29 15:49:25 +05:00
Abdullah Atta
1a38da30f4 web: reduce provider port retry delay to 50ms 2024-03-28 10:00:27 +05:00
Abdullah Atta
751af3c2d1 web: add support for multiple browser tabs & windows 2024-03-28 09:50:37 +05:00
Abdullah Atta
8f56953915 web: improve database deletion 2024-03-21 11:18:09 +05:00
Abdullah Atta
779f000f3e web: make sqlite slightly faster 2024-03-21 11:18:08 +05:00
Abdullah Atta
f4b14e37ae desktop: use better-sqlite3 on desktop for SQLite 2024-03-21 11:17:31 +05:00
Abdullah Atta
26a63591bd web: add support for at rest encryption and app lock 2024-03-21 11:16:48 +05:00
Abdullah Atta
7b3f671159 web: fix many type errors 2024-03-21 11:14:53 +05:00
Abdullah Atta
f5b85a82d0 web: update wa-sqlite 2024-03-21 11:13:46 +05:00
Abdullah Atta
1228f1b6fa web: add support for exporting sql database 2024-03-21 11:13:46 +05:00
Abdullah Atta
088ef2285f web: close idb connection on sqlite connection close 2024-03-21 11:13:15 +05:00
Abdullah Atta
74b5c4d894 web: execute only 1 query at a time 2024-03-21 11:13:14 +05:00
Abdullah Atta
d4aa4fdb90 web: reset prepared sql stmt on error 2024-03-21 11:09:03 +05:00
Abdullah Atta
404f2072a1 web: start initial migration to sqlite 2024-03-21 11:05:23 +05:00