diff --git a/webapp/src/App.vue b/webapp/src/App.vue index 7fd01adb..e6a4df35 100644 --- a/webapp/src/App.vue +++ b/webapp/src/App.vue @@ -429,7 +429,7 @@ html { padding: 0; } -.image-fit{ +.image-fit { height: 80%; width: 100%; object-fit: contain; diff --git a/webapp/src/components/appContent.vue b/webapp/src/components/appContent.vue index 96aa2217..fbc0e169 100644 --- a/webapp/src/components/appContent.vue +++ b/webapp/src/components/appContent.vue @@ -7,7 +7,6 @@ @@ -41,22 +40,6 @@
- - - {{ - plugin.icon || "extension" - }} - - - - - - - - import( - /* webpackChunkName: "gallery" */ "./tabContentComponents/galleryContent.vue" - ); +// ImJoy is loaded asynchronously to allow it to be disabled if needed const imjoyContent = () => import( /* webpackChunkName: "imjoy" */ "./tabContentComponents/imjoyContent.vue" @@ -197,12 +157,9 @@ export default { tabIcon, tabContent, navigateContent, - captureContent, slideScanContent, viewContent, settingsContent, - galleryContent, - extensionContent, calibrationModal, aboutContent, loggingContent, @@ -211,7 +168,6 @@ export default { }, data: function() { return { - plugins: [], currentTab: "view", bottomTabs: [ { @@ -235,25 +191,11 @@ export default { }, computed: { - pluginsGuiList: function() { - // List of plugin GUIs, obtained from this.plugins values - var pluginGuis = []; - for (let plugin of Object.values(this.plugins)) { - if (plugin.meta.gui) { - pluginGuis.push(plugin.meta.gui); - } - } - return pluginGuis; - }, - tabOrder: function() { var ind = []; for (const tab of this.topTabs) { ind.push(tab.id); } - for (const plugin of this.pluginsGuiList) { - ind.push(plugin.id); - } for (const tab of this.bottomTabs) { ind.push(tab.id); } @@ -272,11 +214,6 @@ export default { icon: "gamepad", component: navigateContent }, - /*{ - id: "gallery", - icon: "photo_library", - component: galleryContent - },*/ { id: "slidescan", icon: "settings_overscan", @@ -316,16 +253,6 @@ export default { ...mapState({ imjoyEnabled: "imjoyEnabled" }) }, - created: function() { - if (this.$store.getters.ready) { - // Update plugins - this.updatePlugins().then(() => { - // Start initialisation modals - this.startModals(); - }); - } - }, - mounted() { // A global signal listener to switch tab this.$root.$on("globalSwitchTab", tabID => { @@ -339,22 +266,12 @@ export default { this.$root.$on("globalDecrementTab", () => { this.incrementTabBy(-1); }); + if (this.$store.getters.ready) { + this.startModals(); + } }, methods: { - updatePlugins: function() { - /*return axios - .get(this.pluginsUri) - .then(response => { - this.plugins = response.data; - }) - .catch(error => { - this.modalError(error); // Let mixin handle error - });*/ - return new Promise(resolve => { - resolve({}); - }); - }, setTab: function(event, tab) { if (!(this.currentTab == tab)) { this.currentTab = tab; @@ -369,7 +286,7 @@ export default { this.currentTab = newId; }, startModals: function() { - this.$refs["calibrationModal"].show(); + this.$refs.calibrationModal.show(); }, enterApp: function() { // Stuff to do once connected and all init modals are finished diff --git a/webapp/src/components/genericComponents/taskSubmitter.vue b/webapp/src/components/labThingsComponents/actionButton.vue similarity index 96% rename from webapp/src/components/genericComponents/taskSubmitter.vue rename to webapp/src/components/labThingsComponents/actionButton.vue index e682127a..1fae45dd 100644 --- a/webapp/src/components/genericComponents/taskSubmitter.vue +++ b/webapp/src/components/labThingsComponents/actionButton.vue @@ -72,15 +72,19 @@ - - diff --git a/webapp/src/components/tabContentComponents/aboutComponents/statusPane.vue b/webapp/src/components/tabContentComponents/aboutComponents/statusPane.vue index 3a6b5288..dc34291f 100644 --- a/webapp/src/components/tabContentComponents/aboutComponents/statusPane.vue +++ b/webapp/src/components/tabContentComponents/aboutComponents/statusPane.vue @@ -12,12 +12,12 @@
{{ $store.state.origin }} - @@ -83,18 +83,15 @@ - - diff --git a/webapp/src/components/tabContentComponents/extensionContent.vue b/webapp/src/components/tabContentComponents/extensionContent.vue index 7ec6e5fb..3312c10b 100644 --- a/webapp/src/components/tabContentComponents/extensionContent.vue +++ b/webapp/src/components/tabContentComponents/extensionContent.vue @@ -3,23 +3,7 @@
- -
- -
+
@@ -30,7 +14,6 @@ diff --git a/webapp/src/components/tabContentComponents/galleryComponents/scanCard.vue b/webapp/src/components/tabContentComponents/galleryComponents/scanCard.vue deleted file mode 100644 index e6e76075..00000000 --- a/webapp/src/components/tabContentComponents/galleryComponents/scanCard.vue +++ /dev/null @@ -1,154 +0,0 @@ - - - diff --git a/webapp/src/components/tabContentComponents/galleryComponents/zipDownloader.vue b/webapp/src/components/tabContentComponents/galleryComponents/zipDownloader.vue deleted file mode 100644 index 005a18f6..00000000 --- a/webapp/src/components/tabContentComponents/galleryComponents/zipDownloader.vue +++ /dev/null @@ -1,163 +0,0 @@ - - - diff --git a/webapp/src/components/tabContentComponents/galleryContent.vue b/webapp/src/components/tabContentComponents/galleryContent.vue deleted file mode 100644 index 0a6ce4f2..00000000 --- a/webapp/src/components/tabContentComponents/galleryContent.vue +++ /dev/null @@ -1,455 +0,0 @@ - - - - - diff --git a/webapp/src/components/tabContentComponents/navigateComponents/paneNavigate.vue b/webapp/src/components/tabContentComponents/navigateComponents/paneNavigate.vue index 7bf08e45..1dd70691 100644 --- a/webapp/src/components/tabContentComponents/navigateComponents/paneNavigate.vue +++ b/webapp/src/components/tabContentComponents/navigateComponents/paneNavigate.vue @@ -68,16 +68,18 @@
- - + + /> @@ -109,9 +111,10 @@

- + />

-
  • +
  • Autofocus
    - + />
  • -
  • +
  • Image Capture
    - + />
    - + />
  • @@ -194,14 +197,14 @@