mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
128 lines
3.8 KiB
Vue
128 lines
3.8 KiB
Vue
<template>
|
|
<div id="application-wrapper">
|
|
|
|
<!--On Top of App Components-->
|
|
<FilePreview />
|
|
<Spotlight />
|
|
|
|
<!--Popups-->
|
|
<ProcessingPopup />
|
|
<ConfirmPopup />
|
|
|
|
<CreateTeamFolderPopup />
|
|
<EditTeamFolderPopup />
|
|
|
|
<ShareCreatePopup />
|
|
<ShareEditPopup />
|
|
|
|
<CreateFolderPopup />
|
|
<RenameItemPopup />
|
|
<MoveItemPopup />
|
|
|
|
<!--Mobile components-->
|
|
<FileSortingMobile />
|
|
<FileFilterMobile />
|
|
|
|
<!--Navigations-->
|
|
<MobileNavigation />
|
|
|
|
<!--Others-->
|
|
<DragUI />
|
|
|
|
<!--2 col Sidebars-->
|
|
<SidebarNavigation />
|
|
<PanelNavigationFiles />
|
|
|
|
<div @contextmenu.prevent.capture="contextMenu($event, undefined)" id="file-view">
|
|
<DesktopToolbar/>
|
|
<router-view :key="$route.fullPath" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import FileSortingMobile from '/resources/js/components/FilesView/FileSortingMobile'
|
|
import SidebarNavigation from '/resources/js/components/Sidebar/SidebarNavigation'
|
|
import FileFilterMobile from '/resources/js/components/FilesView/FileFilterMobile'
|
|
import CreateFolderPopup from '/resources/js/components/Others/CreateFolderPopup'
|
|
import ProcessingPopup from '/resources/js/components/FilesView/ProcessingPopup'
|
|
import MobileNavigation from '/resources/js/components/Others/MobileNavigation'
|
|
import ShareCreatePopup from '/resources/js/components/Others/ShareCreatePopup'
|
|
import DesktopToolbar from '/resources/js/components/FilesView/DesktopToolbar'
|
|
import CreateTeamFolderPopup from "../components/Teams/CreateTeamFolderPopup"
|
|
import EditTeamFolderPopup from "../components/Teams/EditTeamFolderPopup"
|
|
import ConfirmPopup from '/resources/js/components/Others/Popup/ConfirmPopup'
|
|
import RenameItemPopup from '/resources/js/components/Others/RenameItemPopup'
|
|
import ShareEditPopup from '/resources/js/components/Others/ShareEditPopup'
|
|
import MoveItemPopup from '/resources/js/components/Others/MoveItemPopup'
|
|
import FilePreview from '/resources/js/components/FilePreview/FilePreview'
|
|
import Spotlight from '/resources/js/components/Spotlight/Spotlight'
|
|
import DragUI from '/resources/js/components/FilesView/DragUI'
|
|
import PanelNavigationFiles from "./FileView/Components/PanelNavigationFiles"
|
|
import {events} from '/resources/js/bus'
|
|
|
|
export default {
|
|
name: 'Platform',
|
|
components: {
|
|
CreateTeamFolderPopup,
|
|
PanelNavigationFiles,
|
|
EditTeamFolderPopup,
|
|
CreateFolderPopup,
|
|
FileSortingMobile,
|
|
SidebarNavigation,
|
|
FileFilterMobile,
|
|
MobileNavigation,
|
|
ShareCreatePopup,
|
|
ProcessingPopup,
|
|
RenameItemPopup,
|
|
ShareEditPopup,
|
|
DesktopToolbar,
|
|
MoveItemPopup,
|
|
ConfirmPopup,
|
|
FilePreview,
|
|
Spotlight,
|
|
DragUI,
|
|
},
|
|
data() {
|
|
return {
|
|
isScaledDown: false
|
|
}
|
|
},
|
|
methods: {
|
|
contextMenu(event, item) {
|
|
events.$emit('context-menu:show', event, item)
|
|
},
|
|
},
|
|
mounted() {
|
|
events.$on('mobile-menu:show', () => this.isScaledDown = true)
|
|
events.$on('fileItem:deselect', () => this.isScaledDown = false)
|
|
events.$on('mobile-menu:hide', () => this.isScaledDown = false)
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
@import '/resources/sass/vuefilemanager/_mixins';
|
|
|
|
#file-view {
|
|
font-family: 'Nunito', sans-serif;
|
|
font-size: 16px;
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
min-width: 320px;
|
|
overflow-x: hidden;
|
|
padding-left: 15px;
|
|
padding-right: 15px;
|
|
overflow-y: hidden;
|
|
@include transition(120ms);
|
|
}
|
|
|
|
@media only screen and (max-width: 690px) {
|
|
|
|
.is-scaled-down {
|
|
@include transform(scale(0.95));
|
|
}
|
|
}
|
|
</style>
|