added a set of new Vue files and rewrite download and search frontend;

This commit is contained in:
huangjx
2021-10-21 18:04:23 +08:00
parent d409bdfe71
commit 76f6a45ce7
10 changed files with 784 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
<template>
<form class="upload-file-form" id="nc-vue-upload-file-form" :action="path">
<div class="icon-upload fileinput">
<input type="file" name="torrentfile" id="torrentfile" accept=".torrent" @change="handler" />
</div>
</form>
</template>
<script>
export default {
name: "uploadFile",
methods: {
handler(event) {
this.$emit("uploadfile", event, this);
},
},
props: ["path"],
};
</script>
<style scoped lang="scss">
@import "../css/dl_variables.scss";
#nc-vue-upload-file-form {
.icon-upload {
background-image: url("../../img/upload.svg");
}
.icon-upload.fileinput {
background-color: #9f9fad;
height: 100%;
& input[type="file"] {
cursor: pointer;
font-size: 16px;
opacity: 0;
position: relative;
width: $upload-width;
z-index: 20;
}
}
}
</style>