11import * as signalR from "@aspnet/signalr" ;
2- // import * from './../../images/';
32import deleteImg from '../../images/delete.png' ;
43
54const ContentType = {
@@ -75,8 +74,6 @@ export function OnTabChange(tabName) {
7574 }
7675}
7776
78-
79-
8077export 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-
229222export 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