mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 10:57:04 -04:00
parent
48d4f3ad0d
commit
6b78ddb9f1
6 changed files with 18 additions and 73 deletions
|
@ -667,6 +667,10 @@ export const EquicordDevs = Object.freeze({
|
|||
name: "Fafa",
|
||||
id: 428188716641812481n,
|
||||
},
|
||||
Naibuu: {
|
||||
name: "hs50",
|
||||
id: 1120045713867423835n,
|
||||
},
|
||||
} satisfies Record<string, Dev>);
|
||||
|
||||
export const SuncordDevs = /* #__PURE__*/ Object.freeze({
|
||||
|
@ -708,21 +712,6 @@ export const SuncordDevs = /* #__PURE__*/ Object.freeze({
|
|||
},
|
||||
} satisfies Record<string, Dev>);
|
||||
|
||||
export const EquicordTeam = /* #__PURE__*/ Object.freeze({
|
||||
thororen: {
|
||||
name: "thororen",
|
||||
id: 848339671629299742n,
|
||||
},
|
||||
KrystalSkull: {
|
||||
name: "krystalskullofficial",
|
||||
id: 929208515883569182n,
|
||||
},
|
||||
Naibuu: {
|
||||
name: "hs50",
|
||||
id: 1120045713867423835n,
|
||||
},
|
||||
} satisfies Record<string, Dev>);
|
||||
|
||||
// iife so #__PURE__ works correctly
|
||||
export const VencordDevsById = /* #__PURE__*/ (() =>
|
||||
Object.freeze(Object.fromEntries(
|
||||
|
@ -747,11 +736,3 @@ export const SuncordDevsById = /* #__PURE__*/ (() =>
|
|||
.map(([_, v]) => [v.id, v] as const)
|
||||
))
|
||||
)() as Record<string, Dev>;
|
||||
|
||||
export const EquicordTeamById = /* #__PURE__*/ (() =>
|
||||
Object.freeze(Object.fromEntries(
|
||||
Object.entries(EquicordDevs)
|
||||
.filter(d => d[1].id !== 0n)
|
||||
.map(([_, v]) => [v.id, v] as const)
|
||||
))
|
||||
)() as Record<string, Dev>;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
import { Clipboard, Toasts } from "@webpack/common";
|
||||
|
||||
import { EquicordDevsById, EquicordTeamById, SuncordDevsById, VencordDevsById } from "./constants";
|
||||
import { EquicordDevsById, SuncordDevsById, VencordDevsById } from "./constants";
|
||||
|
||||
/**
|
||||
* Calls .join(" ") on the arguments
|
||||
|
@ -96,7 +96,6 @@ export const isMobile = navigator.userAgent.includes("Mobi");
|
|||
|
||||
export const isPluginDev = (id: string) => Object.hasOwn(VencordDevsById, id);
|
||||
export const isEquicordPluginDev = (id: string) => Object.hasOwn(EquicordDevsById, id);
|
||||
export const isEquicordTeamDev = (id: string) => Object.hasOwn(EquicordTeamById, id);
|
||||
export const isSuncordPluginDev = (id: string) => Object.hasOwn(SuncordDevsById, id);
|
||||
|
||||
export function pluralise(amount: number, singular: string, plural = singular + "s") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue