Skip to content

Commit 9e7ad65

Browse files
committed
new release
1 parent 7a37df4 commit 9e7ad65

Some content is hidden

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

77 files changed

+9646
-10443
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ yarn-debug.log*
2323
yarn-error.log*
2424
.env
2525
package-lock.json
26-
yarn.lock

.runcode.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
onCreate:
22
- sudo apt-get update -y
3+
- sudo apt-get upgrade -y
34
- sudo corepack enable
45
- yarn
56
- cp ENV.md .env

Dockerfile

Lines changed: 0 additions & 13 deletions
This file was deleted.

ENV.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# List of env variables
22

3-
REACT_APP_BASE_URL= "https://8000-wispy-waterfall-04823641.eu-ws2.runcode.io/api/"
3+
#Replace your django-crm API URL below
4+
REACT_APP_BASE_URL= "https://api.bottle-dev.com/api/"

README.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,8 @@
22

33
CRM UI developed in react for django-crm
44

5-
## Runcode
5+
[![RunCode](https://runcode-app-public.s3.amazonaws.com/images/dark_btn.png)](https://runcode.io)
66

7-
8-
Runcode is online developer workspace. It is cloud based simple, secure and ready to code workspaces, assuring high performance & fully configurable coding environment. With runcode you can run react-crm(UI) with one-click.
9-
10-
- Before running react-crm(UI), You need to have django-crm API. To create Backend API go to [Django CRM](https://github.com/MicroPyramid/Django-CRM "Django CRM") project to cretae new workpsace with runcode.
11-
12-
- After running Backend API, Open below link to create react-crm workspace on [RunCode](https://runcode.io/ "RunCode"). It will cretae react-crm UI
13-
14-
[![RunCode](https://runcode-app-public.s3.amazonaws.com/images/dark_btn.png)](https://runcode.io)
15-
16-
### Environment variables
17-
Add below key to your **.env** file with django-crm backend api URL.
18-
```
19-
REACT_APP_BASE_URL=https://<your-backend-url.com>/api/
20-
```
21-
22-
### Coding standards to follow
7+
### standards to follow
238
* two space indentation
249
* images should have img_ prefix
25-
standard from https://github.com/standard/eslint-config-standard
26-
\
27-
]
28-
29-
### Docker / docker-compose
30-
To run project please run the next commands after cloning repo:
31-
```
32-
docker-compose build
33-
docker-compose up
34-
```

docker-compose.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"name": "react-crm",
2+
"name": "workspace",
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
66
"@emotion/react": "^11.10.0",
77
"@emotion/styled": "^11.10.0",
8-
"@material-ui/icons": "4.11.3",
9-
"@mui/icons-material": "5.8.4",
10-
"@mui/material": "5.10.0",
11-
"@mui/styles": "5.9.3",
8+
"@material-ui/icons": "^4.11.3",
9+
"@mui/icons-material": "^5.8.4",
10+
"@mui/material": "^5.10.0",
11+
"@mui/styles": "^5.9.3",
1212
"@testing-library/jest-dom": "^5.16.5",
1313
"@testing-library/react": "^13.3.0",
1414
"@testing-library/user-event": "^14.4.3",
@@ -44,9 +44,5 @@
4444
"last 1 firefox version",
4545
"last 1 safari version"
4646
]
47-
},
48-
"devDependencies": {
49-
"npm-check-updates": "^16.3.8",
50-
"standard": "^17.0.0"
5147
}
5248
}

src/App.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
import React from 'react'
2-
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'
3-
import { Registration } from './containers/auth/Register'
4-
import { LogIn } from './containers/auth/Login'
5-
import { ForgotPassword } from './containers/auth/ForgotPassword'
6-
import { Home } from './containers/Home/Home'
1+
import React from "react";
2+
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
3+
import { Registration } from "./containers/auth/Register";
4+
import { LogIn } from "./containers/auth/Login";
5+
import { ForgotPassword } from "./containers/auth/ForgotPassword";
6+
import { Home } from "./containers/Home/Home";
77

8-
function App () {
8+
function App() {
99
return (
1010
<div>
1111
<Router>
1212
<Routes>
13-
<Route path='*' element={<Home />} />
14-
<Route path='/register' element={<Registration />} />
15-
<Route path='/login' element={<LogIn />} />
16-
<Route path='/forgotpassword' element={<ForgotPassword />} />
17-
13+
<Route path="*" element={<Home />} />
14+
<Route path="/register" element={<Registration />} />
15+
<Route path="/login" element={<LogIn />} />
16+
<Route path="/forgotpassword" element={<ForgotPassword />} />
17+
1818
</Routes>
1919
</Router>
2020
</div>
21-
)
21+
);
2222
}
2323

24-
export default App
24+
export default App;

src/App.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { render, screen } from '@testing-library/react'
2-
import App from './App'
1+
import { render, screen } from '@testing-library/react';
2+
import App from './App';
33

44
test('renders learn react link', () => {
5-
render(<App />)
6-
const linkElement = screen.getByText(/learn react/i)
7-
expect(linkElement).toBeInTheDocument()
8-
})
5+
render(<App />);
6+
const linkElement = screen.getByText(/learn react/i);
7+
expect(linkElement).toBeInTheDocument();
8+
});

src/components/AlertDelete.js

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,43 @@
1-
import React from 'react'
1+
import React, { useState } from 'react';
22
import {
33
Dialog,
44
DialogTitle,
55
DialogActions,
66
Button,
77
DialogContent,
88
DialogContentText
9-
} from '@mui/material'
9+
} from "@mui/material";
1010

1111
export const AlertDelete = (props) => {
1212
return (
1313
<Dialog
14-
aria-labelledby='alert-dialog-title'
15-
aria-describedby='alert-dialog-description'
16-
onClose={() => props.onClose()} open={props.isDelete}
17-
>
14+
aria-labelledby="alert-dialog-title"
15+
aria-describedby="alert-dialog-description"
16+
onClose={() => props.onClose()} open={props.isDelete}>
1817
<DialogTitle
1918
style={{
20-
padding: '15px',
21-
width: '500px',
22-
color: 'black'
23-
}}
24-
>Are you sure want to delete this lead?
19+
padding: "15px",
20+
width: "500px",
21+
color: "black"
22+
}}>Are you sure want to delete this lead?
2523
</DialogTitle>
2624
<DialogContent>
27-
<DialogContentText style={{ fontSize: '14px' }}>
28-
{props.lead.title}
25+
<DialogContentText style={{ fontSize: "14px" }}>
26+
{ props.lead.title }
2927
</DialogContentText>
3028
</DialogContent>
3129
<DialogActions>
3230
<Button
3331
onClick={() => props.onClose()}
34-
style={{ textTransform: 'capitalize' }}
35-
>
32+
style={{ textTransform: "capitalize" }}>
3633
Cancel
3734
</Button>
3835
<Button
3936
onClick={() => props.onDelete(props.lead.id)}
40-
style={{ textTransform: 'capitalize', backgroundColor: '#3E79F7', color: 'white', height: '30px' }}
41-
>
37+
style={{ textTransform: "capitalize", backgroundColor: "#3E79F7", color: "white", height: "30px" }}>
4238
Yes
4339
</Button>
4440
</DialogActions>
4541
</Dialog>
4642
)
47-
}
43+
}

0 commit comments

Comments
 (0)