discordDesktop restriction

This commit is contained in:
thororen1234 2024-07-18 01:32:01 -04:00
parent cc756ae94a
commit f4ec4b2c48
98 changed files with 25 additions and 27 deletions

View file

@ -31,8 +31,8 @@ import {
SettingsModalProfilesCard,
validateNumberInput,
validateTextInputNumber
} from "../../philsPluginLibrary.desktop";
import { Styles } from "../../philsPluginLibrary.desktop/styles";
} from "../../philsPluginLibrary.discordDesktop";
import { Styles } from "../../philsPluginLibrary.discordDesktop/styles";
import { MicrophoneProfile, MicrophoneStore } from "../stores";
const simpleVoiceBitrates: readonly SelectOption[] = [

View file

@ -18,7 +18,7 @@
import { Devs } from "@utils/constants";
import { types } from "../../philsPluginLibrary.desktop";
import { types } from "../../philsPluginLibrary.discordDesktop";
export const PluginInfo = {
PLUGIN_NAME: "BetterMicrophone",

View file

@ -19,7 +19,7 @@
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
import { addSettingsPanelButton, Emitter, MicrophoneSettingsIcon, removeSettingsPanelButton } from "../philsPluginLibrary.desktop";
import { addSettingsPanelButton, Emitter, MicrophoneSettingsIcon, removeSettingsPanelButton } from "../philsPluginLibrary.discordDesktop";
import { PluginInfo } from "./constants";
import { openMicrophoneSettingsModal } from "./modals";
import { MicrophonePatcher } from "./patchers";

View file

@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { Emitter, MediaEngineStore, Patcher, types } from "../../philsPluginLibrary.desktop";
import { patchConnectionAudioTransportOptions } from "../../philsPluginLibrary.desktop/patches/audio";
import { Emitter, MediaEngineStore, Patcher, types } from "../../philsPluginLibrary.discordDesktop";
import { patchConnectionAudioTransportOptions } from "../../philsPluginLibrary.discordDesktop/patches/audio";
import { PluginInfo } from "../constants";
import { logger } from "../logger";
import { microphoneStore } from "../stores";

View file

@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { createPluginStore, ProfilableInitializer, ProfilableStore, profileable, ProfileableProfile } from "../../philsPluginLibrary.desktop";
import { createPluginStore, ProfilableInitializer, ProfilableStore, profileable, ProfileableProfile } from "../../philsPluginLibrary.discordDesktop";
import { PluginInfo } from "../constants";

View file

@ -19,7 +19,7 @@
import { Select, useEffect, useState } from "@webpack/common";
import React from "react";
import { MediaEngineStore, types } from "../../philsPluginLibrary.desktop";
import { MediaEngineStore, types } from "../../philsPluginLibrary.discordDesktop";
import { screenshareStore } from "../stores";
export const AudioSourceSelect = (props?: typeof Select["defaultProps"]) => {

View file

@ -31,8 +31,8 @@ import {
SettingsModalProfilesCard,
validateNumberInput,
validateTextInputNumber
} from "../../philsPluginLibrary.desktop";
import { Styles } from "../../philsPluginLibrary.desktop/styles";
} from "../../philsPluginLibrary.discordDesktop";
import { Styles } from "../../philsPluginLibrary.discordDesktop/styles";
import { MicrophoneProfile, MicrophoneStore } from "../stores";
const simpleVoiceBitrates: readonly SelectOption[] = [

View file

@ -34,11 +34,11 @@ import {
types,
validateNumberInput,
validateTextInputNumber
} from "../../philsPluginLibrary.desktop";
import { Styles } from "../../philsPluginLibrary.desktop/styles";
import { MicrophoneSettingsModal } from "../components";
} from "../../philsPluginLibrary.discordDesktop";
import { Styles } from "../../philsPluginLibrary.discordDesktop/styles";
import { PluginInfo } from "../constants";
import { ScreenshareAudioProfile, ScreenshareAudioStore, ScreenshareProfile, ScreenshareStore } from "../stores";
import { MicrophoneSettingsModal } from ".";
const simpleResolutions: readonly (SelectOption & { value: types.Resolution; })[] = [
{

View file

@ -18,7 +18,7 @@
import { Devs } from "@utils/constants";
import { types } from "../../philsPluginLibrary.desktop";
import { types } from "../../philsPluginLibrary.discordDesktop";
export const PluginInfo = {
PLUGIN_NAME: "BetterScreenshare",

View file

@ -19,7 +19,7 @@
import { Devs, EquicordDevs } from "@utils/constants";
import definePlugin from "@utils/types";
import { addSettingsPanelButton, Emitter, removeSettingsPanelButton, ScreenshareSettingsIcon } from "../philsPluginLibrary.desktop";
import { addSettingsPanelButton, Emitter, removeSettingsPanelButton, ScreenshareSettingsIcon } from "../philsPluginLibrary.discordDesktop";
import { PluginInfo } from "./constants";
import { openScreenshareModal } from "./modals";
import { ScreenshareAudioPatcher, ScreensharePatcher } from "./patchers";

View file

@ -18,8 +18,8 @@
import { UserStore } from "@webpack/common";
import { Emitter, MediaEngineStore, Patcher, types } from "../../philsPluginLibrary.desktop";
import { patchConnectionVideoSetDesktopSourceWithOptions, patchConnectionVideoTransportOptions } from "../../philsPluginLibrary.desktop/patches/video";
import { Emitter, MediaEngineStore, Patcher, types } from "../../philsPluginLibrary.discordDesktop";
import { patchConnectionVideoSetDesktopSourceWithOptions, patchConnectionVideoTransportOptions } from "../../philsPluginLibrary.discordDesktop/patches/video";
import { PluginInfo } from "../constants";
import { logger } from "../logger";
import { screenshareStore } from "../stores";

View file

@ -18,7 +18,7 @@
import { UserStore } from "@webpack/common";
import { Emitter, MediaEngineStore, patchConnectionAudioTransportOptions, Patcher, types } from "../../philsPluginLibrary.desktop";
import { Emitter, MediaEngineStore, patchConnectionAudioTransportOptions, Patcher, types } from "../../philsPluginLibrary.discordDesktop";
import { PluginInfo } from "../constants";
import { logger } from "../logger";
import { screenshareAudioStore } from "../stores/screenshareAudioStore";

View file

@ -20,7 +20,7 @@ import { Flex } from "@components/Flex";
import { React } from "@webpack/common";
import { Settings } from "Vencord";
import { SettingsModalCard, SettingsModalCardItem } from "../../philsPluginLibrary.desktop";
import { SettingsModalCard, SettingsModalCardItem } from "../../philsPluginLibrary.discordDesktop";
import Plugin from "..";
import { AudioSourceSelect, OpenScreenshareSettingsButton } from "../components";
import { PluginInfo } from "../constants";

View file

@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { createPluginStore, ProfilableInitializer, ProfilableStore, profileable, ProfileableProfile } from "../../philsPluginLibrary.desktop";
import { createPluginStore, ProfilableInitializer, ProfilableStore, profileable, ProfileableProfile } from "../../philsPluginLibrary.discordDesktop";
import { PluginInfo } from "../constants";

View file

@ -16,14 +16,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { createPluginStore, ProfilableStore, profileable } from "../../philsPluginLibrary.desktop";
import { createPluginStore, ProfilableStore, profileable } from "../../philsPluginLibrary.discordDesktop";
import { PluginInfo } from "../constants";
import {
defaultMicrophoneProfiles as defaultScreenshareAudioProfiles,
MicrophoneProfile as ScreenshareAudioProfile,
MicrophoneStore as ScreenshareAudioStore,
microphoneStoreDefault as screenshareAudioStoreDefault
} from "../stores";
} from ".";
export let screenshareAudioStore: ProfilableStore<ScreenshareAudioStore, ScreenshareAudioProfile>;

View file

@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { createPluginStore, ProfilableInitializer, ProfilableStore, profileable, ProfileableProfile } from "../../philsPluginLibrary.desktop";
import { createPluginStore, ProfilableInitializer, ProfilableStore, profileable, ProfileableProfile } from "../../philsPluginLibrary.discordDesktop";
import { PluginInfo } from "../constants";

View file

@ -17,7 +17,5 @@
*/
export * from "./audio";
export * from "../store/screenshareAudioStore";
export * from "../store/screenshareStore";
export * from "./userPanel";
export * from "./video";

View file

@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
export * from "../store/screenshareAudioStore";
export * from "../store/screenshareStore";
export * from "./microphoneStore";
export * from "./profileable";
export * from "./screenshareAudioStore";
export * from "./screenshareStore";
export * from "./store";