Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Small cleanup (#48)
Browse files Browse the repository at this point in the history
- Added JS maps
- Added JS info in readme
- Added relative path base to index.html (no functional change)
- Changed header to headers id to avoid name collision in index.html
  • Loading branch information
titans-of-code authored May 3, 2023
1 parent a58c88a commit fa244b1
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 11 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ The properties below can be set on the app to override the default settings. Th
- When using CloudHub 2.0 and RTF, you must enable *Last-Mile Security* in the app's Ingress tab if you want to use HTTPS.
- This does not use `http.port` and `https.port` properties since those are overrriden on Cloudhub 2.0 and RTF to the same port and will prevent the app from starting because of a port conflict.

### References
# References
- [CloudHub 2.0 Infrastructure Considerations](https://docs.mulesoft.com/cloudhub-2/ch2-comparison#infrastructure-considerations)
- [CloudHub 1.0 Load Balancer Architecture](https://docs.mulesoft.com/cloudhub-1/lb-architecture)
- [Enable Last Mile Security in RTF](https://help.mulesoft.com/s/article/How-to-Enable-both-Last-Mile-Security-and-Mutual-TLS-in-Runtime-Fabric)
- [Enable Last Mile Security in RTF](https://help.mulesoft.com/s/article/How-to-Enable-both-Last-Mile-Security-and-Mutual-TLS-in-Runtime-Fabric)

# Maintenance
This uses the JS libraries below.
- jQuery 1.11.3 [min](https://code.jquery.com/jquery-1.11.3.min.js) and [map](https://code.jquery.com/jquery-1.11.3.min.map).
- [Toastr](https://github.com/CodeSeven/toastr) 2.1.4 [min, map, and css](https://cdnjs.com/libraries/toastr.js).

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.mycompany</groupId>
<artifactId>net-tools-api</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
<packaging>mule-application</packaging>

<name>net-tools-api</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/web/css/toastr.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions src/main/resources/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,15 @@
border-color: red;
}
</style>
<title>Network connectivity tools</title>
<title>Network Connectivity Tools</title>
<base href=".">
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/toastr.min.js" type="text/javascript"></script>
<link href="css/toastr.min.css" rel="stylesheet" />
</head>
<body>
<div class="content">
<div class="header"><h1>Network connectivity tools</h1></div>
<div class="header"><h1>Network Connectivity Tools</h1></div>
<form id="theForm" action="#">
<div>
<select name="operation" id="operation">
Expand All @@ -150,7 +151,7 @@
<input name="port" placeholder="Port" type="text" title="PORT" id="port" />
<input name="url" placeholder="http://host:port/path/" type="text" title="URL" id="url" />
<input name="insecure" type="checkbox" title="insecure" id="insecure" checked="true" /><span class="helpBox" id="insecure_label">insecure</span>
<textarea name="header" placeholder="header-name:header-value" title="Header" id="header" rows="3" cols="50" style="display: block"></textarea>
<textarea name="headers" placeholder="header-name:header-value" title="Headers" id="headers" rows="3" cols="50" style="display: block"></textarea>
<input name="dnsServer" placeholder="dns server" type="text" title="DNS SERVER" id="dnsServer" />
<button type="button" id="check">Run</button>
<button type="button" id="clean">Clean Console</button>
Expand Down Expand Up @@ -226,7 +227,7 @@
case "curl":
$("#url").show();
$("#curlHelp").show();
$("#header").show();
$("#headers").show();
$("#insecure").show();
$("#insecure_label").show();
break;
Expand Down Expand Up @@ -270,7 +271,7 @@
if (operation === 'curl') {
apiurl += '&url=' + encodeURI(url);
apiurl += '&insecure=' + $("#insecure").prop('checked');
for (let h of $("#header").val().split('\n')) {
for (let h of $("#headers").val().split('\n')) {
apiurl += '&header=' + encodeURI(h);
}
}
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/web/js/jquery.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/main/resources/web/js/jquery.min.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/main/resources/web/js/toastr.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit fa244b1

Please sign in to comment.