This commit is contained in:
cocobo1 2025-05-06 20:35:29 +03:00
commit 16ad04cf6e
7 changed files with 20 additions and 11 deletions

View file

@ -1,4 +1,4 @@
# Pupu
# Pupu [![Discord](https://img.shields.io/discord/1196075698301968455?style=social&logo=discord&label=Discord)](https://discord.gg/6cN7wKa8gp)
A mod for Discord on Android
## Installing

15
dist/pupu.js vendored
View file

@ -4649,7 +4649,7 @@
init_logger();
init_toasts();
import_react_native5 = __toESM(require_react_native());
versionHash = "v0.0.3";
versionHash = "v0.1.0";
}
});
@ -6036,8 +6036,7 @@
},
{
label: import_react_native15.Platform.select({
android: Strings.CODENAME,
ios: Strings.MACHINE_ID
android: Strings.CODENAME
}),
version: debugInfo.device.codename,
icon: "TagIcon"
@ -13353,7 +13352,7 @@
var repo = pluginRepositories[props.url];
var isOfficial = props.url === OFFICIAL_PLUGINS_REPO_URL;
return /* @__PURE__ */ jsx(TableRow, {
label: isOfficial ? "Pupu's Repository" : repo.$meta?.name ?? "Unknown",
label: isOfficial ? "Bunny's Repository" : repo.$meta?.name ?? "Unknown",
subLabel: props.url,
trailing: /* @__PURE__ */ jsxs(Stack, {
direction: "horizontal",
@ -15223,7 +15222,7 @@
uri: pupu_default
},
render: () => Promise.resolve().then(() => (init_General(), General_exports)),
useTrailing: () => `(${"v0.0.3"})`
useTrailing: () => `(${"v0.1.0"})`
},
{
key: "BUNNY_PLUGINS",
@ -15262,6 +15261,10 @@
name: "Bunny",
items: []
});
registerSection({
name: "Revenge",
items: []
});
}
var init_settings3 = __esm({
"src/core/ui/settings/index.ts"() {
@ -15724,7 +15727,7 @@
alert([
"Failed to load Pupu!\n",
`Build Number: ${ClientInfoManager.Build}`,
`Pupu: ${"v0.0.3"}`,
`Pupu: ${"v0.1.0"}`,
stack || e?.toString?.()
].join("\n"));
}

View file

@ -72,7 +72,7 @@ const config = {
constModules: {
globals: {
"bunny-build-info": {
version: `"v0.0.3"`
version: `"v0.1.0"`
}
}
},

View file

@ -62,4 +62,10 @@ export default function initSettings() {
name: "Bunny",
items: []
});
// Compat with Revenge Plugins that use configs in settings
registerSection({
name: "Revenge",
items: []
});
}

View file

@ -71,7 +71,7 @@ export default function About() {
icon: "MobilePhoneIcon"
},
{
label: Platform.select({ android: Strings.CODENAME, ios: Strings.MACHINE_ID })!,
label: Platform.select({ android: Strings.CODENAME })!,
version: debugInfo.device.codename,
icon: "TagIcon"
}

View file

@ -203,7 +203,7 @@ function RepositoryRow(props: { url: string; }) {
return (
<TableRow
label={isOfficial ? "Pupu's Repository" : (repo.$meta?.name ?? "Unknown")}
label={isOfficial ? "Bunny's Repository" : (repo.$meta?.name ?? "Unknown")}
subLabel={props.url}
trailing={(
<Stack direction="horizontal">

View file

@ -21,7 +21,7 @@ export const HelpMessage = findByNameLazy("HelpMessage");
// React Native's included SafeAreaView only adds padding on iOS.
// The project doesnt build without it so it kinda has to sit here
export const { SafeAreaView, SafeAreaProvider, useSafeAreaInsets } = lazyDestructure(() => findByProps("useSafeAreaInsets"));
//export const { SafeAreaView, SafeAreaProvider, useSafeAreaInsets } = lazyDestructure(() => findByProps("useSafeAreaInsets"));
// ActionSheet
export const ActionSheetRow = findProp("ActionSheetRow");