mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-07 14:37:33 +08:00
[O] Optimize imports
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ import type {
|
||||
CardSummary,
|
||||
GenericGameSummary,
|
||||
GenericRanking,
|
||||
MusicMeta,
|
||||
TrendEntry,
|
||||
UserMe
|
||||
} from "./generalTypes";
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user