-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
813 additions
and
718 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# P2P-Transfer | ||
|
||
A P2P File Transfer Web App | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
rm -rf ./build | ||
mkdir ./build | ||
|
||
cd ./frontend | ||
pnpm install | ||
pnpm generate | ||
cp -r ./dist ../build/www | ||
cd .. | ||
|
||
cd ./backend | ||
pnpm install | ||
pnpm build | ||
cp ./dist/server.min.mjs ./package.json ../build | ||
cd .. | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<script lang="ts" setup> | ||
/* Properties */ | ||
defineProps<{ | ||
input: boolean; | ||
}>(); | ||
/* Emits */ | ||
defineEmits<{ | ||
'update:input': [value: boolean] | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<div class="flex flex-col items-center overflow-hidden rounded-lg"> | ||
<div class="flex font-bold items-center w-full"> | ||
<button | ||
@click="$emit('update:input', true)" | ||
class="py-2 w-1/2" | ||
:class="input ? 'bg-green-300' : 'bg-gray-200'"> | ||
{{ $t('button.blob_mode') }} | ||
</button> | ||
<button | ||
@click="$emit('update:input', false)" | ||
class="py-2 w-1/2" | ||
:class="input ? 'bg-gray-200' : 'bg-green-300'"> | ||
{{ $t('button.stream_mode') }} | ||
</button> | ||
</div> | ||
<div class="bg-green-300 px-4 py-4 w-80"> | ||
{{ $t(input ? 'ui.blob_mode' : 'ui.stream_mode') }} | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script lang="ts" setup> | ||
/* Properties */ | ||
defineProps<{ | ||
progress: number; | ||
color?: string; | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<div class="border-2 border-gray-400 h-5 overflow-hidden relative rounded-xl"> | ||
<div | ||
class="h-full text-base" | ||
:class="color" | ||
:style="{ width: `${progress}%` }"> | ||
</div> | ||
<div | ||
class="absolute flex inset-0 items-center justify-center text-sm"> | ||
{{ progress.toFixed(1) }}% | ||
</div> | ||
</div> | ||
</template> |
Oops, something went wrong.