Removed "lite" build target
This commit is contained in:
parent
952085fee7
commit
5f44edaa91
10 changed files with 22 additions and 95 deletions
|
|
@ -15,7 +15,6 @@
|
|||
class="uk-flex uk-flex-column uk-padding-remove uk-width-auto uk-height-1-1 uk-text-center"
|
||||
>
|
||||
<tabIcon
|
||||
v-show="!liteMode"
|
||||
id="connect-tab-icon"
|
||||
tab-i-d="connect"
|
||||
:require-connection="false"
|
||||
|
|
@ -196,8 +195,7 @@ export default {
|
|||
return {
|
||||
plugins: [],
|
||||
currentTab: "connect",
|
||||
unwatchStoreFunction: null,
|
||||
liteMode: process.env.VUE_APP_LITEMODE == "true" ? true : false
|
||||
unwatchStoreFunction: null
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
<!-- Grid managing tab content -->
|
||||
<div uk-grid class="uk-height-1-1 uk-margin-remove uk-padding-remove">
|
||||
<div class="view-component uk-width-expand">
|
||||
<connectDisplayLite v-if="liteMode" />
|
||||
<connectDisplay v-else />
|
||||
<connectDisplay />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -19,9 +18,7 @@ export default {
|
|||
},
|
||||
|
||||
data: function() {
|
||||
return {
|
||||
liteMode: process.env.VUE_APP_LITEMODE == "true" ? true : false
|
||||
};
|
||||
return {};
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,42 +0,0 @@
|
|||
<template>
|
||||
<div class="connectDisplayLite uk-padding uk-padding-remove-left">
|
||||
Lite connect
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// Export main app
|
||||
export default {
|
||||
name: "ConnectDisplayLite",
|
||||
|
||||
components: {},
|
||||
|
||||
data: function() {
|
||||
return {};
|
||||
},
|
||||
|
||||
mounted() {
|
||||
// Connect to the current location
|
||||
// NOTE: This assumes that the GUI is being served from the same location as the API"
|
||||
this.connectToHost(location);
|
||||
},
|
||||
|
||||
methods: {
|
||||
connectToHost: function(host) {
|
||||
console.log(host);
|
||||
|
||||
// Commit the hostname and port to store
|
||||
this.$store.commit("resetState");
|
||||
this.$store.commit("changeHost", [host.hostname, host.port]);
|
||||
this.$store.commit("setConnected");
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped lang="less">
|
||||
.connect-card-align-top {
|
||||
margin-top: 52px;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -94,8 +94,7 @@ export default {
|
|||
configuration: null,
|
||||
settings: null,
|
||||
systemActionLinks: {},
|
||||
clientVersion: process.env.PACKAGE.version,
|
||||
liteMode: process.env.VUE_APP_LITEMODE == "true" ? true : false
|
||||
clientVersion: process.env.PACKAGE.version
|
||||
};
|
||||
},
|
||||
|
||||
|
|
@ -110,9 +109,7 @@ export default {
|
|||
return `${this.$store.getters.baseUri}/api/v2/actions`;
|
||||
},
|
||||
clientVersionName: function() {
|
||||
const liteMode = process.env.VUE_APP_LITEMODE == "true" ? true : false;
|
||||
const suffix = liteMode ? "-Lite" : "";
|
||||
return `${process.env.PACKAGE.version}${suffix}`;
|
||||
return `${process.env.PACKAGE.version}`;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue