84 lines
3.5 KiB
JSON
84 lines
3.5 KiB
JSON
{
|
|
"id": "com.fmartingr.shelfmark",
|
|
"name": "Shelfmark",
|
|
"description": "Request books via Shelfmark from Mattermost using the /requestbook slash command.",
|
|
"homepage_url": "https://git.nakama.town/fmartingr/mattermost-plugin-shelfmark",
|
|
"support_url": "https://git.nakama.town/fmartingr/mattermost-plugin-shelfmark/issues",
|
|
"icon_path": "assets/icon.png",
|
|
"min_server_version": "6.2.1",
|
|
"server": {
|
|
"executables": {
|
|
"linux-amd64": "server/dist/plugin-linux-amd64",
|
|
"linux-arm64": "server/dist/plugin-linux-arm64",
|
|
"darwin-amd64": "server/dist/plugin-darwin-amd64",
|
|
"darwin-arm64": "server/dist/plugin-darwin-arm64",
|
|
"windows-amd64": "server/dist/plugin-windows-amd64.exe"
|
|
}
|
|
},
|
|
"webapp": {
|
|
"bundle_path": "webapp/dist/main.js"
|
|
},
|
|
"settings_schema": {
|
|
"header": "Configure the Shelfmark integration to enable the /requestbook slash command.",
|
|
"footer": "",
|
|
"settings": [
|
|
{
|
|
"key": "ShelfmarkHost",
|
|
"display_name": "Shelfmark Server URL",
|
|
"type": "text",
|
|
"help_text": "The base URL of your Shelfmark instance (e.g., http://shelfmark:8084).",
|
|
"placeholder": "http://shelfmark:8084",
|
|
"default": ""
|
|
},
|
|
{
|
|
"key": "ShelfmarkUsername",
|
|
"display_name": "Shelfmark Username",
|
|
"type": "text",
|
|
"help_text": "Username to authenticate with the Shelfmark server. Leave empty if authentication is disabled.",
|
|
"placeholder": "",
|
|
"default": ""
|
|
},
|
|
{
|
|
"key": "ShelfmarkPassword",
|
|
"display_name": "Shelfmark Password",
|
|
"type": "text",
|
|
"secret": true,
|
|
"help_text": "Password to authenticate with the Shelfmark server. Leave empty if authentication is disabled.",
|
|
"placeholder": "",
|
|
"default": ""
|
|
},
|
|
{
|
|
"key": "TeamID",
|
|
"display_name": "Team ID",
|
|
"type": "text",
|
|
"help_text": "Restrict the plugin to a specific team. Leave empty to allow on all teams.",
|
|
"placeholder": "",
|
|
"default": ""
|
|
},
|
|
{
|
|
"key": "ChannelID",
|
|
"display_name": "Channel ID",
|
|
"type": "text",
|
|
"help_text": "The ID of the channel where book request posts will be created by the bot.",
|
|
"placeholder": "",
|
|
"default": ""
|
|
},
|
|
{
|
|
"key": "DefaultLanguage",
|
|
"display_name": "Default Language",
|
|
"type": "text",
|
|
"help_text": "ISO language code used when no --language flag is specified (e.g., en, es, fr). Leave empty for no language filtering.",
|
|
"placeholder": "en",
|
|
"default": "en"
|
|
},
|
|
{
|
|
"key": "PostTemplate",
|
|
"display_name": "Post Template",
|
|
"type": "longtext",
|
|
"help_text": "Go template for the book post message. Available variables: {{.Title}}, {{.Authors}} (list), {{.AuthorsList}} (comma-separated string).",
|
|
"placeholder": "### {{.Title}}",
|
|
"default": "### {{.Title}}"
|
|
}
|
|
]
|
|
}
|
|
}
|