Skip to content

新增项目页面pages 网页代码 - #9

Merged
BobH233 merged 3 commits into
mainfrom
dev_0.4.0
May 9, 2026
Merged

BobH233 merged 3 commits into
mainfrom
dev_0.4.0

Conversation

@BobH233

@BobH233 BobH233 commented May 9, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 9, 2026 08:15
@BobH233
BobH233 merged commit 015a3a9 into main May 9, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a GitHub Pages landing/download page for NeuroMark under docs/, and includes a couple of renderer UI adjustments related to score post-processing data flow and the Smart Name Match layout behavior.

Changes:

  • Add docs/index.html marketing/download page that fetches latest GitHub Release assets and provides a proxy toggle.
  • Update ProjectDetailView.vue to load score post-process snapshots via the Pinia store and adjust Smart Name Match layout classes.
  • Add global CSS variants to support expanded logs / suggestion-driven Smart Name Match layout sizing.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/renderer/src/views/ProjectDetailView.vue Switch score post-process snapshot loading to useScorePostProcessStore() and add computed-driven layout class toggles for Smart Name Match.
src/renderer/src/styles/global.css Add .smart-name-layout--suggestions and .smart-name-layout--expanded-logs variants to change height/overflow behavior.
docs/index.html Introduce a new static landing page with inline styles/scripts and a dynamic downloads section driven by GitHub Releases API.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/index.html
Comment on lines +1595 to +1600
if (state.usingFallback) {
statusEl.innerHTML = `无法读取最新 Release 时,已启用 <strong>${FALLBACK_TAG}</strong> 备用下载列表。`;
return;
}

statusEl.innerHTML = `GitHub 最新 Release:<strong>${state.releaseTag}</strong>。你可以在国内加速和 GitHub 直连之间切换。`;
Comment thread docs/index.html
Comment on lines +1566 to +1600
grid.innerHTML = sortAssets(state.assets)
.map((asset) => {
const info = classifyAsset(asset);
const isRecommended = isRecommendedAsset(info);
const url = getDownloadUrl(asset.browser_download_url);

return `
<article class="download-card ${isRecommended ? "recommended" : ""}">
<div class="download-card-head">
<div>
<div class="platform-name">${info.platform}</div>
<div class="download-meta" style="margin-top: 10px;">
<span><em>架构 / 格式</em><b>${info.detail} · ${info.extension}</b></span>
</div>
</div>
<span class="format-tag">${info.icon}</span>
</div>
<div class="download-meta">
<span><em>文件大小</em><b>${formatBytes(asset.size)}</b></span>
<span><em>当前来源</em><b>${sourceLabel}</b></span>
</div>
<a class="button download-link" href="${url}" download>下载 ${info.platform}</a>
</article>
`;
})
.join("");
}

function setReleaseStatus() {
if (state.usingFallback) {
statusEl.innerHTML = `无法读取最新 Release 时,已启用 <strong>${FALLBACK_TAG}</strong> 备用下载列表。`;
return;
}

statusEl.innerHTML = `GitHub 最新 Release:<strong>${state.releaseTag}</strong>。你可以在国内加速和 GitHub 直连之间切换。`;
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.

2 participants