mirror of
https://github.com/Equicord/Equicord.git
synced 2025-03-30 20:21:59 -04:00
desktop requirements for phils stuff
This commit is contained in:
parent
0da23d2810
commit
4731566bba
83 changed files with 31 additions and 31 deletions
|
@ -31,8 +31,8 @@ import {
|
||||||
SettingsModalProfilesCard,
|
SettingsModalProfilesCard,
|
||||||
validateNumberInput,
|
validateNumberInput,
|
||||||
validateTextInputNumber
|
validateTextInputNumber
|
||||||
} from "../../philsPluginLibrary";
|
} from "../../philsPluginLibrary.desktop";
|
||||||
import { Styles } from "../../philsPluginLibrary/styles";
|
import { Styles } from "../../philsPluginLibrary.desktop/styles";
|
||||||
import { MicrophoneProfile, MicrophoneStore } from "../stores";
|
import { MicrophoneProfile, MicrophoneStore } from "../stores";
|
||||||
|
|
||||||
const simpleVoiceBitrates: readonly SelectOption[] = [
|
const simpleVoiceBitrates: readonly SelectOption[] = [
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
|
|
||||||
import { types } from "../../philsPluginLibrary";
|
import { types } from "../../philsPluginLibrary.desktop";
|
||||||
|
|
||||||
export const PluginInfo = {
|
export const PluginInfo = {
|
||||||
PLUGIN_NAME: "BetterMicrophone",
|
PLUGIN_NAME: "BetterMicrophone",
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
import definePlugin from "@utils/types";
|
import definePlugin from "@utils/types";
|
||||||
|
|
||||||
import { addSettingsPanelButton, Emitter, MicrophoneSettingsIcon, removeSettingsPanelButton } from "../philsPluginLibrary";
|
import { addSettingsPanelButton, Emitter, MicrophoneSettingsIcon, removeSettingsPanelButton } from "../philsPluginLibrary.desktop";
|
||||||
import { PluginInfo } from "./constants";
|
import { PluginInfo } from "./constants";
|
||||||
import { openMicrophoneSettingsModal } from "./modals";
|
import { openMicrophoneSettingsModal } from "./modals";
|
||||||
import { MicrophonePatcher } from "./patchers";
|
import { MicrophonePatcher } from "./patchers";
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Emitter, MediaEngineStore, Patcher, types } from "../../philsPluginLibrary";
|
import { Emitter, MediaEngineStore, Patcher, types } from "../../philsPluginLibrary.desktop";
|
||||||
import { patchConnectionAudioTransportOptions } from "../../philsPluginLibrary/patches/audio";
|
import { patchConnectionAudioTransportOptions } from "../../philsPluginLibrary.desktop/patches/audio";
|
||||||
import { PluginInfo } from "../constants";
|
import { PluginInfo } from "../constants";
|
||||||
import { logger } from "../logger";
|
import { logger } from "../logger";
|
||||||
import { microphoneStore } from "../stores";
|
import { microphoneStore } from "../stores";
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { createPluginStore, ProfilableInitializer, ProfilableStore, profileable, ProfileableProfile } from "../../philsPluginLibrary";
|
import { createPluginStore, ProfilableInitializer, ProfilableStore, profileable, ProfileableProfile } from "../../philsPluginLibrary.desktop";
|
||||||
import { PluginInfo } from "../constants";
|
import { PluginInfo } from "../constants";
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
import { Select, useEffect, useState } from "@webpack/common";
|
import { Select, useEffect, useState } from "@webpack/common";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
import { MediaEngineStore, types } from "../../philsPluginLibrary";
|
import { MediaEngineStore, types } from "../../philsPluginLibrary.desktop";
|
||||||
import { screenshareStore } from "../stores";
|
import { screenshareStore } from "../stores";
|
||||||
|
|
||||||
export const AudioSourceSelect = (props?: typeof Select["defaultProps"]) => {
|
export const AudioSourceSelect = (props?: typeof Select["defaultProps"]) => {
|
|
@ -35,8 +35,8 @@ import {
|
||||||
types,
|
types,
|
||||||
validateNumberInput,
|
validateNumberInput,
|
||||||
validateTextInputNumber
|
validateTextInputNumber
|
||||||
} from "../../philsPluginLibrary";
|
} from "../../philsPluginLibrary.desktop";
|
||||||
import { Styles } from "../../philsPluginLibrary/styles";
|
import { Styles } from "../../philsPluginLibrary.desktop/styles";
|
||||||
import { PluginInfo } from "../constants";
|
import { PluginInfo } from "../constants";
|
||||||
import { ScreenshareAudioProfile, ScreenshareAudioStore, ScreenshareProfile, ScreenshareStore } from "../stores";
|
import { ScreenshareAudioProfile, ScreenshareAudioStore, ScreenshareProfile, ScreenshareStore } from "../stores";
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
|
|
||||||
import { types } from "../../philsPluginLibrary";
|
import { types } from "../../philsPluginLibrary.desktop";
|
||||||
|
|
||||||
export const PluginInfo = {
|
export const PluginInfo = {
|
||||||
PLUGIN_NAME: "BetterScreenshare",
|
PLUGIN_NAME: "BetterScreenshare",
|
|
@ -19,7 +19,7 @@
|
||||||
import { Devs, EquicordDevs } from "@utils/constants";
|
import { Devs, EquicordDevs } from "@utils/constants";
|
||||||
import definePlugin from "@utils/types";
|
import definePlugin from "@utils/types";
|
||||||
|
|
||||||
import { addSettingsPanelButton, Emitter, removeSettingsPanelButton, ScreenshareSettingsIcon } from "../philsPluginLibrary";
|
import { addSettingsPanelButton, Emitter, removeSettingsPanelButton, ScreenshareSettingsIcon } from "../philsPluginLibrary.desktop";
|
||||||
import { PluginInfo } from "./constants";
|
import { PluginInfo } from "./constants";
|
||||||
import { openScreenshareModal } from "./modals";
|
import { openScreenshareModal } from "./modals";
|
||||||
import { ScreenshareAudioPatcher, ScreensharePatcher } from "./patchers";
|
import { ScreenshareAudioPatcher, ScreensharePatcher } from "./patchers";
|
|
@ -18,8 +18,8 @@
|
||||||
|
|
||||||
import { UserStore } from "@webpack/common";
|
import { UserStore } from "@webpack/common";
|
||||||
|
|
||||||
import { Emitter, MediaEngineStore, Patcher, types } from "../../philsPluginLibrary";
|
import { Emitter, MediaEngineStore, Patcher, types } from "../../philsPluginLibrary.desktop";
|
||||||
import { patchConnectionVideoSetDesktopSourceWithOptions, patchConnectionVideoTransportOptions } from "../../philsPluginLibrary/patches/video";
|
import { patchConnectionVideoSetDesktopSourceWithOptions, patchConnectionVideoTransportOptions } from "../../philsPluginLibrary.desktop/patches/video";
|
||||||
import { PluginInfo } from "../constants";
|
import { PluginInfo } from "../constants";
|
||||||
import { logger } from "../logger";
|
import { logger } from "../logger";
|
||||||
import { screenshareStore } from "../stores";
|
import { screenshareStore } from "../stores";
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
import { UserStore } from "@webpack/common";
|
import { UserStore } from "@webpack/common";
|
||||||
|
|
||||||
import { Emitter, MediaEngineStore, patchConnectionAudioTransportOptions, Patcher, types } from "../../philsPluginLibrary";
|
import { Emitter, MediaEngineStore, patchConnectionAudioTransportOptions, Patcher, types } from "../../philsPluginLibrary.desktop";
|
||||||
import { PluginInfo } from "../constants";
|
import { PluginInfo } from "../constants";
|
||||||
import { logger } from "../logger";
|
import { logger } from "../logger";
|
||||||
import { screenshareAudioStore } from "../stores/screenshareAudioStore";
|
import { screenshareAudioStore } from "../stores/screenshareAudioStore";
|
|
@ -20,7 +20,7 @@ import { Flex } from "@components/Flex";
|
||||||
import { React } from "@webpack/common";
|
import { React } from "@webpack/common";
|
||||||
import { Settings } from "Vencord";
|
import { Settings } from "Vencord";
|
||||||
|
|
||||||
import { SettingsModalCard, SettingsModalCardItem } from "../../philsPluginLibrary";
|
import { SettingsModalCard, SettingsModalCardItem } from "../../philsPluginLibrary.desktop";
|
||||||
import Plugin from "..";
|
import Plugin from "..";
|
||||||
import { AudioSourceSelect, OpenScreenshareSettingsButton } from "../components";
|
import { AudioSourceSelect, OpenScreenshareSettingsButton } from "../components";
|
||||||
import { PluginInfo } from "../constants";
|
import { PluginInfo } from "../constants";
|
|
@ -22,7 +22,7 @@ import {
|
||||||
MicrophoneStore as ScreenshareAudioStore,
|
MicrophoneStore as ScreenshareAudioStore,
|
||||||
microphoneStoreDefault as screenshareAudioStoreDefault
|
microphoneStoreDefault as screenshareAudioStoreDefault
|
||||||
} from "../../betterMicrophone.desktop/stores";
|
} from "../../betterMicrophone.desktop/stores";
|
||||||
import { createPluginStore, ProfilableStore, profileable } from "../../philsPluginLibrary";
|
import { createPluginStore, ProfilableStore, profileable } from "../../philsPluginLibrary.desktop";
|
||||||
import { PluginInfo } from "../constants";
|
import { PluginInfo } from "../constants";
|
||||||
|
|
||||||
export let screenshareAudioStore: ProfilableStore<ScreenshareAudioStore, ScreenshareAudioProfile>;
|
export let screenshareAudioStore: ProfilableStore<ScreenshareAudioStore, ScreenshareAudioProfile>;
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { createPluginStore, ProfilableInitializer, ProfilableStore, profileable, ProfileableProfile } from "../../philsPluginLibrary";
|
import { createPluginStore, ProfilableInitializer, ProfilableStore, profileable, ProfileableProfile } from "../../philsPluginLibrary.desktop";
|
||||||
import { PluginInfo } from "../constants";
|
import { PluginInfo } from "../constants";
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ import { useEffect, UserUtils, useState } from "@webpack/common";
|
||||||
import { User } from "discord-types/general";
|
import { User } from "discord-types/general";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
import { createDummyUser, types, UserSummaryItem } from "../../philsPluginLibrary";
|
import { createDummyUser, types, UserSummaryItem } from "..";
|
||||||
|
|
||||||
export interface AuthorUserSummaryItemProps extends Partial<React.ComponentProps<types.UserSummaryItem>> {
|
export interface AuthorUserSummaryItemProps extends Partial<React.ComponentProps<types.UserSummaryItem>> {
|
||||||
authors: PluginAuthor[];
|
authors: PluginAuthor[];
|
|
@ -19,7 +19,7 @@
|
||||||
import { Flex } from "@components/Flex";
|
import { Flex } from "@components/Flex";
|
||||||
import { Select, TextInput, useEffect, useState } from "@webpack/common";
|
import { Select, TextInput, useEffect, useState } from "@webpack/common";
|
||||||
|
|
||||||
import { PluginSettings, ProfilableStore } from "../../../philsPluginLibrary";
|
import { PluginSettings, ProfilableStore } from "../..";
|
||||||
import { CopyButton, DeleteButton, NewButton, SaveButton } from "../buttons";
|
import { CopyButton, DeleteButton, NewButton, SaveButton } from "../buttons";
|
||||||
import { SettingsModalCard } from "./SettingsModalCard";
|
import { SettingsModalCard } from "./SettingsModalCard";
|
||||||
import { SettingsModalCardItem } from "./SettingsModalCardItem";
|
import { SettingsModalCardItem } from "./SettingsModalCardItem";
|
|
@ -20,7 +20,7 @@ import { classes } from "@utils/misc";
|
||||||
import { Button } from "@webpack/common";
|
import { Button } from "@webpack/common";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
import { panelClasses } from "../../../philsPluginLibrary";
|
import { panelClasses } from "../..";
|
||||||
|
|
||||||
export type IconComponent = <T extends { className: string; }>(props: T) => JSX.Element;
|
export type IconComponent = <T extends { className: string; }>(props: T) => JSX.Element;
|
||||||
export interface SettingsPanelButtonProps extends Partial<React.ComponentProps<typeof Button>> {
|
export interface SettingsPanelButtonProps extends Partial<React.ComponentProps<typeof Button>> {
|
|
@ -19,6 +19,6 @@
|
||||||
import { LazyComponent } from "@utils/react";
|
import { LazyComponent } from "@utils/react";
|
||||||
import { findByCode } from "@webpack";
|
import { findByCode } from "@webpack";
|
||||||
|
|
||||||
import { types } from "../";
|
import { types } from "..";
|
||||||
|
|
||||||
export const UserSummaryItem = LazyComponent<React.ComponentProps<types.UserSummaryItem>>(() => findByCode("defaultRenderUser", "showDefaultAvatarsForNullUsers"));
|
export const UserSummaryItem = LazyComponent<React.ComponentProps<types.UserSummaryItem>>(() => findByCode("defaultRenderUser", "showDefaultAvatarsForNullUsers"));
|
|
@ -20,7 +20,7 @@ import { Logger } from "@utils/Logger";
|
||||||
import { lodash } from "@webpack/common";
|
import { lodash } from "@webpack/common";
|
||||||
|
|
||||||
import { MicrophoneProfile, MicrophoneStore } from "../../betterMicrophone.desktop/stores";
|
import { MicrophoneProfile, MicrophoneStore } from "../../betterMicrophone.desktop/stores";
|
||||||
import { ProfilableStore, replaceObjectValuesIfExist, types } from "../../philsPluginLibrary";
|
import { ProfilableStore, replaceObjectValuesIfExist, types } from "..";
|
||||||
|
|
||||||
export function getDefaultAudioTransportationOptions(connection: types.Connection) {
|
export function getDefaultAudioTransportationOptions(connection: types.Connection) {
|
||||||
return {
|
return {
|
|
@ -19,8 +19,8 @@
|
||||||
import { Logger } from "@utils/Logger";
|
import { Logger } from "@utils/Logger";
|
||||||
import { lodash } from "@webpack/common";
|
import { lodash } from "@webpack/common";
|
||||||
|
|
||||||
import { ScreenshareProfile, ScreenshareStore } from "../../betterScreenshare.dev/stores";
|
import { ScreenshareProfile, ScreenshareStore } from "../../betterScreenshare.desktop/stores";
|
||||||
import { ProfilableStore, replaceObjectValuesIfExist, types, utils } from "../../philsPluginLibrary";
|
import { ProfilableStore, replaceObjectValuesIfExist, types, utils } from "..";
|
||||||
|
|
||||||
|
|
||||||
export function getDefaultVideoTransportationOptions(connection: types.Connection) {
|
export function getDefaultVideoTransportationOptions(connection: types.Connection) {
|
|
@ -18,8 +18,8 @@
|
||||||
|
|
||||||
import TypedEmitter from "typed-emitter";
|
import TypedEmitter from "typed-emitter";
|
||||||
|
|
||||||
import { Framerate, Resolution } from "../../../types";
|
import { Framerate, Resolution } from "../..";
|
||||||
import { Conn, FramerateReducer, VideoQualityManager } from "./";
|
import { Conn, FramerateReducer, VideoQualityManager } from ".";
|
||||||
|
|
||||||
export const ConnectionEvent = {
|
export const ConnectionEvent = {
|
||||||
SPEAKING: "speaking",
|
SPEAKING: "speaking",
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Connection, VideoQualityManager } from "./";
|
import { Connection, VideoQualityManager } from ".";
|
||||||
|
|
||||||
export type FramerateReducer = FramerateReducer_ & {
|
export type FramerateReducer = FramerateReducer_ & {
|
||||||
connection: Connection;
|
connection: Connection;
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
import TypedEmitter from "typed-emitter";
|
import TypedEmitter from "typed-emitter";
|
||||||
|
|
||||||
import { Connection } from "./";
|
import { Connection } from ".";
|
||||||
|
|
||||||
export const MediaEngineEvent = {
|
export const MediaEngineEvent = {
|
||||||
REMOVE_LISTENER: "removeListener",
|
REMOVE_LISTENER: "removeListener",
|
|
@ -16,8 +16,8 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Bitrate, Framerate, Resolution } from "../../";
|
import { Bitrate, Framerate, Resolution } from "../..";
|
||||||
import { Connection } from "./";
|
import { Connection } from ".";
|
||||||
|
|
||||||
export type VideoQualityManager = VideoQualityManager_ & {
|
export type VideoQualityManager = VideoQualityManager_ & {
|
||||||
connection: Connection;
|
connection: Connection;
|
Loading…
Add table
Reference in a new issue