Merge branch 'develop'

This commit is contained in:
syuilo 2019-07-05 22:36:13 +09:00
commit c201326906
9 changed files with 29 additions and 4 deletions

View file

@ -17,6 +17,14 @@ npm i -g ts-node
npm run migrate npm run migrate
``` ```
11.24.2 (2019/07/05)
--------------------
### 🐛Fixes
* チャートAPIの返り値が文字列になっていることがある問題を修正
* チャートに数字が表示される問題を修正
* ペタバイト単位が表示できない問題を修正
* SingleLineなMFMが折り返されてしまう問題を修正
11.24.1 (2019/07/05) 11.24.1 (2019/07/05)
-------------------- --------------------
### 🐛Fixes ### 🐛Fixes

View file

@ -1,7 +1,7 @@
{ {
"name": "misskey", "name": "misskey",
"author": "syuilo <i@syuilo.com>", "author": "syuilo <i@syuilo.com>",
"version": "11.24.1", "version": "11.24.2",
"codename": "daybreak", "codename": "daybreak",
"repository": { "repository": {
"type": "git", "type": "git",

View file

@ -72,6 +72,9 @@ export default Vue.extend({
columnWidth: '80%' columnWidth: '80%'
} }
}, },
dataLabels: {
enabled: false
},
grid: { grid: {
clipMarkers: false, clipMarkers: false,
padding: { padding: {

View file

@ -1,5 +1,5 @@
<template> <template>
<mfm-core v-bind="$attrs" class="havbbuyv" v-once/> <mfm-core v-bind="$attrs" class="havbbuyv" :class="{ plain: $attrs['plain-text'] }" v-once/>
</template> </template>
<script lang="ts"> <script lang="ts">
@ -17,6 +17,9 @@ export default Vue.extend({
.havbbuyv .havbbuyv
white-space pre-wrap white-space pre-wrap
&.plain
white-space pre
>>> .title >>> .title
display block display block
margin-bottom 4px margin-bottom 4px

View file

@ -73,6 +73,9 @@ export default Vue.extend({
enabled: true enabled: true
}, },
}, },
dataLabels: {
enabled: false
},
grid: { grid: {
clipMarkers: false, clipMarkers: false,
padding: { padding: {

View file

@ -163,6 +163,9 @@ export default Vue.extend({
columnWidth: '80%' columnWidth: '80%'
} }
}, },
dataLabels: {
enabled: false
},
grid: { grid: {
clipMarkers: false, clipMarkers: false,
padding: { padding: {

View file

@ -2,7 +2,7 @@ import Vue from 'vue';
Vue.filter('bytes', (v, digits = 0) => { Vue.filter('bytes', (v, digits = 0) => {
if (v == null) return '?'; if (v == null) return '?';
const sizes = ['B', 'KB', 'MB', 'GB', 'TB']; const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB'];
if (v == 0) return '0'; if (v == 0) return '0';
const isMinus = v < 0; const isMinus = v < 0;
if (isMinus) v = -v; if (isMinus) v = -v;

View file

@ -90,6 +90,9 @@ export default define({
enabled: true, enabled: true,
} }
}, },
dataLabels: {
enabled: false
},
tooltip: { tooltip: {
enabled: false enabled: false
}, },

View file

@ -446,7 +446,9 @@ export default abstract class Chart<T extends Record<string, any>> {
if (typeof v == 'object') { if (typeof v == 'object') {
dive(v, p); dive(v, p);
} else { } else {
nestedProperty.set(res, p, chart.map(s => nestedProperty.get(s, p))); const values = chart.map(s => nestedProperty.get(s, p))
.map(v => parseInt(v, 10)); // TypeORMのバグ()で何故か数値カラムの値が文字列型になっているので数値に戻す
nestedProperty.set(res, p, values);
} }
} }
}; };