feat: add copy and paste functionality for requests (#5907)

This commit is contained in:
Pooja
2025-10-29 17:24:09 +05:30
committed by GitHub
parent 6e8cd55b76
commit cc7f1ea58f
11 changed files with 278 additions and 19 deletions

View File

@@ -0,0 +1,27 @@
class BrunoClipboard {
constructor() {
this.items = [];
}
/**
* @param {Object} item - Item to copy
*/
write(item) {
// Limit to one item for now
this.items = [item];
}
/**
* @returns {Object} Result with items array
*/
read() {
return {
items: this.items,
hasData: this.items.length > 0
};
}
}
const brunoClipboard = new BrunoClipboard();
export default brunoClipboard;