[O] Optimize imports

This commit is contained in:
Azalea
2024-03-06 00:21:27 -05:00
parent 0da50bc693
commit 96cac6ca68
10 changed files with 15 additions and 22 deletions

View File

@@ -1,9 +1,4 @@
import { AQUA_HOST, DATA_HOST } from './config'
import type { TrendEntry } from './generalTypes'
import type { MaimaiUserSummaryEntry } from './maimaiTypes'
export async function getMaimai(endpoint: string, params: any) {
@@ -15,4 +10,4 @@ export async function getMaimai(endpoint: string, params: any) {
export async function getMaimaiAllMusic(): Promise<{ [key: string]: any }> {
return fetch(`${DATA_HOST}/maimai/meta/00/all-music.json`).then(it => it.json())
}
}

View File

@@ -5,7 +5,6 @@ import type {
CardSummary,
GenericGameSummary,
GenericRanking,
MusicMeta,
TrendEntry,
UserMe
} from "./generalTypes";

View File

@@ -15,7 +15,7 @@ import moment from 'moment/moment'
import CalHeatmap from 'cal-heatmap'
// @ts-expect-error Cal-heatmap does not have proper types
import CalTooltip from 'cal-heatmap/plugins/Tooltip'
import { AQUA_HOST, DEFAULT_PFP, IMG_HOST } from "./config";
import { AQUA_HOST, DEFAULT_PFP } from "./config";
import type { UserMe } from "./generalTypes";
export function title(t: string) {