Commit graph

66 commits

Author SHA1 Message Date
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
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
748640af56 [???] Whatever may this do? 2023-04-01 11:49:23 +01: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
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
redstonekasi
c54f9fe426
[Utils] Fix findInTree (#32) 2023-03-08 00:39:11 +00:00
Jack
dc5ad0ca1f
[UI > Summary] Add animation (#29) 2023-03-04 22:33:00 +00:00
Beef
7d36903b2c [Global] Code cleanup pass 2023-02-26 22:56:36 +00:00
Beef
69c2544b99 [TS] Use correct types for components 2023-02-26 22:24:38 +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
redstonekasi
891a06a72b [TS] Add find and findAll types 2023-02-22 07:48:00 +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
605fd3d73f [Plugins] Give plugins their ID on VendettaPluginObject 2023-02-20 18:47:30 +00:00
Beef
6e75d64c05 [Plugins] Move plugin-specific logger 2023-02-19 22:29:25 +00:00
Jack Matthews
a13b6e210c [Plugins] Give plugins their own logger 2023-02-17 19:33:04 +00:00
Beef
307cf453f5 [TS] Some cleanup 2023-02-14 18:51:45 +00:00
Beef
1ede4e088e [Metro > Common] Properly type moment 2023-02-14 18:35:48 +00:00
Beef
9080769a0c [Metro > Common] Add moment to common modules 2023-02-14 18:33:42 +00:00
Beef
eb90b0a21d [Metro] Fixups and tidying 2023-02-14 18:28:51 +00:00
Beef
9989dfbf0d [TS] Type Summary component properly 2023-02-13 20:34:58 +00:00
Beef
2d6bf75871 [TS] Add missing definitions 2023-02-09 21:48:43 +00:00
redstonekasi
1840577fb5
[Global] Loader config and identity (#17)
* [TS] Add definition for DCDFileManager

* [Storage] Introduce backends

* [Settings] Add loader config

* [TS] Update storage definitions

* [TS] Update loader config and identity types

* [Loader] Expose loader config and identity

* [UI] Actually update UI for the new loader config fields
2023-02-06 07:48:55 +00:00
redstonekasi
b0df91db7a [TS] Add definition for findByStoreName 2023-02-05 12:45:50 +00:00
Beef
a97293673d [UI] Move to Discord's navigation stack 2023-02-04 22:37:28 +00:00
Jack
2f856b3a72
[TS] Type clipboard common module (#15)
* [TS] Type clipboard common module

* [TS] Add a _ to Clipboard for style
2023-02-04 18:44:33 +00:00
Beef
1891a46eb9 [Metro > Common] Add commands module 2023-02-04 17:11:50 +00:00
Beef
119060a43b [Utils] Reorganise 2023-02-04 17:05:47 +00:00
Beef
4108275946 [Utils > unfreeze] Actually expose 2023-02-04 02:37:36 +00:00
Beef
0be8cdac05 [TS] Update definitions to match API 2023-02-04 02:29:45 +00:00
redstonekasi
2e6f9e238a [TS] Add definition for plugin object 2023-01-30 23:15:18 +00:00
redstonekasi
9e34b8c1f3 [TS] findByDisplayName default export is optional 2023-01-30 23:15:18 +00:00
redstonekasi
473205a1ca [TS] Don't import Events 2023-01-30 19:17:00 +00:00
redstonekasi
b8e0e69fcb [Storage] Make methods properties in definition 2023-01-30 19:08:58 +00:00
redstonekasi
89b726cd97 [Storage] Add new API to window definition 2023-01-30 19:08:58 +00:00
Beef
44652c4002 [Plugins] Rework and refactor 2023-01-30 00:40:56 +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
Jack
7282d45d39
[Global] Basic commands api implementation (#9)
* [Global] Basic commands api implementation

* [Commands] Return unregister method when registering command

* [Commands] Code cleanup pass

Co-authored-by: Beef <beefers@riseup.net>
2023-01-25 08:28:48 +00:00
redstonekasi
71f687e345 [Types] Type MMKVManager 2023-01-17 00:07:11 +00:00
Beef
818573a228 [Storage] Move to MMKVManager 2023-01-16 23:08:09 +00:00
Beef
af936940a0 [UI > PluginCard] Fix crash with icon 2023-01-16 08:11:46 +00:00
Beef
66e84ecd8d [TS] Don't use specific PlatformConstants import 2023-01-14 16:24:14 +00:00
Beef
82e41a5c27 [TS] Properly type RN.Platform.constants 2023-01-14 16:05:08 +00:00