Skip to content

Commit

Permalink
WIP uppy
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Apr 8, 2022
1 parent a866a98 commit e27ed15
Show file tree
Hide file tree
Showing 10 changed files with 745 additions and 303 deletions.
13 changes: 2 additions & 11 deletions packages/web-app-files/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<template>
<main id="files" class="oc-flex oc-height-1-1">
<div
ref="filesListWrapper"
tabindex="-1"
class="files-list-wrapper oc-width-expand"
@dragover="$_ocApp_dragOver"
>
<div ref="filesListWrapper" tabindex="-1" class="files-list-wrapper oc-width-expand">
<router-view id="files-view" />
</div>
<side-bar
Expand Down Expand Up @@ -62,7 +57,7 @@ export default defineComponent({
},
methods: {
...mapActions('Files', ['dragOver', 'resetFileSelection']),
...mapActions('Files', ['resetFileSelection']),
...mapActions('Files/sidebar', {
closeSidebar: 'close',
setActiveSidebarPanel: 'setActivePanel'
Expand All @@ -75,10 +70,6 @@ export default defineComponent({
to: this.$refs.filesSidebar?.$el,
revert: event === 'beforeDestroy'
})
},
$_ocApp_dragOver(event) {
const hasfileInEvent = (event.dataTransfer.types || []).some((e) => e === 'Files')
this.dragOver(hasfileInEvent)
}
}
})
Expand Down
Loading

0 comments on commit e27ed15

Please sign in to comment.