Commit graph

25 commits

Author SHA1 Message Date
Manav Rathi 36aa33ed5a
Move to separate file 2024-05-24 13:08:41 +05:30
Manav Rathi 7780c1c7b7
Move to the correct place 2024-05-23 19:29:56 +05:30
Manav Rathi 074d315c9f
We need both 2024-05-21 11:46:48 +05:30
Manav Rathi c127b7fc7e
doc 2024-05-16 11:23:48 +05:30
Manav Rathi 1856e344db
Remove unused clustering method 2024-05-16 11:03:03 +05:30
Manav Rathi bb6a8913f1
Add links 2024-05-15 15:25:58 +05:30
Manav Rathi 45183422e2
[web] Lint concurrently 2024-05-15 13:59:10 +05:30
Manav Rathi 7d56230b91
Move down 2024-05-09 20:44:52 +05:30
Manav Rathi ac67566f45
Update react-dropzone
Release notes don't seem to have any breaking changes:
https://github.com/react-dropzone/react-dropzone/releases

Need to update to figure out where exactly the path property is coming from.
2024-05-09 10:03:03 +05:30
Manav Rathi 1447d4976f
lint-fix and beautifuller 2024-04-24 18:48:44 +05:30
Manav Rathi af79db90d0
Doesn't work for us yet
Current version throws
    Module build failed: UnhandledSchemeError: Reading from "node:buffer" is not handled by plugins (Unhandled scheme).
    Webpack supports "data:" and "file:" URIs by default.
    You may need an additional plugin to handle "node:" URIs.

See: https://github.com/sindresorhus/file-type/issues/502

There are ways around by using polyfills, e.g.
- https://stackoverflow.com/questions/76500464/issues-while-using-gradio-client-in-next-js/76522223#76522223
- https://github.com/vercel/next.js/discussions/33982

but since no functional changes in the detection that impact us have been made,
stay back at the old version for now.
2024-04-24 18:44:09 +05:30
Manav Rathi 38e18f29bd
Update file-type dependency and move it to its correct package.json
Refs:
- https://github.com/sindresorhus/file-type/releases/tag/v17.0.0

Went through the release notes since v16 to check that none of the MIME types we
care about have changed.
2024-04-24 18:27:30 +05:30
Manav Rathi df483b0755
lint 2024-04-17 12:37:18 +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 56d04066ea
sfn 2024-04-13 20:38:29 +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 6a3f4baed3
Enhance 2024-04-13 07:30:32 +05:30
Manav Rathi ad6dea2ecb
prettier markdown 2024-04-03 13:39:44 +05:30
Manav Rathi 26b35cec9e
Merge @/ui into @/next 2024-04-02 19:58:42 +05:30
Manav Rathi eced463f6f
Investigate and explain why component selectors don't work with Next vanilla
Refs:
- https://github.com/mui/material-ui/issues/27380#issuecomment-928973157
- https://codesandbox.io/s/hopeful-browser-4q17t5?file=/README.md
- https://mui.com/system/styled/#how-to-use-components-selector-api
- https://github.com/vercel/next.js/issues/46973
2024-04-01 16:43:10 +05:30
Manav Rathi 9b27cac465
Remove @emotion/server
It is not mentioned as a dependency in the SSR page

> For v10 and above, SSR just works in Next.js.
>
> https://emotion.sh/docs/ssr

Tested by - yarn dev, yarn preview:photos
2024-04-01 16:05:17 +05:30
Manav Rathi 24176d8c40
Document a few more dependencies 2024-03-26 21:42:48 +05:30
Manav Rathi e4684b22df
Move out the electron-builder config to separate file 2024-03-19 19:17:01 +05:30
Manav Rathi 6fdfa24e89 Document translation 2024-03-11 15:30:24 +05:30
Manav Rathi e15c7e1642 Move into web/ 2024-03-01 12:21:07 +05:30
Renamed from docs/dependencies.md (Browse further)