[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
This commit is contained in:
parent
c3f7d60d85
commit
9fb99ced74
10 changed files with 175 additions and 35 deletions
|
@ -1,2 +1,3 @@
|
|||
export const DISCORD_SERVER = "n9QQ4XhhJP";
|
||||
export const GITHUB = "https://github.com/vendetta-mod";
|
||||
export const GITHUB = "https://github.com/vendetta-mod";
|
||||
export const HTTP_REGEX = /^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)$/;
|
|
@ -11,6 +11,7 @@ import * as metro from "@metro/filters";
|
|||
import * as common from "@metro/common";
|
||||
import * as components from "@ui/components";
|
||||
import * as toasts from "@ui/toasts";
|
||||
import * as alerts from "@ui/alerts";
|
||||
import * as assets from "@ui/assets";
|
||||
import * as color from "@ui/color";
|
||||
import * as utils from "@utils";
|
||||
|
@ -30,6 +31,7 @@ export default async (unloads: any[]): Promise<VendettaObject> => ({
|
|||
ui: {
|
||||
components,
|
||||
toasts,
|
||||
alerts,
|
||||
assets,
|
||||
...color,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue