Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
- native SyncPlay groups with shared queues, ready/buffering and local pause/seek reporting - follow-me prompt that transfers another session's playback to this device - auto-skip intros/recaps and skip-credits for final items - blink:// deep links with timestamped scene sharing via QR - Quick Connect approval and QR onboarding from a phone - Rust WebSocket client with Authorization header for Jellyfin 12, capabilities advertising, live sessions and remote commands
22 lines
577 B
TypeScript
22 lines
577 B
TypeScript
import { create } from "zustand";
|
|
|
|
type QuickConnectApprovalState = {
|
|
open: boolean;
|
|
code: string;
|
|
openQuickConnectApproval: (code?: string) => void;
|
|
closeQuickConnectApproval: () => void;
|
|
setCode: (code: string) => void;
|
|
};
|
|
|
|
export const useQuickConnectApprovalStore = create<QuickConnectApprovalState>(
|
|
(set) => ({
|
|
open: false,
|
|
code: "",
|
|
openQuickConnectApproval: (code = "") => set({ open: true, code }),
|
|
closeQuickConnectApproval: () => set({ open: false, code: "" }),
|
|
setCode: (code) => set({ code }),
|
|
}),
|
|
);
|
|
|
|
export default useQuickConnectApprovalStore;
|