@@ -242,20 +68,20 @@ window.addEventListener('blur', () => {
+ :class="{'items-center': displayedIsEmpty}">
- Ready to receive
+ Ready to receive{{ outboundPayload != undefined ? ' / send' : '' }}
Nearby devices
-
+
{
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ ei.name ?? 'Unknown' }}
-
-
-
-
-
+ :class="{'cursor-pointer': item.endpoint}" @click="item.endpoint && sendInfo(item.id)">
-
+
@@ -347,8 +132,9 @@ window.addEventListener('blur', () => {
+
{
- {{ request.meta?.pin_code }}
+ {{ item.pin_code }}
-
+
- {{ request.meta?.source?.name ?? 'Unknown' }}
+ {{ item.name }}
-
+
+
- Wants to share {{ request.meta?.files?.join(', ') ?? request.meta?.text_description ?? 'some file(s).' }}
+ Wants to share {{ item.files?.join(', ') ?? item.text_description ?? 'some file(s).' }}
-
-
- Sending
-
-
- {{ f }}
+
+
-
-
+
Receiving...
-
+
{{ f }}
+
-
+
+
Received
-
- Saved to {{ request.meta?.destination }}
+
+ Saved to {{ item.destination }}
-
+
+
+
+ Transfer cancelled
+
+
+
+
+
Unexpected disconnection
Clear
@@ -435,7 +242,8 @@ window.addEventListener('blur', () => {
-
+
+
@@ -447,3 +255,265 @@ window.addEventListener('blur', () => {
+
+
\ No newline at end of file
diff --git a/frontend/src/utils.ts b/frontend/src/utils.ts
new file mode 100644
index 0000000..4c3a7df
--- /dev/null
+++ b/frontend/src/utils.ts
@@ -0,0 +1,3 @@
+export function opt
(v?: T) {
+ return v ?? null;
+}
\ No newline at end of file