Commit graph

219 commits

Author SHA1 Message Date
Manav Rathi a9ccec6398
The remaining 2 2024-04-18 21:26:05 +05:30
Manav Rathi 76053c4029
impl 2024-04-18 21:07:00 +05:30
Manav Rathi 14285b66ae
Seep deeper 2024-04-18 18:45:02 +05:30
Manav Rathi 4455bb9595
API on electron side 2024-04-18 18:31:38 +05:30
Manav Rathi 275b763648
Work towards it 2024-04-18 16:18:01 +05:30
Manav Rathi 8a728abffe
Envision the API 2024-04-18 15:31:22 +05:30
Manav Rathi c90cd258ec
Deduce 2024-04-18 15:05:39 +05:30
Manav Rathi 9e35469bdc
Emulate basename and dirname 2024-04-18 14:42:52 +05:30
Manav Rathi e9e17e6ea3
Handle dotfiles 2024-04-18 14:10:43 +05:30
Manav Rathi 9c336a38c0
path mainp 2024-04-18 13:47:46 +05:30
Manav Rathi 518d573add
Improve docs 2024-04-18 13:23:20 +05:30
Manav Rathi 532824b3d5
Spruce types 2024-04-18 12:53:47 +05:30
Manav Rathi 4d80dc3af9
Interface for pending uploads 2024-04-18 11:51:14 +05:30
Manav Rathi acec41f526
More renaming - wip 2024-04-17 20:56:00 +05:30
Manav Rathi ca5b98b8d2
Enum to type - wip 2024-04-17 20:32:21 +05:30
Manav Rathi a22423d039
WIP 2 2024-04-17 17:00:51 +05:30
Manav Rathi 52c35108ca
WIP 1 2024-04-17 15:51:51 +05:30
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 184ba91a2d
Refactor 2024-04-17 12:34:00 +05:30
Manav Rathi 27a2b087c7
Elaborate 2024-04-17 12:01:54 +05:30
Manav Rathi 2d5ab044ee
Docs 2024-04-17 11:55:07 +05:30
Manav Rathi 637d830f19
Replace encodelivephoto 2024-04-17 11:51:35 +05:30
Manav Rathi 4b9446a9b0
Create a package to share code between photos and cast 2024-04-17 09:47:28 +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 8cdb31783b
Enhance 2024-04-15 15:57:57 +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 28574e516d
[desktop] Fix export related IPC - Part 3/x (#1439) 2024-04-14 19:04:38 +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
daviddeepan 2a9060bd39 css-alignment-issue-page-gallery 2024-04-14 13:53:00 +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 ce642e12c1
Remove stale disables 2024-04-13 18:50:12 +05:30
Manav Rathi 64231c73f1
[web] Add ESLint to enforce HMR how vite likes it
Configuration changes taken from the vite starter (react-ts).

From the vite docs (https://github.com/vitejs/vite-plugin-react-swc?tab=readme-ov-file#consistent-components-exports)

> For React refresh to work correctly, your file should only export React components.
>
> If an incompatible change in exports is found, the module will be invalidated.
> To make it easier to export simple constants alongside your component the module
> is only invalidated when their value changes.

While we're not currently using vite for our main apps, it would be worthwhile
to write code in a way that a future migration to it is painless if needed.

About the what and the why, the Gatsby docs are illuminating:
https://www.gatsbyjs.com/docs/reference/local-development/fast-refresh/#how-it-works

Some other refs:
- https://github.com/ArnaudBarre/eslint-plugin-react-refresh
- https://github.com/vitejs/vite/discussions/4577#discussioncomment-1161007
- https://github.com/vitejs/vite-plugin-react/issues/34
2024-04-13 18:38:24 +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 4055f02a1d
Cleaner 2024-04-13 08:52:37 +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