From 069b2755b1187a74629b159b9c8f6606c81ed958 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Fri, 22 Aug 2025 21:47:33 +0800 Subject: [PATCH] update --- .github/workflows/deploy.yaml | 6 +++--- .vitepress/theme/judge.ts | 4 ++-- package.json | 14 +++++++------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 20a0d1a..219954b 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -11,9 +11,9 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "npm" - run: npm install - run: npm run build @@ -25,4 +25,4 @@ jobs: ARGS: "-avzr --delete" SOURCE: .vitepress/dist/ REMOTE_USER: root - TARGET: /root/NewBook/dist + TARGET: /root/Book/dist diff --git a/.vitepress/theme/judge.ts b/.vitepress/theme/judge.ts index fca26b2..cc10b32 100644 --- a/.vitepress/theme/judge.ts +++ b/.vitepress/theme/judge.ts @@ -24,10 +24,10 @@ const DEAD_RESULTS = { }, } -let url = "http://10.13.114.214:8082" +let url = "http://10.13.114.114:8082" //@ts-ignore if (import.meta.env.MODE === "production") { - url = "https://judge0.xuyue.cc" + url = "https://judge0api.xuyue.cc" } const http = axios.create({ baseURL: url }) diff --git a/package.json b/package.json index 78fd137..19255f4 100644 --- a/package.json +++ b/package.json @@ -13,14 +13,14 @@ "author": "", "license": "ISC", "devDependencies": { - "prettier": "^3.5.2", - "vitepress": "1.6.3" + "prettier": "^3.6.2", + "vitepress": "1.6.4" }, "dependencies": { - "@codemirror/lang-cpp": "^6.0.2", - "@codemirror/lang-python": "^6.1.7", - "axios": "^1.7.9", - "codemirror": "^6.0.1", - "vue-codemirror6": "~1.3.11" + "@codemirror/lang-cpp": "^6.0.3", + "@codemirror/lang-python": "^6.2.1", + "axios": "^1.11.0", + "codemirror": "^6.0.2", + "vue-codemirror6": "~1.3.22" } }