From d39945094f539a4ddcddbff4490349ed372c645d Mon Sep 17 00:00:00 2001 From: patrick Date: Tue, 9 Mar 2021 21:30:05 +0100 Subject: Update metadata. Centralised algorithms for frontend. --- Changelog.md | 5 +++++ appinfo/info.xml | 2 +- package.json | 2 +- src/Model/Algorithms.js | 10 ++++++++++ src/views/ChecksumTab.vue | 13 +------------ src/views/ChecksumTab20.vue | 13 +------------ 6 files changed, 19 insertions(+), 26 deletions(-) create mode 100644 src/Model/Algorithms.js diff --git a/Changelog.md b/Changelog.md index 1ed159d..2d49899 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,11 @@ Changelog ========= +**1.1.2** +- Fixes wrong label for sha512 checksum. (thx to @st3iny) +- Refactor checksum controller to appropriate nc folder class. (thx to @st3iny) +- Centralize algorithms in javascript. + **1.1.1** - NC 20|21: Fixes issue on checksum files in folders not working. - NC 21: Fixed issue on fileinfo change not resetting view. diff --git a/appinfo/info.xml b/appinfo/info.xml index a4de3cc..6df22e4 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -12,7 +12,7 @@ Select a algorithm and it will try to generate a hash. If you want an other algorithm, just click on the reload button. - 1.1.1 + 1.1.2 agpl westberliner diff --git a/package.json b/package.json index 3d97d5d..8939e6a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "checksum", "description": "Checksum app for Nextcloud", - "version": "1.1.1", + "version": "1.1.2", "author": "westberliner", "license": "agpl", "private": true, diff --git a/src/Model/Algorithms.js b/src/Model/Algorithms.js new file mode 100644 index 0000000..7e6b6e5 --- /dev/null +++ b/src/Model/Algorithms.js @@ -0,0 +1,10 @@ +export default [ + { id: '', label: t('checksum', 'Choose Algorithm') }, + { id: 'md5', label: 'MD5' }, + { id: 'sha1', label: 'SHA1' }, + { id: 'sha256', label: 'SHA256' }, + { id: 'sha384', label: 'SHA384' }, + { id: 'sha512', label: 'SHA512' }, + { id: 'crc32', label: 'CRC32' }, + { id: 'crc32b', label: 'CRC32b' }, +] diff --git a/src/views/ChecksumTab.vue b/src/views/ChecksumTab.vue index c9feb38..758a6a9 100644 --- a/src/views/ChecksumTab.vue +++ b/src/views/ChecksumTab.vue @@ -19,7 +19,6 @@ - along with this program. If not, see . - --> -