From 0b70c478b2a8394d6a81f2d368fd760db293e6ab Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 7 Oct 2025 00:53:51 +0800 Subject: [PATCH] update --- public/style.css | 18 ++++++++-- src/oj/ai/analysis.vue | 12 ++----- src/oj/ai/components/AI.vue | 40 +++++++++++++++++++++-- src/oj/ai/components/ProgressChart.vue | 15 ++------- src/oj/learn/index.vue | 14 -------- src/shared/components/StatisticsPanel.vue | 9 ++--- src/utils/constants.ts | 12 +++++++ 7 files changed, 72 insertions(+), 48 deletions(-) diff --git a/public/style.css b/public/style.css index 768aef7..e87b3f4 100644 --- a/public/style.css +++ b/public/style.css @@ -1,4 +1,16 @@ @font-face { - font-family: "Monaco"; - src: url(/Monaco.ttf); -} \ No newline at end of file + font-family: "Monaco"; + src: url(/Monaco.ttf); +} + +.md-editor-preview .md-editor-code .md-editor-code-head { + z-index: 100 !important; +} + +.md-editor-preview h1 { + font-size: 1.6rem !important; +} + +.md-editor-preview h2 { + font-size: 1.4rem !important; +} diff --git a/src/oj/ai/analysis.vue b/src/oj/ai/analysis.vue index 5ab4265..8cd5c44 100644 --- a/src/oj/ai/analysis.vue +++ b/src/oj/ai/analysis.vue @@ -53,19 +53,11 @@ import DurationChart from "./components/DurationChart.vue" import AI from "./components/AI.vue" import SolvedTable from "./components/SolvedTable.vue" import { useAIStore } from "../store/ai" +import { DURATION_OPTIONS } from "utils/constants" const aiStore = useAIStore() -const options: SelectOption[] = [ - { label: "一节课内", value: "hours:1" }, - { label: "两节课内", value: "hours:2" }, - { label: "一天内", value: "days:1" }, - { label: "一周内", value: "weeks:1" }, - { label: "一个月内", value: "months:1" }, - { label: "两个月内", value: "months:2" }, - { label: "半年内", value: "months:6" }, - { label: "一年内", value: "years:1" }, -] +const options = [...DURATION_OPTIONS] const subOptions = computed(() => { let dur = options.find((it) => it.value === aiStore.duration) ?? options[0] diff --git a/src/oj/ai/components/AI.vue b/src/oj/ai/components/AI.vue index 69900d0..0bb5323 100644 --- a/src/oj/ai/components/AI.vue +++ b/src/oj/ai/components/AI.vue @@ -1,5 +1,10 @@