diff --git a/README.md b/README.md index 98c3e6fdf..9af20db3c 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ Download latest [AppImage](https://github.com/qishibo/AnotherRedisDesktopManager ## Feature Log +- 2021-02-03: Multiple Select\Delete && Msgpack Viewer Support - 2020-12-30: Tree View Support!!! - 2020-11-03: Binary View Support && SSH Passparse\Timeout Support - 2020-09-04: SSH Cluster Support && Extension Commands Support diff --git a/pack/electron/package.json b/pack/electron/package.json index 297aac677..ccd7835d5 100644 --- a/pack/electron/package.json +++ b/pack/electron/package.json @@ -1,6 +1,6 @@ { "name": "another-redis-desktop-manager", - "version": "1.4.0", + "version": "1.4.1", "description": "A faster, better and more stable redis desktop manager.", "author": "qii404.me", "private": true, diff --git a/package-lock.json b/package-lock.json index 394ee65b0..9133ae0b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -137,6 +137,11 @@ } } }, + "@msgpack/msgpack": { + "version": "2.3.0", + "resolved": "https://registry.npm.taobao.org/@msgpack/msgpack/download/@msgpack/msgpack-2.3.0.tgz", + "integrity": "sha1-qQQ7kgg3st1jSC579rg0WBPpgWs=" + }, "@sindresorhus/is": { "version": "0.14.0", "resolved": "https://registry.npm.taobao.org/@sindresorhus/is/download/@sindresorhus/is-0.14.0.tgz", diff --git a/package.json b/package.json index b2c203e84..a8a34b555 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "sign": "cd pack/mas; bash sign.sh" }, "dependencies": { + "@msgpack/msgpack": "^2.3.0", "@ztree/ztree_v3": "^3.5.46", "element-ui": "^2.4.11", "font-awesome": "^4.7.0", diff --git a/src/components/FormatViewer.vue b/src/components/FormatViewer.vue index 11ba9e849..31829be71 100644 --- a/src/components/FormatViewer.vue +++ b/src/components/FormatViewer.vue @@ -29,6 +29,7 @@ import ViewerText from '@/components/ViewerText'; import ViewerJson from '@/components/ViewerJson'; import ViewerBinary from '@/components/ViewerBinary'; import ViewerUnserialize from '@/components/ViewerUnserialize'; +import ViewerMsgpack from '@/components/ViewerMsgpack'; export default { data() { @@ -38,6 +39,7 @@ export default { { value: 'ViewerText', text: 'Text' }, { value: 'ViewerJson', text: 'Json' }, { value: 'ViewerBinary', text: 'Binary' }, + { value: 'ViewerMsgpack', text: 'Msgpack' }, { value: 'ViewerUnserialize', text: 'Unserialize' }, ], selectStyle: { @@ -45,7 +47,7 @@ export default { }, }; }, - components: {ViewerText, ViewerJson, ViewerBinary, ViewerUnserialize}, + components: {ViewerText, ViewerJson, ViewerBinary, ViewerUnserialize, ViewerMsgpack}, props: { float: {default: 'right'}, content: {default: () => Buffer.from('')}, diff --git a/src/components/ViewerMsgpack.vue b/src/components/ViewerMsgpack.vue new file mode 100644 index 000000000..f037e45a4 --- /dev/null +++ b/src/components/ViewerMsgpack.vue @@ -0,0 +1,51 @@ + + + + {{ $t('message.' + collapseText) }} + + + + + + + diff --git a/src/i18n/langs/cn.js b/src/i18n/langs/cn.js index e87e3d26e..e8a257bda 100644 --- a/src/i18n/langs/cn.js +++ b/src/i18n/langs/cn.js @@ -40,6 +40,7 @@ const cn = { collapse_all: '全部折叠', expand_all: '全部展开', json_format_failed: 'Json 格式化失败', + msgpack_format_failed: 'Msgpack 格式化失败', php_unserialize_format_failed: 'PHP Unserialize 格式化失败', clean_up: '清空', redis_console: 'Redis 控制台', diff --git a/src/i18n/langs/de.js b/src/i18n/langs/de.js index 736e71b35..e5549721f 100644 --- a/src/i18n/langs/de.js +++ b/src/i18n/langs/de.js @@ -40,6 +40,7 @@ const de = { collapse_all: 'Alle einklappen', expand_all: 'Alle ausklappen', json_format_failed: 'Json parsen fehlgeschlagen', + msgpack_format_failed: 'Msgpack parsen fehlgeschlagen', php_unserialize_format_failed: 'PHP Unserialisieren fehlgeschlagen', clean_up: 'Bereinigen', redis_console: 'Redis Konsole', diff --git a/src/i18n/langs/en.js b/src/i18n/langs/en.js index 5b435647e..96356319e 100644 --- a/src/i18n/langs/en.js +++ b/src/i18n/langs/en.js @@ -40,6 +40,7 @@ const en = { collapse_all: 'Collapse All', expand_all: 'Expand All', json_format_failed: 'Json Parse Failed', + msgpack_format_failed: 'Msgpack Parse Failed', php_unserialize_format_failed: 'PHP Unserialize Failed', clean_up: 'Clean Up', redis_console: 'Redis Console', diff --git a/src/i18n/langs/fr.js b/src/i18n/langs/fr.js index db1d4a45e..81bc21a30 100644 --- a/src/i18n/langs/fr.js +++ b/src/i18n/langs/fr.js @@ -40,6 +40,7 @@ const fr = { collapse_all: 'Tout fermer', expand_all: 'Tout étendre', json_format_failed: 'Échec de l\'analyse du JSON', + msgpack_format_failed: 'Échec de l\'analyse du Msgpack', php_unserialize_format_failed: 'Échec de la désérialisation PHP', clean_up: 'Nettoyer', redis_console: 'Console Redis', diff --git a/src/i18n/langs/pt.js b/src/i18n/langs/pt.js index 8e1578002..e34fd97e2 100644 --- a/src/i18n/langs/pt.js +++ b/src/i18n/langs/pt.js @@ -40,6 +40,7 @@ const pt = { collapse_all: 'Recolher todos', expand_all: 'Expandir todos', json_format_failed: 'Falha na análise do JSON', + msgpack_format_failed: 'Falha na análise do Msgpack', php_unserialize_format_failed: 'Falha na desserialização do PHP', clean_up: 'Limpar', redis_console: 'Console do Redis', diff --git a/src/i18n/langs/ru.js b/src/i18n/langs/ru.js index 5a26045c9..71a1ab0ec 100644 --- a/src/i18n/langs/ru.js +++ b/src/i18n/langs/ru.js @@ -40,6 +40,7 @@ const ru = { collapse_all: 'Свернуть все', expand_all: 'Развернуть все', json_format_failed: 'Не удалось форматировать в JSON', + msgpack_format_failed: 'Не удалось форматировать в Msgpack', php_unserialize_format_failed: 'PHP Unserialize форматирование не удалось', clean_up: 'Очистить', redis_console: 'Redis console', diff --git a/src/i18n/langs/tr.js b/src/i18n/langs/tr.js index d6d0c53f9..4f481f72d 100644 --- a/src/i18n/langs/tr.js +++ b/src/i18n/langs/tr.js @@ -40,6 +40,7 @@ const tr = { collapse_all: 'Hepsini Daralt', expand_all: 'Hepsini Genişlet', json_format_failed: 'Json Ayrıştırma Başarısız Oldu', + msgpack_format_failed: 'Msgpack Ayrıştırma Başarısız Oldu', php_unserialize_format_failed: 'PHP Serileştirmesi Başarısız Oldu', clean_up: 'Pırıl Pırıl Yap', redis_console: 'Redis Konsolu', diff --git a/src/i18n/langs/tw.js b/src/i18n/langs/tw.js index ec22f0605..fdd98e7cf 100644 --- a/src/i18n/langs/tw.js +++ b/src/i18n/langs/tw.js @@ -40,6 +40,7 @@ const tw = { collapse_all: '全部摺疊', expand_all: '全部展開', json_format_failed: 'JSON 格式化失敗', + msgpack_format_failed: 'Msgpack 格式化失敗', php_unserialize_format_failed: 'PHP Unserialize 格式化失敗', clean_up: '清空', redis_console: 'Redis 控制台',