From 9dd488ba4c51966c9c92cb850c8bcff31c354183 Mon Sep 17 00:00:00 2001
From: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Date: Mon, 16 Sep 2024 14:24:25 -0400
Subject: [PATCH] Fixes
---
src/plugins/userVoiceShow/README.md | 7 ---
.../components/VoiceChannelIndicator.css | 15 ------
.../components/VoiceChannelIndicator.tsx | 54 -------------------
.../userVoiceShow/components/eye.svg.tsx | 20 -------
.../userVoiceShow/components/speaker.svg.tsx | 21 --------
5 files changed, 117 deletions(-)
delete mode 100644 src/plugins/userVoiceShow/README.md
delete mode 100644 src/plugins/userVoiceShow/components/VoiceChannelIndicator.css
delete mode 100644 src/plugins/userVoiceShow/components/VoiceChannelIndicator.tsx
delete mode 100644 src/plugins/userVoiceShow/components/eye.svg.tsx
delete mode 100644 src/plugins/userVoiceShow/components/speaker.svg.tsx
diff --git a/src/plugins/userVoiceShow/README.md b/src/plugins/userVoiceShow/README.md
deleted file mode 100644
index a0eb7c43..00000000
--- a/src/plugins/userVoiceShow/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# User Voice Show
-
-Shows an indicator when a user is in a Voice Channel
-
-
-
-
diff --git a/src/plugins/userVoiceShow/components/VoiceChannelIndicator.css b/src/plugins/userVoiceShow/components/VoiceChannelIndicator.css
deleted file mode 100644
index 902cebdc..00000000
--- a/src/plugins/userVoiceShow/components/VoiceChannelIndicator.css
+++ /dev/null
@@ -1,15 +0,0 @@
-.vc-uvs-indicator {
- display: inline-flex;
- justify-content: center;
- align-items: center;
- margin-left: 4px;
- vertical-align: top;
- position: relative;
- top: 0;
- padding: 0;
- gap: 2px;
-}
-
-.vc-uvs-indicator>svg {
- fill: dodgerblue;
-}
diff --git a/src/plugins/userVoiceShow/components/VoiceChannelIndicator.tsx b/src/plugins/userVoiceShow/components/VoiceChannelIndicator.tsx
deleted file mode 100644
index 339a174c..00000000
--- a/src/plugins/userVoiceShow/components/VoiceChannelIndicator.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Vencord, a modification for Discord's desktop app
- * Copyright (c) 2023 Vendicated and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
-*/
-
-import "./VoiceChannelIndicator.css";
-
-import { NavigationRouter, PermissionsBits, PermissionStore, Toasts, Tooltip } from "@webpack/common";
-import { Channel } from "discord-types/general";
-
-import speakerSvg from "./speaker.svg";
-
-interface VoiceChannelIndicatorProps {
- tooltipText?: string;
- channel: Channel;
-}
-
-export const VoiceChannelIndicator = ({ tooltipText, channel }: VoiceChannelIndicatorProps) => (
- {
- if (PermissionStore.can(PermissionsBits.VIEW_CHANNEL, channel)) {
- NavigationRouter.transitionTo(getChannelPath(channel));
- e.preventDefault();
- e.stopPropagation();
- }
- else
- Toasts.show({
- message: "Insufficient permissions to view the channel.",
- id: "user-voice-show-insufficient-permissions",
- type: Toasts.Type.FAILURE,
- options: {
- position: Toasts.Position.BOTTOM,
- }
- });
- }}>
-
- {(tooltipProps: any) => speakerSvg(tooltipProps)}
-
-
-);
-
-const getChannelPath = (c: Channel) => `/channels/${c.guild_id ?? "@me"}/${c.id}`;
diff --git a/src/plugins/userVoiceShow/components/eye.svg.tsx b/src/plugins/userVoiceShow/components/eye.svg.tsx
deleted file mode 100644
index 60ac581f..00000000
--- a/src/plugins/userVoiceShow/components/eye.svg.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Vencord, a Discord client mod
- * Copyright (c) 2023 Vendicated and contributors
- * SPDX-License-Identifier: GPL-3.0-or-later
- */
-
-export default () => (
-
-);
diff --git a/src/plugins/userVoiceShow/components/speaker.svg.tsx b/src/plugins/userVoiceShow/components/speaker.svg.tsx
deleted file mode 100644
index c0b73384..00000000
--- a/src/plugins/userVoiceShow/components/speaker.svg.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Vencord, a Discord client mod
- * Copyright (c) 2023 Vendicated and contributors
- * SPDX-License-Identifier: GPL-3.0-or-later
- */
-
-export default (props: any) => (
-
-);