Repository navigation
Conversation
There was a problem hiding this comment.
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.htmlmarketing/download page that fetches latest GitHub Release assets and provides a proxy toggle. - Update
ProjectDetailView.vueto 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 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 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 直连之间切换。`; |
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.
No description provided.