x-star-design 0.0.21 → 0.0.22
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.
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { LangId } from "../code-mirror-wrapper/define";
|
|
2
|
+
export var langVL = new Map([[LangId.CPP17, 'C++17'], [LangId.CPP14, 'C++14'], [LangId.CPP11, 'C++11'], [LangId.CPP, 'C++'], [LangId.GCC, 'C'], [LangId.FPC, 'Pascal'], [LangId.PY2, 'Python2.7'], [LangId.PY3, 'Python3.8'], [LangId.JAVA, 'Java8'], [LangId.PLAIN, 'plain']]);
|
|
@@ -13,6 +13,7 @@ import ConfigProviderWrapper from "../config-provider-wrapper";
|
|
|
13
13
|
import { useLocale } from "../locales";
|
|
14
14
|
import SubmissionStatus from "../submission-status";
|
|
15
15
|
import { prefix } from "../utils/global";
|
|
16
|
+
import { langVL } from "./define";
|
|
16
17
|
var CodeDetailModal = function CodeDetailModal(_ref) {
|
|
17
18
|
var codeData = _ref.codeData,
|
|
18
19
|
open = _ref.open,
|
|
@@ -38,7 +39,10 @@ var CodeDetailModal = function CodeDetailModal(_ref) {
|
|
|
38
39
|
key: 'language',
|
|
39
40
|
align: 'center',
|
|
40
41
|
title: t('Language'),
|
|
41
|
-
dataIndex: 'language'
|
|
42
|
+
dataIndex: 'language',
|
|
43
|
+
render: function render(language) {
|
|
44
|
+
return langVL.get(language);
|
|
45
|
+
}
|
|
42
46
|
}, {
|
|
43
47
|
key: 'status',
|
|
44
48
|
align: 'center',
|
|
@@ -104,7 +108,7 @@ var CodeDetailModal = function CodeDetailModal(_ref) {
|
|
|
104
108
|
},
|
|
105
109
|
open: open,
|
|
106
110
|
onCancel: onCancel,
|
|
107
|
-
width:
|
|
111
|
+
width: 800,
|
|
108
112
|
footer: null
|
|
109
113
|
}, props), /*#__PURE__*/React.createElement(Table, {
|
|
110
114
|
pagination: false,
|