mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
v1.5-beta.3
This commit is contained in:
@@ -80,7 +80,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'locale' => 'sk',
|
||||
'locale' => 'en',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
@@ -17,5 +17,5 @@ return [
|
||||
'limit_storage_by_capacity' => true,
|
||||
|
||||
// Define user storage capacity in MB. E.g. value 2000 is 2.00GB
|
||||
'user_storage_capacity' => 150,
|
||||
'user_storage_capacity' => 5000,
|
||||
];
|
||||
2
public/js/main.js
vendored
2
public/js/main.js
vendored
File diff suppressed because one or more lines are too long
@@ -181,6 +181,14 @@
|
||||
{{ $t('context_menu.move') }}
|
||||
</div>
|
||||
</li>
|
||||
<li class="menu-option" @click="deleteItem">
|
||||
<div class="icon">
|
||||
<trash-2-icon size="17"></trash-2-icon>
|
||||
</div>
|
||||
<div class="text-label">
|
||||
{{ $t('context_menu.delete') }}
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="menu-option-group">
|
||||
@@ -291,14 +299,12 @@
|
||||
}
|
||||
},
|
||||
downloadItem() {
|
||||
// Download file
|
||||
this.$downloadFile(
|
||||
this.fileInfoDetail.file_url,
|
||||
this.fileInfoDetail.name + '.' + this.fileInfoDetail.mimetype
|
||||
)
|
||||
},
|
||||
deleteItem() {
|
||||
// Dispatch remove item
|
||||
this.$store.dispatch('deleteItem', this.fileInfoDetail)
|
||||
},
|
||||
renameItem() {
|
||||
|
||||
@@ -137,6 +137,7 @@
|
||||
input {
|
||||
min-width: initial;
|
||||
width: 100%;
|
||||
max-width: initial;
|
||||
padding: 9px 20px 9px 30px;
|
||||
|
||||
&:focus {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<ul class="link-group">
|
||||
<router-link :to="{name: link.routeName}" v-for="(link, i) in navigation" :key="i" :class="link.icon" class="link-item" @click.native="$emit('menu', link.icon)">
|
||||
<router-link :to="{name: link.routeName}" v-for="(link, i) in navigation" :key="i" v-if="link.isVisible" :class="link.icon" class="link-item" @click.native="$emit('menu', link.icon)">
|
||||
<div class="menu-icon">
|
||||
<hard-drive-icon v-if="link.icon === 'hard-drive'" size="17"></hard-drive-icon>
|
||||
<share-icon v-if="link.icon === 'share'" size="17"></share-icon>
|
||||
|
||||
@@ -44,31 +44,37 @@
|
||||
icon: 'hard-drive',
|
||||
title: this.$t('menu.files'),
|
||||
routeName: 'Files',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
icon: 'latest',
|
||||
title: this.$t('menu.latest'),
|
||||
routeName: 'Files',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
icon: 'share',
|
||||
title: this.$t('menu.shared'),
|
||||
routeName: 'SharedFiles',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
icon: 'trash',
|
||||
title: this.$t('menu.trash'),
|
||||
routeName: 'Trash',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
icon: 'settings',
|
||||
title: this.$t('menu.settings'),
|
||||
routeName: 'MobileSettings',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
icon: 'power',
|
||||
title: this.$t('menu.logout'),
|
||||
routeName: 'LogOut',
|
||||
isVisible: true,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
@@ -86,8 +86,8 @@
|
||||
return {
|
||||
isLoading: false,
|
||||
checkedAccount: undefined,
|
||||
loginPassword: 'secret',
|
||||
loginEmail: 'howdy@hi5ve.digital',
|
||||
loginPassword: '',
|
||||
loginEmail: '',
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
<a @click.stop="openFolder(folder)"
|
||||
class="menu-list-item"
|
||||
:class="{'is-current': folder && currentFolder.unique_id === folder.unique_id}"
|
||||
:class="{'is-current': (folder && currentFolder) && (currentFolder.unique_id === folder.unique_id)}"
|
||||
v-for="folder in app.favourites"
|
||||
:key="folder.unique_id">
|
||||
<div>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<script>
|
||||
import MenuItemList from '@/components/Mobile/MenuItemList'
|
||||
import MobileHeader from '@/components/Mobile/MobileHeader'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
||||
export default {
|
||||
name: 'MobileSettings',
|
||||
@@ -21,27 +22,37 @@
|
||||
MenuItemList,
|
||||
MobileHeader,
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['config']),
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
navigation: [
|
||||
{
|
||||
icon: 'user',
|
||||
title: this.$t('menu.profile'),
|
||||
routeName: 'Profile',
|
||||
},
|
||||
{
|
||||
icon: 'lock',
|
||||
title: this.$t('menu.password'),
|
||||
routeName: 'Password',
|
||||
},
|
||||
{
|
||||
icon: 'hard-drive',
|
||||
title: this.$t('menu.storage'),
|
||||
routeName: 'Storage',
|
||||
},
|
||||
]
|
||||
navigation: undefined
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
this.navigation = [
|
||||
{
|
||||
icon: 'user',
|
||||
title: this.$t('menu.profile'),
|
||||
routeName: 'Profile',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
icon: 'lock',
|
||||
title: this.$t('menu.password'),
|
||||
routeName: 'Password',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
icon: 'hard-drive',
|
||||
title: this.$t('menu.storage'),
|
||||
routeName: 'Storage',
|
||||
isVisible: this.config.storageLimit,
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
{{ $t('menu.password') }}
|
||||
</div>
|
||||
</router-link>
|
||||
<router-link :to="{name: 'Storage'}" class="menu-list-item link">
|
||||
<router-link v-if="config.storageLimit" :to="{name: 'Storage'}" class="menu-list-item link">
|
||||
<div class="icon">
|
||||
<hard-drive-icon size="17"></hard-drive-icon>
|
||||
</div>
|
||||
@@ -45,6 +45,7 @@
|
||||
import ContentSidebar from '@/components/Sidebar/ContentSidebar'
|
||||
import ContentGroup from '@/components/Sidebar/ContentGroup'
|
||||
import UserHeadline from '@/components/Sidebar/UserHeadline'
|
||||
import { mapGetters } from 'vuex'
|
||||
import {
|
||||
HardDriveIcon,
|
||||
UserIcon,
|
||||
@@ -53,6 +54,9 @@
|
||||
|
||||
export default {
|
||||
name: 'Settings',
|
||||
computed: {
|
||||
...mapGetters(['config']),
|
||||
},
|
||||
components: {
|
||||
ContentSidebar,
|
||||
HardDriveIcon,
|
||||
|
||||
7
webpack.mix.js
vendored
7
webpack.mix.js
vendored
@@ -23,11 +23,4 @@ mix.js('resources/js/main.js', 'public/js')
|
||||
}
|
||||
},
|
||||
})
|
||||
.options({
|
||||
hmrOptions: {
|
||||
host: '172.20.10.5',
|
||||
//host: '192.168.1.131',
|
||||
port: '8080'
|
||||
},
|
||||
})
|
||||
.disableNotifications();
|
||||
|
||||
Reference in New Issue
Block a user