@oceanbase/ui 0.3.0 → 0.3.1
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/ui.min.js +1 -1
- package/es/Highlight/index.d.ts +1 -1
- package/es/Ranger/locale/en-US.js +24 -24
- package/lib/Highlight/index.d.ts +1 -1
- package/lib/Ranger/locale/en-US.js +24 -24
- package/package.json +3 -3
package/es/Highlight/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const THEME_DARK = "dark";
|
|
|
29
29
|
export declare const THEME_LIGHT = "light";
|
|
30
30
|
declare const ThemeTypes: ["dark", "light"];
|
|
31
31
|
export type ThemeType = (typeof ThemeTypes)[number];
|
|
32
|
-
declare const supportedLanguages: ("ruby" | "css" | "json" | "
|
|
32
|
+
declare const supportedLanguages: ("ruby" | "css" | "bash" | "json" | "go" | "javascript" | "typescript" | "groovy" | "java" | "python" | "cpp" | "http" | "markdown" | "nginx" | "sql" | "xml" | "dockerfile" | "yaml" | "solidity" | "tsx" | "jsx")[];
|
|
33
33
|
export type LanguageType = (typeof supportedLanguages)[number] | 'html';
|
|
34
34
|
export interface HighlightProps extends LocaleWrapperProps {
|
|
35
35
|
/**
|
|
@@ -2,28 +2,28 @@ export default {
|
|
|
2
2
|
customize: 'Custom',
|
|
3
3
|
// 为保证和之前的逻辑兼容,仍然使用中文作为 key
|
|
4
4
|
// TODO: 后续需要替换为英文 key
|
|
5
|
-
'近 1 分钟': '
|
|
6
|
-
'近 5 分钟': '
|
|
7
|
-
'近 10 分钟': '
|
|
8
|
-
'近 20 分钟': '
|
|
9
|
-
'近 30 分钟': '
|
|
10
|
-
'近 1 小时': '
|
|
11
|
-
'近 2 小时': '
|
|
12
|
-
'近 3 小时': '
|
|
13
|
-
'近 6 小时': '
|
|
14
|
-
今天: '
|
|
15
|
-
昨天: '
|
|
16
|
-
明天: '
|
|
17
|
-
本周: '
|
|
18
|
-
上周: '
|
|
19
|
-
下周: '
|
|
20
|
-
本月: '
|
|
21
|
-
上月: '
|
|
22
|
-
下月: '
|
|
23
|
-
本季度: '
|
|
24
|
-
上季度: '
|
|
25
|
-
下季度: '
|
|
26
|
-
今年: '
|
|
27
|
-
去年: '
|
|
28
|
-
明年: '
|
|
5
|
+
'近 1 分钟': 'Past 1 Minute',
|
|
6
|
+
'近 5 分钟': 'Past 5 Minutes',
|
|
7
|
+
'近 10 分钟': 'Past 10 Minutes',
|
|
8
|
+
'近 20 分钟': 'Past 20 Minutes',
|
|
9
|
+
'近 30 分钟': 'Past 30 Minutes',
|
|
10
|
+
'近 1 小时': 'Past 1 Hour',
|
|
11
|
+
'近 2 小时': 'Past 2 Hour',
|
|
12
|
+
'近 3 小时': 'Past 3 Hour',
|
|
13
|
+
'近 6 小时': 'Past 6 Hour',
|
|
14
|
+
今天: 'Today',
|
|
15
|
+
昨天: 'Yesterday',
|
|
16
|
+
明天: 'Tomorrow',
|
|
17
|
+
本周: 'This Week',
|
|
18
|
+
上周: 'Last Week',
|
|
19
|
+
下周: 'Next Week',
|
|
20
|
+
本月: 'This Month',
|
|
21
|
+
上月: 'Last Month',
|
|
22
|
+
下月: 'Next Month',
|
|
23
|
+
本季度: 'This Quarter',
|
|
24
|
+
上季度: 'Last Quarter',
|
|
25
|
+
下季度: 'Next Quarter',
|
|
26
|
+
今年: 'This Year',
|
|
27
|
+
去年: 'Last Year',
|
|
28
|
+
明年: 'Next Year'
|
|
29
29
|
};
|
package/lib/Highlight/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const THEME_DARK = "dark";
|
|
|
29
29
|
export declare const THEME_LIGHT = "light";
|
|
30
30
|
declare const ThemeTypes: ["dark", "light"];
|
|
31
31
|
export type ThemeType = (typeof ThemeTypes)[number];
|
|
32
|
-
declare const supportedLanguages: ("ruby" | "css" | "json" | "
|
|
32
|
+
declare const supportedLanguages: ("ruby" | "css" | "json" | "bash" | "javascript" | "typescript" | "groovy" | "java" | "python" | "cpp" | "http" | "markdown" | "nginx" | "sql" | "xml" | "dockerfile" | "go" | "yaml" | "solidity" | "tsx" | "jsx")[];
|
|
33
33
|
export type LanguageType = (typeof supportedLanguages)[number] | 'html';
|
|
34
34
|
export interface HighlightProps extends LocaleWrapperProps {
|
|
35
35
|
/**
|
|
@@ -26,28 +26,28 @@ var en_US_default = {
|
|
|
26
26
|
customize: "Custom",
|
|
27
27
|
// 为保证和之前的逻辑兼容,仍然使用中文作为 key
|
|
28
28
|
// TODO: 后续需要替换为英文 key
|
|
29
|
-
"近 1 分钟": "
|
|
30
|
-
"近 5 分钟": "
|
|
31
|
-
"近 10 分钟": "
|
|
32
|
-
"近 20 分钟": "
|
|
33
|
-
"近 30 分钟": "
|
|
34
|
-
"近 1 小时": "
|
|
35
|
-
"近 2 小时": "
|
|
36
|
-
"近 3 小时": "
|
|
37
|
-
"近 6 小时": "
|
|
38
|
-
今天: "
|
|
39
|
-
昨天: "
|
|
40
|
-
明天: "
|
|
41
|
-
本周: "
|
|
42
|
-
上周: "
|
|
43
|
-
下周: "
|
|
44
|
-
本月: "
|
|
45
|
-
上月: "
|
|
46
|
-
下月: "
|
|
47
|
-
本季度: "
|
|
48
|
-
上季度: "
|
|
49
|
-
下季度: "
|
|
50
|
-
今年: "
|
|
51
|
-
去年: "
|
|
52
|
-
明年: "
|
|
29
|
+
"近 1 分钟": "Past 1 Minute",
|
|
30
|
+
"近 5 分钟": "Past 5 Minutes",
|
|
31
|
+
"近 10 分钟": "Past 10 Minutes",
|
|
32
|
+
"近 20 分钟": "Past 20 Minutes",
|
|
33
|
+
"近 30 分钟": "Past 30 Minutes",
|
|
34
|
+
"近 1 小时": "Past 1 Hour",
|
|
35
|
+
"近 2 小时": "Past 2 Hour",
|
|
36
|
+
"近 3 小时": "Past 3 Hour",
|
|
37
|
+
"近 6 小时": "Past 6 Hour",
|
|
38
|
+
今天: "Today",
|
|
39
|
+
昨天: "Yesterday",
|
|
40
|
+
明天: "Tomorrow",
|
|
41
|
+
本周: "This Week",
|
|
42
|
+
上周: "Last Week",
|
|
43
|
+
下周: "Next Week",
|
|
44
|
+
本月: "This Month",
|
|
45
|
+
上月: "Last Month",
|
|
46
|
+
下月: "Next Month",
|
|
47
|
+
本季度: "This Quarter",
|
|
48
|
+
上季度: "Last Quarter",
|
|
49
|
+
下季度: "Next Quarter",
|
|
50
|
+
今年: "This Year",
|
|
51
|
+
去年: "Last Year",
|
|
52
|
+
明年: "Next Year"
|
|
53
53
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "The UI library based on OceanBase Design",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oceanbase",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@ant-design/cssinjs": "^1.18.4",
|
|
38
38
|
"@ant-design/pro-components": "^2.6.49",
|
|
39
39
|
"@ant-design/pro-layout": "^7.17.20",
|
|
40
|
-
"@oceanbase/design": "^0.3.
|
|
40
|
+
"@oceanbase/design": "^0.3.1",
|
|
41
41
|
"@oceanbase/icons": "^0.3.0",
|
|
42
42
|
"@oceanbase/util": "^0.3.0",
|
|
43
43
|
"ahooks": "^2.10.14",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"react": ">=16.9.0",
|
|
66
66
|
"react-dom": ">=16.9.0"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "6493aa80578be3aca3d00cdc19b4d3349f3f8b46"
|
|
69
69
|
}
|