📄 原始资料 (已截断) | 展开查看原始 JSON(page.json)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "bricks://settings/page",
"schemaVersion": "2.3",
"type": "object",
"title": "Bricks Page settings",
"description": "Schema for Bricks page settings controls",
"settings": {
"bodyClasses": {
"label": "CSS classes",
"valueSchema": {
"type": "string"
},
"controlType": "text",
"labelZh": "CSS 类"
},
"customCss": {
"label": "Custom CSS",
"valueSchema": {
"type": "string"
},
"controlType": "code",
"labelZh": "自定义 CSS"
},
"customScriptsBodyFooter": {
"label": "Body (footer) scripts",
"valueSchema": {
"type": "string"
},
"controlType": "code",
"labelZh": "正文(页脚)脚本"
},
"customScriptsBodyHeader": {
"label": "Body (header) scripts",
"valueSchema": {
"type": "string"
},
"controlType": "code",
"labelZh": "正文(页头)脚本"
},
"customScriptsHeader": {
"label": "Header scripts",
"valueSchema": {
"type": "string"
},
"controlType": "code",
"labelZh": "页头脚本"
},
"disableLazyLoad": {
"label": "Disable lazy load",
"valueSchema": {
"type": "boolean"
},
"controlType": "checkbox",
"labelZh": "禁用懒加载"
},
"documentTitle": {
"label": "Document title",
"valueSchema": {
"type": "string"
},
"controlType": "text",
"labelZh": "文档标题"
},
"footerDisabled": {
"label": "Disable footer",
"valueSchema": {
"type": "boolean"
},
"controlType": "checkbox",
"labelZh": "禁用页脚"
},
"headerDisabled": {
"label": "Disable header",
"valueSchema": {
"type": "boolean"
},
"controlType": "checkbox",
"labelZh": "禁用页头"
},
"metaDescription": {
"label": "Meta description",
"valueSchema": {
"type": "string"
},
"controlType": "textarea",
"labelZh": "Meta 描述"
},
"metaKeywords": {
"label": "Meta keywords",
"valueSchema": {
"type": "string"
},
"controlType": "text",
"labelZh": "Meta 关键词"
},
"metaRobots": {
"label": "Meta robots",
"multiple": true,
"options": {
"noindex": "noindex",
"nofollow": "nofollow",
"none": "none",
"noarchive": "noarchive",
"nocache": "nocache",
"nosnippet": "nosnippet",
"notranslate": "notranslate",
"noimageindex": "noimageindex"
},
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Single selection",
"descriptionZh": "单选。"
},
{
"type": "array",
"items": {
"type": "string"
},
"description": "Multiple selection",
"descriptionZh": "多选。"
}
]
},
"controlType": "select",
"labelZh": "Meta robots"
},
"onePageNavigation": {
"label": "Show navigation",
"valueSchema": {
"type": "boolean"
},
"controlType": "checkbox",
"labelZh": "显示导航"
},
"onePageNavigationItemBorder": {
"label": "Border",
"css": [
{
"property": "border",
"selector": "#bricks-one-page-navigation a"
}
],
"valueSchema": {
"type": "object",
"description": "Border settings",
"properties": {
"width": {
"type": "object",
"description": "Spacing value with directional properties",
"properties": {
"top": {
"type": "string",
"description": "Top spacing value with unit",
"descriptionZh": "顶部间距值(带单位)。"
},
"right": {
"type": "string",
"description": "Right spacing value with unit",
"descriptionZh": "右侧间距值(带单位)。"
},
"bottom": {
"type": "string",
"description": "Bottom spacing value with unit",
"descriptionZh": "底部间距值(带单位)。"
},
"left": {
"type": "string",
"description": "Left spacing value with unit",
"descriptionZh": "左侧间距值(带单位)。"
}
},
"additionalProperties": false,
"descriptionZh": "带方向属性的间距值。"
},
"style": {
"type": "string",
"enum": [
"none",
"solid",
"dashed",
"dotted",
"double",
"groove",
"ridge",
"inset",
"outset"
]
},
"color": {
"description": "Color value in various formats",
"oneOf": [
{
"type": "object",
"properties": {
"hex": {
"type": "string",
"pattern": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"
}
},
"required": [
"hex"
]
},
{
"type": "object",
"properties": {
"rgb": {
"type": "string",
"pattern": "^rgba?\\("
}
},
"required": [
"rgb"
]
},
{
"type": "object",
"properties": {
"hsl": {
"type": "string",
"pattern": "^hsla?\\("
}
},
"required": [
"hsl"
]
},
{
"type": "object",
"properties": {
"raw": {
"type": "string",
"description": "Raw color value or CSS variable",
"descriptionZh": "原始颜色值或 CSS 变量。"
}
},
"required": [
"raw"
]
}
],
"descriptionZh": "各种格式的颜色值。"
},
"radius": {
"type": "object",
"description": "Spacing value with directional properties",
"properties": {
"top": {
"type": "string",
"description": "Top spacing value with unit",
"descriptionZh": "顶部间距值(带单位)。"
},
"right": {
"type": "string",
"description": "Right spacing value with unit",
"descriptionZh": "右侧间距值(带单位)。"
},
"bottom": {
"type": "string",
"description": "Bottom spacing value with unit",
"descriptionZh": "底部间距值(带单位)。"
},
"left": {
"type": "string",
"description": "Left spacing value with unit",
"descriptionZh": "左侧间距值(带单位)。"
}
},
"additionalProperties": false,
"descriptionZh": "带方向属性的间距值。"
}
},
"descriptionZh": "边框设置。"
},
"controlType": "border",
"labelZh": "边框"
},
"onePageNavigationItemBorderActive": {
"label": "Border",
"css": [
{
"property": "border",
"selector": "#bricks-one-page-navigation .active"
}
],
"valueSchema": {
"type": "object",
"description": "Border settings",
"properties": {
"width": {
"type": "object",
"description": "Spacing value with directional properties",
... (内容过长已截断,完整 JSON 见原始文件)