+
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) {