halo-theme-hao/http/settings.http

188 lines
5.3 KiB
HTTP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### cookie http-client.env.json
### settings Cookit Console F12
DELETE http://localhost:8090/api/v1alpha1/settings/theme-hao-setting
Content-Type: application/json
Sec-Fetch-Mode: cors
X-XSRF-TOKEN: {{token}}
Cookie: {{cookie}}
### settings settings 使 yaml json
POST http://localhost:8090/api/v1alpha1/settings
Content-Type: application/json
Sec-Fetch-Mode: cors
Cookie: {{cookie}}
X-XSRF-TOKEN: {{token}}
{
"apiVersion": "v1alpha1",
"kind": "Setting",
"metadata": {
"name": "theme-hao-setting"
},
"spec": {
"forms": [
{
"group": "nav",
"label": "",
"formSchema": [
{
"$formkit": "text",
"name": "left_menu",
"label": "",
"placeholder": " metadata name",
"help": " metadata name"
},
{
"$formkit": "text",
"name": "site_title",
"label": "",
"placeholder": "",
"help": " HTML <span id=\"site-name-icon\">Hao</span>"
}
]
},
{
"group": "layout",
"label": "",
"formSchema": [
{
"$formkit": "select",
"name": "post_list_layout",
"label": "",
"value": "grid_3",
"options": [
{
"label": "",
"value": "grid_3"
},
{
"label": "",
"value": "grid_2"
},
{
"label": "",
"value": "single"
}
],
"help": ""
},
{
"$formkit": "select",
"name": "header_widget",
"label": "",
"value": "none",
"options": [
{
"label": "",
"value": "none"
},
{
"label": "",
"value": "latest_post"
},
{
"label": "",
"value": "latest_post_grid"
},
{
"label": "",
"value": "carousel"
},
{
"label": "",
"value": "site_title"
}
]
},
{
"$formkit": "select",
"name": "header_background_type",
"label": "",
"value": "manual",
"options": [
{
"label": "",
"value": "manual"
},
{
"label": "",
"value": "image"
}
]
},
{
"$formkit": "text",
"name": "header_background",
"label": ""
},
{
"$formkit": "text",
"name": "header_background_image",
"label": ""
},
{
"$formkit": "radio",
"name": "content_header",
"label": "",
"value": true,
"options": [
{
"label": "",
"value": true
},
{
"label": "",
"value": false
}
]
}
]
},
{
"group": "sidebar",
"label": "",
"formSchema": [
{
"$formkit": "textarea",
"name": "widgets",
"label": "",
"value": "profile,popular-posts,latest-comments,categories,tags",
"help": "profile, popular-posts, latest-comments, categories, tags"
},
{
"$formkit": "text",
"name": "profile_name",
"label": "",
"placeholder": "",
"help": ""
},
{
"$formkit": "textarea",
"name": "profile_desc",
"placeholder": "",
"help": "使 HTML "
}
]
},
{
"group": "footer",
"label": "",
"formSchema": [
{
"$formkit": "text",
"name": "menu",
"label": "",
"placeholder": " metadata name",
"help": " metadata name"
}
]
}
]
}
}
###