1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-03 09:18:58 +09:00
This commit is contained in:
syuilo 2018-11-06 08:04:34 +09:00
parent 1642fbec31
commit cf36106520
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -274,12 +274,15 @@ export default Vue.extend({
return { return {
series: [{ series: [{
name: 'Combined', name: 'Combined',
type: 'line',
data: this.format(sum(this.stats.notes.local.total, this.stats.notes.remote.total)) data: this.format(sum(this.stats.notes.local.total, this.stats.notes.remote.total))
}, { }, {
name: 'Local', name: 'Local',
type: 'area',
data: this.format(this.stats.notes.local.total) data: this.format(this.stats.notes.local.total)
}, { }, {
name: 'Remote', name: 'Remote',
type: 'area',
data: this.format(this.stats.notes.remote.total) data: this.format(this.stats.notes.remote.total)
}] }]
}; };
@ -289,18 +292,21 @@ export default Vue.extend({
return { return {
series: [{ series: [{
name: 'Combined', name: 'Combined',
type: 'line',
data: this.format(total data: this.format(total
? sum(this.stats.users.local.total, this.stats.users.remote.total) ? sum(this.stats.users.local.total, this.stats.users.remote.total)
: sum(this.stats.users.local.inc, negate(this.stats.users.local.dec), this.stats.users.remote.inc, negate(this.stats.users.remote.dec)) : sum(this.stats.users.local.inc, negate(this.stats.users.local.dec), this.stats.users.remote.inc, negate(this.stats.users.remote.dec))
) )
}, { }, {
name: 'Local', name: 'Local',
type: 'area',
data: this.format(total data: this.format(total
? this.stats.users.local.total ? this.stats.users.local.total
: sum(this.stats.users.local.inc, negate(this.stats.users.local.dec)) : sum(this.stats.users.local.inc, negate(this.stats.users.local.dec))
) )
}, { }, {
name: 'Remote', name: 'Remote',
type: 'area',
data: this.format(total data: this.format(total
? this.stats.users.remote.total ? this.stats.users.remote.total
: sum(this.stats.users.remote.inc, negate(this.stats.users.remote.dec)) : sum(this.stats.users.remote.inc, negate(this.stats.users.remote.dec))
@ -314,6 +320,7 @@ export default Vue.extend({
bytes: true, bytes: true,
series: [{ series: [{
name: 'All', name: 'All',
type: 'line',
data: this.format( data: this.format(
sum( sum(
this.stats.drive.local.incSize, this.stats.drive.local.incSize,
@ -324,15 +331,19 @@ export default Vue.extend({
) )
}, { }, {
name: 'Local +', name: 'Local +',
type: 'area',
data: this.format(this.stats.drive.local.incSize) data: this.format(this.stats.drive.local.incSize)
}, { }, {
name: 'Local -', name: 'Local -',
type: 'area',
data: this.format(negate(this.stats.drive.local.decSize)) data: this.format(negate(this.stats.drive.local.decSize))
}, { }, {
name: 'Remote +', name: 'Remote +',
type: 'area',
data: this.format(this.stats.drive.remote.incSize) data: this.format(this.stats.drive.remote.incSize)
}, { }, {
name: 'Remote -', name: 'Remote -',
type: 'area',
data: this.format(negate(this.stats.drive.remote.decSize)) data: this.format(negate(this.stats.drive.remote.decSize))
}] }]
}; };
@ -343,12 +354,15 @@ export default Vue.extend({
bytes: true, bytes: true,
series: [{ series: [{
name: 'Combined', name: 'Combined',
type: 'line',
data: this.format(sum(this.stats.drive.local.totalSize, this.stats.drive.remote.totalSize)) data: this.format(sum(this.stats.drive.local.totalSize, this.stats.drive.remote.totalSize))
}, { }, {
name: 'Local', name: 'Local',
type: 'area',
data: this.format(this.stats.drive.local.totalSize) data: this.format(this.stats.drive.local.totalSize)
}, { }, {
name: 'Remote', name: 'Remote',
type: 'area',
data: this.format(this.stats.drive.remote.totalSize) data: this.format(this.stats.drive.remote.totalSize)
}] }]
}; };
@ -358,6 +372,7 @@ export default Vue.extend({
return { return {
series: [{ series: [{
name: 'All', name: 'All',
type: 'line',
data: this.format( data: this.format(
sum( sum(
this.stats.drive.local.incCount, this.stats.drive.local.incCount,
@ -368,15 +383,19 @@ export default Vue.extend({
) )
}, { }, {
name: 'Local +', name: 'Local +',
type: 'area',
data: this.format(this.stats.drive.local.incCount) data: this.format(this.stats.drive.local.incCount)
}, { }, {
name: 'Local -', name: 'Local -',
type: 'area',
data: this.format(negate(this.stats.drive.local.decCount)) data: this.format(negate(this.stats.drive.local.decCount))
}, { }, {
name: 'Remote +', name: 'Remote +',
type: 'area',
data: this.format(this.stats.drive.remote.incCount) data: this.format(this.stats.drive.remote.incCount)
}, { }, {
name: 'Remote -', name: 'Remote -',
type: 'area',
data: this.format(negate(this.stats.drive.remote.decCount)) data: this.format(negate(this.stats.drive.remote.decCount))
}] }]
}; };
@ -386,12 +405,15 @@ export default Vue.extend({
return { return {
series: [{ series: [{
name: 'Combined', name: 'Combined',
type: 'line',
data: this.format(sum(this.stats.drive.local.totalCount, this.stats.drive.remote.totalCount)) data: this.format(sum(this.stats.drive.local.totalCount, this.stats.drive.remote.totalCount))
}, { }, {
name: 'Local', name: 'Local',
type: 'area',
data: this.format(this.stats.drive.local.totalCount) data: this.format(this.stats.drive.local.totalCount)
}, { }, {
name: 'Remote', name: 'Remote',
type: 'area',
data: this.format(this.stats.drive.remote.totalCount) data: this.format(this.stats.drive.remote.totalCount)
}] }]
}; };