desktop requirements for phils stuff

This commit is contained in:
thororen1234 2024-07-18 01:15:20 -04:00
parent 0da23d2810
commit 4731566bba
83 changed files with 31 additions and 31 deletions

View file

@ -31,8 +31,8 @@ import {
SettingsModalProfilesCard,
validateNumberInput,
validateTextInputNumber
} from "../../philsPluginLibrary";
import { Styles } from "../../philsPluginLibrary/styles";
} from "../../philsPluginLibrary.desktop";
import { Styles } from "../../philsPluginLibrary.desktop/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";
import { types } from "../../philsPluginLibrary.desktop";
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";
import { addSettingsPanelButton, Emitter, MicrophoneSettingsIcon, removeSettingsPanelButton } from "../philsPluginLibrary.desktop";
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";
import { patchConnectionAudioTransportOptions } from "../../philsPluginLibrary/patches/audio";
import { Emitter, MediaEngineStore, Patcher, types } from "../../philsPluginLibrary.desktop";
import { patchConnectionAudioTransportOptions } from "../../philsPluginLibrary.desktop/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";
import { createPluginStore, ProfilableInitializer, ProfilableStore, profileable, ProfileableProfile } from "../../philsPluginLibrary.desktop";
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";
import { MediaEngineStore, types } from "../../philsPluginLibrary.desktop";
import { screenshareStore } from "../stores";
export const AudioSourceSelect = (props?: typeof Select["defaultProps"]) => {

View file

@ -35,8 +35,8 @@ import {
types,
validateNumberInput,
validateTextInputNumber
} from "../../philsPluginLibrary";
import { Styles } from "../../philsPluginLibrary/styles";
} from "../../philsPluginLibrary.desktop";
import { Styles } from "../../philsPluginLibrary.desktop/styles";
import { PluginInfo } from "../constants";
import { ScreenshareAudioProfile, ScreenshareAudioStore, ScreenshareProfile, ScreenshareStore } from "../stores";

View file

@ -18,7 +18,7 @@
import { Devs } from "@utils/constants";
import { types } from "../../philsPluginLibrary";
import { types } from "../../philsPluginLibrary.desktop";
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";
import { addSettingsPanelButton, Emitter, removeSettingsPanelButton, ScreenshareSettingsIcon } from "../philsPluginLibrary.desktop";
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";
import { patchConnectionVideoSetDesktopSourceWithOptions, patchConnectionVideoTransportOptions } from "../../philsPluginLibrary/patches/video";
import { Emitter, MediaEngineStore, Patcher, types } from "../../philsPluginLibrary.desktop";
import { patchConnectionVideoSetDesktopSourceWithOptions, patchConnectionVideoTransportOptions } from "../../philsPluginLibrary.desktop/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";
import { Emitter, MediaEngineStore, patchConnectionAudioTransportOptions, Patcher, types } from "../../philsPluginLibrary.desktop";
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";
import { SettingsModalCard, SettingsModalCardItem } from "../../philsPluginLibrary.desktop";
import Plugin from "..";
import { AudioSourceSelect, OpenScreenshareSettingsButton } from "../components";
import { PluginInfo } from "../constants";

View file

@ -22,7 +22,7 @@ import {
MicrophoneStore as ScreenshareAudioStore,
microphoneStoreDefault as screenshareAudioStoreDefault
} from "../../betterMicrophone.desktop/stores";
import { createPluginStore, ProfilableStore, profileable } from "../../philsPluginLibrary";
import { createPluginStore, ProfilableStore, profileable } from "../../philsPluginLibrary.desktop";
import { PluginInfo } from "../constants";
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";
import { createPluginStore, ProfilableInitializer, ProfilableStore, profileable, ProfileableProfile } from "../../philsPluginLibrary.desktop";
import { PluginInfo } from "../constants";

View file

@ -21,7 +21,7 @@ import { useEffect, UserUtils, useState } from "@webpack/common";
import { User } from "discord-types/general";
import React from "react";
import { createDummyUser, types, UserSummaryItem } from "../../philsPluginLibrary";
import { createDummyUser, types, UserSummaryItem } from "..";
export interface AuthorUserSummaryItemProps extends Partial<React.ComponentProps<types.UserSummaryItem>> {
authors: PluginAuthor[];

View file

@ -19,7 +19,7 @@
import { Flex } from "@components/Flex";
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 { SettingsModalCard } from "./SettingsModalCard";
import { SettingsModalCardItem } from "./SettingsModalCardItem";

View file

@ -20,7 +20,7 @@ import { classes } from "@utils/misc";
import { Button } from "@webpack/common";
import React from "react";
import { panelClasses } from "../../../philsPluginLibrary";
import { panelClasses } from "../..";
export type IconComponent = <T extends { className: string; }>(props: T) => JSX.Element;
export interface SettingsPanelButtonProps extends Partial<React.ComponentProps<typeof Button>> {

View file

@ -19,6 +19,6 @@
import { LazyComponent } from "@utils/react";
import { findByCode } from "@webpack";
import { types } from "../";
import { types } from "..";
export const UserSummaryItem = LazyComponent<React.ComponentProps<types.UserSummaryItem>>(() => findByCode("defaultRenderUser", "showDefaultAvatarsForNullUsers"));

View file

@ -20,7 +20,7 @@ import { Logger } from "@utils/Logger";
import { lodash } from "@webpack/common";
import { MicrophoneProfile, MicrophoneStore } from "../../betterMicrophone.desktop/stores";
import { ProfilableStore, replaceObjectValuesIfExist, types } from "../../philsPluginLibrary";
import { ProfilableStore, replaceObjectValuesIfExist, types } from "..";
export function getDefaultAudioTransportationOptions(connection: types.Connection) {
return {

View file

@ -19,8 +19,8 @@
import { Logger } from "@utils/Logger";
import { lodash } from "@webpack/common";
import { ScreenshareProfile, ScreenshareStore } from "../../betterScreenshare.dev/stores";
import { ProfilableStore, replaceObjectValuesIfExist, types, utils } from "../../philsPluginLibrary";
import { ScreenshareProfile, ScreenshareStore } from "../../betterScreenshare.desktop/stores";
import { ProfilableStore, replaceObjectValuesIfExist, types, utils } from "..";
export function getDefaultVideoTransportationOptions(connection: types.Connection) {

View file

@ -18,8 +18,8 @@
import TypedEmitter from "typed-emitter";
import { Framerate, Resolution } from "../../../types";
import { Conn, FramerateReducer, VideoQualityManager } from "./";
import { Framerate, Resolution } from "../..";
import { Conn, FramerateReducer, VideoQualityManager } from ".";
export const ConnectionEvent = {
SPEAKING: "speaking",

View file

@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { Connection, VideoQualityManager } from "./";
import { Connection, VideoQualityManager } from ".";
export type FramerateReducer = FramerateReducer_ & {
connection: Connection;

View file

@ -18,7 +18,7 @@
import TypedEmitter from "typed-emitter";
import { Connection } from "./";
import { Connection } from ".";
export const MediaEngineEvent = {
REMOVE_LISTENER: "removeListener",

View file

@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { Bitrate, Framerate, Resolution } from "../../";
import { Connection } from "./";
import { Bitrate, Framerate, Resolution } from "../..";
import { Connection } from ".";
export type VideoQualityManager = VideoQualityManager_ & {
connection: Connection;