add auto-imports.

This commit is contained in:
2023-01-11 02:04:48 +08:00
parent 5c34d3c5e7
commit 77378f80a0
32 changed files with 819 additions and 117 deletions

View File

@@ -1,4 +1,3 @@
import { useDateFormat } from "@vueuse/core"
import { STORAGE_KEY } from "./constants"
export function getACRate(acCount: number, totalCount: number) {
@@ -23,7 +22,7 @@ export function buildProblemCodeKey(problemID: string, contestID = "") {
return `${STORAGE_KEY.PROBLEM_CODE}_NaN_${problemID}`
}
export function getTagColor(tag: string) {
export function getTagColor(tag: "Low" | "Mid" | "High") {
return {
Low: "success",
Mid: "",