Skip to content

Commit

Permalink
r0b08x [chore] 3/31/2024, 5:27:57 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Mar 31, 2024
1 parent 905ef56 commit 6ffd8c3
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 9 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.207
# 💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io v2024.4.208



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

[![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.207",
"version": "2024.4.208",
"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
18 changes: 15 additions & 3 deletions src/angular/dialog/p3xr-dialog-key-new-or-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,21 @@ p3xr.ng.factory('p3xrDialogKeyNewOrSet', function (p3xrCommon, $mdDialog, p3xrSo
const reader = new FileReader();
reader.onload = async (loadEvent) => {

const arrayBuffer = loadEvent.target.result;
$scope.model.value = arrayBuffer
console.log('buffer', $scope.model.value)
try {
await p3xrCommon.confirm({
message: p3xr.strings.confirm.uploadBuffer
})


const arrayBuffer = loadEvent.target.result;
$scope.model.value = arrayBuffer
//console.log('buffer', $scope.model.value)
p3xrCommon.toast(p3xr.strings.confirm.uploadBufferDone)

} catch(e) {
p3xrCommon.generalHandleError(e)
}


};
reader.onerror = (error) => {
Expand Down
15 changes: 12 additions & 3 deletions src/angular/pages/main/key/p3xr-main-key-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,28 @@ p3xr.ng.component('p3xrMainKeyString', {

try {
if (this.editable === true) {
await p3xrCommon.confirm({
message: p3xr.strings.confirm.uploadBuffer
})

if (this.buffer === true) {
this.p3xrValueBuffer = arrayBuffer
} else {
this.p3xrValue = arrayBuffer
}
p3xrCommon.toast(p3xr.strings.confirm.uploadBufferDone)
$scope.$digest()
return
}
} catch(e) {
p3xrCommon.generalHandleError(e)
}
return
}

try {
await p3xrCommon.confirm({})
await p3xrCommon.confirm({
message: p3xr.strings.confirm.uploadBuffer
})
const response = await p3xrSocket.request({
action: 'key-set',
payload: {
Expand All @@ -49,7 +57,8 @@ p3xr.ng.component('p3xrMainKeyString', {
key: this.p3xrKey,
}
})
$rootScope.$broadcast('p3xr-refresh-key');
p3xrCommon.toast(p3xr.strings.confirm.uploadBufferDoneAndSave)
$rootScope.$broadcast('p3xr-refresh-key');
window['gtag']('config', p3xr.settings.googleAnalytics,
{
'page_path': '/key-set'
Expand Down
3 changes: 3 additions & 0 deletions src/strings/en/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const strings = {
cluster: "Cluster",
},
confirm: {
uploadBuffer: "Are you sure to upload this binary data?",
uploadBufferDone: "The binary data is uploaded",
uploadBufferDoneAndSave: "The binary data is uploaded and saved on the server",
title: "Confirm",
alert: "Alert",
info: "Info",
Expand Down
3 changes: 3 additions & 0 deletions src/strings/ru/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const strings = {
cluster: "Кластер",
},
confirm: {
uploadBuffer: "Вы уверены, чтобы загрузить эти двоичные данные?",
uploadBufferDone: "Двоичные данные загружаются",
uploadBufferDoneAndSave: "Двоичные данные загружаются и сохраняются на сервере.",
title: "Подтвердить",
alert: "Внимание",
info: "Информация",
Expand Down
3 changes: 3 additions & 0 deletions src/strings/zn/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const strings = {
cluster: "集群",
},
confirm: {
uploadBuffer: "您确定上传此二进制数据吗?",
uploadBufferDone: "二进制数据已上传",
uploadBufferDoneAndSave: "二进制数据上传并保存在服务器上",
title: "确认",
alert: "警告",
info: "信息",
Expand Down

0 comments on commit 6ffd8c3

Please sign in to comment.