Lint
This commit is contained in:
parent
f3a8ff6490
commit
32fc78589a
|
@ -71,7 +71,7 @@ new Vue({
|
||||||
uiTrafficStats: false,
|
uiTrafficStats: false,
|
||||||
|
|
||||||
uiChartType: 0,
|
uiChartType: 0,
|
||||||
uiShowCharts: localStorage.getItem('uiShowCharts') === "1" ? true : false,
|
uiShowCharts: localStorage.getItem('uiShowCharts') === '1',
|
||||||
uiTheme: localStorage.theme || 'auto',
|
uiTheme: localStorage.theme || 'auto',
|
||||||
prefersDarkScheme: window.matchMedia('(prefers-color-scheme: dark)'),
|
prefersDarkScheme: window.matchMedia('(prefers-color-scheme: dark)'),
|
||||||
|
|
||||||
|
@ -189,6 +189,7 @@ new Vue({
|
||||||
// client.transferRx = this.clientsPersist[client.id].transferRxPrevious + Math.random() * 1000;
|
// client.transferRx = this.clientsPersist[client.id].transferRxPrevious + Math.random() * 1000;
|
||||||
// client.transferTx = this.clientsPersist[client.id].transferTxPrevious + Math.random() * 1000;
|
// client.transferTx = this.clientsPersist[client.id].transferTxPrevious + Math.random() * 1000;
|
||||||
// client.latestHandshakeAt = new Date();
|
// client.latestHandshakeAt = new Date();
|
||||||
|
// this.requiresPassword = true;
|
||||||
|
|
||||||
this.clientsPersist[client.id].transferRxCurrent = client.transferRx - this.clientsPersist[client.id].transferRxPrevious;
|
this.clientsPersist[client.id].transferRxCurrent = client.transferRx - this.clientsPersist[client.id].transferRxPrevious;
|
||||||
this.clientsPersist[client.id].transferRxPrevious = client.transferRx;
|
this.clientsPersist[client.id].transferRxPrevious = client.transferRx;
|
||||||
|
@ -211,7 +212,6 @@ new Vue({
|
||||||
name: 'Rx',
|
name: 'Rx',
|
||||||
data: this.clientsPersist[client.id].transferRxHistory,
|
data: this.clientsPersist[client.id].transferRxHistory,
|
||||||
}];
|
}];
|
||||||
|
|
||||||
client.transferTxHistory = this.clientsPersist[client.id].transferTxHistory;
|
client.transferTxHistory = this.clientsPersist[client.id].transferTxHistory;
|
||||||
client.transferRxHistory = this.clientsPersist[client.id].transferRxHistory;
|
client.transferRxHistory = this.clientsPersist[client.id].transferRxHistory;
|
||||||
client.transferMax = Math.max(...client.transferTxHistory, ...client.transferRxHistory);
|
client.transferMax = Math.max(...client.transferTxHistory, ...client.transferRxHistory);
|
||||||
|
@ -318,7 +318,7 @@ new Vue({
|
||||||
},
|
},
|
||||||
toggleCharts() {
|
toggleCharts() {
|
||||||
localStorage.setItem('uiShowCharts', this.uiShowCharts ? 1 : 0);
|
localStorage.setItem('uiShowCharts', this.uiShowCharts ? 1 : 0);
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
bytes,
|
bytes,
|
||||||
|
|
|
@ -29,7 +29,7 @@ const messages = { // eslint-disable-line no-unused-vars
|
||||||
madeBy: 'Made by',
|
madeBy: 'Made by',
|
||||||
donate: 'Donate',
|
donate: 'Donate',
|
||||||
toggleCharts: 'Show/hide Charts',
|
toggleCharts: 'Show/hide Charts',
|
||||||
theme: { dark: 'Dark theme', light: 'Light theme', auto: 'Auto theme' }
|
theme: { dark: 'Dark theme', light: 'Light theme', auto: 'Auto theme' },
|
||||||
},
|
},
|
||||||
ua: {
|
ua: {
|
||||||
name: 'Ім`я',
|
name: 'Ім`я',
|
||||||
|
|
Loading…
Reference in New Issue