Commit graph

187 commits

Author SHA1 Message Date
Manav Rathi
2051ccee46
List files alternate 2024-04-17 14:48:03 +05:30
Manav Rathi
ee89506923
Unlegacy isDir 2024-04-17 14:27:48 +05:30
Manav Rathi
4971099da9
Merge 2024-04-17 13:41:10 +05:30
Manav Rathi
27a2b087c7
Elaborate 2024-04-17 12:01:54 +05:30
Manav Rathi
f775890af7
Rename on the renderer side 2024-04-16 16:35:30 +05:30
Crowdin Bot
0f4624e829 New Crowdin translations by GitHub Action 2024-04-16 01:37:39 +00:00
Manav Rathi
67aacf8391
Replace everywhere 2024-04-15 19:40:50 +05:30
Manav Rathi
9eab93cfdf
Suppress webpack's critical dependency warnings for libheif
Supressing it for now since it obscures other important information in the console.

Upstream issue, which currently doesn't have a workaround:
https://github.com/catdad-experiments/libheif-js/issues/23

Full error message:

     ⚠ ../../node_modules/libheif-js/libheif-wasm/libheif-bundle.js
    Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

    Import trace for requested module:
    ../../node_modules/libheif-js/libheif-wasm/libheif-bundle.js
    ../../node_modules/libheif-js/wasm-bundle.js
    ../../node_modules/heic-decode/index.js
    ../../node_modules/heic-convert/index.js
    ./src/worker/convert.worker.ts
    ./src/utils/comlink/ComlinkConvertWorker.ts
    ./src/services/heic-convert/service.ts
    ...

Refs:
- https://stackoverflow.com/questions/38392697/webpack-umd-critical-dependency-cannot-be-statically-extracted
2024-04-15 13:47:46 +05:30
Manav Rathi
3ea4879cf0
Remove text qualifier
The type already enforces that. And it reads better and the call sites this way.
2024-04-15 12:20:41 +05:30
Manav Rathi
73ef03a5d9
Move read/write whole files into fs 2024-04-15 12:17:33 +05:30
Manav Rathi
18ac361688
Remove unused IPC method 2024-04-14 20:11:25 +05:30
Manav Rathi
eb64a00ed2
Remove unnecessary checks
It is simpler for us to parallel the rm command than our bespoke variant.
2024-04-14 18:22:46 +05:30
Manav Rathi
59b9e3e586
Move into fs 2024-04-14 18:12:19 +05:30
Manav Rathi
7438c3301e
Move mkdirIfNeeded into fs 2024-04-14 10:25:28 +05:30
Manav Rathi
72dd47fa7b
Audit rename 2024-04-14 09:27:52 +05:30
Manav Rathi
297ca09535
Refactor and extract 2024-04-13 21:20:20 +05:30
Manav Rathi
4fbfbf0aa0
Cleanup 2024-04-13 20:53:35 +05:30
Manav Rathi
c7757cb08e
Prune more stale overrides 2024-04-13 18:54:15 +05:30
Manav Rathi
95a0e80c5b
Recreate ML db 2024-04-13 12:46:48 +05:30
Manav Rathi
75e693186a
Inline 2024-04-13 10:14:35 +05:30
Manav Rathi
5082124aa5
Cleanup 2024-04-13 09:44:06 +05:30
Manav Rathi
b32c13fe31
thumb2 2024-04-13 08:48:39 +05:30
Manav Rathi
c52fd4383c
Nicer delete 2024-04-13 08:43:01 +05:30
Manav Rathi
a86cdb1f1e
Interface 2024-04-13 08:40:08 +05:30
Manav Rathi
e8b779745d
put2 2024-04-13 08:33:13 +05:30
Manav Rathi
f2aee30f7c
get 2024-04-13 08:18:11 +05:30
Manav Rathi
db96a0eb1b
get 2024-04-13 08:12:38 +05:30
Manav Rathi
6d1f8b4728
Blobs it is 2024-04-13 08:04:43 +05:30
Manav Rathi
acedbdbe7d
Note 2024-04-13 07:42:24 +05:30
Manav Rathi
6cd795e29c
Create alternate code path 2024-04-13 07:19:28 +05:30
Manav Rathi
3499e47c88
Tweak 2024-04-13 06:47:43 +05:30
Manav Rathi
5ff01c40d8
poc implementation 2024-04-12 21:29:05 +05:30
Manav Rathi
295c0aa82e
Splinter 2024-04-12 21:12:37 +05:30
Manav Rathi
871a0e83cf
Fix 2024-04-12 20:59:15 +05:30
Manav Rathi
a56cf55ffa
Remove indirection 2024-04-12 20:58:00 +05:30
Manav Rathi
b056cf7f56
Move to newer shared package 2024-04-12 20:55:07 +05:30
Manav Rathi
65c7cd2c05
[web] Various changes, moving towards fixing desktop caching (#1424)
The overall aim was to get the caching layer trimmed down to a point
where we can plug in OPFS into it for desktop. This PR doesn't have that
specific change, but it's just me gradually changing things, working
towards that.
2024-04-12 16:28:59 +05:30
Manav Rathi
b36175a779
user 2024-04-12 15:40:24 +05:30
Crowdin Bot
ac534cf163 New Crowdin translations by GitHub Action 2024-04-12 01:37:37 +00:00
Manav Rathi
320db9f8b7
Fix the putEmbeddings API calls for now 2024-04-11 16:22:38 +05:30
Manav Rathi
ff66a2f44c
The ML code runs in workers 2024-04-11 15:27:02 +05:30
Manav Rathi
a1d6ef43b4
Roundtrip 2024-04-11 14:37:44 +05:30
Manav Rathi
a88f551b6a
WIP IPC API 2024-04-11 13:58:52 +05:30
Manav Rathi
e0fe018f34
Log on unhandled errors and promise rejections
Test code:

    useEffect(() => {
        setTimeout(() => testFunctionSync(), 5000);
    }, []);

    useEffect(() => {
        testFunction();
    }, []);

    const testFunctionSync = () => {
        console.log("sleeping not");
        // sleep(2000);
        console.log("woke up not");
        throw new Error("Handle me");
    };

    const testFunction = async () => {
        console.log("sleeping");
        sleep(2000);
        console.log("woke up");
        throw new Error("Handle me");
    };

Refs:
- https://developer.mozilla.org/en-US/docs/Web/API/Window/unhandledrejection_event
- https://github.com/megahertz/electron-log/blob/master/src/renderer/lib/RendererErrorHandler.js
2024-04-10 13:05:00 +05:30
Manav Rathi
af79f4f0c9
Audit app update functions 2024-04-10 12:32:43 +05:30
Manav Rathi
3c7277a0b1
onMainWindowFocus 2024-04-10 11:16:21 +05:30
Manav Rathi
170aef9b30
Rename 2024-04-10 11:06:18 +05:30
Manav Rathi
8bcf77b7f7
IPC keys 2024-04-10 11:03:36 +05:30
Manav Rathi
18606b2358
IPC cleanup 2024-04-10 10:18:06 +05:30
Manav Rathi
a813de5617
Only ONNX, web 2024-04-09 20:53:08 +05:30