mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 04:42:03 +08:00
feat: 支持 DTK 5.6.4 关于对话框“版本特性”显示功能
将版本特性信息写入 json,运行时解析文件信息并初始化版本特性对话框 Log: 添加版本特性 json 文件以及解析文件相关函数,用于构造版本特性对话框;版本号维护放入 src/assets/json/features.json 中统一管理,不再修改 main 函数,运行时从 json 文件读取并显示 * 该提交需要在低版本 DTK 验证能否正常编译运行
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
<file>icon/light/text.svg</file>
|
||||
<file>icon/light/update.svg</file>
|
||||
<file>icon/logo.svg</file>
|
||||
<file>json/features.json</file>
|
||||
<file>tags/a2d-small.png</file>
|
||||
<file>tags/a2d.png</file>
|
||||
<file>tags/community-small.png</file>
|
||||
|
||||
26
src/assets/json/features.json
Normal file
26
src/assets/json/features.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"version": "4.2.3",
|
||||
"title": "Features",
|
||||
"title[zh_CN]": "版本特性",
|
||||
"items": [
|
||||
{
|
||||
"icon": "/usr/share/icons/hicolor/scalable/apps/spark-store.svg",
|
||||
"name": "Feature 1",
|
||||
"name[zh_CN]": "特性 1",
|
||||
"description": "Feature 1 detailed description...",
|
||||
"description[zh_CN]": "特性 1 详细说明"
|
||||
},
|
||||
{
|
||||
"icon": ":/icon/logo.svg",
|
||||
"name": "Feature 2",
|
||||
"description": "Feature 2 detailed description..."
|
||||
},
|
||||
{
|
||||
"icon": "spark-store",
|
||||
"name": "Fix 1",
|
||||
"description": "Fix 1 detailed description..."
|
||||
}
|
||||
],
|
||||
"linkUrl": "https://gitee.com/deepin-community-store/spark-store/releases/latest",
|
||||
"linkButtonVisible": true
|
||||
}
|
||||
Reference in New Issue
Block a user