From 9fe9cc938afa8faf2cfa715e87594a8868326e58 Mon Sep 17 00:00:00 2001
From: yuetsh <517252939@qq.com>
Date: Sun, 25 Jun 2023 13:08:06 +0800
Subject: [PATCH] fix ui.
---
index.html | 7 +------
src/App.vue | 1 +
src/index.css | 3 +++
src/oj/contest/list.vue | 2 +-
src/oj/problem/components/ProblemContent.vue | 2 +-
src/oj/problem/list.vue | 6 +++---
src/oj/submission/list.vue | 2 +-
vite.config.ts | 2 +-
8 files changed, 12 insertions(+), 13 deletions(-)
create mode 100644 src/index.css
diff --git a/index.html b/index.html
index 3803f63..ae2feb5 100644
--- a/index.html
+++ b/index.html
@@ -4,15 +4,10 @@
-
OJ
+ 徐越的判题狗
-
diff --git a/src/App.vue b/src/App.vue
index 695f4fa..5d8b784 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -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))
diff --git a/src/index.css b/src/index.css
new file mode 100644
index 0000000..ae8973b
--- /dev/null
+++ b/src/index.css
@@ -0,0 +1,3 @@
+body {
+ height: 100vh;
+}
diff --git a/src/oj/contest/list.vue b/src/oj/contest/list.vue
index 4771fc1..2523041 100644
--- a/src/oj/contest/list.vue
+++ b/src/oj/contest/list.vue
@@ -136,7 +136,7 @@ function rowProps(row: Contest) {
搜索
- 重置
+ 重置
diff --git a/src/oj/problem/components/ProblemContent.vue b/src/oj/problem/components/ProblemContent.vue
index a0256ec..bf30a0a 100644
--- a/src/oj/problem/components/ProblemContent.vue
+++ b/src/oj/problem/components/ProblemContent.vue
@@ -166,7 +166,7 @@ function type(status: ProblemStatus) {
}
.problemContent .title {
- font-size: 16px;
+ font-size: 20px;
margin: 12px 0;
}
diff --git a/src/oj/problem/list.vue b/src/oj/problem/list.vue
index 9deb1fa..34b8d4a 100644
--- a/src/oj/problem/list.vue
+++ b/src/oj/problem/list.vue
@@ -184,10 +184,10 @@ function rowProps(row: ProblemFiltered) {
-
+
搜索
- 重置
- 随机一题
+ 重置
+ 试试手气
diff --git a/src/oj/submission/list.vue b/src/oj/submission/list.vue
index e3d4475..c40a5a4 100644
--- a/src/oj/submission/list.vue
+++ b/src/oj/submission/list.vue
@@ -255,7 +255,7 @@ const columns = computed(() => {
搜索
- 重置
+ 重置
diff --git a/vite.config.ts b/vite.config.ts
index 13c6a8e..b0058a6 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -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,