Skip to content

Commit 131481d

Browse files
authored
Merge pull request #91 from running-elephant/dev
Dev
2 parents efa8882 + b14c24f commit 131481d

File tree

66 files changed

+703
-283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+703
-283
lines changed

bin/datart-server.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ START_CLASS="datart.DatartServerApplication"
2929
#java -server -Xms2G -Xmx2G -Dspring.profiles.active=config -Dfile.encoding=UTF-8 -cp "${CLASS_PATH}" datart.DatartServerApplication
3030

3131
datart_status(){
32-
result=`ps -ef | awk '/DatartServerApplication/ && !/awk/{print $2}' | wc -l`
32+
#result=`ps -ef | awk '/DatartServerApplication/ && !/awk/{print $2}' | wc -l`
33+
result=`ps -ef | grep -v grep | grep "${BASE_DIR}/lib" | grep 'DatartServerApplication' | awk {'print $2'} | wc -l`
3334

3435
if [[ $result -eq 0 ]]; then
3536
return 0
@@ -47,7 +48,8 @@ datart_start(){
4748

4849
else
4950
echo ""
50-
PID=`ps -ef | awk '/DatartServerApplication/ && !/awk/{print $2}'`
51+
#PID=`ps -ef | awk '/DatartServerApplication/ && !/awk/{print $2}'`
52+
PID=`ps -ef | grep -v grep | grep "${BASE_DIR}/lib" | grep 'DatartServerApplication' | awk {'print $2'}`
5153
echo "Datart is Running Now..... PID is ${PID} "
5254
fi
5355
}
@@ -60,7 +62,8 @@ datart_stop(){
6062
echo "Datart is not Running....."
6163
echo ""
6264
else
63-
ps -ef | awk '/DatartServerApplication/ && !/awk/{print $2}'| xargs kill -9
65+
#ps -ef | awk '/DatartServerApplication/ && !/awk/{print $2}'| xargs kill -9
66+
ps -ef | grep -v grep | grep "$BASE_DIR/lib" | grep 'DatartServerApplication' | awk {'print $2'} | xargs kill -9
6467

6568
fi
6669
}
@@ -77,7 +80,7 @@ case $1 in
7780
stop )
7881
echo ""
7982

80-
echo "Datart Stoping.......... "
83+
echo "Datart Stopping.......... "
8184

8285
echo ""
8386
datart_stop
@@ -100,7 +103,8 @@ case $1 in
100103
echo ""
101104
else
102105
echo ""
103-
PID=`ps -ef | awk '/DatartServerApplication/ && !/awk/{print $2}'`
106+
#PID=`ps -ef | awk '/DatartServerApplication/ && !/awk/{print $2}'`
107+
PID=`ps -ef | grep -v grep | grep "${BASE_DIR}/lib" | grep 'DatartServerApplication' | awk {'print $2'}`
104108
echo "Datart is Running..... PID is ${PID}"
105109
echo ""
106110
fi

config/profiles/application-config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ spring:
6262
server:
6363
port: ${server.port:8080}
6464
address: ${server.ip:0.0.0.0}
65+
ssl:
66+
enabled: false
67+
key-store: keystore.p12 # Absolute path
68+
key-store-password: password
69+
keyStoreType: PKCS12
70+
keyAlias: tomcat
6571

6672
datart:
6773
server:

