Skip to content

Commit cdaf2c2

Browse files
committed
feat: Judge Accuracy Info 功能简介.pdf
1 parent 34ef61e commit cdaf2c2

File tree

5 files changed

+44
-2
lines changed

5 files changed

+44
-2
lines changed

AquaMai

MaiChartManager/Controllers/ModController.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.IO.Compression;
1+
using System.Diagnostics;
2+
using System.IO.Compression;
23
using System.Text.Json;
34
using System.Text.Json.Serialization;
45
using AquaMai.Config.HeadlessLoader;
@@ -232,4 +233,14 @@ public void InstallAquaMai()
232233
Directory.CreateDirectory(Path.GetDirectoryName(dest));
233234
System.IO.File.Copy(src, dest, true);
234235
}
236+
237+
[HttpPost]
238+
public void OpenJudgeAccuracyInfoPdf()
239+
{
240+
Process.Start(new ProcessStartInfo
241+
{
242+
FileName = Path.Combine(StaticSettings.exeDir, "Judge Accuracy Info 功能简介.pdf"),
243+
UseShellExecute = true
244+
});
245+
}
235246
}

MaiChartManager/Front/src/client/apiGen.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,20 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
13091309
...params,
13101310
}),
13111311

1312+
/**
1313+
* No description
1314+
*
1315+
* @tags Mod
1316+
* @name OpenJudgeAccuracyInfoPdf
1317+
* @request POST:/MaiChartManagerServlet/OpenJudgeAccuracyInfoPdfApi
1318+
*/
1319+
OpenJudgeAccuracyInfoPdf: (params: RequestParams = {}) =>
1320+
this.request<void, any>({
1321+
path: `/MaiChartManagerServlet/OpenJudgeAccuracyInfoPdfApi`,
1322+
method: "POST",
1323+
...params,
1324+
}),
1325+
13121326
/**
13131327
* No description
13141328
*
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { defineComponent, PropType, ref, computed } from 'vue';
2+
import { IEntryState, ISectionState } from "@/client/apiGen";
3+
import { NButton, NFlex } from "naive-ui";
4+
import api from "@/client/api";
5+
6+
export default defineComponent({
7+
props: {
8+
entryStates: { type: Object as PropType<Record<string, IEntryState>>, required: true },
9+
sectionState: { type: Object as PropType<ISectionState>, required: true },
10+
},
11+
setup(props, { emit }) {
12+
return () => <NFlex align="center" class="m-l-35 translate-y--3">
13+
作者:Minepig
14+
<NButton onClick={() => api.OpenJudgeAccuracyInfoPdf()}>查看说明文件</NButton>
15+
</NFlex>;
16+
},
17+
});
499 KB
Binary file not shown.

0 commit comments

Comments
 (0)