Skip to content

Commit

Permalink
r0b08x [chore] 3/31/2024, 9:29:33 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Mar 31, 2024
1 parent b12bfb2 commit 85968e4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ https://corifeus.com/redis-ui


---
# 💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io v2024.4.202
# 💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io v2024.4.204



Expand Down Expand Up @@ -77,7 +77,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-REDIS-UI-MATERIAL**](https://corifeus.com/redis-ui-material) Build v2024.4.202
[**P3X-REDIS-UI-MATERIAL**](https://corifeus.com/redis-ui-material) Build v2024.4.204

[![NPM](https://img.shields.io/npm/v/p3x-redis-ui-material.svg)](https://www.npmjs.com/package/p3x-redis-ui-material) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p3x-redis-ui-material",
"version": "2024.4.202",
"version": "2024.4.204",
"description": "💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io",
"corifeus": {
"icon": "fas fa-database",
Expand Down
7 changes: 5 additions & 2 deletions src/angular/pages/main/key/p3xr-main-key-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ p3xr.ng.component('p3xrMainKeyString', {
}

this.cancelEdit = () => {
console.log('cancelEdit', this.originalValue)
if (this.buffer === true) {
this.p3xrValueBuffer = this.originalValue
} else {
Expand All @@ -129,14 +130,16 @@ p3xr.ng.component('p3xrMainKeyString', {
}

try {
const response = await p3xrSocket.request({
const request = {
action: 'key-set',
payload: {
type: this.p3xrResponse.type,
value: this.buffer ? this.p3xrValueBuffer : this.p3xrValue,
key: this.p3xrKey,
}
})
}
//console.log('request', request)
const response = await p3xrSocket.request(request)

window['gtag']('config', p3xr.settings.googleAnalytics,
{
Expand Down
5 changes: 5 additions & 0 deletions src/core/clone.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ const isObject = require('lodash/isObject');
const transform = require('lodash/transform');

function removeHashKeys(data) {
if (data instanceof ArrayBuffer) {
const clone = new ArrayBuffer(data.byteLength);
new Uint8Array(clone).set(new Uint8Array(data));
return clone;
}
// Check explicitly for null and array to prevent treating them as objects
if (Array.isArray(data)) {
return data.map(item => removeHashKeys(item));
Expand Down

0 comments on commit 85968e4

Please sign in to comment.