diff --git a/servers/demo/src/api.ts b/servers/demo/src/api.ts index 526a36b..67c1cfe 100644 --- a/servers/demo/src/api.ts +++ b/servers/demo/src/api.ts @@ -21,3 +21,11 @@ export const createExpenseReportClientUrl = async ({ endpointId }: { endpointId: export const createDeExpenseReportClientUrl = async ({ endpointId }: { endpointId: string }) => { return `${window.location.origin}${base}/belegeinreichung-client/${endpointId}`; }; + +export const createFlottformFileSharingClientUrl = async ({ + endpointId +}: { + endpointId: string; +}) => { + return `${window.location.origin}${base}/flottform-file-sharing-client/${endpointId}`; +}; diff --git a/servers/demo/src/lib/components/FileExchangeProgress.svelte b/servers/demo/src/lib/components/FileExchangeProgress.svelte new file mode 100644 index 0000000..19d260c --- /dev/null +++ b/servers/demo/src/lib/components/FileExchangeProgress.svelte @@ -0,0 +1,27 @@ + + +
+ {exchangeFilesMetaData.fileIndex} of {exchangeFilesMetaData.totalFileCount} files +
+Connecting to the host...
+ {:else if connectionStatus === 'connected'} +---No Files Received Yet---
+ {:else} +Channel is disconnected!
++ Do want to connect one more time? Scan the QR code or copy the link from the other + device! +
++ Connection Channel Failed with the following error: {error} +
++ Start a new connection to exchange files with someone else! +
+ ++ Scan the QR code or use the link below to connect your device +
+{connectionInfo.link}
+
+ ---No Files Received Yet---
+ {:else} +Channel is disconnected!
+Do want to connect one more time? Click the button below!
+ ++ Connection Channel Failed with the following error: {error} +
+ +