refactor: rename dap-tool-other to dap-tool-oth
Some checks failed
Deploy to OCIWP / deploy (push) Has been cancelled
Some checks failed
Deploy to OCIWP / deploy (push) Has been cancelled
This commit is contained in:
@@ -34,7 +34,7 @@ public class ScaffoldingController {
|
||||
@PostMapping("/pod")
|
||||
public String scaffoldPod(@RequestBody Map<String, String> req) {
|
||||
try {
|
||||
String moduleName = req.getOrDefault("moduleName", "dap-tool-other");
|
||||
String moduleName = req.getOrDefault("moduleName", "dap-tool-oth");
|
||||
if (!moduleName.startsWith("dap-tool-")) moduleName = "dap-tool-" + moduleName;
|
||||
String port = req.getOrDefault("port", "8085");
|
||||
String shortName = moduleName.replace("dap-tool-", "").replace("-", "");
|
||||
@@ -57,7 +57,7 @@ public class ScaffoldingController {
|
||||
String description = req.get("description");
|
||||
String group = req.getOrDefault("categoryKey", req.getOrDefault("group", "COMMON"));
|
||||
String routingType = req.getOrDefault("routingType", "HTTP");
|
||||
String moduleName = req.getOrDefault("moduleName", "dap-tool-other");
|
||||
String moduleName = req.getOrDefault("moduleName", "dap-tool-oth");
|
||||
String author = req.get("author");
|
||||
if (author == null || author.trim().isEmpty()) author = System.getProperty("user.name");
|
||||
String date = req.get("date");
|
||||
@@ -96,12 +96,12 @@ public class ScaffoldingController {
|
||||
File[] files = dir.listFiles(f -> f.isDirectory() && f.getName().startsWith("dap-tool-") && !f.getName().equals("dap-tool-core"));
|
||||
|
||||
if (files == null || files.length == 0) {
|
||||
return List.of("dap-tool-other", "dap-tool-hr", "dap-tool-sms");
|
||||
return List.of("dap-tool-oth", "dap-tool-hr", "dap-tool-sms");
|
||||
}
|
||||
|
||||
return Arrays.stream(files).map(File::getName).sorted().collect(Collectors.toList());
|
||||
} catch (Exception e) {
|
||||
return List.of("dap-tool-other", "dap-tool-hr", "dap-tool-sms");
|
||||
return List.of("dap-tool-oth", "dap-tool-hr", "dap-tool-sms");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,10 +34,10 @@ mcp:
|
||||
gateway:
|
||||
url: http://localhost:${server.port}/mcp/api/v1
|
||||
fallback:
|
||||
default-url: http://tool-other:8084
|
||||
default-url: http://tool-oth:8084
|
||||
routes:
|
||||
sms: http://tool-sms:8082
|
||||
hr: http://tool-other:8084
|
||||
hr: http://tool-oth:8084
|
||||
tool:
|
||||
host: localhost
|
||||
|
||||
|
||||
@@ -485,7 +485,7 @@
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Target Module</label>
|
||||
<select class="form-select" name="moduleName" id="targetModuleSelect" required>
|
||||
<option value="dap-tool-other">dap-tool-other</option>
|
||||
<option value="dap-tool-oth">dap-tool-oth</option>
|
||||
<option value="dap-tool-hr">dap-tool-hr</option>
|
||||
<option value="dap-tool-sms">dap-tool-sms</option>
|
||||
</select>
|
||||
@@ -654,7 +654,7 @@
|
||||
.then(modules => {
|
||||
const select = document.getElementById('targetModuleSelect');
|
||||
if (modules && modules.length > 0) {
|
||||
select.innerHTML = modules.map(m => `<option value="${m}" ${m === 'dap-tool-other' ? 'selected' : ''}>${m}</option>`).join('');
|
||||
select.innerHTML = modules.map(m => `<option value="${m}" ${m === 'dap-tool-oth' ? 'selected' : ''}>${m}</option>`).join('');
|
||||
}
|
||||
})
|
||||
.catch(err => console.error('Failed to load modules:', err));
|
||||
|
||||
Reference in New Issue
Block a user