Commit graph

66 commits

Author SHA1 Message Date
amsyarasyiq
34bc869a07 Fix ContextMenu quirks
+ revert to old-ish overflow icon for Card component
2024-02-23 02:26:42 +08:00
amsyarasyiq
2fae29620a ui(Cards): use three dots for settings overflow 2024-02-11 21:06:15 +08:00
amsyarasyiq
89d698d045 ui(plugins): use ContextMenu 2024-02-09 12:33:39 +08:00
amsyarasyiq
d543317bca Rebrand to "Bunny" 2024-02-09 10:37:36 +08:00
amsyarasyiq
fa9b2a890e somewhat properly working reloadless theme 2024-02-08 16:57:50 +08:00
amsyarasyiq
f3537648d5 Rebranding and stuff 2024-02-08 14:52:05 +08:00
amsyarasyiq
10e86ec8d4 Half-assed reloadless theme changing
Only on the JS side for now, until the user restarts.
Wonders: this would work perfectly when the native side hooks the updateTheme to hook the native colors
2023-12-22 11:13:17 +08:00
amsyarasyiq
84abb4c9a7 fix themes and standardize copy toasts 2023-12-21 12:45:15 +08:00
amsyarasyiq
3bdf403264 real 2023-12-21 03:30:21 +08: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
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
Beef
63fd59e826 [UI > AddonPage] Move back to FlatList 2023-05-13 00:15:11 +01:00
Beef
85d0bd263b [Global] Code cleanup pass 2023-04-15 19:54:23 +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
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
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
Beef
aff1c83e94 [Global] Tidy usage of native modules 2023-04-05 20:40:17 +01:00
Beef
c8f54c1b0c [Plugins] Delete plugin data on removal 2023-04-04 19:57:49 +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
748640af56 [???] Whatever may this do? 2023-04-01 11:49:23 +01: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
Jack
13cf5e6872
[Utils] Remove copyText (#39)
[Cleanup] Fix imports
2023-03-20 20:11:27 +00:00
Beef
e1e8012e60 [UI > ThemeCard] Allow manually refetching theme 2023-03-19 18:52:17 +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
Beef
7d36903b2c [Global] Code cleanup pass 2023-02-26 22:56:36 +00:00
Jack
9fb99ced74
[UI] Alerts API (#21)
* [UI] Initial Alerts API

* [UI > Alerts] showCustomAlert and showInputAlert

* [Constants] Add HTTP_REGEX

* [UI > Plugins] Use InputAlert for installing plugins

* [UI > Plugins/PluginCard] Pass plugin index to PluginCard to add top margin

* [UI > Alerts] Fix indentation
2023-02-26 21:26:01 +00:00
Beef
c3f7d60d85 [UI] Implement and use ErrorBoundary 2023-02-26 02:20:01 +00:00
Beef
d6a8dd6710 [UI] Move color variables 2023-02-21 18:15:50 +00:00
Beef
3f3bfcb78c [UI] Export and use color variables 2023-02-20 22:42:11 +00:00
Beef
77dd4503b7 [Plugins] Properly handle errors in UI 2023-02-20 18:43:50 +00:00
Beef
46487d2aee [UI > PluginCard] Some needed fixes 2023-02-16 02:16:51 +00:00
Beef
97176f9d3f [Hotfix] Hopefully get Vendetta working 2023-02-13 23:44:32 +00:00
Beef
a97293673d [UI] Move to Discord's navigation stack 2023-02-04 22:37:28 +00:00
Beef
0ba9ee600c [Global] Major refactors, allow unloading! 2023-02-04 02:30:46 +00:00
redstonekasi
4c9fe8fcaf
[Storage] Rework everything (#10)
* [storage] rework everything

* [storage] expose createProxy

* [storage] add useProxy hook

* [storage] fix settings.ts

* [Storage] Implement wrapSync, fix UI

* [storage] fix storage

* [plugins] re-add plugin loading

* [storage] fix fix storage

* [storage] make wrapSync more magical

* [storage] save deletes

* [ui] hack around plugin removal... again

* [plugins] make plugin storage work

* [storage] expose api

---------

Co-authored-by: Beef <beefers@riseup.net>
2023-01-29 21:05:47 +00:00
Beef
af936940a0 [UI > PluginCard] Fix crash with icon 2023-01-16 08:11:46 +00:00
Beef
6764b07727 [UI > Subpage] Fix Tabs V2 crash 2023-01-14 16:05:37 +00:00
Beef
dee5ed0172 [UI] Overall cleanup and fixes 2023-01-14 02:41:28 +00:00
Beef
8dd1423440 [UI > PluginCard] Revert using state variables 2023-01-11 22:56:57 +00:00
Beef
93c4eef678 [Global] Refactors all around 2023-01-10 23:30:46 +00:00
Beef
01a05a8b9d [Storage] Expose settings on window, plugin storages 2023-01-10 22:05:40 +00:00
Beef
304757d374 [Settings] Overhaul 2023-01-10 08:05:56 +00:00
Beef
65d57a0f69 [UI] The great divide 2023-01-07 23:33:52 +00:00
Beef
0aea93ab52 [UI > PluginSettings] Fix non-uniform class names 2023-01-07 23:18:30 +00:00
Beef
4104d637f1 [Plugins] Proper persistence! 2023-01-07 23:05:14 +00:00
Beef
70a60a5b33 [Plugins] Finish plugin settings 2023-01-07 03:13:28 +00:00