1. json/downapp.json: 添加更新和删除工具栏按钮,移除noedit限制 2. wwwroot/update_apikey.dspy: 查询并返回预填充的更新表单 3. wwwroot/do_update_apikey.dspy: 处理更新表单提交 4. wwwroot/delete_apikey.dspy: 删除API Key及关联应用 5. wwwroot/apikey_manage.ui: 独立API Key管理页面 6. scripts/load_path.py: 使用通配符%/dapi/%注册所有路径
50 lines
905 B
XML
50 lines
905 B
XML
{
|
||
"widgettype":"Form",
|
||
"options":{
|
||
"title":"更新API Key",
|
||
"description":"更新应用信息和API Key配置",
|
||
"fields":[
|
||
{
|
||
"name":"id",
|
||
"label":"应用ID",
|
||
"uitype":"str",
|
||
"readonly": true
|
||
},
|
||
{
|
||
"name":"appname",
|
||
"label":"应用名称",
|
||
"uitype":"str",
|
||
"required": true
|
||
},
|
||
{
|
||
"name":"description",
|
||
"label":"应用描述",
|
||
"uitype":"text"
|
||
},
|
||
{
|
||
"name":"allowedips",
|
||
"label":"允许的IP集",
|
||
"uitype":"str",
|
||
"placeholder": "多个IP用逗号分隔"
|
||
},
|
||
{
|
||
"name":"regenerate_apikey",
|
||
"label":"重新生成API Key",
|
||
"uitype":"checkbox",
|
||
"description": "勾选后将重新生成API Key,原Key将失效"
|
||
}
|
||
]
|
||
},
|
||
"binds":[
|
||
{
|
||
"wid":"self",
|
||
"event":"submit",
|
||
"actiontype":"urlwidget",
|
||
"target":"self",
|
||
"options":{
|
||
"url":"{{entire_url('./update_apikey.dspy')}}"
|
||
}
|
||
}
|
||
]
|
||
}
|