-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: folder upload fix #741 * fix: apply gofmt formater * feat: upload button prompt * feat: empty folder upload
- Loading branch information
1 parent
6d899a6
commit 8977344
Showing
7 changed files
with
210 additions
and
20 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
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,37 @@ | ||
<template> | ||
<div class="card floating"> | ||
<div class="card-title"> | ||
<h2>{{ $t('prompts.upload') }}</h2> | ||
</div> | ||
|
||
<div class="card-content"> | ||
<p>{{ $t('prompts.uploadMessage') }}</p> | ||
</div> | ||
|
||
<div class="card-action full"> | ||
<div @click="uploadFile" class="action"> | ||
<i class="material-icons">insert_drive_file</i> | ||
<div class="title">File</div> | ||
</div> | ||
<div @click="uploadFolder" class="action"> | ||
<i class="material-icons">folder</i> | ||
<div class="title">Folder</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'upload', | ||
methods: { | ||
uploadFile: function () { | ||
document.getElementById('upload-input').click() | ||
}, | ||
uploadFolder: function () { | ||
document.getElementById('upload-folder-input').click() | ||
} | ||
} | ||
} | ||
</script> |
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