Skip to content

Commit 8f2e8d1

Browse files
committed
Update product list
1 parent c0dd83f commit 8f2e8d1

13 files changed

Lines changed: 143 additions & 16 deletions

File tree

‎LICENSES/MIT.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ MIT License
22

33
Copyright (c) Team OpenVPI
44
Copyright (c) 2023 onWidget
5+
Copyright (c) 2023-2026 SoulMelody
56

67
Permission is hereby granted, free of charge, to any person obtaining a copy
78
of this software and associated documentation files (the "Software"), to deal

‎README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ Announcements are rendered during the build. The browser also fetches the announ
6666

6767
Configure the catalog URL, enabled product identifiers and icons, and the default product in `src/data/downloads.json`. Define each product's localized name in `downloads.productNames` and tooltip description in `downloads.productDescriptions` in every resource under `public/i18n/`, using the product identifier as the key. Product icons are served from `public/`. Products not in the configuration are never fetched or displayed. The production catalog is `https://catalogs.diffscope.org/v1`.
6868

69+
Each product can optionally set `thirdParty` (a boolean, defaulting to `false`) to show a localized third-party label in the product picker and beside the selected product's name. Set `repositoryUrl` to its GitHub repository URL to show a repository button below the description. Omit `repositoryUrl` to hide the button. The selected product's icon, name, description, label, and repository link update together when the product changes, including through hash navigation.
70+
6971
Each product provides `index.json` for Stable and Beta and `nightly.json` for Nightly. Each channel's first version entry is its latest release. Manifest paths are resolved relative to their index URL. Manifests supply release notes and download URLs, platforms, architectures, variants, sizes, and SHA-256 checksums.
7072

7173
The home page awaits both indexes and their latest manifests before displaying download details. All download controls share request caches. The primary button prefers a compatible latest release in Stable, then Beta, then Nightly. If none supports the visitor's system, it offers the first available release and links to the downloads page instead of downloading a file. No releases results in a disabled Coming Soon button; request failures offer a retry.
@@ -87,4 +89,6 @@ Copyright holder: **Team OpenVPI**.
8789
- Website source code and implementation configuration are licensed under the **MIT License**.
8890
- Website content, including translation resources and visual assets, and repository documentation are licensed under **CC BY-SA 4.0**.
8991

