feat(plugins): add duplicate plugin functionality and related API endpoints

- Implemented a new `duplicatePlugin` function to allow copying of installed plugins with a new ID.
- Added API endpoint for duplicating plugins, including error handling for various edge cases.
- Introduced frontend hooks and UI components for duplicating plugins in the script management interface.
- Enhanced tests to validate the duplication process and ensure proper error handling.
This commit is contained in:
2026-08-30 19:33:36 +07:00
parent f1cdb7ac68
commit a20b26b4c7
7 changed files with 298 additions and 10 deletions
+9
View File
@@ -15,6 +15,10 @@ function ntfyHeaders(ctx) {
headers.Title = ctx.data.title;
}
if (ctx.config?.markdown === true) {
headers.md = "true";
}
return headers;
}
@@ -149,6 +153,11 @@ ntfy.meta = {
default: "https://ntfy.sh/jerapah-flow",
description: "ntfy topic URL",
},
markdown: {
type: "boolean",
default: false,
description: "Send as Markdown (ntfy md header)",
},
fingerprint: {
type: "string",
required: false,