xmoj-script 1.1.22 → 1.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/sitemap-automation.yml +1 -1
- package/README.md +13 -0
- package/Update.json +22 -0
- package/XMOJ.user.js +4 -5
- package/index.html +2 -3
- package/package.json +1 -1
- package/sitemap.xml +1 -1
package/README.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|

|
5
5
|

|
6
6
|

|
7
|
+
[](https://app.fossa.com/projects/git%2Bgithub.com%2FXMOJ-Script-dev%2FXMOJ-Script?ref=badge_shield)
|
7
8
|
|
8
9
|
[点击此处访问官网查看更多内容](https://web.xmoj-bbs.tech)
|
9
10
|
|
@@ -74,9 +75,17 @@
|
|
74
75
|
|
75
76
|
小明的OJ增强脚本开发期待以您的邂逅!
|
76
77
|
|
78
|
+
### 赞助我们
|
79
|
+
你想贡献出你收入的很小一部分来支持我们的开发吗?欢迎在open collective上支持我们!
|
80
|
+
|
81
|
+
链接戳[这里](https://opencollective.com/xmoj-script-dev)。
|
82
|
+
|
77
83
|
> [!IMPORTANT]
|
78
84
|
> 请注意, 外部开发者应向`extern-contrib`提交 pull requests。
|
79
85
|
|
86
|
+
### Project Status
|
87
|
+
[](https://app.fossa.com/projects/git%2Bgithub.com%2FXMOJ-Script-dev%2FXMOJ-Script?ref=badge_shield&issueType=license)
|
88
|
+
|
80
89
|
### How to set up a development server
|
81
90
|
```bash
|
82
91
|
cd backend
|
@@ -84,3 +93,7 @@ npm install
|
|
84
93
|
npx wrangler d1 execute DB --file ./Source/Initial.sql --local
|
85
94
|
npx wrangler dev
|
86
95
|
```
|
96
|
+
|
97
|
+
|
98
|
+
## License
|
99
|
+
[](https://app.fossa.com/projects/git%2Bgithub.com%2FXMOJ-Script-dev%2FXMOJ-Script?ref=badge_large)
|
package/Update.json
CHANGED
@@ -1049,6 +1049,28 @@
|
|
1049
1049
|
}
|
1050
1050
|
],
|
1051
1051
|
"Notes": "No release notes were provided for this release."
|
1052
|
+
},
|
1053
|
+
"1.1.23": {
|
1054
|
+
"UpdateDate": 1706103530551,
|
1055
|
+
"Prerelease": true,
|
1056
|
+
"UpdateContents": [
|
1057
|
+
{
|
1058
|
+
"PR": 390,
|
1059
|
+
"Description": "更新support链接"
|
1060
|
+
}
|
1061
|
+
],
|
1062
|
+
"Notes": "No release notes were provided for this release."
|
1063
|
+
},
|
1064
|
+
"1.1.24": {
|
1065
|
+
"UpdateDate": 1706245175892,
|
1066
|
+
"Prerelease": true,
|
1067
|
+
"UpdateContents": [
|
1068
|
+
{
|
1069
|
+
"PR": 393,
|
1070
|
+
"Description": "make the upload_std interface prettier"
|
1071
|
+
}
|
1072
|
+
],
|
1073
|
+
"Notes": "No release notes were provided for this release."
|
1052
1074
|
}
|
1053
1075
|
}
|
1054
1076
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.1.
|
3
|
+
// @version 1.1.24
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -20,7 +20,7 @@
|
|
20
20
|
// @grant GM_setValue
|
21
21
|
// @grant GM_getValue
|
22
22
|
// @homepage https://www.xmoj-bbs.tech/
|
23
|
-
// @supportURL https://
|
23
|
+
// @supportURL https://bugs.xmoj-bbs.tech
|
24
24
|
// @connect api.xmoj-bbs.tech
|
25
25
|
// @connect challenges.cloudflare.com
|
26
26
|
// @connect cppinsights.io
|
@@ -2833,7 +2833,6 @@ else {
|
|
2833
2833
|
<p class="mt-2 text-muted">
|
2834
2834
|
您必须要上传标程以后才能使用“查看标程”功能。点击“上传标程”按钮以后,系统会自动上传标程,请您耐心等待。<br>
|
2835
2835
|
首次上传标程可能会比较慢,请耐心等待。后续上传标程将会快很多。请不要直接抄袭或递交标程,否则会给予"作弊者"badge的惩罚!<br>
|
2836
|
-
上传的内容不是您AC的程序,而是您AC的题目对应的用户std的程序。所以您可以放心上传,不会泄露您的代码。<br>
|
2837
2836
|
系统每过30天会自动提醒您上传标程,您必须要上传标程,否则将会被禁止使用“查看标程”功能。<br>
|
2838
2837
|
</p>`;
|
2839
2838
|
UploadStd.addEventListener("click", async () => {
|
@@ -2863,14 +2862,14 @@ else {
|
|
2863
2862
|
if (Result.Success) {
|
2864
2863
|
let StdList = Result.Data.StdList;
|
2865
2864
|
for (let i = 0; i < ACList.length; i++) {
|
2866
|
-
if (StdList.indexOf(ACList[i]) === -1) {
|
2865
|
+
if (StdList.indexOf(ACList[i]) === -1 && ACList[i] !== 0) {
|
2867
2866
|
await new Promise((Resolve) => {
|
2868
2867
|
RequestAPI("UploadStd", {
|
2869
2868
|
"ProblemID": Number(ACList[i])
|
2870
2869
|
}, (Result) => {
|
2871
2870
|
if (!Result.Success) {
|
2872
2871
|
ErrorElement.style.display = "block";
|
2873
|
-
ErrorElement.innerText += Result.Message + "
|
2872
|
+
ErrorElement.innerText += Result.Message + "\n";
|
2874
2873
|
UploadProgress.classList.add("bg-warning");
|
2875
2874
|
}
|
2876
2875
|
UploadProgress.innerText = (i / ACList.length * 100).toFixed(1) + "% (" + ACList[i] + ")";
|
package/index.html
CHANGED
@@ -303,7 +303,7 @@
|
|
303
303
|
开发,基于
|
304
304
|
<a href="https://www.xmoj.tech" target="_blank">小明的OJ</a>
|
305
305
|
平台。
|
306
|
-
该项目使用了GPL-3.0
|
306
|
+
该项目使用了GPL-3.0协议,请您在使用时遵守协议规定。如果您想参阅协议原文,请点击下方按钮。
|
307
307
|
<div class="accordion" id="LicenseAccordion">
|
308
308
|
<div class="accordion-item">
|
309
309
|
<h2 class="accordion-header">
|
@@ -942,7 +942,6 @@ END OF TERMS AND CONDITIONS
|
|
942
942
|
</div>
|
943
943
|
</div>
|
944
944
|
</body>
|
945
|
-
<center
|
945
|
+
<center>我们的网站在萌国备案啦!我们的备案号是:<a href="https://icp.gov.moe/?keyword=20240425" target="_blank">萌ICP备20240425号</a> </center>
|
946
946
|
</html>
|
947
947
|
<script src="https://xmojscript1.statuspage.io/embed/script.js"></script>
|
948
|
-
|
package/package.json
CHANGED