add website config.
This commit is contained in:
@@ -29,6 +29,10 @@ function filterResult(result: Problem) {
|
||||
return newResult
|
||||
}
|
||||
|
||||
export function getWebsiteConfig() {
|
||||
return http.get("website")
|
||||
}
|
||||
|
||||
export async function getProblemList(
|
||||
offset = 0,
|
||||
limit = 10,
|
||||
|
||||
@@ -86,7 +86,7 @@ const options = {
|
||||
</template>
|
||||
<style scoped>
|
||||
.chart {
|
||||
height: 400px;
|
||||
height: 500px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -13,6 +13,7 @@ import { Submission } from "utils/types"
|
||||
import { adminRejudge, getSubmissions } from "oj/api"
|
||||
import { isDesktop } from "~/shared/composables/breakpoints"
|
||||
import { useUserStore } from "~/shared/store/user"
|
||||
import { useConfigStore } from "~/shared/store/config"
|
||||
|
||||
interface Query {
|
||||
username: string
|
||||
@@ -25,6 +26,7 @@ interface Query {
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
const userStore = useUserStore()
|
||||
const configStore = useConfigStore()
|
||||
const message = useMessage()
|
||||
|
||||
const submissions = ref([])
|
||||
|
||||
Reference in New Issue
Block a user