Manav Rathi
a99903e3e9
next export is deprecated in Next 14
2024-02-16 21:45:02 +05:30
Manav Rathi
82fbe55e5a
Remove debugging package
2024-02-16 20:48:26 +05:30
Manav Rathi
c124414242
Get the typeaware rules working
2024-02-16 20:48:26 +05:30
Manav Rathi
9bb2fbb6e1
Go back to existing config
...
The flat config requires enabling a flag in the VS code plugin, it in not
enabled by default.
"eslint.experimental.useFlatConfig": true
This is an unnecessary expectation from all developers on the project, so we for
now live with the old format.
2024-02-16 20:48:26 +05:30
Manav Rathi
a9a810ab99
Add typescript configuration in eslint
...
VSCode still gives an error
We had to set the type to module to get the `import` to work. Setting .mjs
didn't work (eslint didn't recognize the file). Setting the type to module
should be (based on my current understanding) not affect us negatively since we
are exporting a TypeScript library not a bundled one, and all the other source
files apart from this are intended to be `*.ts`.
Refs:
- https://jeremyrichardson.dev/blog/saga_of_learning_exports_property_in_packagejson
- https://github.com/eslint/eslint/discussions/17021
2024-02-16 20:48:26 +05:30
Manav Rathi
d0155d1fc2
Switch to the flat config
...
eslint 8 already supports both formats, and will start defaulting to the new one in 9.
https://eslint.org/blog/2022/08/new-config-system-part-2/
2024-02-16 20:48:26 +05:30
Manav Rathi
378946a6e9
Switch to a flat config
2024-02-16 20:48:26 +05:30
Manav Rathi
ba12c9c0c7
Set up linter for the package
2024-02-16 20:48:26 +05:30
Manav Rathi
6b5859dca7
Funnel .tsx extensions via subfolders
2024-02-16 20:48:26 +05:30
Manav Rathi
3720abe0ed
Integrate the actual one
2024-02-16 20:47:25 +05:30
Manav Rathi
3289d137bf
forceConsistentCasingInFileNames is true by default with TS 5
2024-02-16 20:47:25 +05:30
Manav Rathi
632af065fe
Add a working WIP example
2024-02-16 20:47:25 +05:30
Manav Rathi
7263969953
Make src work with next
...
- The star in package.json matches any version
https://docs.npmjs.com/cli/v10/configuring-npm/package-json
- VSCode is still giving errors
2024-02-16 20:47:25 +05:30
Manav Rathi
3fad0427a7
Next.js does not use Babel (at least for single file) anymore
...
> Compiling using Next.js compiler instead of Babel is enabled by default since v12
https://nextjs.org/docs/architecture/nextjs-compiler
2024-02-16 20:47:25 +05:30
Manav Rathi
f3340db57e
Make it work with src
2024-02-16 20:47:25 +05:30
Manav Rathi
c87aca72ad
Use yarn add @ente-io/utils@'file:packages/utils'
...
The version field is still required, but we can additionally add a private for
both semantic signalling and preventing this from being published to npm.
2024-02-16 20:47:25 +05:30
Manav Rathi
3aa0f4d0b8
Make it work with yarn workspace
2024-02-16 20:47:25 +05:30
Manav Rathi
9723f818e0
Add tsconfig
2024-02-16 20:47:25 +05:30
Manav Rathi
c56f11fb8f
Scaffold utils project
2024-02-16 20:47:25 +05:30
Neeraj Gupta
5d7d166976
Merge branch 'main' into accounts-passkeys
2024-02-16 14:53:04 +05:30
Manav Rathi
6797dde517
Unify and prune environment variables ( #1613 )
2024-02-14 18:13:00 +05:30
Manav Rathi
6e7e214d01
Improve comment
2024-02-13 13:17:13 +05:30
Manav Rathi
c2523c695d
Mimic an approach that also works with the desktop app build
2024-02-13 13:14:31 +05:30
Manav Rathi
07faec7851
Improve readability
2024-02-13 12:12:48 +05:30
Manav Rathi
bf70857a41
Don't initialize Sentry on dev builds
2024-02-13 12:11:14 +05:30
Manav Rathi
8a769ea08b
Specify the release in Sentry.init instead of the webpack plugin
2024-02-13 11:25:31 +05:30
Neeraj Gupta
de163b79db
Merge branch 'main' into cast
2024-02-13 09:35:00 +05:30
Manav Rathi
39034474ba
Include the git SHA in the logs
2024-02-12 19:04:40 +05:30
Manav Rathi
54cbbfb722
Fix the release string
2024-02-10 23:00:25 +05:30
Manav Rathi
dc68659104
Go back to using a .properties
2024-02-10 22:24:07 +05:30
Manav Rathi
e8dfbdd581
Fix source maps
2024-02-10 21:34:24 +05:30
Manav Rathi
d54ff83bba
Resurrect SENTRY_AUTH_TOKEN
2024-02-10 19:47:59 +05:30
Manav Rathi
c34654e995
Further prune down Sentry
2024-02-10 17:38:33 +05:30
Manav Rathi
0119cddd50
Prune
2024-02-10 17:26:23 +05:30
Manav Rathi
36e76626cd
Unconditionally use environment overrides
2024-02-10 16:11:19 +05:30
Manav Rathi
fc695eff75
Rename Deployment to Build
...
Perhaps (perhaps) this better conveys the fact that the build itself is a static
entity that doesn't and cannot change after deployment.
2024-02-10 15:33:10 +05:30
Manav Rathi
3ad29a504c
Move to a singular flag
...
This might not be enough if we also want to cater for development desktop
builds, but let's start with this and add them back later if needed.
2024-02-10 15:32:15 +05:30
Manav Rathi
c921399540
WIP
2024-02-10 15:21:06 +05:30
Manav Rathi
88b4aa02c7
Inline constant
2024-02-09 13:33:18 +05:30
Manav Rathi
9289bbd0d0
Reduce Sentry DSN noise
...
We don't need to customize this, so reduce all the indirection and dance around it.
2024-02-09 13:32:28 +05:30
httpjamesm
9852e3cf37
Merge branch 'main'
2024-02-08 16:04:28 -05:00
httpjamesm
ad1fab8edb
feat: getAccountsURL()
2024-02-08 15:42:51 -05:00
Manav Rathi
7225071b64
Remove unused LS_KEYS.API_ENDPOINT
...
This is currently unused. We can resurrect this at a later point when we could
want to make the API we connect to dynamically changable within the app settings
itself, but right now that won't be trivial (e.g. mixing credentials across
instances). So just removing this.
2024-02-08 14:24:57 +05:30
Manav Rathi
6a1c82429a
Remove unused auth-url
2024-02-07 12:51:56 +05:30
Neeraj Gupta
87ce124eb4
Build fix
2024-02-01 18:06:58 +05:30
Neeraj Gupta
4bbf79c321
Fix collection refresh and token revokation
2024-01-29 18:09:47 +05:30
Neeraj Gupta
18c3369fc0
Revoke active casts
2024-01-29 17:19:01 +05:30
Neeraj Gupta
f39e095168
Fix handling of wrong pin
2024-01-29 15:50:01 +05:30
Neeraj Gupta
89f8e2f564
Update based on new API spec
2024-01-29 15:15:30 +05:30
Neeraj Gupta
61a7d2cbbb
Remove duplicate method
2024-01-29 13:17:54 +05:30