8000 quick hack to get controls into ui · willivstn/esp8266-react@19966d6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 19966d6

Browse files
committed
quick hack to get controls into ui
1 parent 20c761e commit 19966d6

13 files changed

+144
-356
lines changed

interface/.env.development

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Change the IP address to that of your ESP device to enable local development of the UI.
22
# Remember to also enable CORS in platformio.ini before uploading the code to the device.
3-
REACT_APP_HTTP_ROOT=http://192.168.0.88
4-
REACT_APP_WEB_SOCKET_ROOT=ws://192.168.0.88
3+
REACT_APP_HTTP_ROOT=http://192.168.0.94
4+
REACT_APP_WEB_SOCKET_ROOT=ws://192.168.0.94

interface/src/project/DemoInformation.tsx

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

interface/src/project/DemoProject.tsx

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

interface/src/project/LightMqttSettingsController.tsx

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

interface/src/project/LightStateRestController.tsx

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

interface/src/project/LightStateWebSocketController.tsx

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

interface/src/project/ProjectMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ class ProjectMenu extends Component<RouteComponentProps> {
1212
const path = this.props.match.url;
1313
return (
1414
<List>
15-
<ListItem to={`/${PROJECT_PATH}/demo/`} selected={path.startsWith(`/${PROJECT_PATH}/demo/`)} button component={Link}>
15+
<ListItem to={`/${PROJECT_PATH}/robot/`} selected={path.startsWith(`/${PROJECT_PATH}/robot/`)} button component={Link}>
1616
<ListItemIcon>
1717
<SettingsRemoteIcon />
1818
</ListItemIcon>
19-
<ListItemText primary="Demo Project" />
19+
<ListItemText primary="Robot" />
2020
</ListItem>
2121
</List>
2222
)

interface/src/project/ProjectRouting.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Redirect, Switch } from 'react-router';
44
import { PROJECT_PATH } from '../api';
55
import { AuthenticatedRoute } from '../authentication';
66

7-
import DemoProject from './DemoProject';
7+
import Robot from './Robot';
88

99
class ProjectRouting extends Component {
1010

@@ -16,14 +16,14 @@ class ProjectRouting extends Component {
1616
* Add your project page routing below.
1717
*/
1818
}
19-
<AuthenticatedRoute exact path={`/${PROJECT_PATH}/demo/*`} component={DemoProject} />
19+
<AuthenticatedRoute exact path={`/${PROJECT_PATH}/robot/*`} component={Robot} />
2020
{
2121
/*
2222
* The redirect below caters for the default project route and redirecting invalid paths.
2323
* The "to" property must match one of the routes above for this to work correctly.
2424
*/
2525
}
26-
<Redirect to={`/${PROJECT_PATH}/demo/`} />
26+
<Redirect to={`/${PROJECT_PATH}/robot/`} />
2727
</Switch>
2828
)
2929
}

0 commit comments

Comments
 (0)
0