refactor(frontend): os.tsに引き込んだscripts/api.tsの再exportをやめる (#12694)
* refactor(frontend): os.tsに引き込んだscripts/api.tsの再exportをやめる * fix * fix * renate to "misskeyApi" * rename file
This commit is contained in:
@@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
<script lang="ts" setup>
|
||||
import { onMounted, nextTick, shallowRef, ref } from 'vue';
|
||||
import { Chart } from 'chart.js';
|
||||
import * as os from '@/os.js';
|
||||
import { misskeyApi } from '@/scripts/misskey-api.js';
|
||||
import { defaultStore } from '@/store.js';
|
||||
import { useChartTooltip } from '@/scripts/use-chart-tooltip.js';
|
||||
import { alpha } from '@/scripts/color.js';
|
||||
@@ -43,7 +43,7 @@ async function renderChart() {
|
||||
|
||||
const maxDays = wide ? 10 : narrow ? 5 : 7;
|
||||
|
||||
let raw = await os.api('retention', { });
|
||||
let raw = await misskeyApi('retention', { });
|
||||
|
||||
raw = raw.slice(0, maxDays + 1);
|
||||
|
||||
|
Reference in New Issue
Block a user