mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 01:07:01 +08:00
To support custom shortcuts, this updates the module.schema.json to require actions to have categories and adds categories to existing actions. It also renames the existing "DevTools" category to "Global." Custom shortcuts design doc: https://docs.google.com/document/d/1oOPSWPxCHvMoBZ0Fw9jwFZt6gP4lrsrsl8DEAp-Hy7o/edit#heading=h.2xpjzz3fl1ju Bug: 174309 Change-Id: I0860f040e19502b4c47301356b52a2f12166dee5 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2101972 Reviewed-by: Shane Clifford <shanejc@microsoft.com> Reviewed-by: Vidal Diazleal <vidorteg@microsoft.com> Commit-Queue: Jack Lynch <jalyn@microsoft.com>
85 lines
1.7 KiB
JSON
85 lines
1.7 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"extensions": {
|
|
"type": "array",
|
|
"description": "Extension points",
|
|
"items": {
|
|
"properties": {
|
|
"type": {"type": "string"},
|
|
"order": {"type": "number"},
|
|
"title": {"type": "string"},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"properties": {
|
|
"title": {"type": "string"},
|
|
"category": {"type": "string"}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"if": {
|
|
"properties": {"type": {"const": "action"}}
|
|
},
|
|
"then": {
|
|
"anyOf": [
|
|
{
|
|
"required": ["title"]
|
|
},
|
|
{
|
|
"required": ["options"],
|
|
"properties": {
|
|
"options": {
|
|
"minItems": 1,
|
|
"items": {
|
|
"required": ["title"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"required": ["category"]
|
|
}
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"modules": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"resources": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"skip_compilation": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"experiment": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"definitions": {
|
|
}
|
|
}
|