This commit is contained in:
2023-06-25 13:08:06 +08:00
parent bbb86041b4
commit 9fe9cc938a
8 changed files with 12 additions and 13 deletions

View File

@@ -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>

View File

@@ -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
View File

@@ -0,0 +1,3 @@
body {
height: 100vh;
}

View File

@@ -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>

View File

@@ -166,7 +166,7 @@ function type(status: ProblemStatus) {
}
.problemContent .title {
font-size: 16px;
font-size: 20px;
margin: 12px 0;
}

View File

@@ -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>

View File

@@ -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>

View File

@@ -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,