Release 0.0.4
This commit is contained in:
1 parent
7856725c72
commit
3ae47dde8e
10 files changed
+56
-26
No files matched your search
+4
-1
@@ -4,7 +4,8 @@ import SendPanel from './components/SendPanel.vue';
|
||||
import ReceivePanel from './components/ReceivePanel.vue';
|
||||
|
||||
const mode = ref<'send' | 'receive'>('send');
|
||||
const canDownloadApp = import.meta.env.PROD && location.protocol !== 'file:';
|
||||
const isLocal = location.protocol === 'file:';
|
||||
const canDownloadApp = import.meta.env.PROD && !isLocal;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -17,6 +18,8 @@ const canDownloadApp = import.meta.env.PROD && location.protocol !== 'file:';
|
||||
</p>
|
||||
<a v-if="canDownloadApp" class="app-download" href="./hellcon-local.html" download="HellCon.html">Download app for local use</a>
|
||||
|
||||
<p v-if="canDownloadApp || isLocal" class="status">For large files in the downloaded local version, use desktop Chrome on the receiving machine and choose “Choose destination & receive to disk”.</p>
|
||||
|
||||
<div class="tabs" role="group" aria-label="Transfer mode">
|
||||
<button :class="{ active: mode === 'send' }" :aria-pressed="mode === 'send'" @click="mode = 'send'">Send</button>
|
||||
<button :class="{ active: mode === 'receive' }" :aria-pressed="mode === 'receive'" @click="mode = 'receive'">Receive</button>
|
||||
|
||||
Reference in new issue
Block a user