Skip to content

Commit ab72091

Browse files
Gourav DwivediGourav Dwivedi
authored andcommitted
Code refactoring
1 parent d882597 commit ab72091

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

src/Index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
<link rel="icon" href="data:,">
99
</head>
1010
<body>
11-
<!-- <img src="./images/delete.png"/> -->
12-
1311
<div class="container">
1412
<h1>Signal R JavaScript Client</h1>
1513
<src-app></src-app>

src/js/components/srform.js

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as signalR from "@aspnet/signalr";
2-
// import * from './../../images/';
32
import deleteImg from '../../images/delete.png';
43

54
const ContentType = {
@@ -75,8 +74,6 @@ export function OnTabChange(tabName) {
7574
}
7675
}
7776

78-
79-
8077
export function AddArguments() {
8178

8279
//Add Arguments Button Events
@@ -102,9 +99,7 @@ export function AddArguments() {
10299
divElement.appendChild(GetImageElement());
103100
divElement.append(document.createElement('br'))
104101
divElement.appendChild(hr);
105-
parentDiv[i].appendChild(divElement);
106-
107-
102+
parentDiv[i].appendChild(divElement);
108103
}
109104
},
110105
false);
@@ -224,8 +219,6 @@ export function NotConnected() {
224219
}
225220
}
226221

227-
228-
229222
export function buildConnection(url) {
230223
connection = new signalR.HubConnectionBuilder()
231224
.withUrl(url)
@@ -321,21 +314,6 @@ export function SendPayload() {
321314
var methodName = document.getElementById("inputServerMethod").value;
322315
var methodArguments = new Array();
323316

324-
325-
var argsTextAreaClass = document.getElementsByClassName('req-arg');
326-
// ReadArguments();
327-
328-
// for (var i = 0; i < argsTextAreaClass.length; i++) {
329-
330-
// if (argsTextAreaClass[i].value !== "") {
331-
332-
// //Star from Here
333-
// //Support different type of data format
334-
// //c.push(JSON.parse(argsTextAreaClass[i].value));
335-
// c.push(argsTextAreaClass[i].value);
336-
// }
337-
// }
338-
339317
methodArguments = ReadAndFormatArguments();
340318

341319
connection.invoke(methodName, ...methodArguments)

0 commit comments

Comments
 (0)