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

Commit fa244b1

Browse files
Small cleanup (#48)
- 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
1 parent a58c88a commit fa244b1

File tree

8 files changed

+19
-11
lines changed

8 files changed

+19
-11
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ The properties below can be set on the app to override the default settings. Th
4444
- 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.
4545
- 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.
4646

47-
### References
47+
# References
4848
- [CloudHub 2.0 Infrastructure Considerations](https://docs.mulesoft.com/cloudhub-2/ch2-comparison#infrastructure-considerations)
4949
- [CloudHub 1.0 Load Balancer Architecture](https://docs.mulesoft.com/cloudhub-1/lb-architecture)
50-
- [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)
50+
- [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)
51+
52+
# Maintenance
53+
This uses the JS libraries below.
54+
- 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).
55+
- [Toastr](https://github.com/CodeSeven/toastr) 2.1.4 [min, map, and css](https://cdnjs.com/libraries/toastr.js).
56+

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.mycompany</groupId>
66
<artifactId>net-tools-api</artifactId>
7-
<version>2.5.0</version>
7+
<version>2.5.1</version>
88
<packaging>mule-application</packaging>
99

1010
<name>net-tools-api</name>

src/main/resources/web/css/toastr.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/web/index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,15 @@
127127
border-color: red;
128128
}
129129
</style>
130-
<title>Network connectivity tools</title>
130+
<title>Network Connectivity Tools</title>
131+
<base href=".">
131132
<script src="js/jquery.min.js" type="text/javascript"></script>
132133
<script src="js/toastr.min.js" type="text/javascript"></script>
133134
<link href="css/toastr.min.css" rel="stylesheet" />
134135
</head>
135136
<body>
136137
<div class="content">
137-
<div class="header"><h1>Network connectivity tools</h1></div>
138+
<div class="header"><h1>Network Connectivity Tools</h1></div>
138139
<form id="theForm" action="#">
139140
<div>
140141
<select name="operation" id="operation">
@@ -150,7 +151,7 @@
150151
<input name="port" placeholder="Port" type="text" title="PORT" id="port" />
151152
<input name="url" placeholder="http://host:port/path/" type="text" title="URL" id="url" />
152153
<input name="insecure" type="checkbox" title="insecure" id="insecure" checked="true" /><span class="helpBox" id="insecure_label">insecure</span>
153-
<textarea name="header" placeholder="header-name:header-value" title="Header" id="header" rows="3" cols="50" style="display: block"></textarea>
154+
<textarea name="headers" placeholder="header-name:header-value" title="Headers" id="headers" rows="3" cols="50" style="display: block"></textarea>
154155
<input name="dnsServer" placeholder="dns server" type="text" title="DNS SERVER" id="dnsServer" />
155156
<button type="button" id="check">Run</button>
156157
<button type="button" id="clean">Clean Console</button>
@@ -226,7 +227,7 @@
226227
case "curl":
227228
$("#url").show();
228229
$("#curlHelp").show();
229-
$("#header").show();
230+
$("#headers").show();
230231
$("#insecure").show();
231232
$("#insecure_label").show();
232233
break;
@@ -270,7 +271,7 @@
270271
if (operation === 'curl') {
271272
apiurl += '&url=' + encodeURI(url);
272273
apiurl += '&insecure=' + $("#insecure").prop('checked');
273-
for (let h of $("#header").val().split('\n')) {
274+
for (let h of $("#headers").val().split('\n')) {
274275
apiurl += '&header=' + encodeURI(h);
275276
}
276277
}

src/main/resources/web/js/jquery.min.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/web/js/jquery.min.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/web/js/toastr.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)