Settings split according to chart
routes/api.js - check type of sensor - translate error message app.js - debug = false at i18n public/javascripts/chart_utilities.js - setter/getter for current Tab public/javascripts/global.js - settings dialog completely rearranged - if only sensorid is given, check type routes/index.js - set language to global variable views/index.pug - reaggange settings dialog - translate 'Error' views/layout.pug - load new datepicker (vanillajs-datepicker) public/javascripts/map.js - fetching from server refactored to function - reenable tabs after leaving map charts/preparecharts - typo public/javascripts/showcharts.js - loadAll extended to load also live and map public/stylesheets/style.sass - a few changes for settinds dialog locales/[de|en] - added a few words charts/utilities.js - setter and getter for language
This commit is contained in:
@@ -191,7 +191,7 @@ export const liveData = (params, values, req) => {
|
||||
export const havgData = (params, values) => {
|
||||
let series1 = []
|
||||
let series2 = []
|
||||
// Put values into the serieses
|
||||
// Put values into the series
|
||||
let cnt = 0
|
||||
values.forEach((x) => {
|
||||
if (x.n_AVG != -1) {
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
import { translate as trans } from '../routes/index.js'
|
||||
|
||||
let language = 'en'
|
||||
|
||||
export const colors = {'eq': '#0000FF', 'max': '#FF0000', 'min': '#008000', 'peaks': '#DAA520'};
|
||||
export const noise_ymin = 30;
|
||||
|
||||
@@ -139,3 +141,10 @@ export function calcDays(data, isyear) {
|
||||
return days;
|
||||
};
|
||||
|
||||
export const setLanguage = (lng) => {
|
||||
language = lng
|
||||
}
|
||||
|
||||
export const getLanguage = () => {
|
||||
return language
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user