fix: Unused variables in web client

This commit is contained in:
2024-06-21 14:35:24 +02:00
parent b7c6942df7
commit 8af251e97d
13 changed files with 6 additions and 4 deletions

BIN
src/Client/API/Console/bin/Debug/net8.0/LibParse.dll Executable file → Normal file

Binary file not shown.

BIN
src/Client/API/Console/bin/Debug/net8.0/LibParse.pdb Executable file → Normal file

Binary file not shown.

BIN
src/Client/API/Console/bin/Debug/net8.0/LibServer.dll Executable file → Normal file

Binary file not shown.

BIN
src/Client/API/Console/bin/Debug/net8.0/LibServer.pdb Executable file → Normal file

Binary file not shown.

BIN
src/Server/LibParse/bin/Debug/net8.0/LibParse.dll Executable file → Normal file

Binary file not shown.

BIN
src/Server/LibParse/bin/Debug/net8.0/LibParse.pdb Executable file → Normal file

Binary file not shown.

BIN
src/Server/LibServer/bin/Debug/net8.0/LibServer.dll Executable file → Normal file

Binary file not shown.

BIN
src/Server/LibServer/bin/Debug/net8.0/LibServer.pdb Executable file → Normal file

Binary file not shown.

View File

@@ -12,13 +12,16 @@ public class RouteControl: IRoute {
{
"roomba", new() {
{
"start", "127.0.0.1:5000/api/v1/database/metadata"
"start", "127.0.0.1:5050/api/v1/start"
// "start", "127.0.0.1:5000/api/v1/database/metadata"
},
{
"stop", "127.0.0.1:5000/api/v1/database/metadata"
"stop", "127.0.0.1:5050/api/v1/stop"
// "stop", "127.0.0.1:5000/api/v1/database/metadata"
},
{
"map", "127.0.0.1:5000/api/v1/database/metadata"
"map", "127.0.0.1:5050/api/v1/map"
// "map", "127.0.0.1:5000/api/v1/database/metadata"
}
}
}

View File

@@ -35,7 +35,6 @@ export default class MapCanvas extends React.Component {
async getLinePoints(endpoint = '', altKey, altVal) {
try {
const { searchOption, inputValue } = this.state;
const key = altKey || this.state.searchOption;
const val = altVal || this.state.inputValue;
const url = `${API_ENDPOINT}/database/${endpoint}?${key}=${val}`;