mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
utils: add STATUS_FORMAT_ERROR
This commit is contained in:
1 parent
10032f4f93
commit
b8deb8a572
2 files changed
+5
-1
No files matched your search
@@ -15,6 +15,7 @@ export const STATUS = {
|
||||
STATUS_COMPILING: 21,
|
||||
STATUS_FETCHED: 22,
|
||||
STATUS_IGNORED: 30,
|
||||
STATUS_FORMAT_ERROR: 31,
|
||||
};
|
||||
|
||||
export const STATUS_TEXTS = {
|
||||
@@ -34,6 +35,7 @@ export const STATUS_TEXTS = {
|
||||
[STATUS.STATUS_COMPILING]: 'Compiling',
|
||||
[STATUS.STATUS_FETCHED]: 'Fetched',
|
||||
[STATUS.STATUS_IGNORED]: 'Ignored',
|
||||
[STATUS.STATUS_FORMAT_ERROR]: 'Format Error',
|
||||
};
|
||||
|
||||
export const STATUS_SHORT_TEXTS = {
|
||||
@@ -48,6 +50,7 @@ export const STATUS_SHORT_TEXTS = {
|
||||
[STATUS.STATUS_CANCELED]: 'IGN',
|
||||
[STATUS.STATUS_HACKED]: 'HK',
|
||||
[STATUS.STATUS_IGNORED]: 'IGN',
|
||||
[STATUS.STATUS_FORMAT_ERROR]: 'FE',
|
||||
};
|
||||
|
||||
export const STATUS_CODES = {
|
||||
@@ -67,6 +70,7 @@ export const STATUS_CODES = {
|
||||
21: 'progress',
|
||||
22: 'progress',
|
||||
30: 'ignored',
|
||||
31: 'ignored',
|
||||
};
|
||||
|
||||
export function getScoreColor(score: number | string): string {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/utils",
|
||||
"version": "1.1.3",
|
||||
"version": "1.1.4",
|
||||
"description": "hydrooj utils",
|
||||
"main": "package.json",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
Reference in new issue
Block a user