Manav Rathi
0b8d9fafee
Add prettier-plugin-organize-imports ( #1655 )
2024-02-24 12:32:58 +05:30
Manav Rathi
2d5555441a
Document the yarn workspace (classic) bug
...
I think that's what's happening in the pattern I've seen, but not sure.
2024-02-24 11:21:37 +05:30
Manav Rathi
bd24f6a84e
Move eslint plugins down into build-config
2024-02-24 11:18:17 +05:30
Manav Rathi
e54fe2b15c
Move dev dependency down
2024-02-24 11:12:42 +05:30
Manav Rathi
0d70e8d103
Update yarn (whilst satisfying package.lock)
2024-02-24 11:09:54 +05:30
Manav Rathi
1689c1ce7a
Add prettier-plugin-organize-imports
...
https://github.com/simonhaenisch/prettier-plugin-organize-imports
2024-02-24 11:08:12 +05:30
Manav Rathi
9a7d5bb514
New Translations ( #1615 )
2024-02-24 10:32:55 +05:30
Crowdin Bot
4c6239a6a8
New Crowdin translations by GitHub Action
2024-02-24 04:54:56 +00:00
Manav Rathi
65338e4141
Fix the source file used by Crowdin ( #1654 )
2024-02-24 10:21:51 +05:30
Manav Rathi
4a31e8cdd4
Fix the source file used by Crowdin
2024-02-24 10:21:17 +05:30
Manav Rathi
662399d665
Support Brazilian Portuguese 🇧🇷 ( #1653 )
2024-02-24 09:51:41 +05:30
Manav Rathi
1436dafbf2
Support Brazilian Portuguese
2024-02-24 09:37:27 +05:30
Manav Rathi
9d8ec5c60b
Update auth locales
2024-02-24 09:27:08 +05:30
Manav Rathi
e1f5121b4f
Handle updates
2024-02-24 09:21:19 +05:30
Manav Rathi
c81ecd1ec1
WIP Handle migration
2024-02-24 08:56:23 +05:30
Manav Rathi
9c58731403
Add a basic local storage wrapper
2024-02-23 21:30:38 +05:30
Manav Rathi
4b38703750
Import translations
2024-02-23 19:04:48 +05:30
Manav Rathi
760552f650
Support locales
2024-02-23 18:49:35 +05:30
Manav Rathi
3e9538f59e
Move to @/next package
2024-02-23 18:30:08 +05:30
Manav Rathi
8d571a0f52
Remove all dependencies from the top level package.json
2024-02-23 18:19:11 +05:30
Manav Rathi
bc74951a99
Move axios to shared
2024-02-23 17:03:35 +05:30
Manav Rathi
9ac2a84465
Move is-electron to utils
2024-02-23 16:55:12 +05:30
Manav Rathi
a3f76e529a
Clarify a few things around running shared albums locally ( #1652 )
2024-02-23 16:41:28 +05:30
Manav Rathi
7682b34d76
The port needs to be different
2024-02-23 16:34:08 +05:30
Manav Rathi
53a92a58e3
Clarify a few things around running shared albums locally
...
Also, rename the environment variable to match what one would naturally type.
2024-02-23 16:23:11 +05:30
Manav Rathi
9859d4e723
Fix account creation failure ( #1651 )
2024-02-23 12:22:23 +05:30
Manav Rathi
69652dec76
Move to lower layer
2024-02-23 12:14:08 +05:30
Manav Rathi
02b1f4d376
Document
2024-02-23 12:11:37 +05:30
Manav Rathi
adb2c50a4a
Match the libsodium version that was previously resolved
...
The @types package uses a caret import which is bringing a newer libsodium with
it, so add an explicit override to pin it to the version that we want.
2024-02-23 11:58:23 +05:30
Manav Rathi
316e18ceaa
Try pinning to 0.7.8
...
We're getting `sodium.crypto_pwhash_SALTBYTES` as undefined.
https://github.com/jedisct1/libsodium.js/issues/326
2024-02-23 11:49:37 +05:30
Manav Rathi
6b5e3c6a5e
Pin libsodium to previously used version "libsodium-wrappers": "0.7.9",
...
The latest one is causing password generation issues (e.g. when creating an account):
TypeError: length cannot be null or undefined
at f (webpack-internal:///../../node_modules/libsodium-wrappers/dist/modules/libsodium-wrappers.js:1:18896)
at m (webpack-internal:///../../node_modules/libsodium-wrappers/dist/modules/libsodium-wrappers.js:1:18940)
at Object.Lt [as randombytes_buf] (webpack-internal:///../../node_modules/libsodium-wrappers/dist/modules/libsodium-wrappers.js:1:93208)
at Module.generateSaltToDeriveKey (webpack-internal:///../../packages/shared/crypto/internal/libsodium.ts:261:82)
We can investigate them and fix them in a subsequent PR, for now it is more
prudent to stick with the version that we've been using and upgrade more
carefully.
2024-02-23 11:24:10 +05:30
Manav Rathi
62624770c7
Document the minimal localhost setup
2024-02-23 11:11:25 +05:30
Manav Rathi
372a9c979e
Locale changes ( #1650 )
2024-02-23 11:07:51 +05:30
Manav Rathi
1b6f020b23
Move to new enum
2024-02-23 10:57:27 +05:30
Manav Rathi
85aaf1d27e
Deduce type from values
...
It is indeed possible to have a TypeScript type and an array of all of its
possible values without repeating ourselves.
The trick is - while we cannot go from types to values, we can go the other way
around. The sidetrick is - typeof array[number] gives us type of an array's
elements.
Combined, we get this pattern
const fruits = ["banana", "orange"] as const;
type Fruits = (typeof fruits)[number];
Refs:
- https://stackoverflow.com/questions/53154564/how-to-get-all-possible-values-of-a-union-type-to-an-array-or-the-other-way-aro
- https://www.typescriptlang.org/docs/handbook/2/indexed-access-types.html
2024-02-23 10:25:58 +05:30
Manav Rathi
1c2f7a4ba3
Document 2/3
2024-02-23 09:59:29 +05:30
Manav Rathi
fd3341f699
Move to ui package
2024-02-23 09:41:42 +05:30
Manav Rathi
f620ace655
Remove storage dependency
2024-02-22 23:01:51 +05:30
Manav Rathi
057be016d3
Consolidate into single file
2024-02-22 22:54:17 +05:30
Manav Rathi
3febb2f749
Further package cleanup and rearranging ( #1649 )
2024-02-22 22:50:02 +05:30
Manav Rathi
7441883a9c
Move the UI dependencies down to the ui package from the top level
2024-02-22 21:52:08 +05:30
Manav Rathi
4be92369fd
Shorten
2024-02-22 20:47:41 +05:30
Manav Rathi
59326ec331
Allow inter package importing
...
The transpilePackage affordance provided by Next.js only kicks in when we import
our TypeScript packages into the apps. But when importing them into another
(internal) package within our monorepo, the transpilation doesn't happen, so
VSCode (rightfully) complains.
It works out fine at runtime (since the actual app code will transpile it
correctly), but this is not a good DX, and smells hacky. So for now, we avoid
our dependence on the export map by keeping the hierarchy rooted at root.
2024-02-22 20:42:45 +05:30
Manav Rathi
6018806e23
Move isDevBuild to new package
2024-02-22 20:15:43 +05:30
Manav Rathi
c82342b7ae
Add transpilation for the ui package
2024-02-22 15:50:45 +05:30
Manav Rathi
cdf55f5263
Create separate UI package ( #1647 )
2024-02-22 15:48:01 +05:30
Manav Rathi
eb5bea305b
One line hello
...
Makes it easier to find these lines, especially when running as the renderer process in the desktop app
2024-02-22 15:42:49 +05:30
Manav Rathi
abd0193aea
Sync the plugin with the main next version
2024-02-22 15:18:00 +05:30
Manav Rathi
6e0606e5fc
Remove another unused library
2024-02-22 15:15:07 +05:30
Manav Rathi
53d04dcf9c
Remove unused package next-transpile-modules
...
yarn workspace photos remove next-transpile-modules
2024-02-22 15:07:25 +05:30