Commit graph

206 commits

Author SHA1 Message Date
Gabe616
10b12474ba
[TS] Use Symbol.for for emitterSymbol & syncAwaitSymbol (#130)
* [TS] Export emitterSymbol & syncAwaitSymbol

* [TS] Use Symbol.for instead

* [TS] Rename symbol names

Co-authored-by: Amsyar Rasyiq <82711525+amsyarasyiq@users.noreply.github.com>

---------

Co-authored-by: Amsyar Rasyiq <82711525+amsyarasyiq@users.noreply.github.com>
2023-08-13 13:21:42 +01:00
Beef
1bce60d7ab [Metro] Remove now-useless import of the patcher 2023-08-04 02:28:51 +01:00
Beef
06dee4cefc [Metro] Fix for 191.3, courtesy of pylix
Co-authored-by: Amsyar Rasyiq <82711525+amsyarasyiq@users.noreply.github.com>
2023-08-04 02:25:50 +01:00
aliernfrog
cf09dbc1ac
[UI] Fix You tab settings on 189.4+ (#118)
* [UI] Fix You tab settings on 189.4+

* [UI > YouTab] Formatting

---------

Co-authored-by: Beef <beefers@riseup.net>
2023-07-23 23:47:11 +01:00
Gabe616
d0f88156e6 [TS] Add onCancel to ConfirmationAlertOptions 2023-07-19 01:40:33 +01:00
Amsyar Rasyiq
23715fa8a0
[UI > QuickInstall] Fix install sheets (#114)
Issue: They stripped Icon component's name, find would fail
2023-07-17 17:24:41 +01:00
amsyarasyiq
47761371f1 [UI] Fix TabsV2 issues
- Developer settings not appearing at all (still not reactive)
- Use React.memo with custom pages (as they does internally)
2023-07-17 16:35:01 +01:00
Gabe616
5c37b911a3
[UI > Plugins] Add unproxied plugin warning prompt (#101)
* [UI > Plugins] Add unproxied plugin warning prompt

* [UI > Plugins] Show msg if developer not enabled

* [UI > Plugins] Prettier-be-gone!

---------

Co-authored-by: Beef <beefers@riseup.net>
2023-07-09 01:33:54 +01:00
Beef
f2b67ee112 [UI > Toasts] Fix for recent versions 2023-06-03 15:08:04 +01:00
V
277401c752
[TS] Properly type __vendettaVersion (#78) 2023-05-30 19:03:49 +01:00
Beef
0f5dc8e854 [TS] Fix constants common module 2023-05-29 23:07:31 +01:00
Cynthia Foxwell
3083f8d53a
[Commands] Prevent patch from adding commands to all command types (#91)
* [Commands] Prevent patch from adding commands to all command types

* [Commands] Minor stylistic changes

---------

Co-authored-by: Beef <beefers@riseup.net>
2023-05-29 23:06:04 +01:00
Jack Matthews
028bb19080 [Metro > Common] Fix constants find
Discord renamed API_HOST to APP_URL_PREFIX in iOS build 44564,
breaking our constants find. Instead, we should use Fonts and Permissions
because those shouldn't ever be removed from constants.. right?
2023-05-26 11:08:26 +01:00
Beef
e99da222ad [UI > YouTab] Fix some of the glaring issues 2023-05-21 23:09:43 +01:00
Beef
fda8e31bb1 [UI > Settings] Complete overhaul, support You tab
You tab support has a few issues, namely:
* Text inputs automatically close the keyboard
* The Developer toggle is not reactive
* Plugins will need to update if they set navigation options in their settings, otherwise an infinite re-render occurs

Co-authored-by: Jack Matthews <jm5112356@gmail.com>
2023-05-21 01:04:53 +01:00
Cain Atkinson
bc03464da3
[Plugins] Allow plugins to still load if they fail to update (#85)
* [Plugins] allow plugins to load if they fail to update
On poor quality networks, plugins can fail to update. This shouldn't mean that they aren't loaded, however.

* [Plugins] Log fetch error to Debug Logs not console

---------

Co-authored-by: Beef <beefers@riseup.net>
2023-05-14 23:09:37 +01:00
Beef
24d6faa818 [Entry] Revert "Hook first module factory to init bundle"
This reverts commit 0dae5b17e5.
2023-05-13 17:33:22 +01:00
Beef
63fd59e826 [UI > AddonPage] Move back to FlatList 2023-05-13 00:15:11 +01:00
amsyarasyiq
0dae5b17e5 [Entry] Hook first module factory to init bundle 2023-05-12 20:25:03 +01:00
redstonekasi
f66e62d13b
[UI > QuickInstall] Please the Beef (#68) 2023-04-23 01:43:34 +01:00
redstonekasi
ea775736a2
[UI > QuickInstall] Add pop-up when clicking on links (#67) 2023-04-23 00:09:04 +01:00
Beef
3448a3b2cb [Plugins] Allow not exporting anything 2023-04-16 14:02:22 +01:00
Beef
fd741ded5d [Themes > Background] Prevent bad blur property values 2023-04-15 20:04:40 +01:00
Beef
85d0bd263b [Global] Code cleanup pass 2023-04-15 19:54:23 +01:00
Beef
ffbb507125 [Themes > Background] Improve patch 2023-04-15 18:15:23 +01:00
Amsyar Rasyiq
20310db733
[Themes] Implement chat background image (#64)
* [Themes] hardcode fuyu chat bg

* [Themes > BG] listen to theme file

* remove .apply()

* some uhh misc changes

* readd

* how

* [Global] Minor changes

---------

Co-authored-by: Beef <beefers@riseup.net>
2023-04-15 17:08:08 +01:00
Amsyar Rasyiq
ef0b162d3a
[Utils] Implement timeout for safeFetch (#62)
* implement timeout for safeFetch

* update typedef

---------

Co-authored-by: Beef <beefers@riseup.net>
2023-04-15 16:25:03 +01:00
Beef
b271240f76 [TS] Completely remove Indexable from Vendetta 2023-04-15 03:04:48 +01:00
Beef
32b3a0295c [UI] Overall overhaul 2023-04-15 02:57:03 +01:00
Beef
474aad2a47 [UI > Components] Move Search to our styled wrapper 2023-04-15 02:40:35 +01:00
Beef
fbfc7d0d0b [SafeMode] Reload was being unreliable for me, so add a timeout of 400ms 2023-04-15 01:46:33 +01:00
Beef
4d68c112bc [UI > Components] Add Discord's SafeAreaView 2023-04-15 00:49:59 +01:00
Beef
5344f0017a
[SafeMode] Initial implementation (#61)
* [UI > Components] Add Discord's button

* [SafeMode] Initial work, basic ErrorBoundary patch

* [SafeMode] Custom error boundary (#57)

* [SafeMode] Add mostly complete custom error boundary

* [SafeMode] Use Button from @ui/components in error boundary

* [SafeMode] Wrap the error boundary in our own error boundary

* [SafeMode > ErrorBoundary] Code-style changes

---------

Co-authored-by: Beef <beefers@riseup.net>

* [TS] Add basic type for Discord's button

* [UI] Move Codeblock to components, and use it

* [UI > Settings] Allow disabling the ErrorBoundary in CustomPage

* [UI > Settings] Move the ErrorBoundary triggers to Developer

* [TS] Add Codeblock to types

* [TS] Use ButtonColors in Button type

* [SafeMode > ErrorBoundary] Rework

* [UI] Add HelpMessage to components

* [SafeMode] Proper implementation

* [Global] SafeMode is optional (#59)

* [UI > Developer] Restore the balance

* [SafeMode > ErrorBoundary] Optimise for tablet UI

* [SafeMode] Last-minute fixes

---------

Co-authored-by: Jack <30497388+FieryFlames@users.noreply.github.com>
Co-authored-by: Jack Matthews <jm5112356@gmail.com>
2023-04-13 19:42:14 +01:00
Beef
f85fc4b00c [Plugins] Start immediately after fetch (closes #54) 2023-04-11 22:38:05 +01:00
Beef
0f912c28e7 [UI > Settings] Do not re-set render in CustomPage 2023-04-09 19:59:15 +01:00
Beef
c4a25744d4 [Utils > without] Move to util 2023-04-09 19:53:26 +01:00
Beef
f89238cfce [UI > Settings] Pass empty dependency array in CustomPage 2023-04-09 19:14:32 +01:00
Jack Matthews
4e1df66cc1 [Hotfix] Fix filePathFixer for iOS 174.0 and later 2023-04-08 19:14:25 +01:00
Beef
361b541ddc [Settings > Developer] Fix Asset Browser icon 2023-04-07 22:43:59 +01:00
Beef
48717d0e99 [TS] treetype-ts must explode 2023-04-07 00:06:05 +01:00
Beef
a6cb2d0be3 [UI > (Plugin/Theme)Card] Action sheet upgrades 2023-04-06 00:51:53 +01:00
Beef
cfdee54d8e [TS] Fix alerts API types 2023-04-06 00:09:30 +01:00
redstonekasi
5461065db8 [Global] Some changes and fixes 2023-04-06 00:00:00 +01:00
Beef
50755b2306 [Init] Rework entrypoint file 2023-04-05 20:54:14 +01:00
Beef
aff1c83e94 [Global] Tidy usage of native modules 2023-04-05 20:40:17 +01:00
Jack Matthews
10618ae217 [Hotfix] Destructure arguments for url quickinstall after checking key 2023-04-05 17:35:38 +01:00
Beef
c8f54c1b0c [Plugins] Delete plugin data on removal 2023-04-04 19:57:49 +01:00
Beef
c10355ef70 [Metro] Implement findByTypeName(All) 2023-04-04 19:45:53 +01:00
Beef
81fbf02ad9 [TS] Typing for createThemedStylesheet 2023-04-04 19:33:31 +01:00
redstonekasi
b7a3580ccf [UI > Settings] Fix for latest Discord releases 2023-04-04 16:59:08 +01:00