From d0975a6e7ee57de4debda94e823011d813fbf4a1 Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
Date: Sun, 5 Sep 2021 21:39:24 -0500
Subject: Initial rewrite in svelte

---
 src/components/FileUpload.vue | 51 -------------------------------------------
 1 file changed, 51 deletions(-)
 delete mode 100644 src/components/FileUpload.vue

(limited to 'src/components/FileUpload.vue')

diff --git a/src/components/FileUpload.vue b/src/components/FileUpload.vue
deleted file mode 100644
index 082fc9d..0000000
--- a/src/components/FileUpload.vue
+++ /dev/null
@@ -1,51 +0,0 @@
-<template>
-  <label class="file-upload-lbl">
-    <input
-      type="file"
-      :accept="accept"
-      @change="$emit('fileChanged', $event.target.files)"
-      :multiple="multiple" hidden />
-    <slot>Upload</slot>
-  </label>
-</template>
-
-<script lang="ts">
-import { defineComponent } from 'vue';
-
-export default defineComponent({
-  name: 'FileUpload',
-  props: {
-    accept: {
-      type: String,
-      required: false,
-    },
-    multiple: {
-      type: Boolean,
-      default: false,
-    },
-  },
-  emits: {
-    fileChanged: null,
-  },
-});
-</script>
-
-<style scoped>
-.file-upload-lbl {
-  background-color: #500000;
-  color: white;
-  padding: 0.5em;
-  text-align: center;
-}
-
-.file-upload-lbl:hover {
-  color: grey;
-  cursor: pointer;
-}
-
-@media (prefers-color-scheme: dark) {
-  .file-upload-lbl {
-    background-color: #81302b;
-  }
-}
-</style>
-- 
cgit v1.2.3

