mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
added disclamer to quest completer, remove warning from RemixMe (#103)
This commit is contained in:
parent
5a87762a00
commit
bfa5d2e2e5
4 changed files with 20 additions and 21 deletions
|
@ -16,6 +16,8 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import "./style.css";
|
||||
|
||||
import { showNotification } from "@api/Notifications";
|
||||
import ErrorBoundary from "@components/ErrorBoundary";
|
||||
import { Devs, EquicordDevs } from "@utils/constants";
|
||||
|
@ -23,7 +25,7 @@ import { getTheme, Theme } from "@utils/discord";
|
|||
import { classes } from "@utils/misc";
|
||||
import definePlugin from "@utils/types";
|
||||
import { findByProps, findExportedComponentLazy } from "@webpack";
|
||||
import { Button, FluxDispatcher, RestAPI, Tooltip, UserStore } from "@webpack/common";
|
||||
import { Button, FluxDispatcher, Forms, RestAPI, Tooltip, UserStore } from "@webpack/common";
|
||||
const HeaderBarIcon = findExportedComponentLazy("Icon", "Divider");
|
||||
const isApp = navigator.userAgent.includes("Electron/");
|
||||
|
||||
|
@ -226,6 +228,11 @@ export default definePlugin({
|
|||
name: "QuestCompleter",
|
||||
description: "A plugin to complete quests without having the game installed.",
|
||||
authors: [Devs.HappyEnderman, EquicordDevs.SerStars, EquicordDevs.thororen],
|
||||
settingsAboutComponent: () => <>
|
||||
<Forms.FormText className="quests-warning">
|
||||
Game Quests do not work on Equibop/Web Platforms. Only Video Quests do.
|
||||
</Forms.FormText>
|
||||
</>,
|
||||
patches: [
|
||||
{
|
||||
find: "\"invite-button\"",
|
||||
|
|
12
src/equicordplugins/questCompleter/style.css
Normal file
12
src/equicordplugins/questCompleter/style.css
Normal file
|
@ -0,0 +1,12 @@
|
|||
.quests-warning{
|
||||
font-size: 16px !important;
|
||||
background-color: var(--info-warning-background) !important;
|
||||
color: var(--info-warning-text) !important;
|
||||
border: 1px solid var(--info-warning-foreground) !important;
|
||||
border-radius: 5px !important;
|
||||
font-weight: 500;
|
||||
padding: 6px 10px;
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
font-style: bold;
|
||||
}
|
|
@ -4,12 +4,9 @@
|
|||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import "./style.css";
|
||||
|
||||
import { addPreSendListener, MessageExtra, MessageObject, removePreSendListener } from "@api/MessageEvents";
|
||||
import { EquicordDevs } from "@utils/constants";
|
||||
import definePlugin from "@utils/types";
|
||||
import { Forms } from "@webpack/common";
|
||||
|
||||
const handleMessage = (channelID: string, message: MessageObject, messageEx: MessageExtra) => messageEx.uploads && messageEx.uploads.forEach(att => (att as any).isRemix = true);
|
||||
|
||||
|
@ -17,11 +14,6 @@ export default definePlugin({
|
|||
name: "RemixMe",
|
||||
description: "Turns every single message with attachment to have remix tag",
|
||||
authors: [EquicordDevs.kvba],
|
||||
settingsAboutComponent: () => <>
|
||||
<Forms.FormText className="remixme-warning">
|
||||
We can't guarantee this plugin won't get you warned or banned.
|
||||
</Forms.FormText>
|
||||
</>,
|
||||
start: () => addPreSendListener(handleMessage),
|
||||
stop: () => removePreSendListener(handleMessage)
|
||||
});
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
.remixme-warning {
|
||||
font-size: 16px !important;
|
||||
background-color: rgb(240 71 71 / 10%) !important;
|
||||
color: rgb(240 71 71) !important;
|
||||
border: 1px solid rgb(240 71 71 / 60%) !important;
|
||||
border-radius: 5px !important;
|
||||
font-weight: 500;
|
||||
padding: 6px 10px;
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
font-style: bold;
|
||||
}
|
Loading…
Reference in a new issue