adding nexpid repo support by defualt (NOT FINISHED)
This commit is contained in:
parent
f9bb176140
commit
aa3c80de14
3 changed files with 8 additions and 15804 deletions
15799
dist/pupu-dev.js
vendored
15799
dist/pupu-dev.js
vendored
File diff suppressed because it is too large
Load diff
|
|
@ -5,7 +5,8 @@ import { dismissAlert, openAlert } from "@lib/ui/alerts";
|
|||
import { AlertActionButton } from "@lib/ui/components/wrappers";
|
||||
import { hideSheet, showSheet } from "@lib/ui/sheets";
|
||||
import { showToast } from "@lib/ui/toasts";
|
||||
import { OFFICIAL_PLUGINS_REPO_URL } from "@lib/utils/constants";
|
||||
import { OFFICIAL_BUNNY_PLUGINS_REPO_URL } from "@lib/utils/constants";
|
||||
import { NEXPID_PLUGINS_REPO_URL } from "@lib/utils/constants";
|
||||
import isValidHttpUrl from "@lib/utils/isValidHttpUrl";
|
||||
import { clipboard, NavigationNative } from "@metro/common";
|
||||
import { ActionSheet, AlertActions, AlertModal, Button, Card, FlashList, IconButton, Stack, TableRow, TableRowGroup, Text, TextInput } from "@metro/common/components";
|
||||
|
|
@ -199,11 +200,12 @@ function PluginBrowserOptions() {
|
|||
|
||||
function RepositoryRow(props: { url: string; }) {
|
||||
const repo = pluginRepositories[props.url];
|
||||
const isOfficial = props.url === OFFICIAL_PLUGINS_REPO_URL;
|
||||
const isOfficialBunny = props.url === OFFICIAL_BUNNY_PLUGINS_REPO_URL;
|
||||
const isNexpid = props.url === NEXPID_PLUGINS_REPO_URL;
|
||||
|
||||
return (
|
||||
<TableRow
|
||||
label={isOfficial ? "Bunny's Repository" : (repo.$meta?.name ?? "Unknown")}
|
||||
label={isOfficialBunny ? "Bunny's Repository" : (repo.$meta?.name ?? "Unknown")}
|
||||
subLabel={props.url}
|
||||
trailing={(
|
||||
<Stack direction="horizontal">
|
||||
|
|
@ -219,7 +221,7 @@ function RepositoryRow(props: { url: string; }) {
|
|||
<IconButton
|
||||
size="sm"
|
||||
variant="destructive"
|
||||
disabled={isOfficial}
|
||||
disabled={isOfficialBunny}
|
||||
icon={findAssetId("TrashIcon")}
|
||||
onPress={() => {
|
||||
openAlert("bunny-remove-repository", <AlertModal
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@ export const HTTP_REGEX_MULTI = /https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,25
|
|||
|
||||
export const BUNNY_PROXY_PREFIX = "https://bn-plugins.github.io/vd-proxy";
|
||||
|
||||
export const OFFICIAL_PLUGINS_REPO_URL = "https://bn-plugins.github.io/dist/repo.json";
|
||||
export const NEXPID_PLUGINS_REPO_URL = "https://revenge.nexpid.xyz";
|
||||
export const OFFICIAL_BUNNY_PLUGINS_REPO_URL = "https://bn-plugins.github.io/dist/repo.json";
|
||||
|
||||
export const VD_PROXY_PREFIX = "https://vd-plugins.github.io/proxy";
|
||||
export const VD_DISCORD_SERVER_ID = "1015931589865246730";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue