{
    "widgettype": "VBox",
    "options": {
        "width": "100%",
        "padding": "16px",
        "spacing": "16px"
    },
    "subwidgets": [
        {
            "widgettype": "HBox",
            "options": {
                "width": "100%",
                "justifyContent": "space-between",
                "alignItems": "center"
            },
            "subwidgets": [
                {
                    "widgettype": "Text",
                    "options": {
                        "text": "知识库",
                        "cfontsize": 22,
                        "fontWeight": "bold",
                        "color": "#333"
                    }
                },
                {
                    "widgettype": "HBox",
                    "options": {
                        "spacing": "8px"
                    },
                    "subwidgets": [
                        {
                            "widgettype": "Button",
                            "options": {
                                "label": "🔍 检索知识",
                                "bgcolor": "#10b981",
                                "color": "#fff"
                            },
                            "binds": [
                                {
                                    "wid": "self",
                                    "event": "click",
                                    "actiontype": "urlwidget",
                                    "target": "app.rag_main_content",
                                    "mode": "replace",
                                    "options": {
                                        "url": "./search.ui"
                                    }
                                }
                            ]
                        },
                        {
                            "widgettype": "Button",
                            "options": {
                                "label": "+ 新建知识库",
                                "bgcolor": "#4a90d9",
                                "color": "#fff"
                            },
                            "binds": [
                                {
                                    "wid": "self",
                                    "event": "click",
                                    "actiontype": "urlwidget",
                                    "target": "Popup",
                                    "popup_options": {
                                        "auto_dismiss": true
                                    },
                                    "options": {
                                        "url": "{{entire_url('./new_kb_form.ui')}}"
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "widgettype": "urlwidget",
            "options": {
                "url": "{{entire_url('./storage_stats.dspy')}}"
            }
        },
        {
            "widgettype": "urlwidget",
            "options": {
                "url": "{{entire_url('./kb_list.dspy')}}"
            }
        }
    ]
}
