@adminforth/upload 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom/uploader.vue +1 -2
- package/dist/custom/uploader.vue +1 -2
- package/package.json +1 -1
package/custom/uploader.vue
CHANGED
|
@@ -106,7 +106,6 @@ watch(() => uploaded, (value) => {
|
|
|
106
106
|
|
|
107
107
|
function uploadGeneratedImage(imgBlob) {
|
|
108
108
|
// update the value
|
|
109
|
-
console.log('⚓⚓ Generated image uploaded:', imgBlob);
|
|
110
109
|
|
|
111
110
|
const file = new File([imgBlob], 'generated.png', { type: imgBlob.type });
|
|
112
111
|
onFileChange({
|
|
@@ -133,7 +132,7 @@ const allowedExtensionsLabel = computed(() => {
|
|
|
133
132
|
// make upper case and write in format EXT1, EXT2 or EXT3
|
|
134
133
|
let label = allowedExtensions.map(ext => ext.toUpperCase()).join(', ');
|
|
135
134
|
// last comma to 'or'
|
|
136
|
-
label = label.replace(/,([^,]*)$/, '
|
|
135
|
+
label = label.replace(/,([^,]*)$/, ` ${t('or')}$1`)
|
|
137
136
|
return label
|
|
138
137
|
});
|
|
139
138
|
|
package/dist/custom/uploader.vue
CHANGED
|
@@ -106,7 +106,6 @@ watch(() => uploaded, (value) => {
|
|
|
106
106
|
|
|
107
107
|
function uploadGeneratedImage(imgBlob) {
|
|
108
108
|
// update the value
|
|
109
|
-
console.log('⚓⚓ Generated image uploaded:', imgBlob);
|
|
110
109
|
|
|
111
110
|
const file = new File([imgBlob], 'generated.png', { type: imgBlob.type });
|
|
112
111
|
onFileChange({
|
|
@@ -133,7 +132,7 @@ const allowedExtensionsLabel = computed(() => {
|
|
|
133
132
|
// make upper case and write in format EXT1, EXT2 or EXT3
|
|
134
133
|
let label = allowedExtensions.map(ext => ext.toUpperCase()).join(', ');
|
|
135
134
|
// last comma to 'or'
|
|
136
|
-
label = label.replace(/,([^,]*)$/, '
|
|
135
|
+
label = label.replace(/,([^,]*)$/, ` ${t('or')}$1`)
|
|
137
136
|
return label
|
|
138
137
|
});
|
|
139
138
|
|