Merge pull request #2440 from syuilo/develop

8.3.1
This commit is contained in:
syuilo 2018-08-24 07:03:49 +09:00 committed by GitHub
commit 87f248b8ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View File

@ -1,8 +1,8 @@
{ {
"name": "misskey", "name": "misskey",
"author": "syuilo <i@syuilo.com>", "author": "syuilo <i@syuilo.com>",
"version": "8.3.0", "version": "8.3.1",
"clientVersion": "1.0.8825", "clientVersion": "1.0.8828",
"codename": "nighthike", "codename": "nighthike",
"main": "./built/index.js", "main": "./built/index.js",
"private": true, "private": true,
@ -150,6 +150,7 @@
"loader-utils": "1.1.0", "loader-utils": "1.1.0",
"lodash.assign": "4.2.0", "lodash.assign": "4.2.0",
"mecab-async": "0.1.2", "mecab-async": "0.1.2",
"merge-options": "1.0.1",
"minio": "7.0.0", "minio": "7.0.0",
"mkdirp": "0.5.1", "mkdirp": "0.5.1",
"mocha": "5.2.0", "mocha": "5.2.0",

View File

@ -1,5 +1,6 @@
import Vue from 'vue'; import Vue from 'vue';
import { Line } from 'vue-chartjs'; import { Line } from 'vue-chartjs';
import * as mergeOptions from 'merge-options';
export default Vue.extend({ export default Vue.extend({
extends: Line, extends: Line,
@ -21,7 +22,7 @@ export default Vue.extend({
}, },
methods: { methods: {
render() { render() {
this.renderChart(this.data, Object.assign({ this.renderChart(this.data, mergeOptions({
responsive: false, responsive: false,
scales: { scales: {
xAxes: [{ xAxes: [{

View File

@ -173,7 +173,7 @@ export default Vue.extend({
driveChart(local: boolean, total: boolean): any { driveChart(local: boolean, total: boolean): any {
const data = this.stats.slice().reverse().map(x => ({ const data = this.stats.slice().reverse().map(x => ({
date: new Date(x.date), date: new Date(x.date),
count: local ? size: local ?
total ? x.drive.local.totalSize : x.drive.local.diffSize : total ? x.drive.local.totalSize : x.drive.local.diffSize :
total ? x.drive.remote.totalSize : x.drive.remote.diffSize total ? x.drive.remote.totalSize : x.drive.remote.diffSize
})); }));
@ -186,7 +186,7 @@ export default Vue.extend({
borderWidth: 2, borderWidth: 2,
pointBackgroundColor: '#fff', pointBackgroundColor: '#fff',
lineTension: 0, lineTension: 0,
data: data.map(x => ({ t: x.date, y: x.count })) data: data.map(x => ({ t: x.date, y: x.size }))
}] }]
}, { }, {
scales: { scales: {