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
152 changes: 75 additions & 77 deletions bun.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion components/Library/TrendingMark.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export default function TrendingMark({ library, style, markOnly = false }: Props
<View style={[tw`mb-1`, style]}>{content}</View>
) : (
<HoverEffect>
<A href="/scoring" style={[tw`relative flex items-start no-underline`, style as Style]}>
<A
href="/scoring#trending-score"
style={[tw`relative flex items-start no-underline`, style as Style]}>
{content}
</A>
</HoverEffect>
Expand Down
2 changes: 1 addition & 1 deletion components/Tools/ToolEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function ToolEntry({ name, description, note, githubUrl, buttons
<H3 style={tw`mb-1 px-5 text-xl`}>{name}</H3>
<View style={tw`mb-3.5 gap-1.5 px-5`}>
<P style={tw`font-light leading-[23px]`}>{description}</P>
{note && <Caption style={tw`font-light leading-tight text-secondary`}>{note}</Caption>}
{note && <Caption style={tw`font-light text-secondary`}>{note}</Caption>}
</View>
<View
style={tw`flex-row flex-wrap items-center gap-3 border-t border-default bg-palette-gray1 px-5 py-3 dark:bg-dark-bright`}>
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"@expo/html-elements": "58.0.3",
"@expo/match-media": "^0.4.0",
"@m2d/react-markdown": "^1.0.0",
"@m2d/react-markdown": "^1.0.1",
"@radix-ui/react-hover-card": "^1.2.1",
"@radix-ui/react-popover": "^1.3.1",
"@radix-ui/react-tooltip": "^1.4.1",
Expand All @@ -38,18 +38,18 @@
"@visx/xychart": "^4.0.0",
"crypto-js": "^4.2.0",
"es-toolkit": "^1.52.0",
"expo": "58.0.10",
"expo-font": "58.0.8",
"next": "^16.4.1",
"expo": "58.0.16",
"expo-font": "58.0.9",
"next": "^16.4.2",
"node-emoji": "^2.2.0",
"postcss": "^8.5.30",
"postcss": "^8.5.31",
"react": "19.3.1",
"react-content-loader": "^7.1.2",
"react-dom": "19.3.1",
"react-easy-linkify": "^1.0.8",
"react-native": "0.88.0",
"react-native-safe-area-context": "^5.10.1",
"react-native-svg": "^15.15.5",
"react-native-svg": "^15.16.0",
"react-native-web": "^0.21.4",
"react-shiki": "0.11.2",
"rehype-raw": "^7.0.0",
Expand All @@ -63,16 +63,16 @@
},
"devDependencies": {
"@expo/next-adapter": "^6.0.0",
"@next/bundle-analyzer": "^16.4.1",
"@pobammer-ts/small-rules": "^3.6.0",
"@next/bundle-analyzer": "^16.4.2",
"@pobammer-ts/small-rules": "^3.6.1",
"@types/bun": "^1.4.3",
"@types/crypto-js": "^4.2.2",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@types/semver": "^7.8.0",
"@vercel/blob": "2.8.2",
"ajv-cli": "^5.0.0",
"browserslist": "^4.29.3",
"browserslist": "^4.29.4",
"cheerio": "^1.2.0",
"dotenv": "^18.0.8",
"lint-staged": "^17.6.0",
Expand Down Expand Up @@ -101,6 +101,6 @@
},
"patchedDependencies": {
"react-native@0.88.0": "patches/react-native@0.88.0.patch",
"react-native-svg@15.15.5": "patches/react-native-svg@15.15.5.patch"
"react-native-svg@15.16.0": "patches/react-native-svg@15.16.0.patch"
}
}
20 changes: 18 additions & 2 deletions pages/scoring.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@ export default function Scoring() {
specific needs. When evaluating libraries to include in your project, review the library
yourself to determine if it&apos;s a good fit.
</Caption>
<H2 style={tw`mb-5 mt-4`}>Directory Score</H2>
<H2 style={tw`mb-5 mt-4`} id="directory-score">
<A
href="#directory-score"
target="_self"
style={tw`no-underline`}
hoverStyle={tw`text-palette-gray5 dark:text-palette-gray3`}>
Directory Score
</A>
</H2>
<P style={tw`mb-4 font-light leading-[27px]`}>
The Directory Score is the combination of multiple factors that relate to the quality of a
library. A library can earn value by exhibiting &quot;good behavior criteria&quot; and can
Expand Down Expand Up @@ -65,7 +73,15 @@ export default function Scoring() {
</ScoringCriterion>
))}
<br />
<H2 style={tw`mb-5 mt-4`}>Trending Score</H2>
<H2 style={tw`mb-5 mt-4`} id="trending-score">
<A
href="#trending-score"
target="_self"
style={tw`no-underline`}
hoverStyle={tw`text-palette-gray5 dark:text-palette-gray3`}>
Trending Score
</A>
</H2>
<P style={tw`mb-4 font-light leading-[27px]`}>
The Trending Score is the combination of multiple factors that relate to the download
count and quality of a library. A library gets the the base score from the Popularity Gain
Expand Down
67 changes: 0 additions & 67 deletions patches/react-native-svg@15.15.5.patch

