mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 05:13:29 -05:00
Some porting
This commit is contained in:
parent
89c4e489f5
commit
ea8c134159
24 changed files with 111 additions and 100 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,6 +3,7 @@ node_modules
|
|||
|
||||
*.exe
|
||||
vencord_installer
|
||||
equicord_installer
|
||||
|
||||
.idea
|
||||
.DS_Store
|
||||
|
|
|
@ -37,7 +37,7 @@ const NOOP_ASYNC = async () => { };
|
|||
|
||||
const setCssDebounced = debounce((css: string) => VencordNative.quickCss.set(css));
|
||||
|
||||
const themeStore = DataStore.createStore("VencordThemes", "VencordThemeData");
|
||||
const themeStore = DataStore.createStore("EquicordThemes", "VencordThemeData");
|
||||
|
||||
// probably should make this less cursed at some point
|
||||
window.VencordNative = {
|
||||
|
@ -98,13 +98,13 @@ window.VencordNative = {
|
|||
settings: {
|
||||
get: () => {
|
||||
try {
|
||||
return JSON.parse(localStorage.getItem("VencordSettings") || "{}");
|
||||
return JSON.parse(localStorage.getItem("EquicordSettings") || "{}");
|
||||
} catch (e) {
|
||||
console.error("Failed to parse settings from localStorage: ", e);
|
||||
return {};
|
||||
}
|
||||
},
|
||||
set: async (s: Settings) => localStorage.setItem("VencordSettings", JSON.stringify(s)),
|
||||
set: async (s: Settings) => localStorage.setItem("EquicordSettings", JSON.stringify(s)),
|
||||
getSettingsDir: async () => "LocalStorage"
|
||||
},
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// ==UserScript==
|
||||
// @name Vencord
|
||||
// @name Equicord
|
||||
// @description A Discord client mod - Web version
|
||||
// @version %version%
|
||||
// @author Vendicated (https://github.com/Vendicated)
|
||||
// @namespace https://github.com/Vendicated/Vencord
|
||||
// @supportURL https://github.com/Vendicated/Vencord
|
||||
// @author Equicord (https://github.com/Equicord)
|
||||
// @namespace https://github.com/Equicord/Equicord
|
||||
// @supportURL https://github.com/Equicord/Equicord
|
||||
// @license GPL-3.0
|
||||
// @match *://*.discord.com/*
|
||||
// @grant GM_xmlhttpRequest
|
||||
|
@ -21,4 +21,4 @@
|
|||
// to overwrite stuff on the window on sites that use CSP. Use Tampermonkey or use a chromium based browser
|
||||
// https://github.com/violentmonkey/violentmonkey/issues/997
|
||||
|
||||
// this is a compiled and minified version of Vencord. For the source code, visit the GitHub repo
|
||||
// this is a compiled and minified version of Equicord. For the source code, visit the GitHub repo
|
||||
|
|
|
@ -42,11 +42,11 @@ export const IS_REPORTER = process.argv.includes("--reporter");
|
|||
export const IS_STANDALONE = process.argv.includes("--standalone");
|
||||
|
||||
export const IS_UPDATER_DISABLED = process.argv.includes("--disable-updater");
|
||||
export const gitHash = process.env.VENCORD_HASH || execSync("git rev-parse --short HEAD", { encoding: "utf-8" }).trim();
|
||||
export const gitHash = process.env.EQUICORD_HASH || execSync("git rev-parse --short HEAD", { encoding: "utf-8" }).trim();
|
||||
|
||||
export const banner = {
|
||||
js: `
|
||||
// Vencord ${gitHash}
|
||||
// Equicord ${gitHash}
|
||||
// Standalone: ${IS_STANDALONE}
|
||||
// Platform: ${IS_STANDALONE === false ? process.platform : "Universal"}
|
||||
// Updater Disabled: ${IS_UPDATER_DISABLED}
|
||||
|
@ -191,7 +191,7 @@ export const gitRemotePlugin = {
|
|||
namespace: "git-remote", path: args.path
|
||||
}));
|
||||
build.onLoad({ filter, namespace: "git-remote" }, async () => {
|
||||
let remote = process.env.VENCORD_REMOTE;
|
||||
let remote = process.env.EQUICORD_REMOTE;
|
||||
if (!remote) {
|
||||
const res = await promisify(exec)("git remote get-url origin", { encoding: "utf-8" });
|
||||
remote = res.stdout.trim()
|
||||
|
|
|
@ -199,11 +199,11 @@ page.on("console", async e => {
|
|||
|
||||
const firstArg = await rawArgs[0]?.jsonValue();
|
||||
|
||||
const isVencord = firstArg === "[Vencord]";
|
||||
const isEquicord = firstArg === "[Equicord]";
|
||||
const isDebug = firstArg === "[PUP_DEBUG]";
|
||||
|
||||
outer:
|
||||
if (isVencord) {
|
||||
if (isEquicord) {
|
||||
try {
|
||||
var args = await Promise.all(e.args().map(a => a.jsonValue()));
|
||||
} catch {
|
||||
|
|
|
@ -25,8 +25,8 @@ import { Readable } from "stream";
|
|||
import { finished } from "stream/promises";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
const BASE_URL = "https://github.com/Vencord/Installer/releases/latest/download/";
|
||||
const INSTALLER_PATH_DARWIN = "VencordInstaller.app/Contents/MacOS/VencordInstaller";
|
||||
const BASE_URL = "https://github.com/Equicord/Installer/releases/latest/download/";
|
||||
const INSTALLER_PATH_DARWIN = "EquicordInstaller.app/Contents/MacOS/EquicordInstaller";
|
||||
|
||||
const BASE_DIR = join(dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const FILE_DIR = join(BASE_DIR, "dist", "Installer");
|
||||
|
@ -35,11 +35,11 @@ const ETAG_FILE = join(FILE_DIR, "etag.txt");
|
|||
function getFilename() {
|
||||
switch (process.platform) {
|
||||
case "win32":
|
||||
return "VencordInstallerCli.exe";
|
||||
return "EquicordInstallerCli.exe";
|
||||
case "darwin":
|
||||
return "VencordInstaller.MacOS.zip";
|
||||
return "EquicordInstaller.MacOS.zip";
|
||||
case "linux":
|
||||
return "VencordInstaller-linux";
|
||||
return "EquicordInstaller-linux";
|
||||
default:
|
||||
throw new Error("Unsupported platform: " + process.platform);
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ async function ensureBinary() {
|
|||
|
||||
const downloadName = join(FILE_DIR, filename);
|
||||
const outputFile = process.platform === "darwin"
|
||||
? join(FILE_DIR, "VencordInstaller")
|
||||
? join(FILE_DIR, "EquicordInstaller")
|
||||
: downloadName;
|
||||
|
||||
const etag = existsSync(outputFile) && existsSync(ETAG_FILE)
|
||||
|
@ -62,7 +62,7 @@ async function ensureBinary() {
|
|||
|
||||
const res = await fetch(BASE_URL + filename, {
|
||||
headers: {
|
||||
"User-Agent": "Vencord (https://github.com/Vendicated/Vencord)",
|
||||
"User-Agent": "Equicord (https://github.com/Equicord/Equicord)",
|
||||
"If-None-Match": etag
|
||||
}
|
||||
});
|
||||
|
@ -96,7 +96,7 @@ async function ensureBinary() {
|
|||
execSync(cmd);
|
||||
} catch { }
|
||||
};
|
||||
logAndRun(`sudo spctl --add '${outputFile}' --label "Vencord Installer"`);
|
||||
logAndRun(`sudo spctl --add '${outputFile}' --label "Equicord Installer"`);
|
||||
logAndRun(`sudo xattr -d com.apple.quarantine '${outputFile}'`);
|
||||
} else {
|
||||
// WHY DOES NODE FETCH RETURN A WEB STREAM OH MY GOD
|
||||
|
@ -123,8 +123,8 @@ try {
|
|||
stdio: "inherit",
|
||||
env: {
|
||||
...process.env,
|
||||
VENCORD_USER_DATA_DIR: BASE_DIR,
|
||||
VENCORD_DEV_INSTALL: "1"
|
||||
EQUICORD_USER_DATA_DIR: BASE_DIR,
|
||||
EQUICORD_DEV_INSTALL: "1"
|
||||
}
|
||||
});
|
||||
} catch {
|
||||
|
|
|
@ -58,7 +58,7 @@ async function syncSettings() {
|
|||
body: "We've noticed you have cloud integrations enabled in another client! Due to limitations, you will " +
|
||||
"need to re-authenticate to continue using them. Click here to go to the settings page to do so!",
|
||||
color: "var(--yellow-360)",
|
||||
onClick: () => SettingsRouter.open("VencordCloud")
|
||||
onClick: () => SettingsRouter.open("EquicordCloud")
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ export function nextNotice() {
|
|||
currentNotice = noticesQueue.shift();
|
||||
|
||||
if (currentNotice) {
|
||||
NoticesModule.show(...currentNotice, "VencordNotice");
|
||||
NoticesModule.show(...currentNotice, "EquicordNotice");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ import {
|
|||
SettingTextComponent
|
||||
} from "./components";
|
||||
import { openContributorModal } from "./ContributorModal";
|
||||
import { GithubButton, WebsiteButton } from "./LinkIconButton";
|
||||
import { GithubButton } from "./LinkIconButton";
|
||||
|
||||
const cl = classNameFactory("vc-plugin-modal-");
|
||||
|
||||
|
@ -226,10 +226,6 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti
|
|||
<Forms.FormText className={cl("description")}>{plugin.description}</Forms.FormText>
|
||||
{!pluginMeta.userPlugin && (
|
||||
<div className="vc-settings-modal-links">
|
||||
<WebsiteButton
|
||||
text="View more info"
|
||||
href={`https://vencord.dev/plugins/${plugin.name}`}
|
||||
/>
|
||||
<GithubButton
|
||||
text="View source code"
|
||||
href={`https://github.com/${gitRemote}/tree/main/src/plugins/${pluginMeta.folderName}`}
|
||||
|
|
|
@ -181,7 +181,7 @@ function ExcludedPluginsList({ search }: { search: string; }) {
|
|||
discordDesktop: "Discord Desktop app",
|
||||
vencordDesktop: "Vesktop app",
|
||||
web: "Vesktop app and the Web version of Discord",
|
||||
dev: "Developer version of Vencord"
|
||||
dev: "Developer version of Equicord"
|
||||
};
|
||||
|
||||
return (
|
||||
|
@ -296,7 +296,7 @@ export default function PluginSettings() {
|
|||
|
||||
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(
|
||||
|
|
|
@ -123,7 +123,7 @@ function CloudTab() {
|
|||
<SettingsTab title="Equicord Cloud">
|
||||
<Forms.FormSection title="Cloud Settings" className={Margins.top16}>
|
||||
<Forms.FormText variant="text-md/normal" className={Margins.bottom20}>
|
||||
Vencord comes with a cloud integration that adds goodies like settings sync across devices.
|
||||
Equicord comes with the Vencord cloud integration that adds goodies like settings sync across devices.
|
||||
It <Link href="https://vencord.dev/cloud/privacy">respects your privacy</Link>, and
|
||||
the <Link href="https://github.com/Vencord/Backend">source code</Link> is AGPL 3.0 licensed so you
|
||||
can host it yourself.
|
||||
|
|
|
@ -27,7 +27,7 @@ export function NotificationSettings() {
|
|||
<Forms.FormText className={Margins.bottom8}>
|
||||
Some plugins may show you notifications. These come in two styles:
|
||||
<ul>
|
||||
<li><strong>Vencord Notifications</strong>: These are in-app notifications</li>
|
||||
<li><strong>Equicord Notifications</strong>: These are in-app notifications</li>
|
||||
<li><strong>Desktop Notifications</strong>: Native Desktop notifications (like when you get a ping)</li>
|
||||
</ul>
|
||||
</Forms.FormText>
|
||||
|
@ -36,7 +36,7 @@ export function NotificationSettings() {
|
|||
options={[
|
||||
{ label: "Only use Desktop notifications when Discord is not focused", value: "not-focused", default: true },
|
||||
{ label: "Always use Desktop notifications", value: "always" },
|
||||
{ label: "Always use Vencord notifications", value: "never" },
|
||||
{ label: "Always use Equicord notifications", value: "never" },
|
||||
] satisfies Array<{ value: typeof settings["useNative"]; } & Record<string, any>>}
|
||||
closeOnSelect={true}
|
||||
select={v => settings.useNative = v}
|
||||
|
|
|
@ -43,7 +43,7 @@ type KeysOfType<Object, Type> = {
|
|||
}[keyof Object];
|
||||
|
||||
|
||||
function VencordSettings() {
|
||||
function EquicordSettings() {
|
||||
const [settingsDir, , settingsDirPending] = useAwaiter(VencordNative.settings.getSettingsDir, {
|
||||
fallbackValue: "Loading..."
|
||||
});
|
||||
|
@ -225,7 +225,7 @@ function VencordSettings() {
|
|||
serialize={identity} />
|
||||
</>}
|
||||
|
||||
<Forms.FormSection className={Margins.top16} title="Vencord Notifications" tag="h5">
|
||||
<Forms.FormSection className={Margins.top16} title="Equicord Notifications" tag="h5">
|
||||
<Flex>
|
||||
<Button onClick={openNotificationSettingsModal}>
|
||||
Notification Settings
|
||||
|
@ -266,4 +266,4 @@ function DonateCard({ image }: DonateCardProps) {
|
|||
);
|
||||
}
|
||||
|
||||
export default wrapTab(VencordSettings, "Equicord Settings");
|
||||
export default wrapTab(EquicordSettings, "Equicord Settings");
|
||||
|
|
|
@ -56,7 +56,6 @@ export default definePlugin({
|
|||
|
||||
|
||||
start() {
|
||||
console.log("Well hello there!, CustomAppIcons has started :)");
|
||||
const appIcons = JSON.parse(localStorage.getItem("vc_app_icons") ?? "[]");
|
||||
for (const icon of appIcons) {
|
||||
findByProps("UZ", "QA").UZ.push(icon);
|
||||
|
@ -88,12 +87,12 @@ export default definePlugin({
|
|||
<><Forms.FormTitle>
|
||||
<Forms.FormTitle>How to use?</Forms.FormTitle>
|
||||
</Forms.FormTitle>
|
||||
<Forms.FormText>
|
||||
<Forms.FormText>Go to <Link href="/settings/appearance" onClick={e => { e.preventDefault(); closeAllModals(); FluxDispatcher.dispatch({ type: "USER_SETTINGS_MODAL_SET_SECTION", section: "Appearance" }); }}>Appearance Settings</Link> tab.</Forms.FormText>
|
||||
<Forms.FormText>Scroll down to "In-app Icons" and click on "Preview App Icon".</Forms.FormText>
|
||||
<Forms.FormText>And upload your own custom icon!</Forms.FormText>
|
||||
<Forms.FormText>You can only use links when you are uploading your Custom Icon.</Forms.FormText>
|
||||
</Forms.FormText></>
|
||||
<Forms.FormText>
|
||||
<Forms.FormText>Go to <Link href="/settings/appearance" onClick={e => { e.preventDefault(); closeAllModals(); FluxDispatcher.dispatch({ type: "USER_SETTINGS_MODAL_SET_SECTION", section: "Appearance" }); }}>Appearance Settings</Link> tab.</Forms.FormText>
|
||||
<Forms.FormText>Scroll down to "In-app Icons" and click on "Preview App Icon".</Forms.FormText>
|
||||
<Forms.FormText>And upload your own custom icon!</Forms.FormText>
|
||||
<Forms.FormText>You can only use links when you are uploading your Custom Icon.</Forms.FormText>
|
||||
</Forms.FormText></>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1197,14 +1197,14 @@
|
|||
|
||||
.dc-colorway-settings::before {
|
||||
/* stylelint-disable-next-line property-no-vendor-prefix */
|
||||
-webkit-mask: var(--si-vencordsettings) center/contain no-repeat !important;
|
||||
mask: var(--si-vencordsettings) center/contain no-repeat !important
|
||||
-webkit-mask: var(--si-equicordsettings) center/contain no-repeat !important;
|
||||
mask: var(--si-equicordsettings) center/contain no-repeat !important
|
||||
}
|
||||
|
||||
.dc-colorway-ondemand::before {
|
||||
/* stylelint-disable-next-line property-no-vendor-prefix */
|
||||
-webkit-mask: var(--si-vencordupdater) center/contain no-repeat !important;
|
||||
mask: var(--si-vencordupdater) center/contain no-repeat !important
|
||||
-webkit-mask: var(--si-equicordupdater) center/contain no-repeat !important;
|
||||
mask: var(--si-equicordupdater) center/contain no-repeat !important
|
||||
}
|
||||
|
||||
.dc-colorway-sources-manager::before {
|
||||
|
|
56
src/equicordplugins/equicordCSS/css/main.min.css
vendored
56
src/equicordplugins/equicordCSS/css/main.min.css
vendored
|
@ -54,13 +54,13 @@
|
|||
--si-textplayground: url(https://minidiscordthemes.github.io/SettingsIcons/svg/textplayground.svg);
|
||||
--si-textcomponent: url(https://minidiscordthemes.github.io/SettingsIcons/svg/textcomponent.svg);
|
||||
--si-logout: url(https://minidiscordthemes.github.io/SettingsIcons/svg/logout.svg);
|
||||
--si-vencordsettings: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vencordsettings.svg);
|
||||
--si-vencordplugins: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vencordplugins.svg);
|
||||
--si-vencordthemes: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vencordthemes.svg);
|
||||
--si-vencordupdater: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vencordupdater.svg);
|
||||
--si-vencordcloud: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vencordcloud.svg);
|
||||
--si-vencordsettingssync: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vencordsettingssync.svg);
|
||||
--si-vencordpatchhelper: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vencordpatchhelper.svg);
|
||||
--si-equicordsettings: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vencordsettings.svg);
|
||||
--si-equicordplugins: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vencordplugins.svg);
|
||||
--si-equicordthemes: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vencordthemes.svg);
|
||||
--si-equicordupdater: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vencordupdater.svg);
|
||||
--si-equicordcloud: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vencordcloud.svg);
|
||||
--si-equicordsettingssync: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vencordsettingssync.svg);
|
||||
--si-equicordpatchhelper: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vencordpatchhelper.svg);
|
||||
--si-vesktop: url(https://minidiscordthemes.github.io/SettingsIcons/svg/vesktop.svg);
|
||||
--si-overview: url(https://minidiscordthemes.github.io/SettingsIcons/svg/overview.svg);
|
||||
--si-roles: url(https://minidiscordthemes.github.io/SettingsIcons/svg/roles.svg);
|
||||
|
@ -280,33 +280,33 @@
|
|||
-webkit-mask:var(--si-logout) center/contain no-repeat;
|
||||
mask:var(--si-logout) center/contain no-repeat
|
||||
}
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=VencordSettings]::before{
|
||||
-webkit-mask:var(--si-vencordsettings) center/contain no-repeat;
|
||||
mask:var(--si-vencordsettings) center/contain no-repeat
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=EquicordSettings]::before{
|
||||
-webkit-mask:var(--si-equicordsettings) center/contain no-repeat;
|
||||
mask:var(--si-equicordsettings) center/contain no-repeat
|
||||
}
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=VencordPlugins]::before{
|
||||
-webkit-mask:var(--si-vencordplugins) center/contain no-repeat;
|
||||
mask:var(--si-vencordplugins) center/contain no-repeat
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=EquicordPlugins]::before{
|
||||
-webkit-mask:var(--si-equicordplugins) center/contain no-repeat;
|
||||
mask:var(--si-equicordplugins) center/contain no-repeat
|
||||
}
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=VencordThemes]::before{
|
||||
-webkit-mask:var(--si-vencordthemes) center/contain no-repeat;
|
||||
mask:var(--si-vencordthemes) center/contain no-repeat
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=EquicordThemes]::before{
|
||||
-webkit-mask:var(--si-equicordthemes) center/contain no-repeat;
|
||||
mask:var(--si-equicordthemes) center/contain no-repeat
|
||||
}
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=VencordUpdater]::before{
|
||||
-webkit-mask:var(--si-vencordupdater) center/contain no-repeat;
|
||||
mask:var(--si-vencordupdater) center/contain no-repeat
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=EquicordUpdater]::before{
|
||||
-webkit-mask:var(--si-equicordupdater) center/contain no-repeat;
|
||||
mask:var(--si-equicordupdater) center/contain no-repeat
|
||||
}
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=VencordCloud]::before{
|
||||
-webkit-mask:var(--si-vencordcloud) center/contain no-repeat;
|
||||
mask:var(--si-vencordcloud) center/contain no-repeat
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=EquicordCloud]::before{
|
||||
-webkit-mask:var(--si-equicordcloud) center/contain no-repeat;
|
||||
mask:var(--si-equicordcloud) center/contain no-repeat
|
||||
}
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=VencordSettingsSync]::before{
|
||||
-webkit-mask:var(--si-vencordsettingssync) center/contain no-repeat;
|
||||
mask:var(--si-vencordsettingssync) center/contain no-repeat
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=EquicordSettingsSync]::before{
|
||||
-webkit-mask:var(--si-equicordsettingssync) center/contain no-repeat;
|
||||
mask:var(--si-equicordsettingssync) center/contain no-repeat
|
||||
}
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=VencordPatchHelper]::before{
|
||||
-webkit-mask:var(--si-vencordpatchhelper) center/contain no-repeat;
|
||||
mask:var(--si-vencordpatchhelper) center/contain no-repeat
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=EquicordPatchHelper]::before{
|
||||
-webkit-mask:var(--si-equicordpatchhelper) center/contain no-repeat;
|
||||
mask:var(--si-equicordpatchhelper) center/contain no-repeat
|
||||
}
|
||||
.sidebar_c25c6d .side_a0 .item_a0[data-tab-id=Vesktop]::before{
|
||||
-webkit-mask:var(--si-vesktop) center/contain no-repeat;
|
||||
|
|
|
@ -16,16 +16,31 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Settings } from "@api/Settings";
|
||||
import { Devs } from "@utils/constants";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
|
||||
const sounds = {
|
||||
click1: new Audio("https://github.com/HypedDomi/Vencord-Plugins/raw/main/Keyboard-Sounds/sounds/click1.wav"),
|
||||
click2: new Audio("https://github.com/HypedDomi/Vencord-Plugins/raw/main/Keyboard-Sounds/sounds/click2.wav"),
|
||||
click3: new Audio("https://github.com/HypedDomi/Vencord-Plugins/raw/main/Keyboard-Sounds/sounds/click3.wav"),
|
||||
backspace: new Audio("https://github.com/HypedDomi/Vencord-Plugins/raw/main/Keyboard-Sounds/sounds/backspace.wav")
|
||||
let click1, click2, click3, backspace;
|
||||
let sounds = {
|
||||
click1,
|
||||
click2,
|
||||
click3,
|
||||
backspace
|
||||
};
|
||||
|
||||
if (Settings.plugins.KeyboardSounds.enabled) {
|
||||
click1 = new Audio("https://github.com/HypedDomi/Vencord-Plugins/raw/main/Keyboard-Sounds/sounds/click1.wav");
|
||||
click2 = new Audio("https://github.com/HypedDomi/Vencord-Plugins/raw/main/Keyboard-Sounds/sounds/click2.wav");
|
||||
click3 = new Audio("https://github.com/HypedDomi/Vencord-Plugins/raw/main/Keyboard-Sounds/sounds/click3.wav");
|
||||
backspace = new Audio("https://github.com/HypedDomi/Vencord-Plugins/raw/main/Keyboard-Sounds/sounds/backspace.wav");
|
||||
sounds = {
|
||||
click1,
|
||||
click2,
|
||||
click3,
|
||||
backspace,
|
||||
};
|
||||
}
|
||||
|
||||
const ignoredKeys = ["CapsLock", "ShiftLeft", "ShiftRight", "ControlLeft", "ControlRight", "AltLeft", "AltRight", "MetaLeft", "MetaRight", "ArrowUp", "ArrowRight", "ArrowLeft", "ArrowDown", "MediaPlayPause", "MediaStop", "MediaTrackNext", "MediaTrackPrevious", "MediaSelect", "MediaEject", "MediaVolumeUp", "MediaVolumeDown", "AudioVolumeUp", "AudioVolumeDown"];
|
||||
|
||||
const keydown = (e: KeyboardEvent) => {
|
||||
|
|
|
@ -58,8 +58,8 @@ if (IS_VESKTOP || !IS_VANILLA) {
|
|||
try {
|
||||
if (RendererSettings.store.enableReactDevtools)
|
||||
installExt("fmkadmapgofadopljbjfkapdkoienihi")
|
||||
.then(() => console.info("[Vencord] Installed React Developer Tools"))
|
||||
.catch(err => console.error("[Vencord] Failed to install React Developer Tools", err));
|
||||
.then(() => console.info("[Equicord] Installed React Developer Tools"))
|
||||
.catch(err => console.error("[Equicord] Failed to install React Developer Tools", err));
|
||||
} catch { }
|
||||
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ function patchLatest() {
|
|||
|
||||
if (!existsSync(app) || statSync(app).isDirectory()) return;
|
||||
|
||||
console.info("[Vencord] Detected Host Update. Repatching...");
|
||||
console.info("[Equicord] Detected Host Update. Repatching...");
|
||||
|
||||
renameSync(app, _app);
|
||||
mkdirSync(app);
|
||||
|
@ -61,7 +61,7 @@ function patchLatest() {
|
|||
}));
|
||||
writeFileSync(join(app, "index.js"), `require(${JSON.stringify(join(__dirname, "patcher.js"))});`);
|
||||
} catch (err) {
|
||||
console.error("[Vencord] Failed to repatch latest host update", err);
|
||||
console.error("[Equicord] Failed to repatch latest host update", err);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import { initIpc } from "./ipcMain";
|
|||
import { RendererSettings } from "./settings";
|
||||
import { IS_VANILLA } from "./utils/constants";
|
||||
|
||||
console.log("[Vencord] Starting up...");
|
||||
console.log("[Equicord] Starting up...");
|
||||
|
||||
// Our injector file at app/index.js
|
||||
const injectorPath = require.main!.filename;
|
||||
|
@ -154,8 +154,8 @@ if (!IS_VANILLA) {
|
|||
app.commandLine.appendSwitch("disable-background-timer-throttling");
|
||||
app.commandLine.appendSwitch("disable-backgrounding-occluded-windows");
|
||||
} else {
|
||||
console.log("[Vencord] Running in vanilla mode. Not loading Vencord");
|
||||
console.log("[Equicord] Running in vanilla mode. Not loading Equicord");
|
||||
}
|
||||
|
||||
console.log("[Vencord] Loading original Discord app.asar");
|
||||
console.log("[Equicord] Loading original Discord app.asar");
|
||||
require(require.main!.filename);
|
||||
|
|
|
@ -34,7 +34,7 @@ export default definePlugin({
|
|||
},
|
||||
{
|
||||
match: /(?<=,NOTICE_DISMISS:function\(\i\){)return null!=(\i)/,
|
||||
replace: "if($1.id==\"VencordNotice\")return($1=null,Vencord.Api.Notices.nextNotice(),true);$&"
|
||||
replace: "if($1.id==\"EquicordNotice\")return($1=null,Vencord.Api.Notices.nextNotice(),true);$&"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -100,43 +100,43 @@ export default definePlugin({
|
|||
className: "vc-settings-header"
|
||||
},
|
||||
{
|
||||
section: "VencordSettings",
|
||||
section: "EquicordSettings",
|
||||
label: "Equicord",
|
||||
element: VencordTab,
|
||||
className: "vc-settings"
|
||||
},
|
||||
{
|
||||
section: "VencordPlugins",
|
||||
section: "EquicordPlugins",
|
||||
label: "Plugins",
|
||||
element: PluginsTab,
|
||||
className: "vc-plugins"
|
||||
},
|
||||
{
|
||||
section: "VencordThemes",
|
||||
section: "EquicordThemes",
|
||||
label: "Themes",
|
||||
element: require("@components/ThemeSettings/ThemesTab").default,
|
||||
className: "vc-themes"
|
||||
},
|
||||
!IS_UPDATER_DISABLED && {
|
||||
section: "VencordUpdater",
|
||||
section: "EquicordUpdater",
|
||||
label: "Updater",
|
||||
element: UpdaterTab,
|
||||
className: "vc-updater"
|
||||
},
|
||||
{
|
||||
section: "VencordCloud",
|
||||
section: "EquicordCloud",
|
||||
label: "Cloud",
|
||||
element: CloudTab,
|
||||
className: "vc-cloud"
|
||||
},
|
||||
{
|
||||
section: "VencordSettingsSync",
|
||||
section: "EquicordSettingsSync",
|
||||
label: "Backup & Restore",
|
||||
element: BackupAndRestoreTab,
|
||||
className: "vc-backup-restore"
|
||||
},
|
||||
{
|
||||
section: "VencordPatchHelper",
|
||||
section: "EquicordPatchHelper",
|
||||
label: "Patch Helper",
|
||||
element: PatchHelperTab,
|
||||
className: "vc-patch-helper"
|
||||
|
|
|
@ -53,9 +53,9 @@ interface IVoiceChannelEffectSendEvent {
|
|||
|
||||
const MOYAI = "🗿";
|
||||
const MOYAI_URL =
|
||||
"https://raw.githubusercontent.com/MeguminSama/VencordPlugins/main/plugins/moyai/moyai.mp3";
|
||||
"https://github.com/Equicord/Ignore/raw/main/moyai.mp3";
|
||||
const MOYAI_URL_HD =
|
||||
"https://raw.githubusercontent.com/MeguminSama/VencordPlugins/main/plugins/moyai/moyai_hd.wav";
|
||||
"https://github.com/Equicord/Ignore/raw/main/moyai_hd.wav";
|
||||
|
||||
const settings = definePluginSettings({
|
||||
volume: {
|
||||
|
|
|
@ -38,7 +38,7 @@ export class Logger {
|
|||
}
|
||||
|
||||
console[level](
|
||||
`%c Vencord %c %c ${this.name} ${customFmt}`,
|
||||
`%c Equicord %c %c ${this.name} ${customFmt}`,
|
||||
`background: ${levelColor}; color: black; font-weight: bold; border-radius: 5px;`,
|
||||
"",
|
||||
`background: ${this.color}; color: black; font-weight: bold; border-radius: 5px;`
|
||||
|
|
Loading…
Reference in a new issue