From 4e87791aecaf3eb283d2385593693d77e634ee57 Mon Sep 17 00:00:00 2001 From: cocobo1 Date: Sun, 4 May 2025 09:43:18 +0100 Subject: [PATCH] compat with bunny --- dist/pupu.js | 6 +++++- scripts/build.mjs | 2 +- src/core/ui/settings/index.ts | 10 ++++++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/dist/pupu.js b/dist/pupu.js index dbe923a..2aaf31f 100644 --- a/dist/pupu.js +++ b/dist/pupu.js @@ -15188,7 +15188,7 @@ name: "Pupu", items: [ { - key: "BUNNY", + key: "PUPU", title: () => Strings.PUPU, icon: { uri: pupu_default @@ -15229,6 +15229,10 @@ name: "Vendetta", items: [] }); + registerSection({ + name: "Bunny", + items: [] + }); } var init_settings3 = __esm({ "src/core/ui/settings/index.ts"() { diff --git a/scripts/build.mjs b/scripts/build.mjs index e49f1a2..4d4789f 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -72,7 +72,7 @@ const config = { constModules: { globals: { "bunny-build-info": { - version: `"v0.0.2-test3"` + version: `"v0.0.2-test4"` } } }, diff --git a/src/core/ui/settings/index.ts b/src/core/ui/settings/index.ts index 966ed55..1db75e5 100644 --- a/src/core/ui/settings/index.ts +++ b/src/core/ui/settings/index.ts @@ -14,7 +14,7 @@ export default function initSettings() { name: "Pupu", items: [ { - key: "BUNNY", + key: "PUPU", title: () => Strings.PUPU, icon: { uri: PupuIcon }, render: () => import("@core/ui/settings/pages/General"), @@ -56,4 +56,10 @@ export default function initSettings() { name: "Vendetta", items: [] }); -} + + // Compat with Bunny Plugins that use configs in settings + registerSection({ + name: "Bunny", + items: [] + }); +} \ No newline at end of file