diff --git a/wwwroot/index.ui b/wwwroot/index.ui index b219b9a..60a3464 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -16,16 +16,39 @@ "gap": "12px" }, "subwidgets": [ - { "widgettype": "Title2", "options": { "text": "\u5f00\u53d1\u4ea7\u7ebf\u9a7e\u9a76\u8231" } }, - { "widgettype": "Text", "options": { "text": "AI\u9a71\u52a8\u7684\u5bf9\u8bdd\u5f0f\u5f00\u53d1", "cfontsize": 0.9, "color": "#94a3b8" } }, - { "widgettype": "Filler" }, + { + "widgettype": "Title2", + "options": { + "text": "\u5f00\u53d1\u4ea7\u7ebf\u9a7e\u9a76\u8231" + } + }, + { + "widgettype": "Text", + "options": { + "text": "AI\u9a71\u52a8\u7684\u5bf9\u8bdd\u5f0f\u5f00\u53d1", + "cfontsize": 0.9, + "color": "#94a3b8" + } + }, + { + "widgettype": "Filler" + }, { "widgettype": "Button", - "options": { "name": "model_config", "label": "\u6a21\u578b\u914d\u7f6e", "css": "small" }, - "binds": [{ - "wid": "self", "event": "click", "actiontype": "script", "target": "self", - "script": "var pw=new bricks.PopupWindow({title:'\u6a21\u578b\u914d\u7f6e',auto_open:true});bricks.widgetBuild({widgettype:'urlwidget',options:{url:'/pipeline_core/llm/index.ui',method:'GET'}},pw.content_w).then(function(w){if(w)pw.content_w.add_widget(w);});" - }] + "options": { + "name": "model_config", + "label": "\u6a21\u578b\u914d\u7f6e", + "css": "small" + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "script", + "target": "self", + "script": "var pw=new bricks.PopupWindow({title:'\u6a21\u578b\u914d\u7f6e',cwidth:36,cheight:26,auto_open:true});bricks.widgetBuild({widgettype:'urlwidget',options:{url:'/pipeline_core/llm/index.ui',method:'GET'}},pw.content_w).then(function(w){if(w)pw.content_w.add_widget(w);});" + } + ] } ] }, @@ -74,10 +97,28 @@ "subwidgets": [ { "widgettype": "VBox", - "options": { "alignItems": "center", "padding": "40px 0", "gap": "12px" }, + "options": { + "alignItems": "center", + "padding": "40px 0", + "gap": "12px" + }, "subwidgets": [ - { "widgettype": "Text", "options": { "text": "\u9009\u62e9\u4e00\u4e2a\u8fed\u4ee3\u540e\uff0c\u5728\u4e0b\u65b9\u8f93\u5165\u4f60\u7684\u9700\u6c42\u3002", "cfontsize": 1, "color": "#64748b" } }, - { "widgettype": "Text", "options": { "text": "Agent \u5c06\u81ea\u52a8\u5206\u6790\u9700\u6c42\u3001\u751f\u6210\u8bbe\u8ba1\u3001\u9a71\u52a8\u4ea7\u7ebf\u6267\u884c\u3002", "cfontsize": 0.85, "color": "#94a3b8" } } + { + "widgettype": "Text", + "options": { + "text": "\u9009\u62e9\u4e00\u4e2a\u8fed\u4ee3\u540e\uff0c\u5728\u4e0b\u65b9\u8f93\u5165\u4f60\u7684\u9700\u6c42\u3002", + "cfontsize": 1, + "color": "#64748b" + } + }, + { + "widgettype": "Text", + "options": { + "text": "Agent \u5c06\u81ea\u52a8\u5206\u6790\u9700\u6c42\u3001\u751f\u6210\u8bbe\u8ba1\u3001\u9a71\u52a8\u4ea7\u7ebf\u6267\u884c\u3002", + "cfontsize": 0.85, + "color": "#94a3b8" + } + } ] } ] @@ -105,4 +146,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/wwwroot/sd_cockpit/index.ui b/wwwroot/sd_cockpit/index.ui index b219b9a..60a3464 100644 --- a/wwwroot/sd_cockpit/index.ui +++ b/wwwroot/sd_cockpit/index.ui @@ -16,16 +16,39 @@ "gap": "12px" }, "subwidgets": [ - { "widgettype": "Title2", "options": { "text": "\u5f00\u53d1\u4ea7\u7ebf\u9a7e\u9a76\u8231" } }, - { "widgettype": "Text", "options": { "text": "AI\u9a71\u52a8\u7684\u5bf9\u8bdd\u5f0f\u5f00\u53d1", "cfontsize": 0.9, "color": "#94a3b8" } }, - { "widgettype": "Filler" }, + { + "widgettype": "Title2", + "options": { + "text": "\u5f00\u53d1\u4ea7\u7ebf\u9a7e\u9a76\u8231" + } + }, + { + "widgettype": "Text", + "options": { + "text": "AI\u9a71\u52a8\u7684\u5bf9\u8bdd\u5f0f\u5f00\u53d1", + "cfontsize": 0.9, + "color": "#94a3b8" + } + }, + { + "widgettype": "Filler" + }, { "widgettype": "Button", - "options": { "name": "model_config", "label": "\u6a21\u578b\u914d\u7f6e", "css": "small" }, - "binds": [{ - "wid": "self", "event": "click", "actiontype": "script", "target": "self", - "script": "var pw=new bricks.PopupWindow({title:'\u6a21\u578b\u914d\u7f6e',auto_open:true});bricks.widgetBuild({widgettype:'urlwidget',options:{url:'/pipeline_core/llm/index.ui',method:'GET'}},pw.content_w).then(function(w){if(w)pw.content_w.add_widget(w);});" - }] + "options": { + "name": "model_config", + "label": "\u6a21\u578b\u914d\u7f6e", + "css": "small" + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "script", + "target": "self", + "script": "var pw=new bricks.PopupWindow({title:'\u6a21\u578b\u914d\u7f6e',cwidth:36,cheight:26,auto_open:true});bricks.widgetBuild({widgettype:'urlwidget',options:{url:'/pipeline_core/llm/index.ui',method:'GET'}},pw.content_w).then(function(w){if(w)pw.content_w.add_widget(w);});" + } + ] } ] }, @@ -74,10 +97,28 @@ "subwidgets": [ { "widgettype": "VBox", - "options": { "alignItems": "center", "padding": "40px 0", "gap": "12px" }, + "options": { + "alignItems": "center", + "padding": "40px 0", + "gap": "12px" + }, "subwidgets": [ - { "widgettype": "Text", "options": { "text": "\u9009\u62e9\u4e00\u4e2a\u8fed\u4ee3\u540e\uff0c\u5728\u4e0b\u65b9\u8f93\u5165\u4f60\u7684\u9700\u6c42\u3002", "cfontsize": 1, "color": "#64748b" } }, - { "widgettype": "Text", "options": { "text": "Agent \u5c06\u81ea\u52a8\u5206\u6790\u9700\u6c42\u3001\u751f\u6210\u8bbe\u8ba1\u3001\u9a71\u52a8\u4ea7\u7ebf\u6267\u884c\u3002", "cfontsize": 0.85, "color": "#94a3b8" } } + { + "widgettype": "Text", + "options": { + "text": "\u9009\u62e9\u4e00\u4e2a\u8fed\u4ee3\u540e\uff0c\u5728\u4e0b\u65b9\u8f93\u5165\u4f60\u7684\u9700\u6c42\u3002", + "cfontsize": 1, + "color": "#64748b" + } + }, + { + "widgettype": "Text", + "options": { + "text": "Agent \u5c06\u81ea\u52a8\u5206\u6790\u9700\u6c42\u3001\u751f\u6210\u8bbe\u8ba1\u3001\u9a71\u52a8\u4ea7\u7ebf\u6267\u884c\u3002", + "cfontsize": 0.85, + "color": "#94a3b8" + } + } ] } ] @@ -105,4 +146,4 @@ ] } ] -} +} \ No newline at end of file