This commit is contained in:
2024-09-09 12:27:43 +08:00
parent 912150c716
commit d866f24c6d
4 changed files with 1033 additions and 861 deletions

1855
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{ {
"name": "oj-next", "name": "oj-next",
"version": "1.4.0", "version": "1.5.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"start": "vite", "start": "vite",
@@ -11,20 +11,20 @@
"dependencies": { "dependencies": {
"@codemirror/lang-cpp": "^6.0.2", "@codemirror/lang-cpp": "^6.0.2",
"@codemirror/lang-python": "^6.1.6", "@codemirror/lang-python": "^6.1.6",
"@vueuse/core": "^10.11.1", "@vueuse/core": "^11.0.3",
"@wangeditor/editor": "^5.1.23", "@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "5.1.12", "@wangeditor/editor-for-vue": "5.1.12",
"axios": "^1.7.4", "axios": "^1.7.7",
"canvas-confetti": "^1.9.3", "canvas-confetti": "^1.9.3",
"chart.js": "^4.4.3", "chart.js": "^4.4.4",
"codemirror": "^6.0.1", "codemirror": "^6.0.1",
"copy-text-to-clipboard": "^3.2.0", "copy-text-to-clipboard": "^3.2.0",
"date-fns": "^2.30.0", "date-fns": "^2.30.0",
"highlight.js": "^11.10.0", "highlight.js": "^11.10.0",
"naive-ui": "^2.39.0", "naive-ui": "^2.39.0",
"normalize.css": "^8.0.1", "normalize.css": "^8.0.1",
"pinia": "^2.2.1", "pinia": "^2.2.2",
"vue": "^3.4.37", "vue": "^3.5.3",
"vue-chartjs": "^5.3.1", "vue-chartjs": "^5.3.1",
"vue-codemirror": "^6.1.1", "vue-codemirror": "^6.1.1",
"vue-router": "^4.4.3" "vue-router": "^4.4.3"
@@ -32,9 +32,9 @@
"devDependencies": { "devDependencies": {
"@iconify/vue": "^4.1.2", "@iconify/vue": "^4.1.2",
"@types/canvas-confetti": "^1.6.4", "@types/canvas-confetti": "^1.6.4",
"@types/node": "^22.2.0", "@types/node": "^22.5.4",
"@vitejs/plugin-legacy": "^5.4.1", "@vitejs/plugin-legacy": "^5.4.2",
"@vitejs/plugin-vue": "^5.1.2", "@vitejs/plugin-vue": "^5.1.3",
"prettier": "^3.3.3", "prettier": "^3.3.3",
"prettier-plugin-organize-imports": "^4.0.0", "prettier-plugin-organize-imports": "^4.0.0",
"terser": "^5.31.6", "terser": "^5.31.6",
@@ -42,7 +42,7 @@
"unplugin-auto-import": "^0.18.2", "unplugin-auto-import": "^0.18.2",
"unplugin-vue-components": "^0.27.4", "unplugin-vue-components": "^0.27.4",
"unplugin-vue-markdown": "^0.26.2", "unplugin-vue-markdown": "^0.26.2",
"vite": "^5.4.0", "vite": "^5.4.3",
"vue-tsc": "^2.0.29" "vue-tsc": "^2.1.6"
} }
} }

View File

@@ -73,7 +73,13 @@ const columns: DataTableColumn<Comment>[] = [
render: (row) => parseTime(row.create_time, "YYYY-MM-DD HH:mm:ss"), render: (row) => parseTime(row.create_time, "YYYY-MM-DD HH:mm:ss"),
width: 200, width: 200,
}, },
{ title: "内容", key: "content", maxWidth: 300, ellipsis: true }, {
title: "内容",
key: "content",
minWidth: 200,
maxWidth: 300,
ellipsis: true,
},
{ {
title: "选项", title: "选项",
key: "action", key: "action",

View File

@@ -16,11 +16,10 @@ const form = reactive({
}) })
const classList: SelectOption[] = [ const classList: SelectOption[] = [
{ label: "不用填", value: "" }, { label: "不用填", value: "" },
{ label: "23计算机1班", value: "ks231" }, { label: "24计算机1班", value: "ks241" },
{ label: "23计算机2班", value: "ks232" }, { label: "24计算机2班", value: "ks242" },
{ label: "23计算机4班", value: "ks234" }, { label: "24计算机3班", value: "ks243" },
{ label: "23计算机5班", value: "ks235" }, { label: "24计算机4班", value: "ks244" },
{ label: "23计算机6班", value: "ks236" },
] ]
const rules: FormRules = { const rules: FormRules = {
username: [{ required: true, message: "用户名必填", trigger: "blur" }], username: [{ required: true, message: "用户名必填", trigger: "blur" }],