Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions components/Package/PackageHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { startCase } from 'es-toolkit';
import { type ReactNode } from 'react';
import { View } from 'react-native';

Expand Down Expand Up @@ -39,10 +40,10 @@ export default function PackageHeader({ library, registryData, rightSlot }: Prop
<UserAvatar
src={`https://github.com/${ghUsername}.png`}
style={tw`size-6 rounded-md border border-solid border-palette-gray2 dark:border-default`}
alt={`${ghUsername} avatar`}
alt={`${startCase(ghUsername)} avatar`}
/>
}>
{ghUsername}
{startCase(ghUsername)}
</Tooltip>
<P style={tw`-mt-0.5 text-xl font-semibold leading-[26px]`}>{library.npmPkg}</P>
{registryData && (
Expand Down
2 changes: 1 addition & 1 deletion components/SearchTag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function SearchTag({ title, value }: Props) {
<Tooltip
trigger={
<HoverEffect>
<A href="/" style={tw`flex flex-row items-center gap-1.5 pl-2 no-underline`}>
<A href="/packages" style={tw`flex flex-row items-center gap-1.5 pl-2 no-underline`}>
{startCase(value)}
<XIcon style={tw`w-2.5 text-error`} />
</A>
Expand Down
4 changes: 2 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ Index.getInitialProps = async (ctx: NextPageContext) => {
);
const recentlyAddedResponse = await ssrFetch(
'/libraries',
{ order: 'added', limit: LIMIT.toString() },
{ order: 'added', limit: LIMIT.toString(), isMaintained: 'true' },
ctx
);
const recentlyUpdatedResponse = await ssrFetch(
'/libraries',
{ order: 'updated', limit: LIMIT.toString() },
{ order: 'updated', limit: LIMIT.toString(), isMaintained: 'true' },
ctx
);
const popularResponse = await ssrFetch(
Expand Down
15 changes: 11 additions & 4 deletions scenes/PackageOverviewScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,16 @@ export default function PackageOverviewScene({
style={tw`pl-4.5 m-0 gap-1.5 text-[13px] text-palette-gray4 dark:text-palette-gray5`}>
<li>
<A
href={`https://bundlephobia.com/package/${library.npmPkg}`}
href={`https://node-modules.dev/grid/depth#install=${library.npmPkg}`}
style={tw`text-[12px] font-light`}>
Bundlephobia
Node Modules Inspector
</A>
</li>
<li>
<A
href={`https://npmgraph.js.org/?q=${library.npmPkg}`}
href={`https://bundlephobia.com/package/${library.npmPkg}`}
style={tw`text-[12px] font-light`}>
npmgraph
Bundlephobia
</A>
</li>
<li>
Expand All @@ -157,6 +157,13 @@ export default function PackageOverviewScene({
pkg-size.dev
</A>
</li>
<li>
<A
href={`https://npmgraph.js.org/?q=${library.npmPkg}`}
style={tw`text-[12px] font-light`}>
npmgraph
</A>
</li>
<li>
<A
href={`https://snyk.io/advisor/npm-package/${library.npmPkg}`}
Expand Down