@adminforth/upload 2.15.13 → 2.15.14
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/build.log +2 -2
- package/custom/imageGenerator.vue +1 -1
- package/dist/custom/imageGenerator.vue +1 -1
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -12,5 +12,5 @@ custom/preview.vue
|
|
|
12
12
|
custom/tsconfig.json
|
|
13
13
|
custom/uploader.vue
|
|
14
14
|
|
|
15
|
-
sent 68,
|
|
16
|
-
total size is 68,
|
|
15
|
+
sent 68,663 bytes received 153 bytes 137,632.00 bytes/sec
|
|
16
|
+
total size is 68,101 speedup is 0.99
|
|
@@ -210,7 +210,6 @@ import { callAdminForthApi } from '@/utils';
|
|
|
210
210
|
import { useI18n } from 'vue-i18n';
|
|
211
211
|
import adminforth from '@/adminforth';
|
|
212
212
|
import { ProgressBar } from '@/afcl';
|
|
213
|
-
import * as Handlebars from 'handlebars';
|
|
214
213
|
import { IconCloseOutline } from '@iconify-prerendered/vue-flowbite';
|
|
215
214
|
import { Tooltip, Skeleton } from '@/afcl'
|
|
216
215
|
import { useRoute } from 'vue-router';
|
|
@@ -245,6 +244,7 @@ onMounted(async () => {
|
|
|
245
244
|
}
|
|
246
245
|
// iterate over all variables in template and replace them with their values from props.record[field].
|
|
247
246
|
// if field is not present in props.record[field] then replace it with empty string and drop warning
|
|
247
|
+
const { default: Handlebars } = await import('handlebars');
|
|
248
248
|
const tpl = Handlebars.compile(template);
|
|
249
249
|
const compiledTemplate = tpl(props.record);
|
|
250
250
|
prompt.value = compiledTemplate;
|
|
@@ -210,7 +210,6 @@ import { callAdminForthApi } from '@/utils';
|
|
|
210
210
|
import { useI18n } from 'vue-i18n';
|
|
211
211
|
import adminforth from '@/adminforth';
|
|
212
212
|
import { ProgressBar } from '@/afcl';
|
|
213
|
-
import * as Handlebars from 'handlebars';
|
|
214
213
|
import { IconCloseOutline } from '@iconify-prerendered/vue-flowbite';
|
|
215
214
|
import { Tooltip, Skeleton } from '@/afcl'
|
|
216
215
|
import { useRoute } from 'vue-router';
|
|
@@ -245,6 +244,7 @@ onMounted(async () => {
|
|
|
245
244
|
}
|
|
246
245
|
// iterate over all variables in template and replace them with their values from props.record[field].
|
|
247
246
|
// if field is not present in props.record[field] then replace it with empty string and drop warning
|
|
247
|
+
const { default: Handlebars } = await import('handlebars');
|
|
248
248
|
const tpl = Handlebars.compile(template);
|
|
249
249
|
const compiledTemplate = tpl(props.record);
|
|
250
250
|
prompt.value = compiledTemplate;
|