diff --git a/package.json b/package.json index 513250b..4261da7 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "handy-uploader", - "version": "1.1.3", + "version": "1.1.4", "description": "Complete and simple file uploader with image compressor in Vue.js. Choice Theme : Thumbnail, Simple, Table, Add custom fields, Image compressor, Manage files count, Manage files size, Multi language support , ...", "author": "ali jahanpak", "license": "MIT", diff --git a/src/App.vue b/src/App.vue index d178940..3747c99 100755 --- a/src/App.vue +++ b/src/App.vue @@ -12,8 +12,8 @@ :changeFileName="true" :addFileDescription="true" :addFileTag="true" - :lang= "'en'" - :tags= "['Tag 1', 'Tag 2', 'Tag 3', 'Tag 4']" + :lang="'en'" + :tags="['Tag 1', 'Tag 2', 'Tag 3', 'Tag 4']" > @@ -32,39 +32,38 @@ export default { data: () => ({ registryDocFile: [], - customLang : { - custom : { - insertFile: 'Insert File1', - insertNewFile: 'Insert New File1', - add: 'Add', - delete: 'Delete', + customLang: { + custom: { + insertFile: "Insert File1", + insertNewFile: "Insert New File1", + add: "Add", + delete: "Delete", deleteDialog: { - message: 'Are you sure you want to delete the file?', - cancel: 'cancel', + message: "Are you sure you want to delete the file?", + cancel: "cancel" }, table: { - thumb: 'Thumb', - name: 'Name', - size: 'Size', - tags: 'tags', + thumb: "Thumb", + name: "Name", + size: "Size", + tags: "tags", action: { - action: 'Action', - deleteTooltip: 'Delete' + action: "Action", + deleteTooltip: "Delete" } }, size: { - kb: 'KB', - mb: 'MB', + kb: "KB", + mb: "MB" }, - maxFileSizeAlert: 'Max file Size is', - maxFileCountAlert: 'Max file Count is', - fileName: 'File Name', - fileDescription: 'File Description', - fileTags: 'File Tags', + maxFileSizeAlert: "Max file Size is", + maxFileCountAlert: "Max file Count is", + fileName: "File Name", + fileDescription: "File Description", + fileTags: "File Tags" } - }, + } }), - methods: { - } + methods: {} }; diff --git a/src/components/handyUploader.vue b/src/components/handyUploader.vue index 57f422a..2e16a08 100755 --- a/src/components/handyUploader.vue +++ b/src/components/handyUploader.vue @@ -5,123 +5,379 @@ - + - {{attachment.file.name}} - - - {{ Number((attachment.file.size / 1000).toFixed(1)) +' '+ selectedLang[lang].size.kb}} + {{ + attachment.file.name + }} + + + {{ + Number((attachment.file.size / 1000).toFixed(1)) + + " " + + selectedLang[lang].size.kb + }} mdi-harddisk - - - {{ Number(((attachment.file.size / 1000) / 1024 ).toFixed(1)) +' '+ selectedLang[lang].size.mb}} + + + {{ + Number( + (attachment.file.size / 1000 / 1024).toFixed(1) + ) + + " " + + selectedLang[lang].size.mb + }} mdi-harddisk - -