Commit graph

192 commits

Author SHA1 Message Date
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
Jack
ba20db27d9
[Hotfix] Hide install theme when loader does not support themes (#47) 2023-04-04 02:20:42 +01:00
Jack
5148fdb15f
[UI > QuickInstall] Implement (#45)
* [UI > QuickInstall] Init

* [Constants] Update PROXY_PREFIX

* [TS] Type additional constants

* [Style] Move Metro filter imports to top of imports
2023-04-04 01:35:59 +01:00
Beef
3082c840c8 [???] And just like that, it's gone.
This reverts commit 748640af56.
2023-04-01 23:59:58 +01:00
Beef
21fc6e86a8 [Bugfix] Make themes refetch correctly 2023-04-01 16:21:41 +01:00
Beef
a9b8edd691 [Global] Fix for 173.14 2023-04-01 16:00:50 +01:00
Beef
748640af56 [???] Whatever may this do? 2023-04-01 11:49:23 +01:00
redstonekasi
a98cf94f4c [Global] Fixes for 173.13 2023-03-31 15:54:40 +01:00
Beef
ac4da3032e [Global] Fixes for latest Discord versions 2023-03-30 19:56:32 +01:00
Beef
9157cadec9 [Meta] Add manager to README 2023-03-28 20:37:10 +01:00
Jack Matthews
f5552e1ba6 [Metro] Switch findByDisplayName/All to use dNameFilter 2023-03-27 23:25:56 +01:00
Beef
ebbfe83674 [Metro] Actually use findByName :husk: 2023-03-23 23:14:13 +00:00
Jack
ef702fb5ca [UI > Card] Move most actions into overflow action sheet (#43)
* [Plugin/ThemeCard] Move most actions into overflow action sheet

* [UI > Card] Move overflow menu, add icon to header

---------

Co-authored-by: Beef <beefers@riseup.net>
2023-03-23 23:10:21 +00:00
Beef
72c9055b5a [Metro > Common] Add lodash to common modules 2023-03-22 21:24:55 +00:00
Amsyar Rasyiq
0bf2b58926
[Themes] Overhaul themes data process (#42)
* [Themes] Rewrite `resolveSemanticColor` patch

* [Themes] chroma.js & properly themes rawColors

* [Themes] Apply Android's color keys, import `@types/chroma.js`

* [Metro] Export chroma.js as a common module
2023-03-22 21:02:53 +00:00
Beef
4d10691ac1 [TS] Various cleanups 2023-03-20 21:30:13 +00:00
Jack
13cf5e6872
[Utils] Remove copyText (#39)
[Cleanup] Fix imports
2023-03-20 20:11:27 +00:00
Jack
e000d8384c
[Metro] Implement findByName (#35)
* [Metro] Correct findByDisplayName behavior

* [Metro] Temporarily revert findByDisplayName to name filter
This is to allow plugin developers to switch their plugins to use findByName
2023-03-20 08:09:25 +00:00
Beef
e1e8012e60 [UI > ThemeCard] Allow manually refetching theme 2023-03-19 18:52:17 +00:00
Beef
f4fd8328b5 [Themes] Properly theme raw colors 2023-03-19 17:46:57 +00:00
Beef
85a83e4873
[Themes] Implement (#34)
* [Themes] Initial work

* [Themes] Read from __vendetta_themes and early UI (#36)

* [Themes] Read from `__vendetta_themes`

* [Themes] Save as JSON and native theming

* [Themes] Basic UI

* [Themes] Merge processed theme data

* [Themes] Import ReactNative from `@lib/preinit`, oraganize imports

* [Themes] Some minor cleanup

* [Themes] UI overhaul

* [Themes] Minor adjustments

* [Themes] Implement updates, make UI reactive-ish

* [Themes] Move to new format

* [Themes > UI] Last-minute ThemeCard changes

* [Themes] Properly support AMOLED

---------

Co-authored-by: Amsyar Rasyiq <82711525+amsyarasyiq@users.noreply.github.com>
2023-03-17 21:58:37 +00:00
Amsyar Rasyiq
7dc0b1286a
[Init] Implement error dialog for failed mod loading (#37)
* [Main] Implement error dialog for failed mod loading

* [Main] Initialize Vendetta from entry.js
2023-03-15 16:36:12 +00:00
Beef
388b306e88 [CI] Restrict builds to rewrite branch 2023-03-10 23:44:31 +00:00
Beef
abe307ee57 [Bugfix] Fix AMOLED state on 170.2+ 2023-03-08 20:50:15 +00:00
redstonekasi
c54f9fe426
[Utils] Fix findInTree (#32) 2023-03-08 00:39:11 +00:00
Beef
2201ff3a1d [Bugfix] Fix forced Hindi timestamps 2023-03-07 23:12:41 +00:00
redstonekasi
293c256dc9 [Build] Fix __vendettaVersion 2023-03-07 08:11:34 +00:00
redstonekasi
3531132c38
[Build] Fix ErrorBoundary exporting (#30) 2023-03-07 00:23:16 +00:00
Jack
dc5ad0ca1f
[UI > Summary] Add animation (#29) 2023-03-04 22:33:00 +00:00
Jack
6dff7f7119
[UI] Open invite in modal (#28)
* [Metro > Common] Have url find openDeeplink

* [Constants] Make invite a URL

* [UI > General] Open invite modal
2023-03-04 21:32:30 +00:00
Beef
7d36903b2c [Global] Code cleanup pass 2023-02-26 22:56:36 +00:00