updater: pr changes
This commit is contained in:
parent
6ea90b6d4b
commit
fb7d14ce63
10 changed files with 12 additions and 13 deletions
|
|
@ -561,7 +561,7 @@ export function CspErrorCard() {
|
|||
const allowUrl = async (url: string) => {
|
||||
const { origin: baseUrl, host } = new URL(url);
|
||||
|
||||
const result = await VencordNative.csp.requestAddOverride(baseUrl, ["connect-src", "img-src", "style-src", "font-src"], "Vencord Themes");
|
||||
const result = await VencordNative.csp.requestAddOverride(baseUrl, ["connect-src", "img-src", "style-src", "font-src"], "Equicord Themes");
|
||||
if (result !== "ok") return;
|
||||
|
||||
CspBlockedUrls.forEach(url => {
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ async function runReporter() {
|
|||
}
|
||||
|
||||
// Imported in webpack for reporterData, wrap to avoid running reporter
|
||||
// Run after the Vencord object has been created.
|
||||
// We need to add extra properties to it, and it is only created after all of Vencord code has ran
|
||||
// Run after the Equicord object has been created.
|
||||
// We need to add extra properties to it, and it is only created after all of Equicord code has ran
|
||||
if (IS_REPORTER)
|
||||
setTimeout(runReporter, 0);
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ function VencordPopoutButton({ buttonClass }: { buttonClass: string; }) {
|
|||
ref={buttonRef}
|
||||
className={`vc-toolbox-btn ${buttonClass}`}
|
||||
onClick={() => setShow(v => !v)}
|
||||
tooltip={isShown ? null : "Vencord Toolbox"}
|
||||
tooltip={isShown ? null : "Equicord Toolbox"}
|
||||
icon={() => <Icon />}
|
||||
selected={isShown}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export async function getLyricsLrclib(track: Track): Promise<LyricsData | null>
|
|||
const url = `${baseUrlLrclib}?${params.toString()}`;
|
||||
const response = await fetch(url, {
|
||||
headers: {
|
||||
"User-Agent": "SpotifyLyrics for Vencord (https://github.com/Masterjoona/vc-spotifylyrics)"
|
||||
"User-Agent": "SpotifyLyrics for Equicord (https://github.com/Masterjoona/vc-spotifylyrics)"
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ export function NewPluginsModal({ modalProps, newPlugins, newSettings }: { modal
|
|||
|
||||
if (isRequired) {
|
||||
const tooltipText = p.required
|
||||
? "This plugin is required for Vencord to function."
|
||||
? "This plugin is required for Equicord to function."
|
||||
: makeDependencyList(depMap[p.name]?.filter(d => settings.plugins[d].enabled));
|
||||
|
||||
requiredPlugins.push(
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ async function addCspRule(_: IpcMainInvokeEvent, url: string, directives: string
|
|||
const { checkboxChecked, response } = await dialog.showMessageBox({
|
||||
...getMessage(url, directives, callerName),
|
||||
type: callerName ? "info" : "warning",
|
||||
title: "Vencord Host Permissions",
|
||||
title: "Equicord Host Permissions",
|
||||
buttons: ["Cancel", "Allow"],
|
||||
defaultId: 0,
|
||||
cancelId: 0,
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ async function calculateGitChanges() {
|
|||
|
||||
return data.commits.map((c: any) => ({
|
||||
hash: c.sha,
|
||||
author: c.author.login,
|
||||
author: c.author?.login ?? c.commit?.author?.name ?? "Ghost",
|
||||
message: c.commit.message.split("\n")[0]
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import { Link } from "@components/Link";
|
|||
import { Paragraph } from "@components/Paragraph";
|
||||
import { openSettingsTabModal, UpdaterTab } from "@components/settings";
|
||||
import { platformName } from "@equicordplugins/equicordHelper/utils";
|
||||
import { gitHashShort } from "@shared/vencordUserAgent";
|
||||
import { gitHash, gitHashShort } from "@shared/vencordUserAgent";
|
||||
import { CONTRIB_ROLE_ID, Devs, DONOR_ROLE_ID, EQUIBOP_CONTRIB_ROLE_ID, EQUICORD_TEAM, GUILD_ID, SUPPORT_CHANNEL_ID, SUPPORT_CHANNEL_IDS, VC_CONTRIB_ROLE_ID, VC_DONOR_ROLE_ID, VC_GUILD_ID, VC_REGULAR_ROLE_ID, VC_SUPPORT_CHANNEL_IDS, VENCORD_CONTRIB_ROLE_ID } from "@utils/constants";
|
||||
import { sendMessage } from "@utils/discord";
|
||||
import { Logger } from "@utils/Logger";
|
||||
|
|
@ -42,7 +42,6 @@ import { checkForUpdates, isOutdated, update } from "@utils/updater";
|
|||
import { Alerts, Button, ChannelStore, GuildMemberStore, Parser, PermissionsBits, PermissionStore, RelationshipStore, SelectedChannelStore, showToast, Toasts, UserStore } from "@webpack/common";
|
||||
import { JSX } from "react";
|
||||
|
||||
import gitHash from "~git-hash";
|
||||
import plugins, { PluginMeta } from "~plugins";
|
||||
|
||||
import SettingsPlugin from "./settings";
|
||||
|
|
@ -411,7 +410,7 @@ export default definePlugin({
|
|||
|
||||
return (
|
||||
<Card variant="warning" className={Margins.top8} defaultPadding>
|
||||
Please do not private message Vencord plugin developers for support!
|
||||
Please do not private message Equicord & Vencord plugin developers for support!
|
||||
<br />
|
||||
Instead, use the support channel: {Parser.parse("https://discord.com/channels/1173279886065029291/1297590739911573585")}
|
||||
{!ChannelStore.getChannel(SUPPORT_CHANNEL_ID) && " (Click the link to join)"}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ const settings = definePluginSettings({
|
|||
description: "Where to show the game activity toggle button",
|
||||
options: [
|
||||
{ label: "Next to Mute/Deafen", value: "PANEL", default: true },
|
||||
{ label: "Vencord Toolbox", value: "TOOLBOX" }
|
||||
{ label: "Equicord Toolbox", value: "TOOLBOX" }
|
||||
],
|
||||
get hidden() {
|
||||
return !isPluginEnabled(equicordToolbox.name);
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ export const TranslateChatBarIcon: ChatBarButtonFactory = ({ isMainChat }) => {
|
|||
settings.store.autoTranslate = newState;
|
||||
if (newState && settings.store.showAutoTranslateAlert !== false)
|
||||
Alerts.show({
|
||||
title: "Vencord Auto-Translate Enabled",
|
||||
title: "Equicord Auto-Translate Enabled",
|
||||
body: <>
|
||||
<Paragraph>
|
||||
You just enabled Auto Translate! Any message <b>will automatically be translated</b> before being sent.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue