From 2327b9b8bf832f2ab1018e98507c4d3faac420ed Mon Sep 17 00:00:00 2001 From: jtc42 Date: Mon, 10 Jun 2019 19:26:19 +0100 Subject: [PATCH] Tidied up component structure --- src/App.vue | 165 +------------- src/assets/less/theme.less | 2 +- .../{ => controlComponents}/paneCapture.vue | 0 .../{ => controlComponents}/paneConnect.vue | 23 +- .../{ => controlComponents}/paneNavigate.vue | 0 .../{ => controlComponents}/panePlugins.vue | 0 .../{ => controlComponents}/paneSettings.vue | 9 +- .../settingsComponents}/appSettings.vue | 0 .../settingsComponents}/cameraSettings.vue | 0 .../microscopeSettings.vue | 0 .../settingsComponents}/streamSettings.vue | 0 .../{ => genericComponents}/tabContent.vue | 16 +- .../{ => genericComponents}/tabIcon.vue | 8 +- .../paneDisplayComponents/streamDisplay.vue | 203 ------------------ src/components/panelLeft.vue | 111 ++++++++++ src/components/panelRight.vue | 66 ++++++ .../galleryComponents/captureCard.vue | 0 .../galleryComponents/scanCard.vue | 0 .../galleryDisplay.vue | 0 19 files changed, 224 insertions(+), 379 deletions(-) rename src/components/{ => controlComponents}/paneCapture.vue (100%) rename src/components/{ => controlComponents}/paneConnect.vue (95%) rename src/components/{ => controlComponents}/paneNavigate.vue (100%) rename src/components/{ => controlComponents}/panePlugins.vue (100%) rename src/components/{ => controlComponents}/paneSettings.vue (73%) rename src/components/{paneSettingsComponents => controlComponents/settingsComponents}/appSettings.vue (100%) rename src/components/{paneSettingsComponents => controlComponents/settingsComponents}/cameraSettings.vue (100%) rename src/components/{paneSettingsComponents => controlComponents/settingsComponents}/microscopeSettings.vue (100%) rename src/components/{paneSettingsComponents => controlComponents/settingsComponents}/streamSettings.vue (100%) rename src/components/{ => genericComponents}/tabContent.vue (58%) rename src/components/{ => genericComponents}/tabIcon.vue (81%) delete mode 100644 src/components/paneDisplayComponents/streamDisplay.vue create mode 100644 src/components/panelLeft.vue create mode 100644 src/components/panelRight.vue rename src/components/{paneDisplayComponents => viewComponents}/galleryComponents/captureCard.vue (100%) rename src/components/{paneDisplayComponents => viewComponents}/galleryComponents/scanCard.vue (100%) rename src/components/{paneDisplayComponents => viewComponents}/galleryDisplay.vue (100%) diff --git a/src/App.vue b/src/App.vue index 26b8f1d9..6a7a658b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,50 +3,8 @@
- - -
- - -
- - - - -
- - -
-
- - - - - - - - - - - - -
-
- -
- - -
- -
    -
  • -
  • -
-
- + +
@@ -55,105 +13,29 @@ \ No newline at end of file diff --git a/src/components/tabIcon.vue b/src/components/genericComponents/tabIcon.vue similarity index 81% rename from src/components/tabIcon.vue rename to src/components/genericComponents/tabIcon.vue index 2d892a16..40e28478 100644 --- a/src/components/tabIcon.vue +++ b/src/components/genericComponents/tabIcon.vue @@ -16,8 +16,7 @@ export default { props: { id: String, currentTab: String, - requireConnection: Boolean, - name: String + requireConnection: Boolean }, methods: { @@ -28,7 +27,8 @@ export default { computed: { tooltipOptions: function () { - return `pos: right; title: ${this.name}; delay: 500` + var title = this.id.charAt(0).toUpperCase() + this.id.slice(1); + return `pos: right; title: ${title}; delay: 500` }, classObject: function () { @@ -45,7 +45,7 @@ export default { diff --git a/src/components/panelLeft.vue b/src/components/panelLeft.vue new file mode 100644 index 00000000..9336cddd --- /dev/null +++ b/src/components/panelLeft.vue @@ -0,0 +1,111 @@ + + + + + diff --git a/src/components/panelRight.vue b/src/components/panelRight.vue new file mode 100644 index 00000000..f3db8871 --- /dev/null +++ b/src/components/panelRight.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/src/components/paneDisplayComponents/galleryComponents/captureCard.vue b/src/components/viewComponents/galleryComponents/captureCard.vue similarity index 100% rename from src/components/paneDisplayComponents/galleryComponents/captureCard.vue rename to src/components/viewComponents/galleryComponents/captureCard.vue diff --git a/src/components/paneDisplayComponents/galleryComponents/scanCard.vue b/src/components/viewComponents/galleryComponents/scanCard.vue similarity index 100% rename from src/components/paneDisplayComponents/galleryComponents/scanCard.vue rename to src/components/viewComponents/galleryComponents/scanCard.vue diff --git a/src/components/paneDisplayComponents/galleryDisplay.vue b/src/components/viewComponents/galleryDisplay.vue similarity index 100% rename from src/components/paneDisplayComponents/galleryDisplay.vue rename to src/components/viewComponents/galleryDisplay.vue