mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-16 15:20:20 +01:00
Introduced .env file for configuration.
This commit is contained in:
parent
6339275b5b
commit
b832c30838
|
@ -52,17 +52,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
drawer: false,
|
drawer: false,
|
||||||
fixed: false,
|
fixed: false,
|
||||||
layerItems: [
|
title: process.env.VUE_APP_TITLE,
|
||||||
{
|
|
||||||
icon: 'mdi-apps',
|
|
||||||
title: 'Points of Interest',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
icon: 'mdi-chart-bubble',
|
|
||||||
title: 'Buildings',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
title: 'Minetest - Map of the Real World',
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -77,8 +77,7 @@ export default new Vuex.Store({
|
||||||
|
|
||||||
runAutoUpdate: function({ commit, state, dispatch}) {
|
runAutoUpdate: function({ commit, state, dispatch}) {
|
||||||
var me = this;
|
var me = this;
|
||||||
// TODO: Make the URL to websocket configurable via .env
|
state.socket = new WebSocket(process.env.VUE_APP_WEBSOCKET_URL);
|
||||||
state.socket = new WebSocket('ws://' + window.location.host + '/socket');
|
|
||||||
|
|
||||||
state.socket.onerror = function() {
|
state.socket.onerror = function() {
|
||||||
commit('setAutoUpdate', false)
|
commit('setAutoUpdate', false)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user