From b06a6a37ebd5725befcee09d62aeccc7513a1925 Mon Sep 17 00:00:00 2001 From: Benoit Schweblin Date: Fri, 9 Mar 2018 21:18:20 +0000 Subject: [PATCH] Explorer context menu --- src/components/App.vue | 3 ++ src/components/ContextMenu.vue | 80 +++++++++++++++++++++++++++++++++ src/components/Explorer.vue | 60 ++++--------------------- src/components/ExplorerNode.vue | 68 ++++++++++++++++++++++------ src/components/common/base.scss | 1 + src/icons/Magnify.vue | 5 +++ src/icons/index.js | 2 + src/store/contextMenu.js | 53 ++++++++++++++++++++++ src/store/explorer.js | 75 ++++++++++++++++++++++++++++--- src/store/index.js | 28 ++++++------ 10 files changed, 292 insertions(+), 83 deletions(-) create mode 100644 src/components/ContextMenu.vue create mode 100644 src/icons/Magnify.vue create mode 100644 src/store/contextMenu.js diff --git a/src/components/App.vue b/src/components/App.vue index 8e7373da..d1f0d4e5 100644 --- a/src/components/App.vue +++ b/src/components/App.vue @@ -4,6 +4,7 @@ + @@ -12,6 +13,7 @@ import Vue from 'vue'; import Layout from './Layout'; import Modal from './Modal'; import Notification from './Notification'; +import ContextMenu from './ContextMenu'; import SplashScreen from './SplashScreen'; import syncSvc from '../services/syncSvc'; import networkSvc from '../services/networkSvc'; @@ -71,6 +73,7 @@ export default { Layout, Modal, Notification, + ContextMenu, SplashScreen, }, data: () => ({ diff --git a/src/components/ContextMenu.vue b/src/components/ContextMenu.vue new file mode 100644 index 00000000..d0421696 --- /dev/null +++ b/src/components/ContextMenu.vue @@ -0,0 +1,80 @@ + + + + + diff --git a/src/components/Explorer.vue b/src/components/Explorer.vue index 08253e59..e9bcfd75 100644 --- a/src/components/Explorer.vue +++ b/src/components/Explorer.vue @@ -8,7 +8,7 @@ -