some fixes

This commit is contained in:
thororen 2026-09-26 21:58:55 -04:00
parent 88c35d30c5
commit 54d5b6e295
No known key found for this signature in database
6 changed files with 47 additions and 24 deletions

View file

@ -48,3 +48,28 @@ export const enum VideoQualityMode {
AUTO = 1,
FULL = 2,
}
export const enum ApplicationStreamPresets {
PRESET_VIDEO = 1,
PRESET_DOCUMENTS = 2,
PRESET_CUSTOM = 3,
PRESET_AUTO = 4,
PRESET_MOBILE_DEFAULT = 5,
PRESET_MOBILE_PERFORMANCE = 6,
PRESET_MOBILE_HIGH_QUALITY = 7,
}
export const enum ApplicationStreamResolutions {
RESOLUTION_SOURCE = 0,
RESOLUTION_480 = 480,
RESOLUTION_720 = 720,
RESOLUTION_1080 = 1080,
RESOLUTION_1440 = 1440,
}
export const enum ApplicationStreamFPS {
FPS_5 = 5,
FPS_15 = 15,
FPS_30 = 30,
FPS_60 = 60,
}

View file

@ -1,6 +1,10 @@
import { FluxStore } from "..";
import { ApplicationStreamFPS, ApplicationStreamPresets, ApplicationStreamResolutions } from "../../enums";
export interface ApplicationStreamingSettingsState {
preset: ApplicationStreamPresets;
resolution: ApplicationStreamResolutions;
fps: ApplicationStreamFPS;
soundshareEnabled: boolean;
}

View file

@ -1,7 +1,16 @@
import { FluxStore } from "..";
export interface AuthSessionClientInfo {
os?: string;
platform?: string;
location?: string;
ip?: string;
}
export interface AuthSession {
id_hash: string;
approx_last_used_time: Date;
client_info?: AuthSessionClientInfo;
}
export class AuthSessionsStore extends FluxStore {

View file

@ -1,6 +1,11 @@
import { FluxStore } from "..";
export interface ExpandedGuildFolderState {
expandedFolders: number[];
}
export class ExpandedGuildFolderStore extends FluxStore {
getExpandedFolders(): Set<number>;
getState(): ExpandedGuildFolderState;
isFolderExpanded(folderId: number): boolean;
}

View file

@ -1,8 +1,8 @@
import { FluxStore } from "..";
export class GuildAvailabilityStore extends FluxStore {
totalGuilds: number;
totalUnavailableGuilds: number;
unavailableGuilds: string[];
isUnavailable(guildId: string): boolean;
get totalGuilds(): number;
get totalUnavailableGuilds(): number;
get unavailableGuilds(): string[];
isUnavailable(guildId: string | null | undefined): boolean;
}

View file

@ -87,26 +87,6 @@ export let ExperimentStore: t.ExperimentStore;
export let UserAffinitiesStore: t.UserAffinitiesStore;
export let ApplicationStreamingStore: t.ApplicationStreamingStore;
export let ApplicationStreamPreviewStore: t.ApplicationStreamPreviewStore;
export let SortedGuildStore: t.SortedGuildStore;
export let JoinedThreadsStore: t.JoinedThreadsStore;
export let SafetyHubStore: t.SafetyHubStore;
export let PrivateChannelSortStore: t.PrivateChannelSortStore;
export let UserProfileSettingsStore: t.UserProfileSettingsStore;
export let AuthorizedAppsStore: t.AuthorizedAppsStore;
export let ChannelSectionStore: t.ChannelSectionStore;
export let ClientThemesBackgroundStore: t.ClientThemesBackgroundStore;
export let ConnectedAccountsStore: t.ConnectedAccountsStore;
export let ChannelMemberStore: t.ChannelMemberStore;
export let ThreadMemberListStore: t.ThreadMemberListStore;
export let CollapsedVoiceChannelStore: t.CollapsedVoiceChannelStore;
export let ReferencedMessageStore: t.ReferencedMessageStore;
export let SessionsStore: t.SessionsStore;
export let UserGuildJoinRequestStore: t.UserGuildJoinRequestStore;
export let SelfPresenceStore: t.SelfPresenceStore;
export let MessageRequestStore: t.MessageRequestStore;
export let GIFPickerViewStore: t.GIFPickerViewStore;
export let GuildReadStateStore: t.GuildReadStateStore;
export let SortedGuildStore: t.SortedGuildStore;
export let JoinedThreadsStore: t.JoinedThreadsStore;
export let SafetyHubStore: t.SafetyHubStore;