-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a toolbar registry to the chat document * rename the document factories plugin * Fix leftover
- Loading branch information
Showing
8 changed files
with
151 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
packages/jupyterlab-collaborative-chat/schema/chat-document.json
This file was deleted.
Oops, something went wrong.
80 changes: 80 additions & 0 deletions
80
packages/jupyterlab-collaborative-chat/schema/factories.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"title": "Chat", | ||
"description": "Configuration for the chat widgets", | ||
"type": "object", | ||
"jupyter.lab.toolbars": { | ||
"Chat": [] | ||
}, | ||
"jupyter.lab.transform": true, | ||
"properties": { | ||
"toolbar": { | ||
"title": "File browser toolbar items", | ||
"description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the uploader button:\n{\n \"toolbar\": [\n {\n \"name\": \"uploader\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", | ||
"items": { | ||
"$ref": "#/definitions/toolbarItem" | ||
}, | ||
"type": "array", | ||
"default": [] | ||
}, | ||
"sendWithShiftEnter": { | ||
"description": "Whether to send a message via Shift-Enter instead of Enter.", | ||
"type": "boolean", | ||
"default": false, | ||
"readOnly": false | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"definitions": { | ||
"toolbarItem": { | ||
"properties": { | ||
"name": { | ||
"title": "Unique name", | ||
"type": "string" | ||
}, | ||
"args": { | ||
"title": "Command arguments", | ||
"type": "object" | ||
}, | ||
"command": { | ||
"title": "Command id", | ||
"type": "string", | ||
"default": "" | ||
}, | ||
"disabled": { | ||
"title": "Whether the item is ignored or not", | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"icon": { | ||
"title": "Item icon id", | ||
"description": "If defined, it will override the command icon", | ||
"type": "string" | ||
}, | ||
"label": { | ||
"title": "Item label", | ||
"description": "If defined, it will override the command label", | ||
"type": "string" | ||
}, | ||
"caption": { | ||
"title": "Item caption", | ||
"description": "If defined, it will override the command caption", | ||
"type": "string" | ||
}, | ||
"type": { | ||
"title": "Item type", | ||
"type": "string", | ||
"enum": ["command", "spacer"] | ||
}, | ||
"rank": { | ||
"title": "Item rank", | ||
"type": "number", | ||
"minimum": 0, | ||
"default": 50 | ||
} | ||
}, | ||
"required": ["name"], | ||
"additionalProperties": false, | ||
"type": "object" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters