Skip to content

Conversation

@longsizhuo
Copy link
Member

@longsizhuo longsizhuo commented Nov 1, 2025

  1. 实现了轮播我们的活动,会显示discord和回放按钮(如果活动还没结束则只会显示discord按钮);

  2. 轮播图没有体积,在手机上不会显示;

  3. 重要feature‼️ 为了方便Mira配置,设置了新的文件夹data:event.json,以后我们的配置类型的东西可以都放在这个文件夹里面,不看代码就可以直接修改配置。

截屏2025-11-02 05 25 32

@vercel
Copy link

vercel bot commented Nov 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
involutionhell-github-io Ready Ready Preview Comment Nov 1, 2025 9:34pm
website-preview Ready Ready Preview Comment Nov 1, 2025 9:34pm

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 35 to 45
function resolveCoverUrl(coverUrl: string): string {
if (coverUrl.startsWith("http")) {
return coverUrl;
}

if (coverUrl.startsWith("./assets/")) {
const filename = coverUrl.replace("./assets/", "");
return `/event-assets/${filename}`;
}

return coverUrl;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Normalize local event image paths

The new ticker reads coverUrl strings from data/event.json such as "./event/mockInterview.png", but resolveCoverUrl returns those values unchanged. next/image rejects non-remote sources that don’t start with /, so the first render will throw Invalid src prop (./event/mockInterview.png) and no image is displayed. Either the JSON should use absolute /event/... paths or the resolver needs to strip the ./ prefix before passing the value into Image.

Useful? React with 👍 / 👎.

@Mira190
Copy link
Contributor

Mira190 commented Nov 1, 2025

测试无误,可合并。手机也试了,可以显示。
image

@Mira190 Mira190 merged commit 97d7520 into main Nov 1, 2025
8 checks passed
@longsizhuo longsizhuo deleted the activity branch November 2, 2025 02:19
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