WIP improve UX [snapshot task 2]
This commit is contained in:
1 parent
3ae47dde8e
commit
cd66321ea6
13 files changed
+703
-87
No files matched your search
@@ -5,23 +5,32 @@ import type { FileMetadata, TransferState, FileDestination } from '../lib/transf
|
||||
import { computed, onBeforeUnmount, ref } from 'vue';
|
||||
import NetworkSettings from './NetworkSettings.vue';
|
||||
import { acceptAnswerCode, createAnswerCode, createOfferCode, createPeerConnection, fetchTurnOptions, iceConfiguration, getFingerprints, MAX_SIGNAL_LENGTH, STUN_PROVIDERS } from '../lib/webrtc.ts';
|
||||
import { MEMORY_LIMIT, Transfer, validateMetadata } from '../lib/transfer.ts';
|
||||
import { MEMORY_LIMIT, validateMetadata } from '../lib/transfer.ts';
|
||||
import { FileSession, QUEUE_LIMIT, type QueueItem } from '../lib/session.ts';
|
||||
import { ConnectionDiagnostics } from '../lib/connection-diagnostics.ts';
|
||||
import { createDownloadDestination, supportsStreamingDownload } from '../lib/download.ts';
|
||||
|
||||
type Step = 'idle' | 'gathering' | 'offer-ready' | 'answer-ready' | TransferState;
|
||||
type Step = 'session-ready' | 'idle' | 'gathering' | 'offer-ready' | 'answer-ready' | TransferState;
|
||||
interface Session {
|
||||
pc: RTCPeerConnection;
|
||||
options: IceOptions;
|
||||
file: File | null;
|
||||
controller: AbortController;
|
||||
transfer: Transfer | null;
|
||||
transfer: FileSession | null;
|
||||
diagnostics: ConnectionDiagnostics;
|
||||
timer?: ReturnType<typeof setTimeout>;
|
||||
}
|
||||
|
||||
const props = defineProps<{ sending?: boolean }>();
|
||||
const file = ref<File | null>(null);
|
||||
const selectedFiles = ref<File[]>([]);
|
||||
const queuedFiles = ref<QueueItem[]>([]);
|
||||
const sendState = ref<TransferState | null>(null);
|
||||
const receiveState = ref<TransferState | null>(null);
|
||||
const outgoing = ref<FileMetadata | null>(null);
|
||||
const receiveProgress = ref(0);
|
||||
const lastDirection = ref<'send' | 'receive'>('send');
|
||||
const history = ref<string[]>([]);
|
||||
const emit = defineEmits<{ sessionChange: [active: boolean] }>();
|
||||
const inputCode = ref('');
|
||||
const outputCode = ref('');
|
||||
const step = ref<Step>('idle');
|
||||
@@ -32,6 +41,9 @@ const verified = ref(false);
|
||||
const progress = ref(0);
|
||||
const incoming = ref<FileMetadata | null>(null);
|
||||
const downloadUrl = ref('');
|
||||
const downloadName = ref('');
|
||||
const connected = ref(false);
|
||||
|
||||
const choosing = ref(false);
|
||||
const dragover = ref(false);
|
||||
const diagnosticLines = ref<string[]>([]);
|
||||
@@ -45,8 +57,9 @@ const canStreamDownload = supportsStreamingDownload();
|
||||
const streamedDownload = ref(false);
|
||||
let active: Session | null = null;
|
||||
let copyTimer: ReturnType<typeof setTimeout> | undefined;
|
||||
const busy = computed(() => !['idle', 'closed', 'done'].includes(step.value));
|
||||
const busy = computed(() => !['idle', 'closed', 'done', 'session-ready'].includes(step.value));
|
||||
const status = computed(() => ({
|
||||
'session-ready': 'Connected. Add files to send, or wait for your peer.',
|
||||
idle: props.sending ? 'Choose a file to start.' : 'Paste the sender’s connection code to start.',
|
||||
gathering: 'Gathering connection info (up to 30 seconds)…',
|
||||
'offer-ready': 'Send your code through an authenticated channel, then paste the answer.',
|
||||
@@ -56,7 +69,7 @@ const status = computed(() => ({
|
||||
'choose-storage': 'Choose how to receive this file.',
|
||||
sending: 'Sending…', receiving: 'Receiving…', saving: 'Saving file…',
|
||||
'awaiting-receipt': 'Waiting for the receiver to confirm the complete file…',
|
||||
done: props.sending ? 'The receiver confirmed the complete file.' : (downloadUrl.value ? 'File received. Save it below.' : streamedDownload.value ? 'File handed to your browser. Check Downloads for the final save result.' : 'File saved to disk.'),
|
||||
done: lastDirection.value === 'send' ? 'The receiver confirmed the complete file.' : (downloadUrl.value ? 'File received. Save it below.' : streamedDownload.value ? 'File handed to your browser. Check Downloads for the final save result.' : 'File saved to disk.'),
|
||||
closed: props.sending
|
||||
? 'Create a new code, then ask the receiver for a new answer. Previous codes cannot reopen a closed connection.'
|
||||
: 'Ask the sender for a new code and paste it above. Previous codes cannot reopen a closed connection.',
|
||||
@@ -64,11 +77,12 @@ const status = computed(() => ({
|
||||
|
||||
function revokeDownload() {
|
||||
if (downloadUrl.value) URL.revokeObjectURL(downloadUrl.value);
|
||||
downloadUrl.value = '';
|
||||
downloadUrl.value = ''; downloadName.value = '';
|
||||
}
|
||||
function dispose() {
|
||||
const old = active;
|
||||
active = null;
|
||||
active = null; connected.value = false; queuedFiles.value = []; emit('sessionChange', false);
|
||||
managedCredentials.value = null; settings.value.allowTurn = false;
|
||||
if (!old) return;
|
||||
clearTimeout(old.timer);
|
||||
// Start the snapshot before aborting/closing anything; close the peer after
|
||||
@@ -79,58 +93,98 @@ function dispose() {
|
||||
old.pc.ondatachannel = old.pc.onconnectionstatechange = null;
|
||||
}
|
||||
function reset(keepNetwork = false) {
|
||||
const allowTurn = settings.value.allowTurn;
|
||||
dispose(); revokeDownload(); clearTimeout(copyTimer);
|
||||
if (keepNetwork) settings.value.allowTurn = allowTurn;
|
||||
latestDiagnostics = null; diagnosticLines.value = [];
|
||||
managedCredentials.value = null;
|
||||
if (!keepNetwork) settings.value.allowTurn = false;
|
||||
inputCode.value = outputCode.value = error.value = '';
|
||||
fps.value = incoming.value = null;
|
||||
verified.value = copied.value = choosing.value = false;
|
||||
progress.value = 0; step.value = 'idle'; streamedDownload.value = false;
|
||||
progress.value = 0; receiveProgress.value = 0; step.value = 'idle'; streamedDownload.value = false;
|
||||
sendState.value = receiveState.value = null; outgoing.value = null; history.value = [];
|
||||
}
|
||||
function fail(session: Session, err: unknown) {
|
||||
if (active !== session) return;
|
||||
session.diagnostics.record('session failed');
|
||||
dispose(); revokeDownload();
|
||||
dispose();
|
||||
managedCredentials.value = null;
|
||||
fps.value = incoming.value = null;
|
||||
outputCode.value = ''; verified.value = false;
|
||||
settings.value.allowTurn = false;
|
||||
if (sendState.value && sendState.value !== 'done') sendState.value = 'closed';
|
||||
if (receiveState.value && receiveState.value !== 'done') receiveState.value = 'closed';
|
||||
error.value = asError(err).message; step.value = 'closed';
|
||||
}
|
||||
function pickFiles(event: Event) {
|
||||
const selected = event.target instanceof HTMLInputElement ? event.target.files?.[0]
|
||||
: event instanceof DragEvent ? event.dataTransfer?.files[0] : undefined;
|
||||
if (!selected) return;
|
||||
reset();
|
||||
if (!Number.isSafeInteger(selected.size) || selected.size < 0) { file.value = null; error.value = 'This file’s size cannot be represented accurately.'; return; }
|
||||
file.value = selected;
|
||||
const list = event.target instanceof HTMLInputElement ? event.target.files
|
||||
: event instanceof DragEvent ? event.dataTransfer?.files : null;
|
||||
const files = Array.from(list || []);
|
||||
if (!files.length) return;
|
||||
try {
|
||||
if (files.length > QUEUE_LIMIT) throw new Error(`Queue up to ${QUEUE_LIMIT} files at a time.`);
|
||||
for (const item of files) validateMetadata({ name: item.name, size: item.size, mime: item.type || '' });
|
||||
if (active?.transfer) active.transfer.add(files);
|
||||
else {
|
||||
if (active) throw new Error('Finish connecting before adding more files.');
|
||||
selectedFiles.value = files; file.value = files[0]!;
|
||||
}
|
||||
error.value = '';
|
||||
} catch (err) { error.value = asError(err).message; }
|
||||
if (event.target instanceof HTMLInputElement) event.target.value = '';
|
||||
}
|
||||
function removeQueued(id: number) { active?.transfer?.remove(id); }
|
||||
function remember(message: string) { history.value = [...history.value.slice(-49), message]; }
|
||||
function disconnect() {
|
||||
dispose(); step.value = 'closed';
|
||||
if (sendState.value && sendState.value !== 'done') sendState.value = 'closed';
|
||||
if (receiveState.value && receiveState.value !== 'done') receiveState.value = 'closed';
|
||||
incoming.value = null; outputCode.value = ''; fps.value = null; verified.value = false;
|
||||
}
|
||||
function declineFile() { if (!choosing.value) active?.transfer?.decline(); }
|
||||
function attach(session: Session, channel: RTCDataChannel) {
|
||||
if (active !== session) { channel.close(); return; }
|
||||
if (session.transfer || channel.label !== 'hellcon-v2' || !channel.ordered || channel.maxRetransmits !== null || channel.maxPacketLifeTime !== null) {
|
||||
if (session.transfer || channel.label !== 'hellcon-v3' || !channel.ordered || channel.maxRetransmits !== null || channel.maxPacketLifeTime !== null) {
|
||||
channel.close(); fail(session, new Error('Unexpected data channel.')); return;
|
||||
}
|
||||
session.transfer = new Transfer(channel, {
|
||||
file: props.sending ? session.file : null,
|
||||
onState: state => { if (active === session) { step.value = state; session.diagnostics.record(`transfer ${state}`); } },
|
||||
onMeta: meta => { if (active === session) incoming.value = meta; },
|
||||
onProgress: (bytes, size) => { if (active === session) progress.value = Math.min(99, Math.floor(bytes / Math.max(size, 1) * 100)); },
|
||||
onComplete: ({ blob }) => {
|
||||
session.transfer = new FileSession(channel, !!props.sending, {
|
||||
onReady: () => { if (active === session) { connected.value = true; step.value = 'session-ready'; clearTimeout(session.timer); } },
|
||||
onQueue: items => { if (active === session) queuedFiles.value = items; },
|
||||
onState: (direction, state, meta) => {
|
||||
if (active !== session) return;
|
||||
progress.value = 100;
|
||||
managedCredentials.value = null;
|
||||
settings.value.allowTurn = false;
|
||||
if (blob) downloadUrl.value = URL.createObjectURL(blob);
|
||||
// The receiver leaves the channel open until its completion ACK reaches the sender.
|
||||
if (props.sending) dispose();
|
||||
else {
|
||||
clearTimeout(session.timer);
|
||||
session.timer = setTimeout(() => { if (active === session) dispose(); }, 10000);
|
||||
step.value = state; lastDirection.value = direction;
|
||||
session.diagnostics.record(`transfer ${direction} ${state}`);
|
||||
if (state === 'done') session.diagnostics.record('transfer done');
|
||||
if (direction === 'send') { sendState.value = state; outgoing.value = meta; if (state === 'waiting-accept') progress.value = 0; }
|
||||
else { receiveState.value = state; if (state === 'choose-storage' && meta.name) { incoming.value = meta; receiveProgress.value = 0; streamedDownload.value = false; } }
|
||||
},
|
||||
onProgress: (direction, bytes, size) => {
|
||||
if (active !== session) return;
|
||||
const percent = Math.min(99, Math.floor(bytes / Math.max(size, 1) * 100));
|
||||
if (direction === 'send') progress.value = percent; else receiveProgress.value = percent;
|
||||
},
|
||||
onComplete: (direction, { blob, meta }) => {
|
||||
if (active !== session) return;
|
||||
if (direction === 'send') progress.value = 100; else receiveProgress.value = 100;
|
||||
remember(`${direction === 'send' ? 'Sent' : 'Received'}: ${meta.name}`);
|
||||
void session.diagnostics.capture();
|
||||
if (blob) { revokeDownload(); downloadUrl.value = URL.createObjectURL(blob); downloadName.value = meta.name; }
|
||||
},
|
||||
onDecline: (direction, meta) => {
|
||||
if (active !== session) return;
|
||||
if (direction === 'send') sendState.value = null; else { receiveState.value = null; incoming.value = null; }
|
||||
remember(`Declined: ${meta.name}`);
|
||||
if (lastDirection.value === direction) {
|
||||
const other = direction === 'send' ? receiveState.value : sendState.value;
|
||||
step.value = other && other !== 'done' ? other : 'session-ready';
|
||||
lastDirection.value = direction === 'send' ? 'receive' : 'send';
|
||||
}
|
||||
},
|
||||
onClose: () => { if (active === session) disconnect(); },
|
||||
onError: err => fail(session, err),
|
||||
});
|
||||
if (props.sending) { session.transfer.add(selectedFiles.value); selectedFiles.value = []; file.value = null; }
|
||||
if (verified.value) session.transfer.verify();
|
||||
}
|
||||
function start() {
|
||||
@@ -147,15 +201,16 @@ function start() {
|
||||
if (latestDiagnostics === diagnostics) diagnosticLines.value = lines;
|
||||
});
|
||||
latestDiagnostics = diagnostics; diagnosticLines.value = [...diagnostics.lines];
|
||||
const session: Session = { pc, options, file: file.value, controller: new AbortController(), transfer: null, diagnostics };
|
||||
active = session;
|
||||
const session: Session = { pc, options, controller: new AbortController(), transfer: null, diagnostics };
|
||||
active = session; emit('sessionChange', true);
|
||||
session.timer = setTimeout(() => fail(session, new Error('Connection timed out. Start again with new codes.')), 5 * 60 * 1000);
|
||||
pc.ondatachannel = event => attach(session, event.channel);
|
||||
pc.onconnectionstatechange = () => {
|
||||
if (active !== session) return;
|
||||
if (['failed', 'closed'].includes(pc.connectionState)) {
|
||||
if (step.value === 'done') dispose();
|
||||
else fail(session, new Error('Connection failed. Direct connections may be blocked; TURN is available only if both people opt in.'));
|
||||
const unfinished = [sendState.value, receiveState.value].some(state => state && state !== 'done' && state !== 'closed');
|
||||
if (connected.value && !unfinished) disconnect();
|
||||
else fail(session, new Error('Connection failed. Unfinished files were cancelled. Direct connections may be blocked; TURN is available only if both people opt in.'));
|
||||
}
|
||||
};
|
||||
return session;
|
||||
@@ -175,7 +230,7 @@ async function createCode() {
|
||||
session.pc.setConfiguration(iceConfiguration(configured));
|
||||
managedCredentials.value = session.options.allowTurn && session.options.managedTurn ? configured : null;
|
||||
const options = { ...session.options, signal: session.controller.signal };
|
||||
if (props.sending) attach(session, session.pc.createDataChannel('hellcon-v2'));
|
||||
if (props.sending) attach(session, session.pc.createDataChannel('hellcon-v3'));
|
||||
const code = props.sending ? await createOfferCode(session.pc, options) : await createAnswerCode(session.pc, pasted, options);
|
||||
if (active !== session) return;
|
||||
outputCode.value = code;
|
||||
@@ -221,7 +276,7 @@ function verify() {
|
||||
}
|
||||
async function acceptFile(destination: 'disk' | 'memory' | 'download') {
|
||||
const session = active;
|
||||
if (!session?.transfer || !incoming.value || choosing.value || step.value !== 'choose-storage') return;
|
||||
if (!session?.transfer || !incoming.value || choosing.value || receiveState.value !== 'choose-storage') return;
|
||||
choosing.value = true; error.value = '';
|
||||
let writable: FileDestination | undefined;
|
||||
try {
|
||||
@@ -235,6 +290,7 @@ async function acceptFile(destination: 'disk' | 'memory' | 'download') {
|
||||
writable = await handle.createWritable();
|
||||
if (active !== session) { await writable.abort(); return; }
|
||||
}
|
||||
revokeDownload();
|
||||
streamedDownload.value = destination === 'download';
|
||||
session.diagnostics.record(`storage ${destination}`);
|
||||
session.transfer.accept(writable);
|
||||
@@ -252,6 +308,9 @@ async function copy() {
|
||||
copyTimer = setTimeout(() => { copied.value = false; }, 1500);
|
||||
} catch { if (active === session) error.value = 'Clipboard unavailable. Select and copy the code manually.'; }
|
||||
}
|
||||
function stateLabel(state: TransferState | null) {
|
||||
return state ? ({ verification: 'Connecting', 'waiting-accept': 'Waiting for acceptance', 'choose-storage': 'Choose where to save', sending: 'Sending', receiving: 'Receiving', saving: 'Saving', 'awaiting-receipt': 'Waiting for receipt', done: 'Complete', closed: 'Cancelled' })[state] : 'Declined';
|
||||
}
|
||||
function formatBytes(bytes: number) {
|
||||
if (bytes < 1024) return `${bytes} B`;
|
||||
const index = Math.min(5, Math.floor(Math.log(bytes) / Math.log(1024)));
|
||||
@@ -265,21 +324,24 @@ onBeforeUnmount(() => { dispose(); revokeDownload(); clearTimeout(copyTimer); })
|
||||
|
||||
<template>
|
||||
<div class="panel">
|
||||
<template v-if="sending">
|
||||
<label class="step" for="file-input">Choose one file</label>
|
||||
<template v-if="sending || connected">
|
||||
<label class="step" for="file-input">{{ connected ? 'Add files to send' : 'Choose files' }}</label>
|
||||
<div class="dropzone" :class="{ dragover }" @dragover.prevent="dragover = true" @dragleave="dragover = false" @drop.prevent="dragover = false; pickFiles($event)">
|
||||
<p>Drop a file here or choose one below. Choosing a new file cancels the current connection.</p>
|
||||
<input id="file-input" type="file" @change="pickFiles" />
|
||||
<p>Choose or drop files. Each direction sends one file at a time; both people can send on this connection.</p>
|
||||
<input id="file-input" type="file" multiple @change="pickFiles" />
|
||||
</div>
|
||||
<p v-if="file" class="file-chip"><span>{{ file.name }}</span><span>{{ formatBytes(file.size) }}</span></p>
|
||||
<p v-if="!connected && selectedFiles.length" class="status">{{ selectedFiles.length }} file(s) selected</p>
|
||||
<ul v-if="!connected && selectedFiles.length"><li v-for="(item, index) in selectedFiles" :key="index">{{ item.name }} — {{ formatBytes(item.size) }}</li></ul>
|
||||
<ul v-if="queuedFiles.length" aria-label="Files waiting to send"><li v-for="item in queuedFiles" :key="item.id">{{ item.file.name }} — {{ formatBytes(item.file.size) }} <button @click="removeQueued(item.id)" :aria-label="'Remove ' + item.file.name">Remove</button></li></ul>
|
||||
<p v-if="outgoing" class="status">Sending: {{ outgoing.name }} — {{ stateLabel(sendState) }} ({{ progress }}%)</p>
|
||||
</template>
|
||||
<NetworkSettings v-model="settings" :disabled="busy" :managed-credentials="managedCredentials" />
|
||||
<NetworkSettings v-model="settings" :disabled="busy || connected" :managed-credentials="managedCredentials" />
|
||||
<p class="status">Connection codes are not encrypted: they can reveal your IP address and connection details to anyone who sees them. Exchange them privately with your intended peer.</p>
|
||||
<template v-if="!sending">
|
||||
<label class="step" for="offer-input">Paste the sender’s connection code</label>
|
||||
<textarea id="offer-input" v-model="inputCode" :maxlength="MAX_SIGNAL_LENGTH" :disabled="busy" />
|
||||
</template>
|
||||
<button class="primary" :disabled="busy || (sending ? !file : !inputCode.trim())" @click="createCode">{{ sending ? 'Create code' : 'Accept & create answer' }}</button>
|
||||
<button class="primary" :disabled="busy || connected || (sending ? !file : !inputCode.trim())" @click="createCode">{{ sending ? 'Create code' : 'Accept & create answer' }}</button>
|
||||
<template v-if="outputCode">
|
||||
<label class="step" for="output-code">{{ sending ? 'Send this code to the receiver' : 'Send this answer to the sender' }}</label>
|
||||
<textarea id="output-code" :value="outputCode" readonly @focus="selectCode" />
|
||||
@@ -297,7 +359,8 @@ onBeforeUnmount(() => { dispose(); revokeDownload(); clearTimeout(copyTimer); })
|
||||
<p class="status">Compare every byte over an authenticated channel an attacker cannot alter (for example, an in-person comparison). Your fingerprint must match their “Their fingerprint”, and vice versa. If either differs, cancel. Both people must confirm before the filename or contents are sent.</p>
|
||||
<button class="primary" :disabled="verified || step === 'done'" @click="verify">{{ verified ? 'Fingerprints confirmed' : 'Both fingerprints match — confirm' }}</button>
|
||||
</div>
|
||||
<div v-if="incoming && step === 'choose-storage'" class="incoming">
|
||||
<div v-if="incoming && receiveState === 'choose-storage'" class="incoming">
|
||||
<button :disabled="choosing" @click="declineFile">Decline file</button>
|
||||
<p>{{ incoming.name }} — {{ formatBytes(incoming.size) }}</p>
|
||||
<p class="status">Only accept files you expect. Encryption does not make their contents safe to open.</p>
|
||||
<button v-if="canStreamDownload" class="primary" :disabled="choosing" @click="acceptFile('download')">Receive as download ({{ formatBytes(incoming.size) }})</button>
|
||||
@@ -306,7 +369,9 @@ onBeforeUnmount(() => { dispose(); revokeDownload(); clearTimeout(copyTimer); })
|
||||
<button :disabled="choosing || incoming.size > MEMORY_LIMIT" @click="acceptFile('memory')">Receive in memory (up to 64 MiB)</button>
|
||||
<p v-if="incoming.size > MEMORY_LIMIT && !canSaveToDisk && !canStreamDownload" class="error">This browser cannot save directly to disk. Use a browser with file-system saving support or send a smaller file.</p>
|
||||
</div>
|
||||
<div v-if="progress > 0 || step === 'done'" class="progress" role="progressbar" :aria-valuenow="progress" aria-valuemin="0" aria-valuemax="100" aria-label="Transfer progress"><div :style="{ width: progress + '%' }"></div></div>
|
||||
<p v-if="incoming && receiveState !== 'choose-storage'" class="status">Receiving: {{ incoming.name }} — {{ stateLabel(receiveState) }} ({{ receiveProgress }}%)</p>
|
||||
<div v-if="outgoing" class="progress" role="progressbar" :aria-valuenow="progress" aria-valuemin="0" aria-valuemax="100" aria-label="Sending progress"><div :style="{ width: progress + '%' }"></div></div>
|
||||
<div v-if="incoming" class="progress" role="progressbar" :aria-valuenow="receiveProgress" aria-valuemin="0" aria-valuemax="100" aria-label="Receiving progress"><div :style="{ width: receiveProgress + '%' }"></div></div>
|
||||
<p class="status" role="status">{{ status }}</p>
|
||||
<p v-if="error" class="error" role="alert">{{ error }}</p>
|
||||
<details v-if="diagnosticLines.length">
|
||||
@@ -315,8 +380,13 @@ onBeforeUnmount(() => { dispose(); revokeDownload(); clearTimeout(copyTimer); })
|
||||
<label class="step" for="connection-diagnostics">Diagnostic log (select and copy)</label>
|
||||
<textarea id="connection-diagnostics" :value="diagnosticLines.join('\n')" readonly rows="12" @focus="selectCode" />
|
||||
</details>
|
||||
<div v-if="downloadUrl && incoming" class="file-chip"><span>{{ incoming.name }}</span><a class="download" :href="downloadUrl" :download="incoming.name">Save file</a></div>
|
||||
<div v-if="downloadUrl" class="file-chip"><span>{{ downloadName }}</span><a class="download" :href="downloadUrl" :download="downloadName">Save file</a></div>
|
||||
<p v-if="downloadUrl && receiveState === 'choose-storage'" class="status">Save the previous file before accepting this one. Accepting replaces its memory download.</p>
|
||||
<p v-if="!connected && step === 'done'" class="status">Connection ended. Exchange fresh codes to send more files.</p>
|
||||
<p v-if="connected" class="status">Connection verified. Either person can add files. Keep both tabs open.</p>
|
||||
<ul v-if="history.length" aria-label="Recent file results"><li v-for="(entry, index) in history" :key="index">{{ entry }}</li></ul>
|
||||
<button v-if="connected || busy" @click="disconnect">Disconnect</button>
|
||||
<button v-if="step !== 'idle'" @click="reset()">{{ busy ? 'Cancel connection' : 'Reset' }}</button>
|
||||
<p class="status">Switching HellCon’s Send/Receive mode cancels the connection. You can switch to your messenger to copy and paste codes; keep this page open until receipt is confirmed.</p>
|
||||
<p class="status">Send/Receive chooses who starts the connection. Disconnect before changing this setup choice. You can switch to your messenger to copy and paste codes; keep this page open until receipt is confirmed.</p>
|
||||
</div>
|
||||
</template>
|
||||
Reference in new issue
Block a user