Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add fetchLeetCodeQuestionData function to LinkCard #439

Merged
merged 9 commits into from
Aug 23, 2024

Conversation

liyown
Copy link
Contributor

@liyown liyown commented Aug 21, 2024

Description

添加了LeetCode LinkCard的实现

Linked Issues

#438

Additional context

效果图
image

Copy link

vercel bot commented Aug 21, 2024

@liyown is attempting to deploy a commit to the Innei's projects Team on Vercel.

A member of the Team first needs to authorize it.

@liyown
Copy link
Contributor Author

liyown commented Aug 21, 2024

样式和布局是自己瞎调的,大佬要是可以优化一下就更好了

@Innei
Copy link
Owner

Innei commented Aug 21, 2024

题目难度 放到最左边,这样会比较好

@liyown
Copy link
Contributor Author

liyown commented Aug 21, 2024

麻烦大佬改一下啦,我电脑关闭了,起服务弄了我好久,还没学过nextjs

src/components/ui/link-card/LinkCard.tsx Outdated Show resolved Hide resolved
src/components/ui/link-card/LinkCard.tsx Outdated Show resolved Hide resolved
src/components/ui/link-card/LinkCard.tsx Show resolved Hide resolved
src/components/ui/link-card/LinkCard.tsx Outdated Show resolved Hide resolved
src/components/ui/link-card/LinkCard.tsx Outdated Show resolved Hide resolved
@Innei
Copy link
Owner

Innei commented Aug 21, 2024

Rebase 一下

@Innei
Copy link
Owner

Innei commented Aug 21, 2024

LinkCard 不建议在 Markdown 里直接使用,应该用 BlockLinkRenderer 去调用 LinkCard。

所以 BlockLinkRenderer 也得写一下。

src/components/ui/markdown/renderers/LinkRenderer.tsx

@liyown
Copy link
Contributor Author

liyown commented Aug 21, 2024

image

BlockLinkRenderer 重写了

@liyown
Copy link
Contributor Author

liyown commented Aug 22, 2024

我想题目提交的卡片也加上去,我测试发现这个接口需要cookie,不过这个cookie的过期时间是半个月,有必要加上去吗

feat: batch request of leetcode
refactor: optimize fetchLeetCodeQuestionData function in LinkCard and add BlockLinkRenderer  imp
@Innei
Copy link
Owner

Innei commented Aug 22, 2024

我想题目提交的卡片也加上去,我测试发现这个接口需要cookie,不过这个cookie的过期时间是半个月,有必要加上去吗

不用了吧

@Innei
Copy link
Owner

Innei commented Aug 22, 2024

我改不了你的分支,只能你自己改

@liyown
Copy link
Contributor Author

liyown commented Aug 22, 2024

我都改好了,你看看哪里还需要修改

@Innei Innei merged commit 7df7448 into Innei:main Aug 23, 2024
2 of 3 checks passed
Innei pushed a commit that referenced this pull request Aug 29, 2024
* fix: location reload not working (#431)

* fix(deps): update all non-major dependencies (patch) (#427)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: add fetchLeetCodeQuestionData function to LinkCard

* refactor: optimize fetchLeetCodeQuestionData function in LinkCard

* refactor: optimize fetchLeetCodeQuestionData function in LinkCard

feat: batch request of leetcode
refactor: optimize fetchLeetCodeQuestionData function in LinkCard and add BlockLinkRenderer  imp

* refactor: optimize fetchLeetCodeQuestionData function in LinkCard and update API_URL

* fix:TMDB api had changed
ref:https://developer.themoviedb.org/docs/append-to-response

---------

Co-authored-by: Suemor <suemor233@outlook.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Innei <i@innei.in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants