Commit 5f44edaa authored by Joel Collins's avatar Joel Collins
Browse files

Removed "lite" build target

parent 952085fe
Loading
Loading
Loading
Loading

.env.development.lite

deleted100644 → 0
+0 −4
Original line number Diff line number Diff line
NODE_ENV=development
VUE_APP_PLATFORM=web
VUE_APP_TARGET=web
VUE_APP_LITEMODE=true
 No newline at end of file

.env.production.lite

deleted100644 → 0
+0 −4
Original line number Diff line number Diff line
NODE_ENV=production
VUE_APP_PLATFORM=web
VUE_APP_TARGET=web
VUE_APP_LITEMODE=true
 No newline at end of file
+0 −1
Original line number Diff line number Diff line
@@ -26,6 +26,5 @@ files:
      - '!**/app/installers${/*}'
      - '!**/hooks${/*}'
      - '!**/platforms${/*}'
      - '!**/dist-lite*${/*}'
      - '!**/release-builds${/*}'
      - '!src${/*}'
+0 −2
Original line number Diff line number Diff line
@@ -12,10 +12,8 @@
  "main": "./app/app.js",
  "scripts": {
    "build:web": "vue-cli-service build --mode production.web",
    "build:lite": "vue-cli-service build --mode production.lite",
    "build:app": "vue-cli-service build --mode production.app",
    "serve:web": "vue-cli-service serve  --mode development.web",
    "serve:lite": "vue-cli-service serve  --mode development.lite",
    "start": "npm run build:app && electron app/app.js",
    "dist:linux": "electron-builder --linux --config app/builder-config-x86_64.yaml",
    "dist:raspi": "electron-builder --linux --config app/builder-config-raspi.yaml",
+17 −27
Original line number Diff line number Diff line
@@ -48,7 +48,6 @@ export default {
      keysDown: {},
      systemDark: undefined,
      themeObserver: undefined,
      liteMode: process.env.VUE_APP_LITEMODE == "true" ? true : false,
      isElectron: isElectron(),
      tourCallbacks: {
        onStop: () => {
@@ -95,18 +94,15 @@ export default {
            placement: "bottom"
          }
        },
        ...(!this.liteMode
          ? [

        {
          target: "#new-connection-card",
          header: {
            title: "New connection"
          },
          content: `Connect locally if you're running on a microscope, \nor open a new remote connection to a microscope`
              }
            ]
          : []),
        ...(this.isElectron && !this.liteMode
        },
        ...(this.isElectron
          ? [
              {
                target: "#nearby-connections-grid",
@@ -117,17 +113,14 @@ export default {
              }
            ]
          : []),
        ...(!this.liteMode
          ? [

        {
          target: "#saved-connections-grid",
          header: {
            title: "Saved microscopes"
          },
          content: `Connect to your saved microscopes for faster access`
              }
            ]
          : []),
        },
        {
          target: "#gallery-tab-icon",
          header: {
@@ -168,9 +161,6 @@ export default {
  },

  mounted() {
    if (process.env.VUE_APP_LITEMODE == "true") {
      console.log("Built lite-mode");
    }
    // Query CSS dark theme preference
    var mql = window.matchMedia("(prefers-color-scheme: dark)");
    // Check for system dark theme when mounted
Loading