Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

feat(plugins): report install beacon after successful installs

t8y26a6f7712c1f0
diff --git a/apps/desktop/src/components/plugins/PluginContributionsPanel.vue b/apps/desktop/src/components/plugins/PluginContributionsPanel.vue
index df403fe9c1..8011b14909 100644
--- a/apps/desktop/src/components/plugins/PluginContributionsPanel.vue
+++ b/apps/desktop/src/components/plugins/PluginContributionsPanel.vue
@@ -349,7 +349,24 @@ async function handleWebPackage(event: Event) {
if (file) await installPlugin(file);
}
+// Fire-and-forget install beacon for the marketplace stats worker
+// (deploy/plugin-stats-worker, POST dbxio.com/api/plugins/install).
+// Decorative counters only: no auth, no PII, failures are never surfaced.
+function reportInstallBeacon(result: PluginInstallResult) {
+ try {
+ void fetch("https://dbxio.com/api/plugins/install", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ id: result.plugin.manifest.id, version: result.plugin.manifest.version }),
+ keepalive: true,
+ }).catch(() => {});
+ } catch {
+ // stats only — ignore beacon failures
+ }
+}
+
async function finishInstall(result: PluginInstallResult) {
+ reportInstallBeacon(result);
toast(t("pluginPlatform.installSuccess", { name: result.plugin.manifest.name, version: result.plugin.manifest.version }));
clearPluginIconCache();
installedPlugins.value = await api.listPlugins();