🤷♀️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { ImageResponse } from "@vercel/og"; | |
| import type { NextApiRequest, NextApiResponse } from "next"; | |
| function dataUriToArrayBuffer(uri: string): ArrayBuffer { | |
| const match = uri.match( | |
| /^data:image\/(png|jpeg|webp|gif|svg\+xml);base64,(.+)$/, | |
| ); | |
| if (!match) | |
| throw new Error("Unsupported image format: expected data:image/*;base64,..."); | |
| const buf = Buffer.from(match[2], "base64"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const DyanmicSelector = () => ( | |
| <Box paddingTop={"12"}> | |
| <Heading as="h1" color={"gray.700"}> | |
| Account Setup | |
| </Heading> | |
| <RadioGroup | |
| value={selectedOption} | |
| marginTop={"6"} | |
| paddingX={"8"} | |
| paddingY={"6"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file | complexity | churn | ratio | |
|---|---|---|---|---|
| src/lib/jsQR/jsQR.js | 9760 | 5 | 48800 | |
| src/lib/wapi/wapi.js | 474 | 44 | 20856 | |
| src/api/layers/sender.layer.ts | 546 | 36 | 19656 | |
| src/lib/wapi/store/store-objects.js | 362 | 24 | 8688 | |
| src/controllers/initializer.ts | 178 | 48 | 8544 | |
| src/lib/wapi/jssha/index.js | 1204 | 5 | 6020 | |
| src/api/layers/retriever.layer.ts | 171 | 29 | 4959 | |
| src/types/WAPI.d.ts | 203 | 24 | 4872 | |
| src/api/layers/host.layer.ts | 258 | 17 | 4386 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file | complexity | churn | ratio | |
|---|---|---|---|---|
| packages/eslint-plugin-react-hooks/\*\*tests\*\*/ESLintRuleExhaustiveDeps-test.js | 7742 | 51 | 394842 | |
| packages/react/src/\*\*tests\*\*/ReactProfiler-test.internal.js | 4002 | 95 | 380190 | |
| packages/react-reconciler/src/ReactFiberWorkLoop.new.js | 2373 | 139 | 329847 | |
| packages/react-reconciler/src/ReactFiberWorkLoop.old.js | 2373 | 114 | 270522 | |
| packages/react-dom/src/server/ReactPartialRenderer.js | 1379 | 122 | 168238 | |
| packages/react-reconciler/src/ReactFiberCommitWork.new.js | 2262 | 71 | 160602 | |
| packages/react-devtools-shared/src/backend/renderer.js | 2952 | 54 | 159408 | |
| packages/react-reconciler/src/ReactFiberBeginWork.new.js | 2903 | 53 | 153859 | |
| scripts/rollup/bundles.js | 760 | 199 | 151240 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npx code-complexity . --limit 20 --sort ratio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file | complexity | churn | ratio | |
|---|---|---|---|---|
| nextjs/packages/next/compiled/webpack/bundle5.js | 91501 | 1 | 91501 | |
| nextjs/packages/next/compiled/webpack/bundle5.js | 91501 | 1 | 91501 | |
| nextjs/packages/next/compiled/webpack/bundle4.js | 74436 | 1 | 74436 | |
| packages/cli/src/commands/generate.ts | 228 | 28 | 6384 | |
| packages/cli/src/commands/new.ts | 177 | 35 | 6195 | |
| packages/generator/src/generators/app-generator.ts | 235 | 23 | 5405 | |
| packages/generator/src/generator.ts | 283 | 19 | 5377 | |
| packages/server/src/stages/rpc/index.ts | 184 | 28 | 5152 | |
| packages/server/test/dev.test.ts | 190 | 27 | 5130 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npx code-complexity . --limit 20 --sort ratio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file | complexity | churn | ratio | |
|---|---|---|---|---|
| src/cli.ts | 103 | 8 | 824 | |
| test/code-complexity.test.ts | 107 | 7 | 749 | |
| .idea/workspace.xml | 123 | 6 | 738 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npx code-complexity . --limit 20 --sort ratio | |
| # You can also use --filter '**/*.js' to use glob patterns to filter files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| yarn | |
| yarn storybook |
NewerOlder