mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
judge: skip subtask if already unaccepted (#34)
This commit is contained in:
1 parent
1817341eee
commit
9f0668d938
6 files changed
+26
-7
No files matched your search
@@ -30,8 +30,8 @@
|
||||
"serialize-javascript": "^5.0.1",
|
||||
"sockjs": "^0.3.20",
|
||||
"superagent": "^6.1.0",
|
||||
"supports-color": "^7.2.0",
|
||||
"systeminformation": "^4.30.1",
|
||||
"supports-color": "^8.0.0",
|
||||
"systeminformation": "^4.30.6",
|
||||
"wtfnode": "^0.8.4",
|
||||
"yargs": "^16.1.1"
|
||||
},
|
||||
|
||||
@@ -48,6 +48,9 @@ String.prototype.translate = function translate(...languages: string[]) {
|
||||
if (locales[language]) {
|
||||
if (locales[language][this] !== undefined) return locales[language][this];
|
||||
}
|
||||
if (locales[language.split('_')[0]]) {
|
||||
if (locales[language.split('_')[0]][this] !== undefined) return locales[language.split('_')[0]][this];
|
||||
}
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
@@ -44,6 +44,7 @@ export async function feedback() {
|
||||
addons: global.addons,
|
||||
memory: inf.memory,
|
||||
osinfo: inf.osinfo,
|
||||
cpu: inf.cpu,
|
||||
flags: inf.flags,
|
||||
}));
|
||||
axios.post('https://feedback.undefined.moe/', { payload });
|
||||
|
||||
Reference in new issue
Block a user