utils: add STATUS_SHORT_TEXTS

This commit is contained in:
undefined committed 2021-05-17 01:01:26 +08:00
1 parent 218a14b91e
commit 625478ac3a
5 files changed
+18 -3

No files matched your search

+14
View File
@@ -36,6 +36,20 @@ export const STATUS_TEXTS = {
[STATUS.STATUS_IGNORED]: 'Ignored',
};
export const STATUS_SHORT_TEXTS = {
[STATUS.STATUS_ACCEPTED]: 'AC',
[STATUS.STATUS_WRONG_ANSWER]: 'WA',
[STATUS.STATUS_TIME_LIMIT_EXCEEDED]: 'TLE',
[STATUS.STATUS_MEMORY_LIMIT_EXCEEDED]: 'MLE',
[STATUS.STATUS_OUTPUT_LIMIT_EXCEEDED]: 'OLE',
[STATUS.STATUS_RUNTIME_ERROR]: 'RE',
[STATUS.STATUS_COMPILE_ERROR]: 'CE',
[STATUS.STATUS_SYSTEM_ERROR]: 'SE',
[STATUS.STATUS_CANCELED]: 'IGN',
[STATUS.STATUS_HACKED]: 'HK',
[STATUS.STATUS_IGNORED]: 'IGN',
};
export const STATUS_CODES = {
0: 'pending',
1: 'pass',
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/utils",
"version": "1.0.15",
"version": "1.0.16",
"description": "hydrooj utils",
"main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git",