Skip to content

Commit

Permalink
small QoL and grammar things
Browse files Browse the repository at this point in the history
  • Loading branch information
byeoon committed Apr 23, 2024
1 parent df0f67e commit b828ac8
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 47 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Opti
A more optimized Discord experience.



## Installing

### Android
Expand Down
18 changes: 9 additions & 9 deletions dist/vendetta.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Object.seal = Object;
import(".").then((m) => m.default()).catch((e) => {
console.log(e?.stack ?? e.toString());
alert([
"Opti failed to initialize and some parts may not function properly.\n",
"Opti failed to initialize. Some parts may not function properly.\n",
`Build Number: ${ClientInfoManager.Build}`,
`Opti Version: ${__vendettaVersion}`,
e?.stack || e.toString(),
Expand Down
2 changes: 1 addition & 1 deletion src/lib/badge/users.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const badgeUsers = {
byeoon: {
id: 1167275288036655133,
badge: ["developer", "contributor", "addon", "supporter"]
badge: ["developer", "contributor", "addon", "supporter", "early"]
},
}
2 changes: 0 additions & 2 deletions src/lib/command/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { registerCommand } from "../commands";
import debug from "./debug";
import reload from "./reload";
import testing from "./testing";

export function initCustomCommands(): void {
const customCommands = [
...testing,
...debug,
...reload,
];
Expand Down
14 changes: 0 additions & 14 deletions src/lib/command/testing.tsx

This file was deleted.

17 changes: 8 additions & 9 deletions src/lib/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ export function registerCommand(command: ApplicationCommand[]): void {
const cmd = command[commandE];

command[commandE] = {
id: (parseInt(lastCommand.id, 10) - 1).toString(),
displayName: cmd.name,
displayDescription: cmd.description,
type: ApplicationCommandType.CHAT,
inputType: ApplicationCommandInputType.BUILT_IN,
applicationId: "Opti",
...cmd,

__isOpti: true,
id: (parseInt(lastCommand.id, 10) - 1).toString(),
displayName: cmd.name,
displayDescription: cmd.description,
type: ApplicationCommandType.CHAT,
inputType: ApplicationCommandInputType.BUILT_IN,
applicationId: "Opti",
...cmd,
__isOpti: true,
};

}
Expand Down
Empty file removed src/lib/shader/builtin/AMOLED.json
Empty file.
1 change: 1 addition & 0 deletions src/lib/tweak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { removeDeletePrompt, unloadRemoveDelete } from "./tweak/removeDelete";

export function initTweaks()
{
//@ts-ignore
settings.tweaks ??= {};

console.log("TweakManager has initialized.");
Expand Down
2 changes: 1 addition & 1 deletion src/ui/settings/components/AddonPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function AddonPage<T>({ items, safeModeMessage, safeModeExtras, c
<Search
style={{ marginBottom: 10 }}
onChangeText={(v: string) => setSearch(v.toLowerCase())}
placeholder="Search Plugins"
placeholder="Search"
/>
</>}
style={{ paddingHorizontal: 10, paddingTop: 10 }}
Expand Down
5 changes: 2 additions & 3 deletions src/ui/settings/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ const styles = stylesheet.createThemedStyleSheet({
backgroundColor: semanticColors.PRIMARY_DARK_800,
borderTopLeftRadius: 5,
borderTopRightRadius: 5,
fontFamily: constants.Fonts.PRIMARY_BOLD

fontFamily: constants.Fonts.PRIMARY_BOLD,
},
description: {
color: semanticColors.TEXT_MUTED,
fontSize: 12,
backgroundColor: semanticColors.PRIMARY_DARK_800,
},
actions: {
flexDirection: "row-reverse",
Expand Down
6 changes: 1 addition & 5 deletions src/ui/settings/pages/TweakManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ export default function AssetBrowser() {
<RN.View style={{ flex: 1 }}>
<FormRow
label="Tweaks"
subLabel={`Right now most tweaks are ported Vendetta plugins, when Opti rewrites, this will change.\nWant yours removed? Contact me I'll remove it ASAP.` }
onPress={() => {
console.log("hi")
}
}
subLabel={`Right now most tweaks are ported Vendetta plugins. When Opti rewrites, this will change.\nWant yours removed? Contact me and I'll remove it ASAP.` }
/>
<FormDivider />
<FormRow
Expand Down

0 comments on commit b828ac8

Please sign in to comment.