2022-10-22 01:17:06 +02:00
|
|
|
/*
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
* Vencord, a Discord client mod
|
|
|
|
|
* Copyright (c) 2025 Vendicated and contributors
|
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
*/
|
2022-10-22 01:17:06 +02:00
|
|
|
|
2023-05-06 01:36:00 +02:00
|
|
|
import { Settings } from "@api/Settings";
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
import {
|
|
|
|
|
BackupAndRestoreTab,
|
|
|
|
|
ChangelogTab,
|
|
|
|
|
CloudTab,
|
|
|
|
|
PatchHelperTab,
|
|
|
|
|
PluginsTab,
|
|
|
|
|
UpdaterTab,
|
|
|
|
|
VencordTab,
|
|
|
|
|
} from "@components/settings";
|
2025-02-23 11:10:55 -05:00
|
|
|
import ThemesTab from "@components/ThemeSettings/ThemesTab";
|
2022-11-28 13:37:55 +01:00
|
|
|
import { Devs } from "@utils/constants";
|
2024-11-05 16:49:27 -03:00
|
|
|
import { getIntlMessage } from "@utils/discord";
|
2022-12-01 03:38:17 +01:00
|
|
|
import definePlugin, { OptionType } from "@utils/types";
|
2025-08-14 18:09:40 -04:00
|
|
|
import { shortGitHash } from "@utils/updater";
|
2024-11-05 16:49:27 -03:00
|
|
|
import { React } from "@webpack/common";
|
2022-10-17 20:18:25 +01:00
|
|
|
|
2024-05-15 03:14:02 +02:00
|
|
|
type SectionType = "HEADER" | "DIVIDER" | "CUSTOM";
|
|
|
|
|
type SectionTypes = Record<SectionType, SectionType>;
|
|
|
|
|
|
2022-08-30 01:42:47 +02:00
|
|
|
export default definePlugin({
|
|
|
|
|
name: "Settings",
|
|
|
|
|
description: "Adds Settings UI and debug info",
|
2022-10-17 20:18:25 +01:00
|
|
|
authors: [Devs.Ven, Devs.Megu],
|
2022-08-31 04:07:16 +02:00
|
|
|
required: true,
|
2023-04-15 02:27:11 +02:00
|
|
|
|
2024-05-14 18:52:35 +02:00
|
|
|
patches: [
|
|
|
|
|
{
|
|
|
|
|
find: ".versionHash",
|
|
|
|
|
replacement: [
|
|
|
|
|
{
|
2025-09-18 11:32:47 -04:00
|
|
|
match: /\.info.+?\[\(0,\i\.jsxs?\)\((.{1,10}),(\{[^{}}]+\{.{0,20}.versionHash,.+?\})\)," "/,
|
2024-05-14 18:52:35 +02:00
|
|
|
replace: (m, component, props) => {
|
|
|
|
|
props = props.replace(/children:\[.+\]/, "");
|
|
|
|
|
return `${m},$self.makeInfoElements(${component}, ${props})`;
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
},
|
2024-05-15 03:14:02 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
match: /copyValue:\i\.join\(" "\)/,
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
replace: "$& + $self.getInfoString()",
|
|
|
|
|
},
|
|
|
|
|
],
|
2024-05-14 18:52:35 +02:00
|
|
|
},
|
2024-05-24 01:05:17 +02:00
|
|
|
{
|
2024-11-03 15:47:19 -03:00
|
|
|
find: ".SEARCH_NO_RESULTS&&0===",
|
2024-06-19 16:16:48 -03:00
|
|
|
replacement: [
|
|
|
|
|
{
|
|
|
|
|
match: /(?<=section:(.{0,50})\.DIVIDER\}\))([,;])(?=.{0,200}(\i)\.push.{0,100}label:(\i)\.header)/,
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
replace: (
|
|
|
|
|
_,
|
|
|
|
|
sectionTypes,
|
|
|
|
|
commaOrSemi,
|
|
|
|
|
elements,
|
|
|
|
|
element,
|
|
|
|
|
) =>
|
|
|
|
|
`${commaOrSemi} $self.addSettings(${elements}, ${element}, ${sectionTypes}) ${commaOrSemi}`,
|
2024-05-24 01:05:17 +02:00
|
|
|
},
|
2024-06-19 16:16:48 -03:00
|
|
|
{
|
2025-08-05 23:57:51 +02:00
|
|
|
match: /({(?=.+?function (\i).{0,160}(\i)=\i\.useMemo.{0,140}return \i\.useMemo\(\(\)=>\i\(\3).+?\(\)=>)\2/,
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
replace: (_, rest, settingsHook) =>
|
|
|
|
|
`${rest}$self.wrapSettingsHook(${settingsHook})`,
|
|
|
|
|
},
|
|
|
|
|
],
|
2024-05-14 18:52:35 +02:00
|
|
|
},
|
2025-09-23 08:42:27 -04:00
|
|
|
{
|
|
|
|
|
find: ".DEVELOPER_SECTION,",
|
|
|
|
|
replacement: [
|
|
|
|
|
{
|
|
|
|
|
match: /\i\.\i\.isDeveloper/,
|
|
|
|
|
replace: "true"
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
},
|
2024-05-14 18:52:35 +02:00
|
|
|
{
|
2024-11-05 16:49:27 -03:00
|
|
|
find: "#{intl::USER_SETTINGS_ACTIONS_MENU_LABEL}",
|
2024-05-14 18:52:35 +02:00
|
|
|
replacement: {
|
2024-06-19 03:04:15 +02:00
|
|
|
match: /(?<=function\((\i),\i\)\{)(?=let \i=Object.values\(\i.\i\).*?(\i\.\i)\.open\()/,
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
replace: "$2.open($1);return;",
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-05-14 18:52:35 +02:00
|
|
|
],
|
2022-11-11 00:11:44 +01:00
|
|
|
|
2024-05-15 03:14:02 +02:00
|
|
|
customSections: [] as ((SectionTypes: SectionTypes) => any)[],
|
2023-06-11 17:11:56 -04:00
|
|
|
|
2024-05-15 03:14:02 +02:00
|
|
|
makeSettingsCategories(SectionTypes: SectionTypes) {
|
2023-04-09 04:04:02 +02:00
|
|
|
return [
|
2023-01-22 04:26:33 +01:00
|
|
|
{
|
2023-10-25 00:17:11 +02:00
|
|
|
section: SectionTypes.HEADER,
|
2024-04-17 14:29:47 -04:00
|
|
|
label: "Equicord",
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
className: "vc-settings-header",
|
2023-04-09 04:04:02 +02:00
|
|
|
},
|
|
|
|
|
{
|
2024-07-13 00:06:01 -04:00
|
|
|
section: "EquicordSettings",
|
2024-04-17 14:29:47 -04:00
|
|
|
label: "Equicord",
|
2024-05-04 23:15:33 -03:00
|
|
|
element: VencordTab,
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
className: "vc-settings",
|
2023-04-09 04:04:02 +02:00
|
|
|
},
|
|
|
|
|
{
|
2024-07-13 00:06:01 -04:00
|
|
|
section: "EquicordPlugins",
|
2023-01-22 04:26:33 +01:00
|
|
|
label: "Plugins",
|
2024-11-06 04:00:38 -05:00
|
|
|
searchableTitles: ["Plugins"],
|
2024-05-04 23:15:33 -03:00
|
|
|
element: PluginsTab,
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
className: "vc-plugins",
|
2023-04-09 04:04:02 +02:00
|
|
|
},
|
|
|
|
|
{
|
2024-07-13 00:06:01 -04:00
|
|
|
section: "EquicordThemes",
|
2023-01-22 04:26:33 +01:00
|
|
|
label: "Themes",
|
2024-11-06 04:00:38 -05:00
|
|
|
searchableTitles: ["Themes"],
|
2025-02-23 11:10:55 -05:00
|
|
|
element: ThemesTab,
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
className: "vc-themes",
|
2023-04-09 04:04:02 +02:00
|
|
|
},
|
2023-08-25 14:15:02 +02:00
|
|
|
!IS_UPDATER_DISABLED && {
|
2024-07-13 00:06:01 -04:00
|
|
|
section: "EquicordUpdater",
|
2023-01-22 04:26:33 +01:00
|
|
|
label: "Updater",
|
2024-11-06 04:00:38 -05:00
|
|
|
searchableTitles: ["Updater"],
|
2024-05-04 23:15:33 -03:00
|
|
|
element: UpdaterTab,
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
className: "vc-updater",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
section: "EquicordChangelog",
|
|
|
|
|
label: "Changelog",
|
|
|
|
|
searchableTitles: ["Changelog"],
|
|
|
|
|
element: ChangelogTab,
|
|
|
|
|
className: "vc-changelog",
|
2023-04-09 04:04:02 +02:00
|
|
|
},
|
|
|
|
|
{
|
2024-07-13 00:06:01 -04:00
|
|
|
section: "EquicordCloud",
|
2023-04-09 04:04:02 +02:00
|
|
|
label: "Cloud",
|
2024-11-06 04:00:38 -05:00
|
|
|
searchableTitles: ["Cloud"],
|
2024-05-04 23:15:33 -03:00
|
|
|
element: CloudTab,
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
className: "vc-cloud",
|
2023-04-09 04:04:02 +02:00
|
|
|
},
|
|
|
|
|
{
|
2025-07-15 15:57:24 +02:00
|
|
|
section: "settings/tabsSync",
|
2023-04-09 04:04:02 +02:00
|
|
|
label: "Backup & Restore",
|
2024-11-06 04:00:38 -05:00
|
|
|
searchableTitles: ["Backup & Restore"],
|
2024-05-04 23:15:33 -03:00
|
|
|
element: BackupAndRestoreTab,
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
className: "vc-backup-restore",
|
2023-04-09 04:04:02 +02:00
|
|
|
},
|
2025-02-23 10:56:29 -05:00
|
|
|
IS_DEV && {
|
2024-07-13 00:06:01 -04:00
|
|
|
section: "EquicordPatchHelper",
|
2023-01-22 04:26:33 +01:00
|
|
|
label: "Patch Helper",
|
2024-11-06 04:00:38 -05:00
|
|
|
searchableTitles: ["Patch Helper"],
|
2024-05-04 23:15:33 -03:00
|
|
|
element: PatchHelperTab,
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
className: "vc-patch-helper",
|
2023-04-09 04:04:02 +02:00
|
|
|
},
|
2023-10-25 00:17:11 +02:00
|
|
|
...this.customSections.map(func => func(SectionTypes)),
|
2023-04-09 04:04:02 +02:00
|
|
|
{
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
section: SectionTypes.DIVIDER,
|
|
|
|
|
},
|
2023-04-09 04:04:02 +02:00
|
|
|
].filter(Boolean);
|
2023-01-22 04:26:33 +01:00
|
|
|
},
|
|
|
|
|
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
isRightSpot({
|
|
|
|
|
header,
|
|
|
|
|
settings,
|
|
|
|
|
}: {
|
|
|
|
|
header?: string;
|
|
|
|
|
settings?: string[];
|
|
|
|
|
}) {
|
2024-05-14 18:52:35 +02:00
|
|
|
const firstChild = settings?.[0];
|
|
|
|
|
// lowest two elements... sanity backup
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
if (firstChild === "LOGOUT" || firstChild === "SOCIAL_LINKS")
|
|
|
|
|
return true;
|
2024-05-14 18:52:35 +02:00
|
|
|
|
|
|
|
|
const { settingsLocation } = Settings.plugins.Settings;
|
|
|
|
|
|
|
|
|
|
if (settingsLocation === "bottom") return firstChild === "LOGOUT";
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
if (settingsLocation === "belowActivity")
|
|
|
|
|
return firstChild === "CHANGELOG";
|
2024-05-14 18:52:35 +02:00
|
|
|
|
2024-05-14 21:18:43 +02:00
|
|
|
if (!header) return;
|
|
|
|
|
|
2024-11-03 15:47:19 -03:00
|
|
|
try {
|
|
|
|
|
const names = {
|
2024-11-05 16:49:27 -03:00
|
|
|
top: getIntlMessage("USER_SETTINGS"),
|
|
|
|
|
aboveNitro: getIntlMessage("BILLING_SETTINGS"),
|
|
|
|
|
belowNitro: getIntlMessage("APP_SETTINGS"),
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
aboveActivity: getIntlMessage("ACTIVITY_SETTINGS"),
|
2024-11-03 15:47:19 -03:00
|
|
|
};
|
2024-11-05 16:49:27 -03:00
|
|
|
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
if (
|
|
|
|
|
!names[settingsLocation] ||
|
|
|
|
|
names[settingsLocation].endsWith("_SETTINGS")
|
|
|
|
|
)
|
2025-02-17 02:10:02 +01:00
|
|
|
return firstChild === "PREMIUM";
|
|
|
|
|
|
2024-11-03 15:47:19 -03:00
|
|
|
return header === names[settingsLocation];
|
|
|
|
|
} catch {
|
|
|
|
|
return firstChild === "PREMIUM";
|
|
|
|
|
}
|
2024-05-14 18:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
2024-05-14 21:18:43 +02:00
|
|
|
patchedSettings: new WeakSet(),
|
|
|
|
|
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
addSettings(
|
|
|
|
|
elements: any[],
|
|
|
|
|
element: { header?: string; settings: string[]; },
|
|
|
|
|
sectionTypes: SectionTypes,
|
|
|
|
|
) {
|
|
|
|
|
if (this.patchedSettings.has(elements) || !this.isRightSpot(element))
|
|
|
|
|
return;
|
2024-05-14 21:18:43 +02:00
|
|
|
|
|
|
|
|
this.patchedSettings.add(elements);
|
2024-05-14 18:52:35 +02:00
|
|
|
|
|
|
|
|
elements.push(...this.makeSettingsCategories(sectionTypes));
|
|
|
|
|
},
|
|
|
|
|
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
wrapSettingsHook(
|
|
|
|
|
originalHook: (...args: any[]) => Record<string, unknown>[],
|
|
|
|
|
) {
|
2024-05-15 03:14:02 +02:00
|
|
|
return (...args: any[]) => {
|
|
|
|
|
const elements = originalHook(...args);
|
|
|
|
|
if (!this.patchedSettings.has(elements))
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
elements.unshift(
|
|
|
|
|
...this.makeSettingsCategories({
|
|
|
|
|
HEADER: "HEADER",
|
|
|
|
|
DIVIDER: "DIVIDER",
|
|
|
|
|
CUSTOM: "CUSTOM",
|
|
|
|
|
}),
|
|
|
|
|
);
|
2024-05-15 03:14:02 +02:00
|
|
|
|
|
|
|
|
return elements;
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|
2022-12-01 03:38:17 +01:00
|
|
|
options: {
|
|
|
|
|
settingsLocation: {
|
|
|
|
|
type: OptionType.SELECT,
|
2024-04-17 14:29:47 -04:00
|
|
|
description: "Where to put the Equicord settings section",
|
2022-12-01 03:38:17 +01:00
|
|
|
options: [
|
|
|
|
|
{ label: "At the very top", value: "top" },
|
2024-05-14 18:52:35 +02:00
|
|
|
{ label: "Above the Nitro section", value: "aboveNitro", default: true },
|
2022-12-01 03:38:17 +01:00
|
|
|
{ label: "Below the Nitro section", value: "belowNitro" },
|
2024-05-14 18:52:35 +02:00
|
|
|
{ label: "Above Activity Settings", value: "aboveActivity" },
|
2022-12-01 03:38:17 +01:00
|
|
|
{ label: "Below Activity Settings", value: "belowActivity" },
|
|
|
|
|
{ label: "At the very bottom", value: "bottom" },
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
],
|
2022-12-01 03:38:17 +01:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
2022-11-17 13:49:51 +01:00
|
|
|
get electronVersion() {
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
return (
|
|
|
|
|
VencordNative.native.getVersions().electron ||
|
|
|
|
|
window.legcord?.electron ||
|
|
|
|
|
null
|
|
|
|
|
);
|
2022-11-17 13:49:51 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
get chromiumVersion() {
|
|
|
|
|
try {
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
return (
|
|
|
|
|
VencordNative.native.getVersions().chrome ||
|
2025-07-10 00:38:39 +02:00
|
|
|
// @ts-expect-error Typescript will add userAgentData IMMEDIATELY
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
navigator.userAgentData?.brands?.find(
|
|
|
|
|
b =>
|
|
|
|
|
b.brand === "Chromium" || b.brand === "Google Chrome",
|
|
|
|
|
)?.version ||
|
|
|
|
|
null
|
|
|
|
|
);
|
2024-10-14 19:33:17 -04:00
|
|
|
} catch {
|
|
|
|
|
// inb4 some stupid browser throws unsupported error for navigator.userAgentData, it's only in chromium
|
2022-11-17 13:49:51 +01:00
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
2025-08-05 00:47:41 -04:00
|
|
|
getVersionInfo(support = true) {
|
2025-08-05 00:45:21 -04:00
|
|
|
let version = "";
|
|
|
|
|
|
|
|
|
|
if (IS_DEV) version = "Dev";
|
2025-08-05 14:52:51 -04:00
|
|
|
if (IS_WEB) version = "Web";
|
|
|
|
|
if (IS_VESKTOP) version = `Vesktop v${VesktopNative.app.getVersion()}`;
|
|
|
|
|
if (IS_EQUIBOP) version = `Equibop v${VesktopNative.app.getVersion()}`;
|
|
|
|
|
if (IS_STANDALONE) version = "Standalone";
|
2025-08-05 00:45:21 -04:00
|
|
|
|
2025-08-05 00:47:41 -04:00
|
|
|
return support && version ? ` (${version})` : version;
|
2022-11-17 13:49:51 +01:00
|
|
|
},
|
|
|
|
|
|
2024-05-15 03:14:02 +02:00
|
|
|
getInfoRows() {
|
2025-08-05 00:45:21 -04:00
|
|
|
const { electronVersion, chromiumVersion, getVersionInfo } = this;
|
2022-11-17 13:49:51 +01:00
|
|
|
|
2025-08-14 18:09:40 -04:00
|
|
|
const rows = [`Equicord ${shortGitHash()}${getVersionInfo()}`];
|
2024-05-15 03:14:02 +02:00
|
|
|
|
|
|
|
|
if (electronVersion) rows.push(`Electron ${electronVersion}`);
|
|
|
|
|
if (chromiumVersion) rows.push(`Chromium ${chromiumVersion}`);
|
|
|
|
|
|
|
|
|
|
return rows;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getInfoString() {
|
|
|
|
|
return "\n" + this.getInfoRows().join("\n");
|
|
|
|
|
},
|
|
|
|
|
|
add changelog section (#410)
* add tone indicators plugin
* im tired of this man
* oh my fucking god its EquicordDevs not Devs
* dont use json
* Update index.tsx
* Initial commit
* past updates history, new plugins section, more git commit information.
waho
* move it to be under updater instead of cloud
* LINT ERROR FIX PLEASE
* wait why does it say 2022
* add support for new settings, history list scrollable and taller, data
migration, debugging commands.
* add support for required plugins, also name things logs instead of
sessions, clean up code too
* Fixes
* holy changes. ability to bulk clear and specific clear logs with either
a trash can icon or the "clear logs" button at the top of the page,
plugin entries in the logs section showing if something is required of
any other plugins, fetch logs from repository which checks for duplicate
hash to prevent duplicate messy logs, fixed cramming of elements by
extending the page itself, made things look better.
* Fix Lint
* Update styles.css
* Remove NewPluginsManager
* API Plugin Check
---------
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: justjxke <Jake0300@protonmai.com>
2025-09-23 14:20:50 +01:00
|
|
|
makeInfoElements(
|
|
|
|
|
Component: React.ComponentType<React.PropsWithChildren>,
|
|
|
|
|
props: React.PropsWithChildren,
|
|
|
|
|
) {
|
|
|
|
|
return this.getInfoRows().map((text, i) => (
|
|
|
|
|
<Component key={i} {...props}>
|
|
|
|
|
{text}
|
|
|
|
|
</Component>
|
|
|
|
|
));
|
|
|
|
|
},
|
2022-09-16 22:59:34 +02:00
|
|
|
});
|