chore: format

This commit is contained in:
DIYgod 2025-06-23 18:36:50 +08:00
parent d74cea5b1f
commit 592769758d
No known key found for this signature in database
8 changed files with 43 additions and 21 deletions

View File

@ -26,7 +26,11 @@ export const InboxTable = () => {
<TableHead className="center px-0">{t("discover.inbox.actions")}</TableHead>
</TableRow>
</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>
)
}

View File

@ -123,7 +123,9 @@ const Content: Component<{
{entryHistory?.userIds
?.filter((id) => id !== me?.id)
.slice(LIMIT)
.map((userId) => <EntryUserRow userId={userId} key={userId} />)}
.map((userId) => (
<EntryUserRow userId={userId} key={userId} />
))}
</ul>
)
}

View File

@ -280,7 +280,9 @@ export const ListFeedsModalContent = ({ id }: { id: string }) => {
</TableRow>
</TableHeader>
<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>
</Table>
</ScrollArea.ScrollArea>

View File

@ -190,9 +190,9 @@ export function Component() {
</div>
<div className="grid gap-3 sm:grid-cols-1 lg:grid-cols-2">
{listData.feedIds
?.slice(0, SIZE)
.map((feedId) => <FeedRow feed={feedMap[feedId]!} key={feedId} />)}
{listData.feedIds?.slice(0, SIZE).map((feedId) => (
<FeedRow feed={feedMap[feedId]!} key={feedId} />
))}
</div>
{"feedCount" in list.data && list.data.feedCount > SIZE && (

View File

@ -47,7 +47,7 @@
"eslint-plugin-react-native": "5.0.0",
"fast-glob": "3.3.3",
"lint-staged": "16.1.2",
"prettier": "3.5.3",
"prettier": "3.6.0",
"prettier-plugin-tailwindcss": "0.6.13",
"raw-body": "3.0.0",
"react": "19.0.0",

View File

@ -271,15 +271,12 @@ export const routes: RouteObject[] = [
### Common Issues and Solutions
1. **Path Mismatch**: Routes generated without corresponding lazy functions
- **Solution**: Enhanced file matching with multiple strategies and path normalization
2. **Incorrect Import Paths**: Absolute paths causing import failures
- **Solution**: Proper relative path calculation using `path.relative()`
3. **Unused Lazy Variables**: Too many lazy imports for non-existent files
- **Solution**: Only generate lazy imports for routes with actual file matches
4. **Index Route Handling**: Paths ending with `/` causing mapping issues

View File

@ -117,11 +117,11 @@ importers:
specifier: 16.1.2
version: 16.1.2
prettier:
specifier: 3.5.3
version: 3.5.3
specifier: 3.6.0
version: 3.6.0
prettier-plugin-tailwindcss:
specifier: 0.6.13
version: 0.6.13(prettier@3.5.3)
version: 0.6.13(prettier@3.6.0)
raw-body:
specifier: 3.0.0
version: 3.0.0
@ -12803,8 +12803,8 @@ packages:
prettier-plugin-svelte:
optional: true
prettier@3.5.3:
resolution: {integrity: sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==}
prettier@3.6.0:
resolution: {integrity: sha512-ujSB9uXHJKzM/2GBuE0hBOUgC77CN3Bnpqa+g80bkv3T3A93wL/xlzDATHhnhkzifz/UE2SNOvmbTz5hSkDlHw==}
engines: {node: '>=14'}
hasBin: true
@ -21443,7 +21443,7 @@ snapshots:
debug: 2.6.9
invariant: 2.2.4
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
semver: 7.7.2
transitivePeerDependencies:
@ -28781,6 +28781,21 @@ snapshots:
transitivePeerDependencies:
- 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):
dependencies:
connect: 3.7.0
@ -28795,6 +28810,7 @@ snapshots:
- bufferutil
- supports-color
- utf-8-validate
optional: true
metro-core@0.82.4:
dependencies:
@ -28906,6 +28922,7 @@ snapshots:
- bufferutil
- supports-color
- utf-8-validate
optional: true
metro@0.82.4(bufferutil@4.0.9):
dependencies:
@ -28933,7 +28950,7 @@ snapshots:
metro-babel-transformer: 0.82.4
metro-cache: 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-file-map: 0.82.4
metro-resolver: 0.82.4
@ -29000,6 +29017,7 @@ snapshots:
- bufferutil
- supports-color
- utf-8-validate
optional: true
micromark-core-commonmark@2.0.3:
dependencies:
@ -30285,11 +30303,11 @@ snapshots:
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:
prettier: 3.5.3
prettier: 3.6.0
prettier@3.5.3: {}
prettier@3.6.0: {}
pretty-bytes@5.6.0: {}

View File

@ -19,7 +19,6 @@ To add support for a new language:
2. Select the desired locale from the list.
3. The script will:
- Create new resource files for the selected locale
- Update the necessary configuration files