Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
a6804bd
Merge pull request #75 from XMOJ-Script-dev/master
PythonSmall-Q Oct 4, 2023
34d45f8
Update XMOJ.user.js
PythonSmall-Q Oct 4, 2023
d51c217
Update XMOJ.user.js
PythonSmall-Q Oct 4, 2023
eb84889
Update to release 1.0.207
github-actions[bot] Oct 4, 2023
f53bdf7
Merge pull request #78 from XMOJ-Script-dev/actions/temp
github-actions[bot] Oct 4, 2023
93c5792
Update to release 1.0.207
github-actions[bot] Oct 4, 2023
8c4c93c
Update Update.json
PythonSmall-Q Oct 4, 2023
1694e5b
Update XMOJ.user.js
PythonSmall-Q Oct 4, 2023
65acc5f
Update XMOJ.user.js
PythonSmall-Q Oct 4, 2023
4f1a467
Update XMOJ.user.js
PythonSmall-Q Oct 4, 2023
0b0b02a
Merge pull request #80 from XMOJ-Script-dev/actions/temp
PythonSmall-Q Oct 4, 2023
534f9e1
Update XMOJ.user.js
PythonSmall-Q Oct 4, 2023
3f9516a
Merge pull request #81 from XMOJ-Script-dev/45-feature-request-better…
PythonSmall-Q Oct 4, 2023
2a1bd96
Update XMOJ.user.js
PythonSmall-Q Oct 4, 2023
03fa55a
Update XMOJ.user.js
PythonSmall-Q Oct 4, 2023
082a35f
Update version info to 1.0.207
github-actions[bot] Oct 4, 2023
51a993a
Merge pull request #82 from XMOJ-Script-dev/PythonSmall-Q-patch-3
PythonSmall-Q Oct 4, 2023
f865577
Update to release 1.0.207
github-actions[bot] Oct 4, 2023
ca53fec
Update Update.json
PythonSmall-Q Oct 4, 2023
81a4e34
Merge pull request #91 from XMOJ-Script-dev/actions/temp
github-actions[bot] Oct 4, 2023
51916b7
修复编辑用户显示
boomzero Oct 4, 2023
133078d
Update version info to 1.0.208
github-actions[bot] Oct 4, 2023
600e175
minor improvements
boomzero Oct 5, 2023
787d745
explain
boomzero Oct 5, 2023
0ae4aa3
Update version info to 1.0.209
github-actions[bot] Oct 5, 2023
b26ef3a
fix referrer
boomzero Oct 5, 2023
64d67c3
Merge branch 'boomzero/minor-improvment' of https://github.com/XMOJ-S…
boomzero Oct 5, 2023
82e792b
minor improvements
boomzero Oct 5, 2023
3a1f552
explain
boomzero Oct 5, 2023
1c1859b
Update version info to 1.0.209
github-actions[bot] Oct 5, 2023
739a93b
fix referrer
boomzero Oct 5, 2023
59aa6a3
Update time and description of 1.0.209
github-actions[bot] Oct 5, 2023
d9d4363
Update time and description of 1.0.209
github-actions[bot] Oct 5, 2023
bb1d433
fix #99
boomzero Oct 5, 2023
c2feeab
Merge branch 'dev' into fix-#99
boomzero Oct 5, 2023
bfcf877
Merge pull request #101 from XMOJ-Script-dev/fix-#99
boomzero Oct 5, 2023
0778302
修复高亮
boomzero Oct 5, 2023
3d8b99d
Update version info to 1.0.210
github-actions[bot] Oct 5, 2023
6e4bfce
Merge pull request #102 from XMOJ-Script-dev/boomzero-patch-4
boomzero Oct 5, 2023
e32f5b0
自动提交当年代码“
boomzero Oct 5, 2023
7340c7f
Update version info to 1.0.210
github-actions[bot] Oct 5, 2023
606ac8c
Merge branch 'dev' into boomzero/autocheat
boomzero Oct 5, 2023
c33036a
Merge pull request #104 from XMOJ-Script-dev/boomzero/autocheat
boomzero Oct 5, 2023
320acc8
emergency fix
boomzero Oct 5, 2023
48e75e5
Update version info to 1.0.211
github-actions[bot] Oct 5, 2023
2453317
bump version
boomzero Oct 5, 2023
396d980
Update Update.json
boomzero Oct 5, 2023
c9da45a
Update time and description of 1.0.212
github-actions[bot] Oct 5, 2023
40cd9cb
fix logs
boomzero Oct 5, 2023
c5f1b25
Update time and description of 1.0.212
github-actions[bot] Oct 5, 2023
3bb1791
Merge pull request #105 from XMOJ-Script-dev/boomzero-patch-4
boomzero Oct 5, 2023
823e743
Change repos
boomzero Oct 5, 2023
5fb073d
Merge pull request #106 from XMOJ-Script-dev/boomzero-patch-4
boomzero Oct 5, 2023
d9d722e
fix #107
boomzero Oct 5, 2023
f91cc29
new style
boomzero Oct 5, 2023
89da157
Update version info to 1.0.213
github-actions[bot] Oct 6, 2023
5ebbf42
Merge pull request #108 from XMOJ-Script-dev/boomzero/fix#107
boomzero Oct 6, 2023
421b45e
Update Update.json
boomzero Oct 6, 2023
685ff9a
Update to release 1.0.214
github-actions[bot] Oct 6, 2023
4d8c315
Merge pull request #110 from XMOJ-Script-dev/actions/temp
github-actions[bot] Oct 6, 2023
d98566d
Merge branch 'master' into dev
boomzero Oct 6, 2023
0d2fc14
Update to release 1.0.214
github-actions[bot] Oct 6, 2023
c0de884
Merge pull request #111 from XMOJ-Script-dev/actions/temp
github-actions[bot] Oct 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Server/Source/Initial.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ CREATE TABLE bbs_board (
board_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
board_name TEXT NOT NULL
);
INSERT INTO bbs_board (board_name) VALUES ('站务版');
INSERT INTO bbs_board (board_name) VALUES ('学术版');
INSERT INTO bbs_board (board_name) VALUES ('灌水区');
INSERT INTO bbs_board (board_name) VALUES ('反馈区');
INSERT INTO bbs_board (board_name) VALUES ('题目总版');

