(payload)
| 1197 | }; |
| 1198 | |
| 1199 | const validatePluginRepo = async (payload) => { |
| 1200 | const res = await pluginApi.validateRepo(payload); |
| 1201 | if (res.data.status === "error") { |
| 1202 | throw new Error(res.data.message || tm("messages.pluginValidateFailed")); |
| 1203 | } |
| 1204 | return { |
| 1205 | data: res.data.data || {}, |
| 1206 | message: res.data.message || tm("messages.pluginValidateSuccess"), |
| 1207 | }; |
| 1208 | }; |
| 1209 | |
| 1210 | const buildInstallRepoValidationPayload = () => { |
| 1211 | const url = String(extension_url.value || "").trim(); |
no test coverage detected