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.
- package/dist/config-template/define.js +2 -1
- package/dist/locales/en_US.d.ts +1 -1
- package/dist/locales/en_US.js +1 -1
- package/dist/locales/index.d.ts +2 -2
- package/dist/locales/zh_CN.d.ts +1 -1
- package/dist/locales/zh_CN.js +1 -1
- package/dist/visual-data-config/SingleDataConfig.js +2 -2
- package/dist/visual-data-config/SubTaskConfig.js +2 -2
- package/dist/visual-data-config/index.js +2 -2
- package/package.json +1 -1
package/dist/locales/en_US.d.ts
CHANGED
|
@@ -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
|
|
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:";
|
package/dist/locales/en_US.js
CHANGED
|
@@ -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
|
-
|
|
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:'
|
package/dist/locales/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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:";
|
package/dist/locales/zh_CN.d.ts
CHANGED
|
@@ -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
|
|
39
|
+
readonly Space_Limit_Cannot_Be_Less_Than_10240_KB: "空间限制不能小于10240字节";
|
|
40
40
|
};
|
|
41
41
|
readonly TranslateButton: {
|
|
42
42
|
readonly CURRENT_LANG: "当前语言:";
|
package/dist/locales/zh_CN.js
CHANGED
|
@@ -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
|
-
|
|
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 <
|
|
55
|
-
return Promise.reject(new Error(t('
|
|
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 <
|
|
49
|
-
return Promise.reject(new Error(t('
|
|
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 <
|
|
167
|
-
return Promise.reject(new Error(t('
|
|
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
|
}
|