aldehyde 0.0.2 → 0.0.5
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/package.json +28 -10
- package/src/components/chart/antd/PieChart1.js +2 -2
- package/src/components/controls/cquery/cquick-button.tsx +1 -1
- package/src/components/controls/date-picker/index.tsx +1 -1
- package/src/components/detail/edit/dtmpl-edit.tsx +1 -1
- package/src/components/detail/edit/modal-row-edit.tsx +1 -1
- package/src/components/detail/edit/row-edit-card.tsx +1 -1
- package/src/components/detail/view/modal-dtmpl-view.tsx +1 -1
- package/src/components/module/dtmpl-page.tsx +1 -1
- package/src/components/table/column/column-selector.tsx +1 -1
- package/src/components/table/relation-table.tsx +1 -1
- package/src/components/welcome/HCWelcome.js +126 -126
- package/src/components/welcome/workbench.tsx +1 -1
- package/src/{index.js → index.tsx} +0 -0
- package/dist/aldehyde.js +0 -1
- package/dist/chemstruc-graph.js +0 -1
- package/dist/css/chemstruc-graph-87868f791bf92fb80db9.css +0 -29
- package/dist/css/main-2e6725ec1b56da516cee.css +0 -256
- package/dist/html-editor-draft.js +0 -1
- package/dist/images/logo-06f6a5d8.png +0 -0
- package/dist/index.html +0 -4
- package/dist/signature.js +0 -1
- package/src/components/module/criteria-page.tsx +0 -175
- package/tsconfig.json +0 -106
package/package.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aldehyde",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"author": "cosmicparticle",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "src/index.tsx",
|
|
6
|
+
"module": "es/index.js",
|
|
7
|
+
"typings": "lib/index.d.ts",
|
|
6
8
|
"files": [
|
|
9
|
+
"src"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": [
|
|
7
12
|
"dist/*",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"*.
|
|
13
|
+
"es/**/style/*",
|
|
14
|
+
"lib/**/style/*",
|
|
15
|
+
"*.less"
|
|
11
16
|
],
|
|
12
17
|
"homepage": "./",
|
|
13
18
|
"dependencies": {
|
|
@@ -88,6 +93,7 @@
|
|
|
88
93
|
"superagent-jsonp": "^0.2.1",
|
|
89
94
|
"three": "^0.134.0",
|
|
90
95
|
"typescript": "^4.5.4",
|
|
96
|
+
|
|
91
97
|
"url": "^0.11.0",
|
|
92
98
|
"url-loader": "^4.1.1",
|
|
93
99
|
"use-resize-observer": "^7.0.0",
|
|
@@ -99,7 +105,8 @@
|
|
|
99
105
|
"scripts": {
|
|
100
106
|
"build": "cross-env NODE_ENV=production webpack --config config/webpack.prod.js",
|
|
101
107
|
"dev": "cross-env NODE_ENV=development webpack server --config config/webpack.dev.js",
|
|
102
|
-
"package": "cross-env NODE_ENV=development webpack --config config/webpack.package.js"
|
|
108
|
+
"package": "cross-env NODE_ENV=development webpack --config config/webpack.package.js",
|
|
109
|
+
"tsc": "tsc"
|
|
103
110
|
},
|
|
104
111
|
"engines": {
|
|
105
112
|
"node": ">=14"
|
|
@@ -119,17 +126,27 @@
|
|
|
119
126
|
},
|
|
120
127
|
"babel": {
|
|
121
128
|
"presets": [
|
|
122
|
-
"
|
|
129
|
+
"react-app",
|
|
123
130
|
"@babel/preset-react",
|
|
124
|
-
"
|
|
131
|
+
"@babel/preset-env"
|
|
125
132
|
],
|
|
126
133
|
"plugins": [
|
|
127
134
|
"@babel/plugin-syntax-dynamic-import",
|
|
128
|
-
"@loadable/babel-plugin"
|
|
135
|
+
"@loadable/babel-plugin",
|
|
136
|
+
[
|
|
137
|
+
"import",
|
|
138
|
+
{
|
|
139
|
+
"libraryName": "antd",
|
|
140
|
+
"libraryDirectory": "lib",
|
|
141
|
+
"style": "css"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
129
144
|
]
|
|
130
145
|
},
|
|
131
146
|
"devDependencies": {
|
|
132
147
|
"@babel/core": "^7.17.10",
|
|
148
|
+
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
149
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.17.3",
|
|
133
150
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
134
151
|
"@babel/preset-env": "^7.17.10",
|
|
135
152
|
"@babel/preset-react": "^7.16.7",
|
|
@@ -187,6 +204,7 @@
|
|
|
187
204
|
"webpack-manifest-plugin": "^4.0.2",
|
|
188
205
|
"webpack-merge": "^5.8.0",
|
|
189
206
|
"webpack-node-externals": "^3.0.0",
|
|
190
|
-
"workbox-webpack-plugin": "^6.4.2"
|
|
207
|
+
"workbox-webpack-plugin": "^6.4.2",
|
|
208
|
+
"typescript-plugin-css-modules": "^3.4.0"
|
|
191
209
|
}
|
|
192
210
|
}
|
|
@@ -85,7 +85,7 @@ class CquickButton extends React.PureComponent<CquickButtonProps, CquickButtonSt
|
|
|
85
85
|
})}}
|
|
86
86
|
sourceId={cQueryConfig.id}
|
|
87
87
|
code={mcode}
|
|
88
|
-
onOk={this.closeDrawer}
|
|
88
|
+
onOk={this.closeDrawer} />:
|
|
89
89
|
<Drawer
|
|
90
90
|
placement={'left'}
|
|
91
91
|
title="关联查询"
|
|
@@ -56,7 +56,7 @@ const DatePicker: React.FC<DataPickerProps> = (props) => {
|
|
|
56
56
|
case 'date-M1':
|
|
57
57
|
case 'date':
|
|
58
58
|
momentValue = value ? moment(value, format) : undefined;
|
|
59
|
-
let picker = itemType == 'date-YY' ? 'year' : itemType == 'date-M1' ? "month" : "date"
|
|
59
|
+
let picker:"date" | "time" | "year" | "month" | "week" | "quarter" = itemType == 'date-YY' ? 'year' : itemType == 'date-M1' ? "month" : "date"
|
|
60
60
|
// @ts-ignore
|
|
61
61
|
entryControl = <AntdDatePicker
|
|
62
62
|
id={id}
|
|
@@ -65,7 +65,7 @@ export default class ModalRowEdit extends React.PureComponent<ModalRowEditorProp
|
|
|
65
65
|
>
|
|
66
66
|
<FieldGroupForm fieldGroupConfig={fieldGroupConfig} formRef={this.formRef}
|
|
67
67
|
onFinish={onOk}
|
|
68
|
-
dtmplData={dtmplData}
|
|
68
|
+
dtmplData={dtmplData} />
|
|
69
69
|
</Modal>
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -118,7 +118,7 @@ export default class RowEditCard extends React.PureComponent<RowEditCardProps, R
|
|
|
118
118
|
>
|
|
119
119
|
<FieldGroupForm fieldGroupConfig={fieldGroupConfig} formRef={this.formRef}
|
|
120
120
|
onFinish={(value)=>onOk(value,!isAdded)}
|
|
121
|
-
dtmplData={dtmplData}
|
|
121
|
+
dtmplData={dtmplData} />
|
|
122
122
|
</Card>
|
|
123
123
|
}
|
|
124
124
|
|
|
@@ -49,7 +49,7 @@ export default class ModalDtmplView extends React.PureComponent<ModalDtmplViewPr
|
|
|
49
49
|
取 消
|
|
50
50
|
</Button>]}
|
|
51
51
|
>
|
|
52
|
-
{code?<ActDtmplView rightBarPositionRight={30} sourceId={sourceId} code={code}
|
|
52
|
+
{code?<ActDtmplView rightBarPositionRight={30} sourceId={sourceId} code={code} />:""}
|
|
53
53
|
</Modal>
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -23,7 +23,7 @@ const SortableCheckbox = SortableElement(({value, index,disabledColIds}) => <Col
|
|
|
23
23
|
<Checkbox disabled={disabledColIds.includes(value.id)} value={value.id}><DragHandle/> {value.title}</Checkbox>
|
|
24
24
|
</Col>);
|
|
25
25
|
const DragHandle = SortableHandle(() => <MenuOutlined style={{cursor: 'grab', color: '#999'}}/>);
|
|
26
|
-
const SortableGroupContainer = SortableContainer(({items, selected, onChange
|
|
26
|
+
const SortableGroupContainer = SortableContainer(({disabledColIds,items, selected, onChange}) => {
|
|
27
27
|
return <Checkbox.Group value={selected} onChange={onChange}>
|
|
28
28
|
<Row style={{width: '148px'}}>
|
|
29
29
|
{items.map((value, index) => (
|
|
@@ -578,7 +578,7 @@ class RelationTable extends React.PureComponent<RelationTableProps, RelationTabl
|
|
|
578
578
|
<ModalDtmplEdit visible={showDtmplEdit} onCancel={this.hiddenEntityEdit}
|
|
579
579
|
sourceId={fieldGroupConfig.id}
|
|
580
580
|
code={selectedCode}
|
|
581
|
-
onOk={selectedCode ? this.handleDtmplEdit : this.handleDtmplAdd}
|
|
581
|
+
onOk={selectedCode ? this.handleDtmplEdit : this.handleDtmplAdd} />
|
|
582
582
|
: ""}
|
|
583
583
|
{/*{buttons.includes('rowEdit') || buttons.includes('rowAdd') ?*/}
|
|
584
584
|
{/* <ModalRowEdit visible={showRowEdit} onCancel={this.hiddenRowEdit}*/}
|
|
@@ -15,136 +15,136 @@ import Development from '../../../public/development.png';
|
|
|
15
15
|
export default class HCWelcome extends React.Component {
|
|
16
16
|
state = {}
|
|
17
17
|
|
|
18
|
-
intervals
|
|
18
|
+
intervals = [];
|
|
19
19
|
|
|
20
20
|
async componentDidMount() {
|
|
21
|
-
let l2MenuCharts = await HcserviceV3.requestSimpleCharts();
|
|
22
|
-
let piecharts = [];
|
|
23
|
-
for (const item of l2MenuCharts) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
var chartDom = document.getElementById('echart1');
|
|
31
|
-
var myChart = Echarts.init(chartDom);
|
|
32
|
-
var option;
|
|
33
|
-
|
|
34
|
-
option = {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
option && myChart.setOption(option);
|
|
98
|
-
|
|
99
|
-
var chartDom = document.getElementById('echart2');
|
|
100
|
-
var myChart = Echarts.init(chartDom);
|
|
101
|
-
var option;
|
|
102
|
-
|
|
103
|
-
option = {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
option && myChart.setOption(option);
|
|
141
|
-
|
|
142
|
-
this.setState({
|
|
143
|
-
|
|
144
|
-
})
|
|
21
|
+
// let l2MenuCharts = await HcserviceV3.requestSimpleCharts();
|
|
22
|
+
// let piecharts = [];
|
|
23
|
+
// for (const item of l2MenuCharts) {
|
|
24
|
+
// let data = await HcserviceV3.requestSimpleChartsEntities( item.id);
|
|
25
|
+
// if (data) {
|
|
26
|
+
// piecharts.push(<Col span={12}> <AntdPieChart data={data} key={item.id}></AntdPieChart></Col>)
|
|
27
|
+
// }
|
|
28
|
+
// }
|
|
29
|
+
//
|
|
30
|
+
// var chartDom = document.getElementById('echart1');
|
|
31
|
+
// var myChart = Echarts.init(chartDom);
|
|
32
|
+
// var option;
|
|
33
|
+
//
|
|
34
|
+
// option = {
|
|
35
|
+
// title: {
|
|
36
|
+
// text: 'Line'
|
|
37
|
+
// },
|
|
38
|
+
// tooltip: {
|
|
39
|
+
// trigger: 'axis'
|
|
40
|
+
// },
|
|
41
|
+
// legend: {
|
|
42
|
+
// data: ['Email', 'Union Ads', 'Video Ads', 'Direct', 'Search Engine']
|
|
43
|
+
// },
|
|
44
|
+
// grid: {
|
|
45
|
+
// left: '3%',
|
|
46
|
+
// right: '4%',
|
|
47
|
+
// bottom: '3%',
|
|
48
|
+
// containLabel: true
|
|
49
|
+
// },
|
|
50
|
+
// toolbox: {
|
|
51
|
+
// feature: {
|
|
52
|
+
// saveAsImage: {}
|
|
53
|
+
// }
|
|
54
|
+
// },
|
|
55
|
+
// xAxis: {
|
|
56
|
+
// type: 'category',
|
|
57
|
+
// boundaryGap: false,
|
|
58
|
+
// data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
|
|
59
|
+
// },
|
|
60
|
+
// yAxis: {
|
|
61
|
+
// type: 'value'
|
|
62
|
+
// },
|
|
63
|
+
// series: [
|
|
64
|
+
// {
|
|
65
|
+
// name: 'Email',
|
|
66
|
+
// type: 'line',
|
|
67
|
+
// stack: 'Total',
|
|
68
|
+
// data: [120, 132, 101, 134, 90, 230, 210]
|
|
69
|
+
// },
|
|
70
|
+
// {
|
|
71
|
+
// name: 'Union Ads',
|
|
72
|
+
// type: 'line',
|
|
73
|
+
// stack: 'Total',
|
|
74
|
+
// data: [220, 182, 191, 234, 290, 330, 310]
|
|
75
|
+
// },
|
|
76
|
+
// {
|
|
77
|
+
// name: 'Video Ads',
|
|
78
|
+
// type: 'line',
|
|
79
|
+
// stack: 'Total',
|
|
80
|
+
// data: [150, 232, 201, 154, 190, 330, 410]
|
|
81
|
+
// },
|
|
82
|
+
// {
|
|
83
|
+
// name: 'Direct',
|
|
84
|
+
// type: 'line',
|
|
85
|
+
// stack: 'Total',
|
|
86
|
+
// data: [320, 332, 301, 334, 390, 330, 320]
|
|
87
|
+
// },
|
|
88
|
+
// {
|
|
89
|
+
// name: 'Search Engine',
|
|
90
|
+
// type: 'line',
|
|
91
|
+
// stack: 'Total',
|
|
92
|
+
// data: [820, 932, 901, 934, 1290, 1330, 1320]
|
|
93
|
+
// }
|
|
94
|
+
// ]
|
|
95
|
+
// };
|
|
96
|
+
//
|
|
97
|
+
// option && myChart.setOption(option);
|
|
98
|
+
//
|
|
99
|
+
// var chartDom = document.getElementById('echart2');
|
|
100
|
+
// var myChart = Echarts.init(chartDom);
|
|
101
|
+
// var option;
|
|
102
|
+
//
|
|
103
|
+
// option = {
|
|
104
|
+
// legend: {
|
|
105
|
+
// top: 'bottom'
|
|
106
|
+
// },
|
|
107
|
+
// toolbox: {
|
|
108
|
+
// show: true,
|
|
109
|
+
// feature: {
|
|
110
|
+
// mark: { show: true },
|
|
111
|
+
// dataView: { show: true, readOnly: false },
|
|
112
|
+
// restore: { show: true },
|
|
113
|
+
// saveAsImage: { show: true }
|
|
114
|
+
// }
|
|
115
|
+
// },
|
|
116
|
+
// series: [
|
|
117
|
+
// {
|
|
118
|
+
// name: 'Nightingale Chart',
|
|
119
|
+
// type: 'pie',
|
|
120
|
+
// radius: [16, 80],
|
|
121
|
+
// center: ['50%', '50%'],
|
|
122
|
+
// roseType: 'area',
|
|
123
|
+
// itemStyle: {
|
|
124
|
+
// borderRadius: 8
|
|
125
|
+
// },
|
|
126
|
+
// data: [
|
|
127
|
+
// { value: 40, name: 'rose 1' },
|
|
128
|
+
// { value: 38, name: 'rose 2' },
|
|
129
|
+
// { value: 32, name: 'rose 3' },
|
|
130
|
+
// { value: 30, name: 'rose 4' },
|
|
131
|
+
// { value: 28, name: 'rose 5' },
|
|
132
|
+
// { value: 26, name: 'rose 6' },
|
|
133
|
+
// { value: 22, name: 'rose 7' },
|
|
134
|
+
// { value: 18, name: 'rose 8' }
|
|
135
|
+
// ]
|
|
136
|
+
// }
|
|
137
|
+
// ]
|
|
138
|
+
// };
|
|
139
|
+
//
|
|
140
|
+
// option && myChart.setOption(option);
|
|
141
|
+
//
|
|
142
|
+
// this.setState({
|
|
143
|
+
// piecharts
|
|
144
|
+
// })
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
componentWillUnmount()
|
|
147
|
+
componentWillUnmount() {
|
|
148
148
|
if (this.intervals.length > 0) {
|
|
149
149
|
for (let i of this.intervals) {
|
|
150
150
|
clearInterval(i);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import {Button, Card, Space, Statistic,CardProps} from 'antd'
|
|
3
|
-
import {
|
|
3
|
+
import {RocketTwoTone } from '@ant-design/icons';
|
|
4
4
|
import 'antd/dist/antd.css';
|
|
5
5
|
import HcserviceV3 from "../tmpl/hcservice-v3";
|
|
6
6
|
import HCDataSource from '../tmpl/hc-data-source'
|
|
File without changes
|