-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accessibility updates to config page settings
- Loading branch information
Showing
4 changed files
with
81 additions
and
10 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const PluginAbstract = require('../../server/PluginAbstract') | ||
|
||
class TestPlugin extends PluginAbstract { | ||
constructor() { | ||
super() | ||
|
||
this.name = 'Test' | ||
} | ||
|
||
init(context) { | ||
context.Logger.info('[TestPlugin] Test plugin loaded successfully') | ||
} | ||
|
||
async onAction(context, actionName, target, data) { | ||
context.Logger.info('[TestPlugin] Test plugin onAction', actionName, target, data) | ||
} | ||
} | ||
module.exports = new TestPlugin() |
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,52 @@ | ||
{ | ||
"name": "Test Plugin", | ||
"slug": "test", | ||
"version": "1.0.0", | ||
"description": "This is a test plugin", | ||
"extensions": [ | ||
{ | ||
"target": "item.detail.actions", | ||
"name": "test", | ||
"label": "Test Action", | ||
"labelKey": "TestAction" | ||
} | ||
], | ||
"config": { | ||
"title": "Test Plugin Configuration", | ||
"titleKey": "TestPluginConfiguration", | ||
"description": "This is a test plugin", | ||
"descriptionKey": "TestPluginConfigurationDescription", | ||
"formFields": [ | ||
{ | ||
"name": "apiKey", | ||
"label": "API Key", | ||
"labelKey": "LabelApiKey", | ||
"type": "text", | ||
"required": false | ||
}, | ||
{ | ||
"name": "requestAddress", | ||
"label": "Request Address", | ||
"labelKey": "LabelRequestAddress", | ||
"type": "text", | ||
"required": true | ||
}, | ||
{ | ||
"name": "enable", | ||
"label": "Enable", | ||
"labelKey": "LabelEnable", | ||
"type": "checkbox" | ||
} | ||
] | ||
}, | ||
"localization": { | ||
"en-us": { | ||
"TestAction": "Test Action", | ||
"LabelApiKey": "API Key", | ||
"LabelEnable": "Enable", | ||
"TestPluginConfiguration": "Test Plugin Configuration", | ||
"TestPluginConfigurationDescription": "This is a test plugin", | ||
"LabelRequestAddress": "Request Address" | ||
} | ||
} | ||
} |