Selkies

panels/clipboard

Functions

pickClipboardImage()

function pickClipboardImage(onPicked): void;

Defined in: panels/clipboard.tsx:41

Opens the browser's file dialog for an image and hands the pick to onPicked, whether or not the view that asked is still mounted.

Parameters

ParameterTypeDescription
onPicked(file) => voidReceives the chosen file.

Returns

void


Clipboard()

function Clipboard(): Element;

Defined in: panels/clipboard.tsx:76

Returns

Element


startingBool()

function startingBool(key): boolean;

Defined in: panels/clipboard.tsx:93

A switch's starting state: a locked server value, else the stored preference, else the server's value. The panel mounts when it opens, after the server settings arrived.

Parameters

ParameterType
keystring

Returns

boolean


toggleClientSetting()

function toggleClientSetting(
   key, 
   value, 
   setValue
): void;

Defined in: panels/clipboard.tsx:104

One clipboard switch: optimistic, stored, then posted like any setting.

Parameters

ParameterType
keystring
valueboolean
setValue(v) => void

Returns

void


handleCopySecret()

function handleCopySecret(): void;

Defined in: panels/clipboard.tsx:156

Has the core write the masked secret to this device's clipboard, inside this click.

Returns

void


handleImagePicked()

function handleImagePicked(file): void;

Defined in: panels/clipboard.tsx:161

Sends a picked image to the session clipboard, or reports a non-image.

Parameters

ParameterType
fileFile

Returns

void