Skip to content

Commit 66508f8

Browse files
authored
UI (#40)
* code generator changes for updated ui * changes in codegenerator for ui update * changes in codegenerator for ui update removed key * overall code cleaning * removed unwanted folders
1 parent 3c3177e commit 66508f8

File tree

66 files changed

+591
-6110
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

+591
-6110
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
1_638711472506933004
2+
node_modules

CodeGenerator/Properties/launchSettings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
"environmentVariables": {
66
"PARAMETER": "{project_id:1,server:localhost,uid:1,username:root,password:,databaseName:dataroom,script:http://localhost/dataroom.sql,statusOfGeneration:,projectName:DataRoomApp,DBexists:Yes,port:3306,rabbitMQConn:https://localhost:5001/v1/api/,redisConn:localhost:6379,password=yourredispassword,apiflowurl:,fronttemplateurl:,Technology_Frontend:reactts,Backend_technology:,buttonClicked:generate,projectType:dnd,swgurl:,noderedurl:}"
77

8+
89
},
910
"remoteDebugEnabled": false
1011
}
1112
}
1213
}
14+
15+
Lines changed: 5 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
import { AutoCompleteComponent, DropDownListComponent } from '@syncfusion/ej2-react-dropdowns';
2-
import { AxiosResponse } from 'axios';
3-
import { useEffect, useRef, useState } from 'react';
1+
import { AutoCompleteComponent } from '@syncfusion/ej2-react-dropdowns';
2+
import { useEffect, useState } from 'react';
43
import { getAll{modelName} } from 'services/{tableName}Service';
54
import './style.css'
6-
import { DndProvider, useDrag } from 'react-dnd';
7-
import { SIDEBAR_ITEM } from 'Dnd/Dnd Designer/Utility/constants';
5+
import { DndProvider } from 'react-dnd';
86
import { HTML5Backend } from 'react-dnd-html5-backend';
97

108
export const {componentName}: React.FC = () => {
11-
const ref = useRef(null);
12-
9+
1310
const [data, setData] = useState([]);
1411
const [content, setContent] = useState([]);
15-
const fields: object = { text: '{secondaryKeyList}', value: '{primaryKeyList}' };
16-
12+
1713
useEffect(() => {
1814
getAll{modelName}(1, 100).then(
1915
data => {
@@ -24,13 +20,6 @@ export const {componentName}: React.FC = () => {
2420
)
2521
}, [])
2622

27-
let itemTemplate = (data: any): JSX.Element => {
28-
//console.log("Item Template data :- ", data)
29-
return (
30-
<span><span className='name'>{data.{primaryKeyList}}</span><span className='city'>{data.{secondaryKeyList}}</span></span>
31-
);
32-
}
33-
3423

3524
return (
3625
<DndProvider backend={HTML5Backend}>
@@ -48,53 +37,3 @@ export const {componentName}: React.FC = () => {
4837
</DndProvider>
4938
)
5039
}
51-
52-
53-
// fields={fields}
54-
// popupHeight="250px"
55-
// popupWidth="350px"
56-
// width="350px"
57-
// change={onChange}
58-
59-
60-
// import { AutoCompleteComponent, DropDownListComponent } from '@syncfusion/ej2-react-dropdowns';
61-
// import { AxiosResponse } from 'axios';
62-
// import { useEffect, useState } from 'react';
63-
// import { getAllBackend_Stacks } from 'services/{tableName}Service';
64-
// import './style.css'
65-
66-
// export const AutoComplete: React.FC = () => {
67-
// const [data, setData] = useState([]);
68-
// const [content, setContent] = useState([]);
69-
// const fields: object = { text: '{secondaryKeyList}', value: '{primaryKeyList}' };
70-
71-
// useEffect(() => {
72-
// getAllBackend_Stacks(1, 100).then(
73-
// data => {
74-
// setData(data.data.document.records);
75-
// setContent((data.data.document.records).map(obj => obj.{secondaryKeyList}));
76-
// //console.log("data :- ", data);
77-
// }
78-
// )
79-
// }, [])
80-
81-
// let itemTemplate = (data: any): JSX.Element => {
82-
// //console.log("Item Template data :- ", data)
83-
// return (
84-
// <span><span className='name'>{data.{primaryKeyList}}</span><span className='city'>{data.{secondaryKeyList}}</span></span>
85-
// );
86-
// }
87-
88-
// return (
89-
// <div>
90-
// <h1>Autocompletion</h1>
91-
// <AutoCompleteComponent id="atcelement"
92-
// dataSource={content}
93-
// placeholder="Type a Field Name"
94-
// width="350px"
95-
// // itemTemplate={itemTemplate = itemTemplate.bind(this)}
96-
// />
97-
// <hr />
98-
// </div>
99-
// )
100-
// }

0 commit comments

Comments
 (0)