mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-20 17:35:31 +02:00
refactor: restore SatisfiesExpression
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { onMounted } from 'vue';
|
||||
import { Chart } from 'chart.js';
|
||||
import { Chart, type ChartDataset } from 'chart.js';
|
||||
import gradient from 'chartjs-plugin-gradient';
|
||||
import * as os from '@/os';
|
||||
import { defaultStore } from '@/store';
|
||||
@@ -83,7 +83,7 @@ async function renderChart() {
|
||||
barPercentage: 0.7,
|
||||
categoryPercentage: 0.5,
|
||||
fill: true,
|
||||
}],
|
||||
}] satisfies ChartDataset[],
|
||||
},
|
||||
options: {
|
||||
aspectRatio: 2.5,
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { onMounted } from 'vue';
|
||||
import { Chart } from 'chart.js';
|
||||
import { Chart, type ChartDataset } from 'chart.js';
|
||||
import gradient from 'chartjs-plugin-gradient';
|
||||
import * as os from '@/os';
|
||||
import { useChartTooltip } from '@/scripts/use-chart-tooltip';
|
||||
@@ -190,7 +190,7 @@ onMounted(async () => {
|
||||
categoryPercentage: 0.9,
|
||||
fill: true,
|
||||
clip: 8,
|
||||
}],
|
||||
}] satisfies ChartDataset[],
|
||||
},
|
||||
options: {
|
||||
aspectRatio: 5,
|
||||
|
||||
@@ -77,7 +77,7 @@ async function renderChart() {
|
||||
barPercentage: 0.7,
|
||||
categoryPercentage: 0.7,
|
||||
fill: true,
|
||||
}, extra);
|
||||
} satisfies ChartDataset, extra);
|
||||
}
|
||||
|
||||
chartInstance = new Chart(chartEl, {
|
||||
|
||||
@@ -76,7 +76,7 @@ async function renderChart() {
|
||||
borderRadius: 4,
|
||||
barPercentage: 0.9,
|
||||
fill: true,
|
||||
}, extra);
|
||||
} satisfies ChartDataset, extra);
|
||||
}
|
||||
|
||||
chartInstance = new Chart(chartEl, {
|
||||
|
||||
@@ -77,7 +77,7 @@ async function renderChart() {
|
||||
barPercentage: 0.7,
|
||||
categoryPercentage: 0.7,
|
||||
fill: true,
|
||||
}, extra);
|
||||
} satisfies ChartDataset, extra);
|
||||
}
|
||||
|
||||
chartInstance = new Chart(chartEl, {
|
||||
|
||||
Reference in New Issue
Block a user