x-star-design 0.0.134 → 0.0.136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -200,6 +200,7 @@ export var CONTEST_TEMPLATES = {
200
200
  limitMinute: 0
201
201
  },
202
202
  dualEvaluation: false,
203
- enableRevisal: false
203
+ revisalCount: 5,
204
+ enableRevisal: true
204
205
  }
205
206
  };
@@ -36,7 +36,7 @@ declare const _default: {
36
36
  readonly Precheck_Test_Point: "Precheck Test Point";
37
37
  readonly Subtask_Score_Rule: "Subtask Score Rule";
38
38
  readonly Time_Limit_Cannot_Be_Less_Than_500_MS: "Time limit cannot be less than 500ms";
39
- readonly Space_Limit_Cannot_Be_Less_Than_131072_KB: "Space limit cannot be less than 131072KB";
39
+ readonly Space_Limit_Cannot_Be_Less_Than_10240_KB: "Space limit cannot be less than 10240KB";
40
40
  };
41
41
  readonly TranslateButton: {
42
42
  readonly CURRENT_LANG: "Current Language:";
@@ -36,7 +36,7 @@ export default {
36
36
  Precheck_Test_Point: 'Precheck Test Point',
37
37
  Subtask_Score_Rule: 'Subtask Score Rule',
38
38
  Time_Limit_Cannot_Be_Less_Than_500_MS: 'Time limit cannot be less than 500ms',
39
- Space_Limit_Cannot_Be_Less_Than_131072_KB: 'Space limit cannot be less than 131072KB'
39
+ Space_Limit_Cannot_Be_Less_Than_10240_KB: 'Space limit cannot be less than 10240KB'
40
40
  },
41
41
  TranslateButton: {
42
42
  CURRENT_LANG: 'Current Language:'
@@ -47,7 +47,7 @@ export declare const useLocale: <T extends "VisualDataConfig" | "TranslateButton
47
47
  readonly Precheck_Test_Point: "预检评测点";
48
48
  readonly Subtask_Score_Rule: "子任务算分规则";
49
49
  readonly Time_Limit_Cannot_Be_Less_Than_500_MS: "时间限制不能小于500毫秒";
50
- readonly Space_Limit_Cannot_Be_Less_Than_131072_KB: "空间限制不能小于131072字节";
50
+ readonly Space_Limit_Cannot_Be_Less_Than_10240_KB: "空间限制不能小于10240字节";
51
51
  };
52
52
  readonly TranslateButton: {
53
53
  readonly CURRENT_LANG: "当前语言:";
@@ -287,7 +287,7 @@ export declare const useLocale: <T extends "VisualDataConfig" | "TranslateButton
287
287
  readonly Precheck_Test_Point: "Precheck Test Point";
288
288
  readonly Subtask_Score_Rule: "Subtask Score Rule";
289
289
  readonly Time_Limit_Cannot_Be_Less_Than_500_MS: "Time limit cannot be less than 500ms";
290
- readonly Space_Limit_Cannot_Be_Less_Than_131072_KB: "Space limit cannot be less than 131072KB";
290
+ readonly Space_Limit_Cannot_Be_Less_Than_10240_KB: "Space limit cannot be less than 10240KB";
291
291
  };
292
292
  readonly TranslateButton: {
293
293
  readonly CURRENT_LANG: "Current Language:";
@@ -36,7 +36,7 @@ declare const _default: {
36
36
  readonly Precheck_Test_Point: "预检评测点";
37
37
  readonly Subtask_Score_Rule: "子任务算分规则";
38
38
  readonly Time_Limit_Cannot_Be_Less_Than_500_MS: "时间限制不能小于500毫秒";
39
- readonly Space_Limit_Cannot_Be_Less_Than_131072_KB: "空间限制不能小于131072字节";
39
+ readonly Space_Limit_Cannot_Be_Less_Than_10240_KB: "空间限制不能小于10240字节";
40
40
  };
41
41
  readonly TranslateButton: {
42
42
  readonly CURRENT_LANG: "当前语言:";
@@ -36,7 +36,7 @@ export default {
36
36
  Precheck_Test_Point: '预检评测点',
37
37
  Subtask_Score_Rule: '子任务算分规则',
38
38
  Time_Limit_Cannot_Be_Less_Than_500_MS: '时间限制不能小于500毫秒',
39
- Space_Limit_Cannot_Be_Less_Than_131072_KB: '空间限制不能小于131072字节'
39
+ Space_Limit_Cannot_Be_Less_Than_10240_KB: '空间限制不能小于10240字节'
40
40
  },
41
41
  TranslateButton: {
42
42
  CURRENT_LANG: '当前语言:'
@@ -51,8 +51,8 @@ var SingleDataConfig = function SingleDataConfig() {
51
51
  name: [field.name, 'memoryLimit'],
52
52
  rules: [{
53
53
  validator: function validator(_, value) {
54
- if (value && value < 131072) {
55
- return Promise.reject(new Error(t('Space_Limit_Cannot_Be_Less_Than_131072_KB')));
54
+ if (value && value < 10240) {
55
+ return Promise.reject(new Error(t('Space_Limit_Cannot_Be_Less_Than_10240_KB')));
56
56
  }
57
57
  return Promise.resolve();
58
58
  }
@@ -45,8 +45,8 @@ var SubTaskConfig = function SubTaskConfig() {
45
45
  name: [field.name, 'memoryLimit'],
46
46
  rules: [{
47
47
  validator: function validator(_, value) {
48
- if (value && value < 131072) {
49
- return Promise.reject(new Error(t('Space_Limit_Cannot_Be_Less_Than_131072_KB')));
48
+ if (value && value < 10240) {
49
+ return Promise.reject(new Error(t('Space_Limit_Cannot_Be_Less_Than_10240_KB')));
50
50
  }
51
51
  return Promise.resolve();
52
52
  }
@@ -163,8 +163,8 @@ var VisualDataConfig = function VisualDataConfig(_ref) {
163
163
  required: true
164
164
  }, {
165
165
  validator: function validator(_, value) {
166
- if (value && value < 131072) {
167
- return Promise.reject(new Error(t('Space_Limit_Cannot_Be_Less_Than_131072_KB')));
166
+ if (value && value < 10240) {
167
+ return Promise.reject(new Error(t('Space_Limit_Cannot_Be_Less_Than_10240_KB')));
168
168
  }
169
169
  return Promise.resolve();
170
170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-star-design",
3
- "version": "0.0.134",
3
+ "version": "0.0.136",
4
4
  "description": "A react component library developed by turingstar",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",