diff options
author | patrick <patrick@westberliner.net> | 2021-03-09 23:30:05 +0300 |
---|---|---|
committer | patrick <patrick@westberliner.net> | 2021-03-09 23:30:05 +0300 |
commit | d39945094f539a4ddcddbff4490349ed372c645d (patch) | |
tree | cfddfe8b77bb1d431a6c5c59b612cc4829002791 | |
parent | bf0a77677eb553b8e2ee32499714735721f22dad (diff) |
Update metadata. Centralised algorithms for frontend.v1.1.2
-rw-r--r-- | Changelog.md | 5 | ||||
-rw-r--r-- | appinfo/info.xml | 2 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | src/Model/Algorithms.js | 10 | ||||
-rw-r--r-- | src/views/ChecksumTab.vue | 13 | ||||
-rw-r--r-- | src/views/ChecksumTab20.vue | 13 |
6 files changed, 19 insertions, 26 deletions
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. </description> - <version>1.1.1</version> + <version>1.1.2</version> <licence>agpl</licence> <author>westberliner</author> <types> 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 <http://www.gnu.org/licenses/>. - --> - <template> <div> <!-- checksum content --> @@ -41,17 +40,7 @@ import { generateUrl } from '@nextcloud/router' import axios from '@nextcloud/axios' import Multiselect from '@nextcloud/vue/dist/Components/Multiselect' - -const algorithms = [ - { 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' }, -] +import algorithms from '../Model/Algorithms' export default { name: 'ChecksumTab', diff --git a/src/views/ChecksumTab20.vue b/src/views/ChecksumTab20.vue index dd1d6a8..b3a461c 100644 --- a/src/views/ChecksumTab20.vue +++ b/src/views/ChecksumTab20.vue @@ -19,7 +19,6 @@ - along with this program. If not, see <http://www.gnu.org/licenses/>. - --> - <template> <Tab :id="id" :icon="icon" @@ -44,17 +43,7 @@ import { generateUrl } from '@nextcloud/router' import axios from '@nextcloud/axios' import Multiselect from '@nextcloud/vue/dist/Components/Multiselect' import Tab from '@nextcloud/vue/dist/Components/AppSidebarTab' - -const algorithms = [ - { 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' }, -] +import algorithms from '../Model/Algorithms' export default { name: 'ChecksumTab20', |