DROP TABLE IF EXISTS phpsessid;

Expand Down
8 changes: 4 additions & 4 deletions Server/Source/Process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import CryptoJS from "crypto-js";
import md5 from "crypto-js/md5";

export class Process {
private AdminUserList: Array<string> = ["chenlangning", "zhuchenrui2", "shanwenxiao"];
private AdminUserList: Array<string> = ["zhuchenrui2", "shanwenxiao"];
private Username: string;
private SessionID: string;
private RemoteIP: string;
Expand Down Expand Up @@ -515,7 +515,7 @@ export class Process {
return new Result(false, "未找到讨论");
}
if (!this.IsAdmin()) {
return new Result(false, "没有权限锁定此讨论");
return new Result(false, "没有权限解锁此讨论");
}
if (ThrowErrorIfFailed(await this.XMOJDatabase.GetTableSize("bbs_lock", {
post_id: Data["PostID"]
Expand Down Expand Up @@ -1020,7 +1020,7 @@ export class Process {
});
},
UploadImage: async (Data: object): Promise<Result> => {
const GithubImageRepo = "langningchen/XMOJ-Script-Pictures";
const GithubImageRepo = "PythonSmall-Q/XMOJ-Script-Pictures";
ThrowErrorIfFailed(this.CheckParams(Data, {
"Image": "string"
}));
Expand Down Expand Up @@ -1062,7 +1062,7 @@ export class Process {
});
},
GetImage: async (Data: object): Promise<Blob> => {
const GithubImageRepo = "langningchen/XMOJ-Script-Pictures";
const GithubImageRepo = "PythonSmall-Q/XMOJ-Script-Pictures";
ThrowErrorIfFailed(this.CheckParams(Data, {
"ImageID": "string"
}));
Expand Down
100 changes: 99 additions & 1 deletion Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,110 @@
]
},
"1.0.207": {
"UpdateDate": 1696385023446,
"UpdateDate": 1696392248973,
"Prerelease": true,
"UpdateContents": [
{
"PR": 82,
"Description": "Dev Release"
}
]
},
"1.0.208": {
"UpdateDate": 1696429996532,
"Prerelease": true,
"UpdateContents": [
{
"PR": 95,
"Description": "修复编辑用户显示"
}
]
},
"1.0.209": {
"UpdateDate": 1696490377673,
"Prerelease": true,
"UpdateContents": [
{
"PR": 98,
"Description": "修复部分功能"
}
]
},
"1.0.210": {
"UpdateDate": 1696510135483,
"Prerelease": true,
"UpdateContents": [
{
"PR": 102,
"Description": "修复高亮"
}
]
},
"1.0.211": {
"UpdateDate": 1696514142283,
"Prerelease": true,
"UpdateContents": [
{
"PR": 104,
"Description": "自动提交当年代码"
}
]
},
"1.0.212": {
"UpdateDate": 1696515556253,
"Prerelease": true,
"UpdateContents": [
{
"PR": 105,
"Description": "emergency fix"
}
]
},
"1.0.213": {
"UpdateDate": 1696550511282,
"Prerelease": true,
"UpdateContents": [
{
"PR": 108,
"Description": "修复自动提交当年代码不计分"
}
]
},
"1.0.214": {
"UpdateDate": 1696551077104,
"Prerelease": false,
"UpdateContents": [
{
"PR": 67,
"Description": "允许用户关闭获取数据,开启学术模式选择"
},
{
"PR": 82,
"Description": "Dev Release"
},
{
"PR": 95,
"Description": "修复编辑用户显示"
},
{
"PR": 98,
"Description": "修复部分功能"
},
{
"PR": 102,
"Description": "修复高亮"
},
{
"PR": 104,
"Description": "自动提交当年代码"
},
{
"PR": 105,
"Description": "emergency fix"
},
{
"PR": 108,
"Description": "修复自动提交当年代码不计分"
}
]
}
Expand Down
Loading