From b9bda2c14e570c512894a5dce44c1f45c3fd3a9d Mon Sep 17 00:00:00 2001 From: Rel1cx Date: Tue, 1 Jul 2025 04:48:16 +0800 Subject: [PATCH] chore: add 'letstri/permix' project to community adoption list --- apps/website/content/docs/community.tsx | 1 + apps/website/lib/get-device-pixel-ratio.ts | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 apps/website/lib/get-device-pixel-ratio.ts diff --git a/apps/website/content/docs/community.tsx b/apps/website/content/docs/community.tsx index f9c6d4a436..c180add60b 100644 --- a/apps/website/content/docs/community.tsx +++ b/apps/website/content/docs/community.tsx @@ -10,6 +10,7 @@ export const projects = [ { owner: "hashintel", repo: "hash" }, { owner: "kriasoft", repo: "graphql-starter-kit" }, { owner: "kriasoft", repo: "react-starter-kit" }, + { owner: "letstri", repo: "permix" }, { owner: "mgilangjanuar", repo: "buntal" }, { owner: "npmgraph", repo: "npmgraph" }, { owner: "offlegacy", repo: "event-tracker" }, diff --git a/apps/website/lib/get-device-pixel-ratio.ts b/apps/website/lib/get-device-pixel-ratio.ts deleted file mode 100644 index 7675b96849..0000000000 --- a/apps/website/lib/get-device-pixel-ratio.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function getDevicePixelRatio(fallback = 2, precision = 3) { - if (typeof window === "undefined") return fallback; - const factor = Math.pow(10, precision); - return Math.round(window.devicePixelRatio * factor) / factor; -}