From fc041fc5f4135fc8f5a04e180336ad7460a8129a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 8 Jul 2026 19:10:44 +0800 Subject: [PATCH] =?UTF-8?q?style:=20modernize=20card=20UI=20=E2=80=94=20co?= =?UTF-8?q?lored=20icon=20boxes,=20fixed=20height,=20white=20bg,=20Title3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pipeline_core: 3 cards with colored icon containers (blue/green/amber) - pipeline_ops: 3 cards with icons (red/sky/purple), consistent height - pipeline_dist: 2 cards with icons (green/orange), added distributor management card --- pipeline_core/wwwroot/index.ui | 191 +++++---------------------------- pipeline_dist/wwwroot/index.ui | 30 ++++-- pipeline_ops/wwwroot/index.ui | 28 +++-- 3 files changed, 67 insertions(+), 182 deletions(-) diff --git a/pipeline_core/wwwroot/index.ui b/pipeline_core/wwwroot/index.ui index 1fd46dc..c55127a 100644 --- a/pipeline_core/wwwroot/index.ui +++ b/pipeline_core/wwwroot/index.ui @@ -1,187 +1,58 @@ { "widgettype": "VBox", - "options": { - "width": "100%", - "height": "100%", - "padding": "0" - }, + "options": {"width": "100%", "height": "100%", "padding": "0"}, "subwidgets": [ { "widgettype": "HBox", - "options": { - "width": "100%", - "alignItems": "center", - "marginBottom": "24px" - }, + "options": {"width": "100%", "alignItems": "center", "marginBottom": "20px"}, "subwidgets": [ - { - "widgettype": "Title2", - "options": { - "text": "产线管理" - } - }, - { - "widgettype": "Filler" - }, - { - "widgettype": "Text", - "options": { - "text": "产线定义、步骤配置与发布管理", - "cfontsize": 1.2 - } - } + {"widgettype": "Title2", "options": {"text": "产线管理"}}, + {"widgettype": "Filler"}, + {"widgettype": "Text", "options": {"text": "产线定义、步骤配置与发布管理", "cfontsize": 1.2}} ] }, { "widgettype": "VBox", - "options": { - "css": "filler", - "spacing": 16 - }, + "options": {"css": "filler", "spacing": 16}, "subwidgets": [ { "widgettype": "ResponsableBox", - "options": { - "gap": "16px", - "minWidth": "250px" - }, + "options": {"gap": "24px", "minWidth": "260px"}, "subwidgets": [ { "widgettype": "VBox", - "options": { - "css": "card", - "cwidth": 23, - "padding": "16px", - "cursor": "pointer", - "borderRadius": "8px" - }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "urlwidget", - "target": "app.pipeline_core_content", - "options": { - "url": "{{entire_url('pipelines/')}}" - }, - "mode": "replace" - } - ], + "options": {"css": "card", "cwidth": 23, "cheight": 12, "padding": "24px", "cursor": "pointer", "bgcolor": "#fff"}, + "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "app.pipeline_core_content", "options": {"url": "{{entire_url('pipelines/')}}"}, "mode": "replace"}], "subwidgets": [ - { - "widgettype": "Svg", - "options": { - "svg": "", - "width": "28px", - "height": "28px" - } - }, - { - "widgettype": "Title4", - "options": { - "text": "产线定义", - "marginTop": "8px" - } - }, - { - "widgettype": "Text", - "options": { - "text": "管理产线基本信息与配置", - "cfontsize": 1.2 - } - } + {"widgettype": "VBox", "options": {"width": "44px", "height": "44px", "bgcolor": "#EFF6FF", "borderRadius": "12px", "alignItems": "center", "justifyContent": "center", "marginBottom": "12px"}, "subwidgets": [ + {"widgettype": "Svg", "options": {"svg": "", "width": "24px", "height": "24px"}} + ]}, + {"widgettype": "Title3", "options": {"text": "产线定义", "marginBottom": "4px"}}, + {"widgettype": "Text", "options": {"text": "管理产线基本信息与配置", "cfontsize": 1.2}} ] }, { "widgettype": "VBox", - "options": { - "css": "card", - "cwidth": 23, - "padding": "16px", - "cursor": "pointer", - "borderRadius": "8px" - }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "urlwidget", - "target": "app.pipeline_core_content", - "options": { - "url": "{{entire_url('pipeline_steps/')}}" - }, - "mode": "replace" - } - ], + "options": {"css": "card", "cwidth": 23, "cheight": 12, "padding": "24px", "cursor": "pointer", "bgcolor": "#fff"}, + "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "app.pipeline_core_content", "options": {"url": "{{entire_url('pipeline_steps/')}}"}, "mode": "replace"}], "subwidgets": [ - { - "widgettype": "Svg", - "options": { - "svg": "", - "width": "28px", - "height": "28px" - } - }, - { - "widgettype": "Title4", - "options": { - "text": "产线步骤", - "marginTop": "8px" - } - }, - { - "widgettype": "Text", - "options": { - "text": "配置产线执行步骤与参数", - "cfontsize": 1.2 - } - } + {"widgettype": "VBox", "options": {"width": "44px", "height": "44px", "bgcolor": "#F0FDF4", "borderRadius": "12px", "alignItems": "center", "justifyContent": "center", "marginBottom": "12px"}, "subwidgets": [ + {"widgettype": "Svg", "options": {"svg": "", "width": "24px", "height": "24px"}} + ]}, + {"widgettype": "Title3", "options": {"text": "产线步骤", "marginBottom": "4px"}}, + {"widgettype": "Text", "options": {"text": "配置产线执行步骤与参数", "cfontsize": 1.2}} ] }, { "widgettype": "VBox", - "options": { - "css": "card", - "cwidth": 23, - "padding": "16px", - "cursor": "pointer", - "borderRadius": "8px" - }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "urlwidget", - "target": "app.pipeline_core_content", - "options": { - "url": "{{entire_url('pipeline_versions/')}}" - }, - "mode": "replace" - } - ], + "options": {"css": "card", "cwidth": 23, "cheight": 12, "padding": "24px", "cursor": "pointer", "bgcolor": "#fff"}, + "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "app.pipeline_core_content", "options": {"url": "{{entire_url('pipeline_versions/')}}"}, "mode": "replace"}], "subwidgets": [ - { - "widgettype": "Svg", - "options": { - "svg": "", - "width": "28px", - "height": "28px" - } - }, - { - "widgettype": "Title4", - "options": { - "text": "发布记录", - "marginTop": "8px" - } - }, - { - "widgettype": "Text", - "options": { - "text": "查看产线版本发布历史", - "cfontsize": 1.2 - } - } + {"widgettype": "VBox", "options": {"width": "44px", "height": "44px", "bgcolor": "#FFFBEB", "borderRadius": "12px", "alignItems": "center", "justifyContent": "center", "marginBottom": "12px"}, "subwidgets": [ + {"widgettype": "Svg", "options": {"svg": "", "width": "24px", "height": "24px"}} + ]}, + {"widgettype": "Title3", "options": {"text": "发布记录", "marginBottom": "4px"}}, + {"widgettype": "Text", "options": {"text": "查看产线版本发布历史", "cfontsize": 1.2}} ] } ] @@ -189,11 +60,7 @@ { "widgettype": "VScrollPanel", "id": "pipeline_core_content", - "options": { - "css": "filler", - "width": "100%", - "height": "100%" - } + "options": {"css": "filler", "width": "100%", "height": "100%"} } ] } diff --git a/pipeline_dist/wwwroot/index.ui b/pipeline_dist/wwwroot/index.ui index c28023b..8a814e5 100644 --- a/pipeline_dist/wwwroot/index.ui +++ b/pipeline_dist/wwwroot/index.ui @@ -2,21 +2,33 @@ "widgettype": "VBox", "options": {"width": "100%", "height": "100%", "padding": "24px", "spacing": "20px"}, "subwidgets": [ - { - "widgettype": "Title2", - "options": {"text": "分销管理"} - }, + {"widgettype": "Title2", "options": {"text": "分销管理"}}, { "widgettype": "ResponsableBox", - "options": {"gap": "16px", "minWidth": "220px"}, + "options": {"gap": "24px", "minWidth": "260px"}, "subwidgets": [ { "widgettype": "VBox", - "options": {"css": "card", "cwidth": 22, "padding": "16px", "cursor": "pointer"}, - "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "app.main_content", "options": {"url": "{{entire_url('../pipeline_dist/distributor_pipeline/')}}"}, "mode": "replace"}], + "options": {"css": "card", "cwidth": 23, "cheight": 11, "padding": "24px", "cursor": "pointer", "bgcolor": "#fff"}, + "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "app.main_content", "options": {"url": "{{entire_url('distributor_pipeline/')}}"}, "mode": "replace"}], "subwidgets": [ - {"widgettype": "Title4", "options": {"text": "分销商产线配置"}}, - {"widgettype": "Text", "options": {"text": "管理分销商产线绑定", "cfontsize": 0.9}} + {"widgettype": "VBox", "options": {"width": "44px", "height": "44px", "bgcolor": "#ECFDF5", "borderRadius": "12px", "alignItems": "center", "justifyContent": "center", "marginBottom": "12px"}, "subwidgets": [ + {"widgettype": "Svg", "options": {"svg": "", "width": "24px", "height": "24px"}} + ]}, + {"widgettype": "Title3", "options": {"text": "分销商产线配置", "marginBottom": "4px"}}, + {"widgettype": "Text", "options": {"text": "管理分销商与产线绑定关系", "cfontsize": 0.9}} + ] + }, + { + "widgettype": "VBox", + "options": {"css": "card", "cwidth": 23, "cheight": 11, "padding": "24px", "cursor": "pointer", "bgcolor": "#fff"}, + "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "app.main_content", "options": {"url": "{{entire_url('distributors/')}}"}, "mode": "replace"}], + "subwidgets": [ + {"widgettype": "VBox", "options": {"width": "44px", "height": "44px", "bgcolor": "#FFF7ED", "borderRadius": "12px", "alignItems": "center", "justifyContent": "center", "marginBottom": "12px"}, "subwidgets": [ + {"widgettype": "Svg", "options": {"svg": "", "width": "24px", "height": "24px"}} + ]}, + {"widgettype": "Title3", "options": {"text": "分销商管理", "marginBottom": "4px"}}, + {"widgettype": "Text", "options": {"text": "管理分销商账号与基本信息", "cfontsize": 0.9}} ] } ] diff --git a/pipeline_ops/wwwroot/index.ui b/pipeline_ops/wwwroot/index.ui index e47f1eb..3f463eb 100644 --- a/pipeline_ops/wwwroot/index.ui +++ b/pipeline_ops/wwwroot/index.ui @@ -2,38 +2,44 @@ "widgettype": "VBox", "options": {"width": "100%", "height": "100%", "padding": "24px", "spacing": "20px"}, "subwidgets": [ - { - "widgettype": "Title2", - "options": {"text": "产线运营"} - }, + {"widgettype": "Title2", "options": {"text": "产线运营"}}, { "widgettype": "ResponsableBox", - "options": {"gap": "16px", "minWidth": "220px"}, + "options": {"gap": "24px", "minWidth": "260px"}, "subwidgets": [ { "widgettype": "VBox", - "options": {"css": "card", "cwidth": 22, "padding": "16px", "cursor": "pointer"}, + "options": {"css": "card", "cwidth": 23, "cheight": 11, "padding": "24px", "cursor": "pointer", "bgcolor": "#fff"}, "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "app.main_content", "options": {"url": "{{entire_url('pipeline_pricing/')}}"}, "mode": "replace"}], "subwidgets": [ - {"widgettype": "Title4", "options": {"text": "定价管理"}}, + {"widgettype": "VBox", "options": {"width": "44px", "height": "44px", "bgcolor": "#FEF2F2", "borderRadius": "12px", "alignItems": "center", "justifyContent": "center", "marginBottom": "12px"}, "subwidgets": [ + {"widgettype": "Svg", "options": {"svg": "", "width": "24px", "height": "24px"}} + ]}, + {"widgettype": "Title3", "options": {"text": "定价管理", "marginBottom": "4px"}}, {"widgettype": "Text", "options": {"text": "管理产线计费方式和价格", "cfontsize": 0.9}} ] }, { "widgettype": "VBox", - "options": {"css": "card", "cwidth": 22, "padding": "16px", "cursor": "pointer"}, + "options": {"css": "card", "cwidth": 23, "cheight": 11, "padding": "24px", "cursor": "pointer", "bgcolor": "#fff"}, "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "app.main_content", "options": {"url": "{{entire_url('pipeline_capacity/')}}"}, "mode": "replace"}], "subwidgets": [ - {"widgettype": "Title4", "options": {"text": "供应量管理"}}, + {"widgettype": "VBox", "options": {"width": "44px", "height": "44px", "bgcolor": "#F0F9FF", "borderRadius": "12px", "alignItems": "center", "justifyContent": "center", "marginBottom": "12px"}, "subwidgets": [ + {"widgettype": "Svg", "options": {"svg": "", "width": "24px", "height": "24px"}} + ]}, + {"widgettype": "Title3", "options": {"text": "供应量管理", "marginBottom": "4px"}}, {"widgettype": "Text", "options": {"text": "配置产线并发和调用限额", "cfontsize": 0.9}} ] }, { "widgettype": "VBox", - "options": {"css": "card", "cwidth": 22, "padding": "16px", "cursor": "pointer"}, + "options": {"css": "card", "cwidth": 23, "cheight": 11, "padding": "24px", "cursor": "pointer", "bgcolor": "#fff"}, "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "app.main_content", "options": {"url": "{{entire_url('pipeline_usage_log/')}}"}, "mode": "replace"}], "subwidgets": [ - {"widgettype": "Title4", "options": {"text": "使用记录"}}, + {"widgettype": "VBox", "options": {"width": "44px", "height": "44px", "bgcolor": "#F5F3FF", "borderRadius": "12px", "alignItems": "center", "justifyContent": "center", "marginBottom": "12px"}, "subwidgets": [ + {"widgettype": "Svg", "options": {"svg": "", "width": "24px", "height": "24px"}} + ]}, + {"widgettype": "Title3", "options": {"text": "使用记录", "marginBottom": "4px"}}, {"widgettype": "Text", "options": {"text": "查看产线调用和消费记录", "cfontsize": 0.9}} ] }