42 lines
1.2 KiB
JSON
42 lines
1.2 KiB
JSON
{
|
|
"id": "owncloud-attach",
|
|
"name": "ownCloud Attachments",
|
|
"version": "0.2.0",
|
|
"description": "Adds ownCloud-backed attachment selection for Mailcow compose flows.",
|
|
"enabledByDefault": true,
|
|
"entrypoints": {
|
|
"menu": "/plugins/owncloud-attach/ui",
|
|
"api": "/plugins/owncloud-attach/api",
|
|
"ui": "/plugins/owncloud-attach/ui"
|
|
},
|
|
"permissions": ["mail.send", "oidc.userinfo", "storage.read"],
|
|
"hooks": ["mail.compose.toolbar", "mail.compose.attachments"],
|
|
"contributions": {
|
|
"mail.compose.toolbar": [
|
|
{
|
|
"hook": "mail.compose.toolbar",
|
|
"type": "button",
|
|
"id": "toolbar-button",
|
|
"label": "ownCloud",
|
|
"icon": "cloud",
|
|
"description": "Open the ownCloud file picker from the compose toolbar.",
|
|
"order": 10,
|
|
"mount": "toolbar.js",
|
|
"css": "owncloud-attach.css"
|
|
}
|
|
],
|
|
"mail.compose.attachments": [
|
|
{
|
|
"hook": "mail.compose.attachments",
|
|
"type": "panel",
|
|
"id": "attachments-panel",
|
|
"label": "Attach from ownCloud",
|
|
"description": "Mounts a file browser panel for selecting ownCloud files to attach.",
|
|
"order": 20,
|
|
"mount": "attachments.js",
|
|
"css": "owncloud-attach.css"
|
|
}
|
|
]
|
|
}
|
|
}
|