-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3c6cab
commit 46f02a1
Showing
58 changed files
with
1,243 additions
and
947 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 6 additions & 8 deletions
14
...onfig/api/src/main/java/group/chon/ide/api/api/controller/system/SystemConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
package group.chon.ide.api.api.controller.system; | ||
|
||
import group.chon.ide.api.api.authentication.AuthenticatedUser; | ||
import group.chon.ide.api.api.controller.ApiController; | ||
import group.chon.ide.api.api.controller.ResponseEntity; | ||
import group.chon.ide.api.domain.model.RuntimeExecutor; | ||
import group.chon.ide.api.domain.script.SystemScriptManager; | ||
|
||
import javax.servlet.annotation.WebServlet; | ||
import javax.servlet.http.HttpServletResponse; | ||
import java.util.Map; | ||
|
||
@WebServlet("/system/configuration") | ||
@WebServlet("/api/system/configuration") | ||
public class SystemConfiguration extends ApiController { | ||
|
||
public SystemConfiguration() { | ||
super(false); | ||
} | ||
|
||
@Override | ||
protected ResponseEntity get(Map<String, Object> parameters) { | ||
protected ResponseEntity get(AuthenticatedUser authenticatedUser, Map<String, Object> parameters) { | ||
String execute = authenticatedUser.getExecutor() | ||
.execute(SystemScriptManager.GET_CONFIGURATION, false); | ||
return ResponseEntity.get().status(HttpServletResponse.SC_OK) | ||
.data(new RuntimeExecutor().execute(SystemScriptManager.GET_CONFIGURATION, false)); | ||
.data(execute); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
sysconfig/api/src/main/java/group/chon/ide/api/domain/script/NeighborsScriptManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package group.chon.ide.api.domain.script; | ||
|
||
/** | ||
* Scripts relativos aos vizinhos do robo. | ||
*/ | ||
public class NeighborsScriptManager { | ||
|
||
/** Lista todos os vizinhos. */ | ||
public static final String LIST = "sudo chonos-neighbors --list"; | ||
|
||
/** Esquece todos os vizinhos. */ | ||
public static final String FORGET = "sudo chonos-neighbors --forget"; | ||
|
||
} |
18 changes: 0 additions & 18 deletions
18
sysconfig/api/src/main/java/group/chon/ide/api/view/ConnectView.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.