change some plugin stuff and allow to hook into tx_search

This commit is contained in:
2026-04-06 21:55:40 +02:00
parent 9ef820d699
commit 501fe0d443
4 changed files with 13 additions and 4 deletions
+7 -1
View File
@@ -14,7 +14,13 @@ function parsePluginConfig(filePath) {
const pluginExports = require(filePath);
Object.assign(pluginConfig, pluginExports.pluginConfig);
// Check if pluginConfig has frontEndPath defined
if(pluginConfig.server_embedded) {
setTimeout(function() {
consoleCmd.logInfo(`Server plugin ${pluginConfig.name} ${pluginConfig.version} initialized successfully.`);
}, 500)
return pluginConfig;
}
if (pluginConfig.frontEndPath) {
const sourcePath = path.join(path.dirname(filePath), pluginConfig.frontEndPath);
const destinationDir = path.join(__dirname, '../web/js/plugins', path.dirname(pluginConfig.frontEndPath));