diff --git a/resources/views/client/dashboard.twig b/resources/views/client/dashboard.twig index 5497400..32b40f4 100644 --- a/resources/views/client/dashboard.twig +++ b/resources/views/client/dashboard.twig @@ -249,10 +249,17 @@
-
+

Query Parameters

+ + +
-
+

Post Parameters

+ + +
-
+

Headers

+ + +
'${value}',\n`; + } + + output += `];`; + + return output; + }, setLog: function (log) { this.currentLog = log; this.$nextTick(function () { - let clipboard = new ClipboardJS('.clipboard'); + new ClipboardJS('.clipboard'); + + new ClipboardJS('.clipboard-query', { + text: (trigger) => { + return this.toPhpArray(this.currentLog.request.query, 'queryParameters'); + } + }); + + new ClipboardJS('.clipboard-post', { + text: (trigger) => { + return this.toPhpArray(this.currentLog.request.post, 'postParameters'); + } + }); + + new ClipboardJS('.clipboard-headers', { + text: (trigger) => { + return this.toPhpArray(this.currentLog.request.headers, 'headers'); + } + }); }); }, setView: function (view) {