92+
The LibreSVIP icon in `public/brand/libresvip-icon.png` comes from [SoulMelody/LibreSVIP](https://github.com/SoulMelody/LibreSVIP/blob/main/packaging/assets/icon.png) and retains its upstream MIT license and copyright notice.
93+
9094
Full license texts are in `LICENSES/MIT.txt` and `LICENSES/CC-BY-SA-4.0.txt`. Source files carry SPDX comment headers; other files are covered individually by `REUSE.toml`. Keep licensing declarations current when adding or moving files. With the REUSE tool installed, run `reuse lint` from the repository root to validate them.

‎REUSE.toml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ path = "public/brand/dspm-icon.svg"
5555
SPDX-FileCopyrightText = "Team OpenVPI"
5656
SPDX-License-Identifier = "CC-BY-SA-4.0"
5757

58+
[[annotations]]
59+
path = "public/brand/libresvip-icon.png"
60+
SPDX-FileCopyrightText = "2023-2026 SoulMelody"
61+
SPDX-License-Identifier = "MIT"
62+
5863
[[annotations]]
5964
path = "public/brand/logo-dark.png"
6065
SPDX-FileCopyrightText = "Team OpenVPI"

‎public/brand/libresvip-icon.png‎

108 KB
Loading

‎public/i18n/en.json‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,13 @@
9090
"downloads": {
9191
"title": "Downloads",
9292
"products": "Choose a product",
93-
"productNames": { "diffscope": "DiffScope", "dspm": "DiffScope Package Manager" },
93+
"productNames": { "diffscope": "DiffScope", "dspm": "DiffScope Package Manager", "libresvip-cli": "LibreSVIP CLI" },
94+
"thirdParty": "Third-Party Product",
95+
"viewRepository": "View on GitHub",
9496
"productDescriptions": {
9597
"diffscope": "A free, professional singing-voice synthesis editor",
96-
"dspm": "A command-line tool for managing DiffScope packages"
98+
"dspm": "A command-line tool for managing DiffScope packages",
99+
"libresvip-cli": "A universal converter for singing-voice-synthesis projects. It can be used alongside DiffScope."
97100
},
98101
"loading": "Loading releases…",
99102
"loadingVersion": "Loading download details…",

‎public/i18n/ja.json‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,17 @@
9090
"downloads": {
9191
"title": "ダウンロード",
9292
"products": "製品を選択",
93-
"productNames": { "diffscope": "DiffScope", "dspm": "DiffScope パッケージマネージャー" },
93+
"productNames": {
94+
"diffscope": "DiffScope",
95+
"dspm": "DiffScope パッケージマネージャー",
96+
"libresvip-cli": "LibreSVIP CLI"
97+
},
98+
"thirdParty": "サードパーティ製品",
99+
"viewRepository": "GitHub で見る",
94100
"productDescriptions": {
95101
"diffscope": "自由でプロフェッショナルな歌声合成エディター",
96-
"dspm": "DiffScope のパッケージを管理するコマンドラインツール"
102+
"dspm": "DiffScope のパッケージを管理するコマンドラインツール",
103+
"libresvip-cli": "歌声合成プロジェクトの汎用変換ツール。DiffScope と併せて利用できます。"
97104
},
98105
"loading": "リリースを読み込み中…",
99106
"loadingVersion": "ダウンロード情報を読み込み中…",

‎public/i18n/zh-Hans.json‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,13 @@
9090
"downloads": {
9191
"title": "下载",
9292
"products": "选择产品",
93-
"productNames": { "diffscope": "DiffScope", "dspm": "DiffScope 包管理器" },
93+
"productNames": { "diffscope": "DiffScope", "dspm": "DiffScope 包管理器", "libresvip-cli": "LibreSVIP CLI" },
94+
"thirdParty": "第三方产品",
95+
"viewRepository": "在 GitHub 上查看",
9496
"productDescriptions": {
9597
"diffscope": "自由且专业的歌声合成编辑器",
96-
"dspm": "用于管理 DiffScope 包的命令行工具"
98+
"dspm": "用于管理 DiffScope 包的命令行工具",
99+
"libresvip-cli": "歌声合成工程的通用转换器。可与 DiffScope 配合使用。"
97100
},
98101
"loading": "正在加载发布版本…",
99102
"loadingVersion": "正在加载下载详情…",

‎public/i18n/zh-Hant.json‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,13 @@
9090
"downloads": {
9191
"title": "下載",
9292
"products": "選擇產品",
93-
"productNames": { "diffscope": "DiffScope", "dspm": "DiffScope 套件管理器" },
93+
"productNames": { "diffscope": "DiffScope", "dspm": "DiffScope 套件管理器", "libresvip-cli": "LibreSVIP CLI" },
94+
"thirdParty": "第三方產品",
95+
"viewRepository": "在 GitHub 上檢視",
9496
"productDescriptions": {
9597
"diffscope": "自由且專業的歌聲合成編輯器",
96-
"dspm": "用於管理 DiffScope 套件的命令列工具"
98+
"dspm": "用於管理 DiffScope 套件的命令列工具",
99+
"libresvip-cli": "歌聲合成專案的通用轉換器。可與 DiffScope 配合使用。"
97100
},
98101
"loading": "正在載入發布版本…",
99102
"loadingVersion": "正在載入下載資訊…",

‎src/assets/styles/downloads.css‎

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,38 @@
100100
margin-top: 12px;
101101
}
102102
.product-entry img {
103+
flex-shrink: 0;
103104
border-radius: 8px;
104105
object-fit: contain;
105106
}
106107
.product-entry input {
108+
flex-shrink: 0;
107109
margin-left: auto;
108110
accent-color: var(--aw-color-primary);
109111
width: 16px;
110112
height: 16px;
111113
}
114+
.product-entry-copy {
115+
min-width: 0;
116+
overflow-wrap: anywhere;
117+
}
118+
.product-entry-name {
119+
display: block;
120+
}
121+
.third-party-badge {
122+
display: inline-block;
123+
padding: 3px 8px;
124+
border: 1px solid var(--ds-border);
125+
border-radius: 6px;
126+
color: var(--aw-color-text-muted);
127+
font-size: 11px;
128+
font-weight: 500;
129+
line-height: 1.5;
130+
white-space: nowrap;
131+
}
132+
.product-entry .third-party-badge {
133+
margin-top: 6px;
134+
}
112135
.product-overview {
113136
display: flex;
114137
align-items: center;
@@ -126,8 +149,15 @@
126149
min-width: 0;
127150
overflow-wrap: anywhere;
128151
}
152+
.product-title {
153+
display: flex;
154+
align-items: center;
155+
flex-wrap: wrap;
156+
gap: 8px 12px;
157+
margin-bottom: 8px;
158+
}
129159
.product-overview h2 {
130-
margin: 0 0 8px;
160+
margin: 0;
131161
color: var(--aw-color-text-heading);
132162
font-size: 28px;
133163
font-weight: 650;
@@ -139,6 +169,28 @@
139169
font-size: 16px;
140170
line-height: 1.7;
141171
}
172+
.product-repository {
173+
display: inline-flex;
174+
align-items: center;
175+
gap: 8px;
176+
margin-top: 14px;
177+
padding: 8px 12px;
178+
border: 1px solid var(--ds-border);
179+
border-radius: 8px;
180+
color: var(--aw-color-text-default);
181+
font-size: 14px;
182+
font-weight: 600;
183+
line-height: 1.5;
184+
text-decoration: none;
185+
transition:
186+
color 0.15s,
187+
border-color 0.15s;
188+
}
189+
.product-repository:hover,
190+
.product-repository:focus-visible {
191+
color: var(--aw-color-link);
192+
border-color: var(--aw-color-link);
193+
}
142194
.release-tabs {
143195
display: flex;
144196
gap: 6px;

‎src/components/widgets/Downloads.astro‎

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
import { Icon } from 'astro-icon/components';
77
import { dictionaries, type Locale } from '~/i18n';
8-
import configuration from '~/data/downloads.json';
8+
import { downloadConfiguration as configuration } from '~/utils/catalog';
99
import { channels } from '~/utils/downloads.mjs';
1010
interface Props {
1111
locale: Locale;
@@ -31,7 +31,10 @@ const defaultProduct = configuration.products.find(({ id }) => id === configurat
3131
configuration.products.map((product) => (
3232
<label class="product-entry" title={productDescriptions[product.id]}>
3333
<img src={product.icon} width="36" height="36" alt="" />
34-
<span>{productNames[product.id]}</span>
34+
<span class="product-entry-copy">
35+
<span class="product-entry-name">{productNames[product.id]}</span>
36+
{product.thirdParty && <span class="third-party-badge">{t.downloads.thirdParty}</span>}
37+
</span>
3538
<input
3639
type="radio"
3740
name="download-product"
@@ -48,8 +51,25 @@ const defaultProduct = configuration.products.find(({ id }) => id === configurat
4851
<header class="product-overview">
4952
<img src={defaultProduct.icon} width="96" height="96" alt="" data-product-icon />
5053
<div class="product-overview-copy">
51-
<h2 id="selected-product-name" data-product-name>{productNames[defaultProduct.id]}</h2>
54+
<div class="product-title">
55+
<h2 id="selected-product-name" data-product-name>{productNames[defaultProduct.id]}</h2>
56+
<span class="third-party-badge" data-product-third-party hidden={!defaultProduct.thirdParty}>
57+
{t.downloads.thirdParty}
58+
</span>
59+
</div>
5260
<p data-product-description>{productDescriptions[defaultProduct.id]}</p>
61+
<a
62+
class="product-repository"
63+
data-product-repository
64+
href={defaultProduct.repositoryUrl}
65+
hidden={!defaultProduct.repositoryUrl}
66+
target="_blank"
67+
rel="noopener noreferrer"
68+
>
69+
<Icon name="tabler:brand-github" class="size-4" aria-hidden="true" />
70+
{t.downloads.viewRepository}
71+
<Icon name="tabler:arrow-up-right" class="size-3" aria-hidden="true" />
72+
</a>
5373
</div>
5474
</header>
5575
<div class="release-tabs" role="tablist" aria-label={t.ui.channels}>

0 commit comments

Comments
 (0)