Skip to content

Commit ebe1a9d

Browse files
Merge pull request #30 from DhiWise/code-refactor
Code refactor
2 parents d61ac4d + 7682a2a commit ebe1a9d

213 files changed

Lines changed: 4768 additions & 6311 deletions

File tree

Some content is hidden

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

LICENSE

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -175,18 +175,7 @@
175175

176176
END OF TERMS AND CONDITIONS
177177

178-
APPENDIX: How to apply the Apache License to your work.
179-
180-
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "[]"
182-
replaced with your own identifying information. (Don't include
183-
the brackets!) The text should be enclosed in the appropriate
184-
comment syntax for the file format. We also recommend that a
185-
file or class name and description of purpose be included on the
186-
same "printed page" as the copyright notice for easier
187-
identification within third-party archives.
188-
189-
Copyright [yyyy] [name of copyright owner]
178+
Copyright 2021 DhiWise Pvt. Ltd.
190179

191180
Licensed under the Apache License, Version 2.0 (the "License");
192181
you may not use this file except in compliance with the License.

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ Most importantly, the Node.js code generator gives developers total code ownersh
2222

2323
## Get started
2424
After a successful run, a user can configure different settings using UI, and build an app to generate the code.
25-
1. To run
26-
```npm i && npm run start```
25+
1. To run ```npm i && npm run start```
2726
2. With ```npm run start``` project will run on 3000 port.
2827
3. Run http://localhost:3000 and you will see "create application" form. After creating an application you can configure modules and build the app to get the source code.
2928
<img src="https://development-dhvs.s3.ap-south-1.amazonaws.com/uploads/user-profile/open-source.gif" alt="create-application"/>

packages/client/public/favicon.ico

165 KB
Binary file not shown.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
86.4 KB
Loading

packages/client/src/components/IconBox/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ IconBox.propTypes = {
6565

6666
IconBox.defaultProps = {
6767
variant: 'primary',
68-
icon: null,
68+
// icon: null,
6969
size: 'normal',
7070
// iconSize: 'normal',
7171
className: '',
Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
11
// import Loadable from 'react-loadable';
22
import React from 'react';
3-
import Lottie from 'react-lottie';
4-
import animationData from '../../config/loaderdata.json';
3+
// import Lottie from 'react-lottie';
4+
// import animationData from '../../config/loaderdata.json';
5+
import logoLoader from '../../assets/images/gif/logo-loader.gif';
56

6-
export const Loader = ({ style, className }) => {
7-
const defaultOptions = {
8-
loop: true,
9-
autoplay: true,
10-
animationData,
11-
rendererSettings: {
12-
preserveAspectRatio: 'xMidYMid slice',
13-
},
14-
};
15-
return (
16-
<div className={`min-h-screen flex items-center justify-center ${className}`} style={style}>
17-
<Lottie
7+
export const Loader = ({ style, className }) => (
8+
<div className={`min-h-screen flex items-center justify-center ${className}`} style={style}>
9+
{/* <Lottie
1810
options={defaultOptions}
1911
height={200}
2012
width={200}
21-
/>
22-
</div>
23-
);
24-
};
13+
/> */}
14+
<img width="200" height="200" src={logoLoader} alt="loader" />
15+
</div>
16+
);

packages/client/src/config/LazyLoader.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
11
import Loadable from 'react-loadable';
22
import React from 'react';
3-
import Lottie from 'react-lottie';
4-
import animationData from './loaderdata.json';
3+
// import Lottie from 'react-lottie';
4+
// import animationData from './loaderdata.json';
5+
import logoLoader from '../assets/images/gif/logo-loader.gif';
56

67
export default function LazyLoader(opts) {
7-
const defaultOptions = {
8-
loop: true,
9-
autoplay: true,
10-
animationData,
11-
rendererSettings: {
12-
preserveAspectRatio: 'xMidYMid slice',
13-
},
14-
};
158
return Loadable({
169
loading: () => (
1710
<div className="min-h-screen flex items-center justify-center">
18-
<Lottie
11+
{/* <Lottie
1912
options={defaultOptions}
2013
height={200}
2114
width={200}
22-
/>
15+
/> */}
16+
<img width="200" height="200" src={logoLoader} alt="loader" />
2317
</div>
2418
),
2519
delay: 200,

packages/server/config/db.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ const path = require('path');
1313
mongoose.connect(mongoServer.getUri(), {
1414
useNewUrlParser: true,
1515
useUnifiedTopology: true,
16-
useFindAndModify: false,
17-
useCreateIndex: true,
1816
});
1917
const db = mongoose.connection;
2018

packages/server/models/constants/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module.exports = {
106106
DEVICE_SECRET: 'myjwtdevicesecret',
107107
CLIENT_SECRET: 'myjwtclientsecret',
108108
DESKTOP_SECRET: 'myjwtdesktopsecret',
109-
EXPIRESIN: 10000,
109+
EXPIRES_IN: 10000,
110110
},
111111
USER_ROLE: {
112112
Admin: 1,

0 commit comments

Comments
 (0)