@adminforth/upload 2.15.13 → 2.15.15

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 CHANGED
@@ -12,5 +12,5 @@ custom/preview.vue
12
12
  custom/tsconfig.json
13
13
  custom/uploader.vue
14
14
 
15
- sent 68,643 bytes received 153 bytes 137,592.00 bytes/sec
16
- total size is 68,081 speedup is 0.99
15
+ sent 68,748 bytes received 153 bytes 137,802.00 bytes/sec
16
+ total size is 68,186 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;
@@ -7,8 +7,13 @@
7
7
 
8
8
  <button v-if="meta.generateImages"
9
9
  type="button" @click="showImageGen = true"
10
- class="text-white bg-gradient-to-r from-purple-500 via-purple-600 to-purple-700 hover:bg-gradient-to-br focus:ring-4 focus:outline-none focus:ring-purple-300 dark:focus:ring-purple-800
11
- font-medium rounded-lg text-sm px-2.5 py-2.5 text-center me-2 mb-2 absolute right-0 top-2">
10
+ class="
11
+ text-white bg-lightPrimary font-medium text-center rounded-default text-sm px-2.5 py-2.5 me-2
12
+ absolute right-0 top-2
13
+ focus:ring-4 focus:outline-none focus:ring-purple-300
14
+ hover:bg-lightPrimary/80
15
+ dark:focus:ring-purple-800 dark:bg-darkPrimary dark:hover:bg-darkPrimary/80 dark:focus:ring-purple-800
16
+ ">
12
17
  <IconMagic class="w-5 h-5"/>
13
18
  </button>
14
19
 
@@ -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;
@@ -7,8 +7,13 @@
7
7
 
8
8
  <button v-if="meta.generateImages"
9
9
  type="button" @click="showImageGen = true"
10
- class="text-white bg-gradient-to-r from-purple-500 via-purple-600 to-purple-700 hover:bg-gradient-to-br focus:ring-4 focus:outline-none focus:ring-purple-300 dark:focus:ring-purple-800
11
- font-medium rounded-lg text-sm px-2.5 py-2.5 text-center me-2 mb-2 absolute right-0 top-2">
10
+ class="
11
+ text-white bg-lightPrimary font-medium text-center rounded-default text-sm px-2.5 py-2.5 me-2
12
+ absolute right-0 top-2
13
+ focus:ring-4 focus:outline-none focus:ring-purple-300
14
+ hover:bg-lightPrimary/80
15
+ dark:focus:ring-purple-800 dark:bg-darkPrimary dark:hover:bg-darkPrimary/80 dark:focus:ring-purple-800
16
+ ">
12
17
  <IconMagic class="w-5 h-5"/>
13
18
  </button>
14
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/upload",
3
- "version": "2.15.13",
3
+ "version": "2.15.15",
4
4
  "description": "Plugin for uploading files for adminforth",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",