Skip to content

Commit c9ec05f

Browse files
Your descriptive commit message
1 parent e6c9b42 commit c9ec05f

31 files changed

+33753
-5730
lines changed

.history/src/components/table_20240721163051.js

+583
Large diffs are not rendered by default.

.history/src/components/table_20240722211124.js

+945
Large diffs are not rendered by default.

.history/src/components/table_20240722211558.js

+1,047
Large diffs are not rendered by default.

.history/src/components/table_20240722211642.js

+1,046
Large diffs are not rendered by default.

.history/src/components/table_20240722211743.js

+1,046
Large diffs are not rendered by default.

.history/src/components/table_20240722211747.js

+1,046
Large diffs are not rendered by default.

.history/src/components/table_20240722211755.js

+1,046
Large diffs are not rendered by default.

.history/src/components/table_20240722211831.js

+1,046
Large diffs are not rendered by default.

.history/src/components/table_20240722211849.js

+1,046
Large diffs are not rendered by default.

.history/src/components/table_20240722212016.js

+1,046
Large diffs are not rendered by default.

.history/src/components/table_20240722212025.js

+1,046
Large diffs are not rendered by default.

.history/src/components/table_20240722212311.js

+1,105
Large diffs are not rendered by default.

.history/src/components/table_20240722212508.js

+1,106
Large diffs are not rendered by default.

.history/src/components/table_20240722212516.js

+1,104
Large diffs are not rendered by default.

.history/src/components/table_20240722212544.js

+1,105
Large diffs are not rendered by default.

.history/src/components/table_20240722212614.js

+1,165
Large diffs are not rendered by default.

.history/src/components/table_20240722212737.js

+1,224
Large diffs are not rendered by default.

.history/src/components/table_20240722212842.js

+1,283
Large diffs are not rendered by default.

.history/src/components/table_20240722212906.js

+1,283
Large diffs are not rendered by default.

.history/src/components/table_20240722212958.js

+1,342
Large diffs are not rendered by default.

.history/src/components/table_20240722213046.js

+1,401
Large diffs are not rendered by default.

.history/src/components/table_20240722213310.js

+1,401
Large diffs are not rendered by default.

.history/src/components/table_20240722213657.js

+1,401
Large diffs are not rendered by default.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"engines": {
6-
"node": "^16"
6+
"node": "^18"
77
},
88
"dependencies": {
99
"@ant-design/icons": "^5.0.1",

pnpm-lock.yaml

+6,899-5,612
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/TablePanel.js

+33-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import SwitchablePicker from './datePicker';
66
const { Search } = Input;
77

88
const TablePanel = (props) => {
9+
910
return (
1011
<>
1112
<Row align="middle" style={{ minHeight: '50px' }} gutter={[10]}>
@@ -20,6 +21,8 @@ const TablePanel = (props) => {
2021
<Radio value={'company'}>{t('company')}</Radio>
2122
<Radio value={'repo'}>{t('repo')}</Radio>
2223
<Radio value={'actor'}>{t('developer')}</Radio>
24+
<Radio value={'technology'}>{t('technology')}</Radio>
25+
<Radio value={'foundation'}>{t('foundation')}</Radio>
2326
</Radio.Group>
2427
</Col>
2528
<Col>
@@ -30,12 +33,15 @@ const TablePanel = (props) => {
3033
}}
3134
value={props.index}
3235
>
33-
<Radio value={'activity'}>{t('activity')}</Radio>
36+
37+
{props.object !== 'technology' && props.object !== 'foundation' && (
38+
<Radio value={'activity'}>{t('activity')}</Radio>
39+
)}
3440
<Radio value={'open_rank'}>{t('influence')}</Radio>
3541
</Radio.Group>
3642
</Col>
3743
</Row>
38-
<Row justify="space-between" style={{ minHeight: '50px' }} gutter={10}>
44+
<Row justify="space-between" style={{ minHeight: '10px' }} gutter={10}>
3945
<Col>
4046
<div style={{ marginRight: '10px', display: 'inline-block' }}>
4147
<span className="myFontColor">{t('region')}</span>
@@ -45,7 +51,10 @@ const TablePanel = (props) => {
4551
}}
4652
value={props.region}
4753
>
48-
<Radio value={'chinese'}>{t('chinese')}</Radio>
54+
55+
{props.object !== 'technology' && (
56+
<Radio value={'chinese'}>{t('chinese')}</Radio>
57+
)}
4958
<Radio value={'global'}>{t('global')}</Radio>
5059
</Radio.Group>
5160
</div>
@@ -65,7 +74,7 @@ const TablePanel = (props) => {
6574
display: 'inline-block',
6675
}}
6776
>
68-
{props.hasDetail == true ? (
77+
{props.hasDetail === true && props.index === 'activity' ? (
6978
<>
7079
<span className="myFontColor">{t('detail')}</span>{' '}
7180
<Switch
@@ -92,6 +101,26 @@ const TablePanel = (props) => {
92101
/>
93102
</Col>
94103
</Row>
104+
{props.object === 'technology' && (
105+
<Row align="middle" style={{ minHeight: '30px' }} gutter={[10]}>
106+
<Col>
107+
<span className="myFontColor">{t('category')}</span>
108+
<Radio.Group
109+
onChange={(e) => {
110+
props.setState({ category: e.target.value });
111+
}}
112+
value={props.category}
113+
>
114+
<Radio value={'cloud-native'}>{t('cloud-native')}</Radio>
115+
<Radio value={'ai'}>{t('ai')}</Radio>
116+
<Radio value={'big-data'}>{t('big-data')}</Radio>
117+
<Radio value={'database'}>{t('database')}</Radio>
118+
<Radio value={'front-end'}>{t('front-end')}</Radio>
119+
<Radio value={'os'}>{t('os')}</Radio>
120+
</Radio.Group>
121+
</Col>
122+
</Row>
123+
)}
95124
</>
96125
);
97126
};

0 commit comments

Comments
 (0)