Files
vuefilemanager/resources/js/components/VueFileManagerComponents/FilesView/MobileActionButtonUpload.vue
MakingCG 515e8ef5ef V1.1
User Authentication
- Login to user account
- Register new user account
- Reset user password

Functionality
- Added locations to menu
- Added trash for deleted folders & files
- Restore files or folders from trash
- Empty trash function
- Favourites folders
- List of 5 latest uploads
- Profile settings page
- Storage info and upload limits

Design
- Night Mode
- Navigation sidebar
- Quick action buttons in mobile version
- Improved mobile UX
- Other small design improvements

Settings
- Enable/Disable user account registration
- Set storage limitation
- Set storage capacity for all users
2020-03-14 18:56:35 +01:00

76 lines
1.6 KiB
Vue

<template>
<button class="mobile-action-button">
<FontAwesomeIcon class="icon" :icon="icon"></FontAwesomeIcon>
<label label="file" class="label button file-input button-base">
{{ text }}
<input
accept="*"
v-show="false"
@change="emmitFiles"
id="file"
type="file"
name="files[]"
multiple
/>
</label>
</button>
</template>
<script>
export default {
name: 'MobileActionButtonUpload',
props: [
'icon', 'text'
],
data() {
return {
files: undefined
}
},
methods: {
emmitFiles(e) {
this.$uploadFiles(e.target.files)
}
}
}
</script>
<style scoped lang="scss">
@import "@assets/app.scss";
.mobile-action-button {
background: $light_background;
margin-right: 15px;
border-radius: 8px;
padding: 7px 10px;
cursor: pointer;
border: none;
.icon {
margin-right: 8px;
@include font-size(14);
}
.label {
@include font-size(14);
font-weight: 700;
color: $text;
}
}
@media (prefers-color-scheme: dark) {
.mobile-action-button {
background: $dark_mode_foreground;
.icon path {
fill: $theme;
}
.label {
color: $dark_mode_text_primary;
}
}
}
</style>