frontend/src/app/components/ChartEditor.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ import { FC, useCallback, useEffect, useMemo, useRef, useState } from 'react';
6060
import { useDispatch, useSelector } from 'react-redux';
6161
import { useHistory } from 'react-router';
6262
import styled from 'styled-components/macro';
63+
import { LEVEL_100 } from 'styles/StyleConstants';
6364
import { CloneValueDeep, isEmptyArray } from 'utils/object';
6465
import ChartWorkbench from '../pages/ChartWorkbenchPage/components/ChartWorkbench/ChartWorkbench';
6566
import {
@@ -597,7 +598,7 @@ const StyledChartWorkbenchPage = styled.div`
597598
right: 0;
598599
bottom: 0;
599600
left: 0;
600-
z-index: 55;
601+
z-index: ${LEVEL_100};
601602
display: flex;
602603
min-width: 0;
603604
min-height: 0;

frontend/src/app/components/ChartGraph/BasicTableChart/TableComponents.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Tooltip } from 'antd';
33
import React from 'react';
44
import { Resizable } from 'react-resizable';
55
import styled from 'styled-components/macro';
6-
import { BLUE } from 'styles/StyleConstants';
6+
import { BLUE, LEVEL_1 } from 'styles/StyleConstants';
77

88
export const TableComponentsTd = ({
99
children,
@@ -78,7 +78,7 @@ const ResizableHandleStyle = styled.span`
7878
position: absolute;
7979
right: -5px;
8080
bottom: 0;
81-
z-index: 1;
81+
z-index: ${LEVEL_1};
8282
width: 10px;
8383
height: 100%;
8484
cursor: col-resize;

frontend/src/app/components/ChartGraph/PivotSheetChart/AntVS2Wrapper.tsx

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -16,47 +16,45 @@
1616
* limitations under the License.
1717
*/
1818

19-
import { S2Theme } from '@antv/s2';
2019
import { SheetComponent } from '@antv/s2-react';
2120
import '@antv/s2-react/dist/style.min.css';
2221
import { FC, memo } from 'react';
2322
import styled from 'styled-components/macro';
2423
import { FONT_SIZE_LABEL } from 'styles/StyleConstants';
24+
import { AndvS2Config } from './types';
2525

26-
const AntVS2Wrapper: FC<{
27-
dataCfg;
28-
options;
29-
theme?: S2Theme;
30-
}> = memo(({ dataCfg, options, theme }) => {
31-
if (!dataCfg) {
32-
return <div></div>;
33-
}
26+
const AntVS2Wrapper: FC<AndvS2Config> = memo(
27+
({ dataCfg, options, theme, palette }) => {
28+
if (!dataCfg) {
29+
return <div></div>;
30+
}
3431

35-
const onDataCellHover = ({ event, viewMeta }) => {
36-
viewMeta.spreadsheet.tooltip.show({
37-
position: {
38-
x: event.clientX,
39-
y: event.clientY,
40-
},
41-
content: (
42-
<TableDataCellTooltip
43-
datas={viewMeta.data}
44-
meta={viewMeta.spreadsheet.dataCfg.meta}
45-
/>
46-
),
47-
});
48-
};
32+
const onDataCellHover = ({ event, viewMeta }) => {
33+
viewMeta.spreadsheet.tooltip.show({
34+
position: {
35+
x: event.clientX,
36+
y: event.clientY,
37+
},
38+
content: (
39+
<TableDataCellTooltip
40+
datas={viewMeta.data}
41+
meta={viewMeta.spreadsheet.dataCfg.meta}
42+
/>
43+
),
44+
});
45+
};
4946

50-
return (
51-
<StyledAntVS2Wrapper
52-
sheetType="pivot"
53-
dataCfg={dataCfg}
54-
options={options}
55-
themeCfg={{ theme }}
56-
onDataCellHover={onDataCellHover}
57-
/>
58-
);
59-
});
47+
return (
48+
<StyledAntVS2Wrapper
49+
sheetType="pivot"
50+
dataCfg={dataCfg}
51+
options={options}
52+
themeCfg={{ theme, palette }}
53+
onDataCellHover={onDataCellHover}
54+
/>
55+
);
56+
},
57+
);
6058

6159
const TableDataCellTooltip: FC<{
6260
datas?: object;
@@ -72,7 +70,11 @@ const TableDataCellTooltip: FC<{
7270
.map(m => {
7371
const uniqKey = m?.field;
7472
if (uniqKey in datas) {
75-
return <li>{`${m?.name}: ${m?.formatter(datas[uniqKey])}`}</li>;
73+
return (
74+
<li key={uniqKey}>{`${m?.name}: ${m?.formatter(
75+
datas[uniqKey],
76+
)}`}</li>
77+
);
7678
}
7779
return null;
7880
})

0 commit comments

Comments
 (0)