This file was deleted.

44 changes: 44 additions & 0 deletions patches/react-native-svg@15.16.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
diff --git a/lib/commonjs/lib/resolveAssetUri.web.js b/lib/commonjs/lib/resolveAssetUri.web.js
index 2fca49cca64dc93819a7a9ed61bba6c96d178731..5e36c939ecea57b91951a5b25c0c88079649560d 100644
--- a/lib/commonjs/lib/resolveAssetUri.web.js
+++ b/lib/commonjs/lib/resolveAssetUri.web.js
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
});
exports.resolveAssetUri = resolveAssetUri;
var _reactNative = require("react-native");
-var _registry = require("@react-native/assets-registry/registry");
-// @ts-expect-error react-native/assets-registry doesn't export types.

const svgDataUriPattern = /^(data:image\/svg\+xml;utf8,)(.*)/;

@@ -15,7 +13,7 @@ function resolveAssetUri(source) {
let src = {};
if (typeof source === 'number') {
// get the URI from the packager
- const asset = (0, _registry.getAssetByID)(source);
+ const asset = _reactNative.AssetRegistry.getAssetByID(source);
if (asset == null) {
throw new Error(`Image: asset with ID "${source}" could not be found. Please check the image source or packager.`);
}
diff --git a/lib/module/lib/resolveAssetUri.web.js b/lib/module/lib/resolveAssetUri.web.js
index 939b783aa6805d0301b8a7220ca47231ed72bce1..01bd9f5e7c6ba0328b84ece52546dff028aa08d7 100644
--- a/lib/module/lib/resolveAssetUri.web.js
+++ b/lib/module/lib/resolveAssetUri.web.js
@@ -1,6 +1,5 @@
-import { PixelRatio } from 'react-native';
-// @ts-expect-error react-native/assets-registry doesn't export types.
-import { getAssetByID } from '@react-native/assets-registry/registry';
+import { PixelRatio, AssetRegistry } from 'react-native';
+
const svgDataUriPattern = /^(data:image\/svg\+xml;utf8,)(.*)/;

// Based on that function: https://github.com/necolas/react-native-web/blob/54c14d64dabd175e8055e1dc92e9196c821f9b7d/packages/react-native-web/src/exports/Image/index.js#L118-L156
@@ -8,7 +7,7 @@ export function resolveAssetUri(source) {
let src = {};
if (typeof source === 'number') {
// get the URI from the packager
- const asset = getAssetByID(source);
+ const asset = AssetRegistry.getAssetByID(source);
if (asset == null) {
throw new Error(`Image: asset with ID "${source}" could not be found. Please check the image source or packager.`);
}
6 changes: 6 additions & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -887,3 +887,9 @@ select {
[id^='statistic-chart'] {
scroll-margin-top: 1.25rem;
}

/* SCORING */

h2[id$='-score'] {
scroll-margin-top: 12px;
}
Loading