Skip to content

Commit

Permalink
r0b08x [chore] 3/24/2024, 9:59:00 AM
Browse files Browse the repository at this point in the history
p3x-robot committed Mar 24, 2024
1 parent 0da561e commit aa4edeb
Showing 7 changed files with 22 additions and 25 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.155
# 💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io v2024.4.156



@@ -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.155
[**P3X-REDIS-UI-MATERIAL**](https://corifeus.com/redis-ui-material) Build v2024.4.156

[![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)

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.155",
"version": "2024.4.156",
"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",
15 changes: 3 additions & 12 deletions src/angular/pages/main/p3xr-main-key.html
Original file line number Diff line number Diff line change
@@ -119,18 +119,9 @@ <h3>

<md-list-item>
<p>{{ $root.p3xr.strings.page.key.label.length }}:</p>
<span ng-if="$ctrl.response.type === 'string'" style="opacity: 0.5">
{{ $ctrl.charactersPrettyBytes($ctrl.response.length) }}
&nbsp;
</span>
{{ $ctrl.response.length }}
&nbsp;
<span ng-if="$ctrl.response.type === 'string'">
{{ $root.p3xr.strings.page.key.label.lengthString }}
</span>
<span ng-if="$ctrl.response.type !== 'string'">
{{ $root.p3xr.strings.page.key.label.lengthItem }}
</span>
<span style="opacity: 0.5">{{ $ctrl.charactersPrettyBytes($ctrl.response.size) }}&nbsp;</span>
{{ $ctrl.response.size }}&nbsp;{{ $root.p3xr.strings.page.key.label.lengthString }}
<span ng-if="$ctrl.response.length">, {{ $ctrl.response.length }} {{ $root.p3xr.strings.page.key.label.lengthItem }}</span>
</md-list-item>


20 changes: 13 additions & 7 deletions src/angular/pages/main/p3xr-main-key.js
Original file line number Diff line number Diff line change
@@ -134,17 +134,23 @@ p3xr.ng.component('p3xrMainKey', {
})
this.response = response

const type = response.type
//const type = response.type
if (response.ttl === -2) {
checkTtl()
return;
}
switch (type) {
case 'string':
//p3xr.state.keysInfo[$stateParams.key].length = response.value.length
response.length = response.valueBuffer.maxByteLength
console.warn(response.valueBuffer)
break;
response.size = 0
console.log('response', response, 'typeof response.valueBuffer === object', typeof response.valueBuffer === 'object')
if (typeof response.valueBuffer === 'object' && response.length > 0) {
for (let keys of Object.keys(response.valueBuffer)) {
response.size += response.valueBuffer[keys].maxByteLength
}
} else if (Array.isArray(response.valueBuffer)) {
for (let i = 0; i < response.valueBuffer.length; i++) {
response.size += response.valueBuffer[i].maxByteLength
}
} else {
response.size = response.valueBuffer.maxByteLength
}

if (response.ttl > -1) {
2 changes: 1 addition & 1 deletion src/strings/en/strings.js
Original file line number Diff line number Diff line change
@@ -360,7 +360,7 @@ const strings = {
ttlTitle: "Time To Live",
type: "Type",
ttlNotExpire: "does not expire",
lengthString: "characters",
lengthString: "bytes",
lengthItem: "items",
actions: "Actions",
},
2 changes: 1 addition & 1 deletion src/strings/ru/strings.js
Original file line number Diff line number Diff line change
@@ -364,7 +364,7 @@ const strings = {
ttlTitle: "Время На Жизнь (TTL)",
type: "Тип",
ttlNotExpire: "не истекает",
lengthString: "символы",
lengthString: "байты",
lengthItem: "обьекты",
actions: "Действия",
},
2 changes: 1 addition & 1 deletion src/strings/zn/strings.js
Original file line number Diff line number Diff line change
@@ -344,7 +344,7 @@ const strings = {
ttlTitle: "生存时间",
type: "类型",
ttlNotExpire: "不会过期",
lengthString: "字符",
lengthString: "位元組",
lengthItem: "项数",
actions: "操作",
},

0 comments on commit aa4edeb

Please sign in to comment.