fix ui.
This commit is contained in:
@@ -4,15 +4,10 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="shortcut icon" href="/public/website/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>OJ</title>
|
||||
<title>徐越的判题狗</title>
|
||||
<script>
|
||||
this.globalThis || (this.globalThis = window)
|
||||
</script>
|
||||
<style>
|
||||
body {
|
||||
height: 100vh;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -5,6 +5,7 @@ import { isDark } from "./shared/composables/dark"
|
||||
import hljs from "highlight.js/lib/core"
|
||||
import c from "highlight.js/lib/languages/c"
|
||||
import python from "highlight.js/lib/languages/python"
|
||||
import "./index.css"
|
||||
|
||||
const theme = computed(() => (isDark.value ? darkTheme : null))
|
||||
|
||||
|
||||
3
src/index.css
Normal file
3
src/index.css
Normal file
@@ -0,0 +1,3 @@
|
||||
body {
|
||||
height: 100vh;
|
||||
}
|
||||
@@ -136,7 +136,7 @@ function rowProps(row: Contest) {
|
||||
<n-form-item>
|
||||
<n-space>
|
||||
<n-button @click="search(query.keyword)">搜索</n-button>
|
||||
<n-button @click="clear">重置</n-button>
|
||||
<n-button @click="clear" quaternary>重置</n-button>
|
||||
</n-space>
|
||||
</n-form-item>
|
||||
</n-form>
|
||||
|
||||
@@ -166,7 +166,7 @@ function type(status: ProblemStatus) {
|
||||
}
|
||||
|
||||
.problemContent .title {
|
||||
font-size: 16px;
|
||||
font-size: 20px;
|
||||
margin: 12px 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -184,10 +184,10 @@ function rowProps(row: ProblemFiltered) {
|
||||
</n-form>
|
||||
<n-form :show-feedback="false" inline label-placement="left">
|
||||
<n-form-item>
|
||||
<n-space>
|
||||
<n-space align="center">
|
||||
<n-button @click="search(query.keyword)">搜索</n-button>
|
||||
<n-button @click="clear">重置</n-button>
|
||||
<n-button @click="getRandom">随机一题</n-button>
|
||||
<n-button @click="clear" quaternary>重置</n-button>
|
||||
<n-button @click="getRandom" quaternary>试试手气</n-button>
|
||||
</n-space>
|
||||
</n-form-item>
|
||||
</n-form>
|
||||
|
||||
@@ -255,7 +255,7 @@ const columns = computed(() => {
|
||||
<n-button @click="search(query.username)">搜索</n-button>
|
||||
</n-form-item>
|
||||
<n-form-item>
|
||||
<n-button @click="clear">重置</n-button>
|
||||
<n-button @click="clear" quaternary>重置</n-button>
|
||||
</n-form-item>
|
||||
</n-form>
|
||||
</n-space>
|
||||
|
||||
@@ -10,7 +10,7 @@ import Icons from "unplugin-icons/vite"
|
||||
import Markdown from "vite-plugin-vue-markdown"
|
||||
import Shiki from "markdown-it-shiki"
|
||||
|
||||
const url = "https://ojtest.hyyz.izhai.net"
|
||||
const url = "https://oj.hyyz.izhai.net"
|
||||
const proxyConfig = {
|
||||
target: url,
|
||||
changeOrigin: true,
|
||||
|
||||
Reference in New Issue
Block a user