mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: optimize bundle
This commit is contained in:
1 parent
9c02ed4dd8
commit
5ae8258b8a
28 files changed
+57
-179
No files matched your search
@@ -1,5 +1,3 @@
|
||||
import attachObjectMeta from './util/objectMeta';
|
||||
|
||||
// Please note that accepted < others, rp system uses this feature.
|
||||
export const STATUS_WAITING = 0;
|
||||
export const STATUS_ACCEPTED = 1;
|
||||
@@ -34,7 +32,6 @@ export const STATUS_TEXTS = {
|
||||
[STATUS_FETCHED]: 'Fetched',
|
||||
[STATUS_IGNORED]: 'Ignored',
|
||||
};
|
||||
attachObjectMeta(STATUS_TEXTS, 'intKey', true);
|
||||
|
||||
export const STATUS_CODES = {
|
||||
[STATUS_WAITING]: 'pending',
|
||||
@@ -53,7 +50,6 @@ export const STATUS_CODES = {
|
||||
[STATUS_FETCHED]: 'progress',
|
||||
[STATUS_IGNORED]: 'ignored',
|
||||
};
|
||||
attachObjectMeta(STATUS_CODES, 'intKey', true);
|
||||
|
||||
/**
|
||||
* Whether to show detail about each test case for a submission status
|
||||
@@ -74,7 +70,6 @@ export const STATUS_SCRATCHPAD_SHOW_DETAIL_FLAGS = {
|
||||
[STATUS_FETCHED]: false,
|
||||
[STATUS_IGNORED]: false,
|
||||
};
|
||||
attachObjectMeta(STATUS_SCRATCHPAD_SHOW_DETAIL_FLAGS, 'exportToPython', false);
|
||||
|
||||
/**
|
||||
* Short text to show in Scratchpad mode
|
||||
@@ -86,4 +81,3 @@ export const STATUS_SCRATCHPAD_SHORT_TEXTS = {
|
||||
[STATUS_MEMORY_LIMIT_EXCEEDED]: 'MLE',
|
||||
[STATUS_RUNTIME_ERROR]: 'RTE',
|
||||
};
|
||||
attachObjectMeta(STATUS_SCRATCHPAD_SHORT_TEXTS, 'exportToPython', false);
|
||||
Reference in new issue
Block a user