chore: format
This commit is contained in:
parent
d74cea5b1f
commit
592769758d
|
|
@ -26,7 +26,11 @@ export const InboxTable = () => {
|
||||||
<TableHead className="center px-0">{t("discover.inbox.actions")}</TableHead>
|
<TableHead className="center px-0">{t("discover.inbox.actions")}</TableHead>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<TableBody>{inboxes?.map((inbox) => <Row id={inbox.id} key={inbox.id} />)}</TableBody>
|
<TableBody>
|
||||||
|
{inboxes?.map((inbox) => (
|
||||||
|
<Row id={inbox.id} key={inbox.id} />
|
||||||
|
))}
|
||||||
|
</TableBody>
|
||||||
</Table>
|
</Table>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,9 @@ const Content: Component<{
|
||||||
{entryHistory?.userIds
|
{entryHistory?.userIds
|
||||||
?.filter((id) => id !== me?.id)
|
?.filter((id) => id !== me?.id)
|
||||||
.slice(LIMIT)
|
.slice(LIMIT)
|
||||||
.map((userId) => <EntryUserRow userId={userId} key={userId} />)}
|
.map((userId) => (
|
||||||
|
<EntryUserRow userId={userId} key={userId} />
|
||||||
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -280,7 +280,9 @@ export const ListFeedsModalContent = ({ id }: { id: string }) => {
|
||||||
</TableRow>
|
</TableRow>
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<TableBody className="border-t-[12px] border-transparent">
|
<TableBody className="border-t-[12px] border-transparent">
|
||||||
{list.feedIds?.map((feedId) => <RowRender feedId={feedId} key={feedId} listId={id} />)}
|
{list.feedIds?.map((feedId) => (
|
||||||
|
<RowRender feedId={feedId} key={feedId} listId={id} />
|
||||||
|
))}
|
||||||
</TableBody>
|
</TableBody>
|
||||||
</Table>
|
</Table>
|
||||||
</ScrollArea.ScrollArea>
|
</ScrollArea.ScrollArea>
|
||||||
|
|
|
||||||
|
|
@ -190,9 +190,9 @@ export function Component() {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="grid gap-3 sm:grid-cols-1 lg:grid-cols-2">
|
<div className="grid gap-3 sm:grid-cols-1 lg:grid-cols-2">
|
||||||
{listData.feedIds
|
{listData.feedIds?.slice(0, SIZE).map((feedId) => (
|
||||||
?.slice(0, SIZE)
|
<FeedRow feed={feedMap[feedId]!} key={feedId} />
|
||||||
.map((feedId) => <FeedRow feed={feedMap[feedId]!} key={feedId} />)}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{"feedCount" in list.data && list.data.feedCount > SIZE && (
|
{"feedCount" in list.data && list.data.feedCount > SIZE && (
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
"eslint-plugin-react-native": "5.0.0",
|
"eslint-plugin-react-native": "5.0.0",
|
||||||
"fast-glob": "3.3.3",
|
"fast-glob": "3.3.3",
|
||||||
"lint-staged": "16.1.2",
|
"lint-staged": "16.1.2",
|
||||||
"prettier": "3.5.3",
|
"prettier": "3.6.0",
|
||||||
"prettier-plugin-tailwindcss": "0.6.13",
|
"prettier-plugin-tailwindcss": "0.6.13",
|
||||||
"raw-body": "3.0.0",
|
"raw-body": "3.0.0",
|
||||||
"react": "19.0.0",
|
"react": "19.0.0",
|
||||||
|
|
|
||||||
|
|
@ -271,15 +271,12 @@ export const routes: RouteObject[] = [
|
||||||
### Common Issues and Solutions
|
### Common Issues and Solutions
|
||||||
|
|
||||||
1. **Path Mismatch**: Routes generated without corresponding lazy functions
|
1. **Path Mismatch**: Routes generated without corresponding lazy functions
|
||||||
|
|
||||||
- **Solution**: Enhanced file matching with multiple strategies and path normalization
|
- **Solution**: Enhanced file matching with multiple strategies and path normalization
|
||||||
|
|
||||||
2. **Incorrect Import Paths**: Absolute paths causing import failures
|
2. **Incorrect Import Paths**: Absolute paths causing import failures
|
||||||
|
|
||||||
- **Solution**: Proper relative path calculation using `path.relative()`
|
- **Solution**: Proper relative path calculation using `path.relative()`
|
||||||
|
|
||||||
3. **Unused Lazy Variables**: Too many lazy imports for non-existent files
|
3. **Unused Lazy Variables**: Too many lazy imports for non-existent files
|
||||||
|
|
||||||
- **Solution**: Only generate lazy imports for routes with actual file matches
|
- **Solution**: Only generate lazy imports for routes with actual file matches
|
||||||
|
|
||||||
4. **Index Route Handling**: Paths ending with `/` causing mapping issues
|
4. **Index Route Handling**: Paths ending with `/` causing mapping issues
|
||||||
|
|
|
||||||
|
|
@ -117,11 +117,11 @@ importers:
|
||||||
specifier: 16.1.2
|
specifier: 16.1.2
|
||||||
version: 16.1.2
|
version: 16.1.2
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.5.3
|
specifier: 3.6.0
|
||||||
version: 3.5.3
|
version: 3.6.0
|
||||||
prettier-plugin-tailwindcss:
|
prettier-plugin-tailwindcss:
|
||||||
specifier: 0.6.13
|
specifier: 0.6.13
|
||||||
version: 0.6.13(prettier@3.5.3)
|
version: 0.6.13(prettier@3.6.0)
|
||||||
raw-body:
|
raw-body:
|
||||||
specifier: 3.0.0
|
specifier: 3.0.0
|
||||||
version: 3.0.0
|
version: 3.0.0
|
||||||
|
|
@ -12803,8 +12803,8 @@ packages:
|
||||||
prettier-plugin-svelte:
|
prettier-plugin-svelte:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
prettier@3.5.3:
|
prettier@3.6.0:
|
||||||
resolution: {integrity: sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==}
|
resolution: {integrity: sha512-ujSB9uXHJKzM/2GBuE0hBOUgC77CN3Bnpqa+g80bkv3T3A93wL/xlzDATHhnhkzifz/UE2SNOvmbTz5hSkDlHw==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
|
|
@ -21443,7 +21443,7 @@ snapshots:
|
||||||
debug: 2.6.9
|
debug: 2.6.9
|
||||||
invariant: 2.2.4
|
invariant: 2.2.4
|
||||||
metro: 0.82.4(bufferutil@4.0.9)
|
metro: 0.82.4(bufferutil@4.0.9)
|
||||||
metro-config: 0.82.4(bufferutil@4.0.9)(utf-8-validate@6.0.5)
|
metro-config: 0.82.4(bufferutil@4.0.9)
|
||||||
metro-core: 0.82.4
|
metro-core: 0.82.4
|
||||||
semver: 7.7.2
|
semver: 7.7.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
|
@ -28781,6 +28781,21 @@ snapshots:
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
|
metro-config@0.82.4(bufferutil@4.0.9):
|
||||||
|
dependencies:
|
||||||
|
connect: 3.7.0
|
||||||
|
cosmiconfig: 5.2.1
|
||||||
|
flow-enums-runtime: 0.0.6
|
||||||
|
jest-validate: 29.7.0
|
||||||
|
metro: 0.82.4(bufferutil@4.0.9)
|
||||||
|
metro-cache: 0.82.4
|
||||||
|
metro-core: 0.82.4
|
||||||
|
metro-runtime: 0.82.4
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- bufferutil
|
||||||
|
- supports-color
|
||||||
|
- utf-8-validate
|
||||||
|
|
||||||
metro-config@0.82.4(bufferutil@4.0.9)(utf-8-validate@6.0.5):
|
metro-config@0.82.4(bufferutil@4.0.9)(utf-8-validate@6.0.5):
|
||||||
dependencies:
|
dependencies:
|
||||||
connect: 3.7.0
|
connect: 3.7.0
|
||||||
|
|
@ -28795,6 +28810,7 @@ snapshots:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- supports-color
|
- supports-color
|
||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
|
optional: true
|
||||||
|
|
||||||
metro-core@0.82.4:
|
metro-core@0.82.4:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
@ -28906,6 +28922,7 @@ snapshots:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- supports-color
|
- supports-color
|
||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
|
optional: true
|
||||||
|
|
||||||
metro@0.82.4(bufferutil@4.0.9):
|
metro@0.82.4(bufferutil@4.0.9):
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
@ -28933,7 +28950,7 @@ snapshots:
|
||||||
metro-babel-transformer: 0.82.4
|
metro-babel-transformer: 0.82.4
|
||||||
metro-cache: 0.82.4
|
metro-cache: 0.82.4
|
||||||
metro-cache-key: 0.82.4
|
metro-cache-key: 0.82.4
|
||||||
metro-config: 0.82.4(bufferutil@4.0.9)(utf-8-validate@6.0.5)
|
metro-config: 0.82.4(bufferutil@4.0.9)
|
||||||
metro-core: 0.82.4
|
metro-core: 0.82.4
|
||||||
metro-file-map: 0.82.4
|
metro-file-map: 0.82.4
|
||||||
metro-resolver: 0.82.4
|
metro-resolver: 0.82.4
|
||||||
|
|
@ -29000,6 +29017,7 @@ snapshots:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- supports-color
|
- supports-color
|
||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
|
optional: true
|
||||||
|
|
||||||
micromark-core-commonmark@2.0.3:
|
micromark-core-commonmark@2.0.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
@ -30285,11 +30303,11 @@ snapshots:
|
||||||
|
|
||||||
prelude-ls@1.2.1: {}
|
prelude-ls@1.2.1: {}
|
||||||
|
|
||||||
prettier-plugin-tailwindcss@0.6.13(prettier@3.5.3):
|
prettier-plugin-tailwindcss@0.6.13(prettier@3.6.0):
|
||||||
dependencies:
|
dependencies:
|
||||||
prettier: 3.5.3
|
prettier: 3.6.0
|
||||||
|
|
||||||
prettier@3.5.3: {}
|
prettier@3.6.0: {}
|
||||||
|
|
||||||
pretty-bytes@5.6.0: {}
|
pretty-bytes@5.6.0: {}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ To add support for a new language:
|
||||||
2. Select the desired locale from the list.
|
2. Select the desired locale from the list.
|
||||||
|
|
||||||
3. The script will:
|
3. The script will:
|
||||||
|
|
||||||
- Create new resource files for the selected locale
|
- Create new resource files for the selected locale
|
||||||
- Update the necessary configuration files
|
- Update the necessary configuration files
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue