Skip to content

Commit

Permalink
Merge pull request #351 from stophecom/fix/ts
Browse files Browse the repository at this point in the history
Maintenance
  • Loading branch information
stophecom authored Feb 3, 2025
2 parents db47780 + 8887f06 commit 66d5cd2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/playwright-tests-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: pnpm/action-setup@v4
with:
version: 8
- name: Install dependencies
Expand All @@ -34,7 +34,7 @@ jobs:
run: mkdir -p test-results
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: playwright-report-published
path: test-results
9 changes: 6 additions & 3 deletions src/components/DropZone.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
export let error = ''
export let multiple = false
export let disabled = false
export let accept: string = '' // image/*, .gif etc.
export let accept = '' // image/*, .gif etc.
let isOver = false
Expand Down Expand Up @@ -85,7 +85,10 @@
const handleChange = (e: Event) => {
e.preventDefault()
const fileList: FileList = <FileList>(<HTMLInputElement>e.target).files
const input = e.currentTarget as HTMLInputElement
const fileList = input.files
if (!fileList) return
const files = Array.from(fileList)
if (validateFiles(files)) {
Expand All @@ -102,7 +105,7 @@
/>

<div
class="relative border-2 bg-primary text-white dz:bg-white/70 dz:text-primary dz:border-dashed rounded-2xl dz:rounded-lg border-primary focus-within:outline-none focus-within:shadow-lg shadow-lg shadow-primary/30 dz:shadow-none dz:hover:shadow-lg hover:shadow-black-200/50 hover:border-solid focus-within:border-solid transition"
class="relative border-2 bg-primary text-white dz:bg-white/70 dz:text-primary dz:border-dashed rounded-2xl dz:rounded-lg border-primary focus-within:outline-none focus-within:shadow-lg shadow-lg shadow-primary/30 dz:shadow-none dz:hover:shadow-lg hover:shadow-black-200/50 hover:border-solid focus-within:border-solid transition"
>
<div class="p-2 sm:p-4 flex flex-col items-center justify-center">
<div class="flex w-9 h-9 mb-2">
Expand Down
2 changes: 1 addition & 1 deletion src/components/FileUpload.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
let selectedFile: File | null
let link: string
let progress: number = 0
let progress = 0
let promiseSaveFile: Promise<string>
const chunkSize = getChunkSize(PUBLIC_ENV)
Expand Down

0 comments on commit 66d5cd2

Please sign in to comment.