feat: add leetcode graph support - #6
Open
SamanPandey-in wants to merge 2 commits into
Open
Conversation
|
@SamanPandey-in is attempting to deploy a commit to the radiumcoders' projects Team on Vercel. A member of the Team first needs to authorize it. |
Author
|
Just a friendly addition, I liked your idea a lot and then implemented the same for leetcode too |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Owner
|
Man Deployment Failed =[ |
Owner
|
Author
|
fixed the error, build passing now without any errors |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add LeetCode contribution graph support
Adds a
/leetcoderoute with the same isometric 3D terrain visualization as the GitHub graph, sourced from a user's LeetCode submission calendar.What's where:
lib/leetcode.ts— username/link parsing + fetches submission calendar from LeetCode's GraphQL API, reshaped into the same grid format GitHub usesapp/api/leetcode/route.ts— API route, mirrors/api/contributionsapp/leetcode/page.tsx,app/leetcode/[username]/page.tsx— home + shareable profile pagescomponents/leetcode-graph/leetcode-graph.tsx,leetcode-graph-loader.tsx— same search/load/export/share flow as the GitHub graph, pointed at the LeetCode APIcomponents/leetcode-search-panel.tsx— LeetCode-flavored search panel copyapp/page.tsx— added a "Check your leetcode here" button linking to/leetcodeReused as-is (no forking needed): the 3D scene, profile-analysis stats panel, sidebar, and chart-export logic — all already generic enough to work off the shared
ContributionDay[]shape. Added an optionalheightUnitoverride on the scene (defaults to GitHub's existing value) so LeetCode's smaller submission counts still render as a readable terrain instead of looking flat.tsc --noEmitpasses clean.