adminforth 1.2.65 → 1.2.67

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/dist/index.js CHANGED
@@ -56,8 +56,9 @@ class AdminForth {
56
56
  pluginInstance.modifyResourceConfig(this, resource);
57
57
  const plugin = this.activatedPlugins.find((p) => p.pluginInstanceId === pluginInstance.pluginInstanceId);
58
58
  if (plugin) {
59
+ process.env.HEAVY_DEBUG && console.log(`Current plugin pluginInstance.pluginInstanceId ${pluginInstance.pluginInstanceId}`);
59
60
  throw new Error(`Attempt to activate Plugin ${pluginInstance.constructor.name} second time for same resource, but plugin does not support it.
60
- Tu support multiple plugin instance pre one resource, plugin should return unique string values for each installation from instanceUniqueRepresentation`);
61
+ To support multiple plugin instance pre one resource, plugin should return unique string values for each installation from instanceUniqueRepresentation`);
61
62
  }
62
63
  this.activatedPlugins.push(pluginInstance);
63
64
  }
package/index.ts CHANGED
@@ -84,8 +84,10 @@ class AdminForth implements IAdminForth {
84
84
  pluginInstance.modifyResourceConfig(this, resource);
85
85
  const plugin = this.activatedPlugins.find((p) => p.pluginInstanceId === pluginInstance.pluginInstanceId);
86
86
  if (plugin) {
87
+ process.env.HEAVY_DEBUG && console.log(`Current plugin pluginInstance.pluginInstanceId ${pluginInstance.pluginInstanceId}`);
88
+
87
89
  throw new Error(`Attempt to activate Plugin ${pluginInstance.constructor.name} second time for same resource, but plugin does not support it.
88
- Tu support multiple plugin instance pre one resource, plugin should return unique string values for each installation from instanceUniqueRepresentation`);
90
+ To support multiple plugin instance pre one resource, plugin should return unique string values for each installation from instanceUniqueRepresentation`);
89
91
  }
90
92
  this.activatedPlugins.push(pluginInstance);
91
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.2.65",
3
+ "version": "1.2.67",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="rounded-default">
3
3
  <div
4
- class="relative shadow-resourseFormShadow dark:shadow-darkResourseFormShadow sm:rounded-lg dark:shadow-2xl rounded-default"
4
+ class="relative overflow-hidden shadow-resourseFormShadow dark:shadow-darkResourseFormShadow sm:rounded-lg dark:shadow-2xl rounded-default"
5
5
  >
6
6
  <form autocomplete="off" @submit.prevent>
7
7
  <table class="w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400 ">
@@ -20,7 +20,8 @@
20
20
  <tbody>
21
21
  <tr v-for="column, i in editableColumns" :key="column.name"
22
22
  v-if="currentValues !== null"
23
- class="bg-ligftForm dark:bg-gray-800 border-b dark:border-gray-700 block md:table-row"
23
+ class="bg-ligftForm dark:bg-gray-800 dark:border-gray-700 block md:table-row"
24
+ :class="{ 'border-b': i !== editableColumns.length - 1 }"
24
25
  >
25
26
  <td class="px-6 py-4 sm:pb-0 whitespace-nowrap flex items-center block md:table-cell"> <!--align-top-->
26
27
  {{ column.label }}
@@ -58,8 +58,9 @@
58
58
  </tr>
59
59
  </thead>
60
60
  <tbody>
61
- <tr v-for="column in coreStore.resource?.columns.filter(c => c.showIn.includes('show'))" :key="column.name"
62
- class="bg-lightForm bg-darkForm odd:dark:bg-gray-900 even:dark:bg-gray-800 border-b dark:border-gray-700"
61
+ <tr v-for="column,i in coreStore.resource?.columns.filter(c => c.showIn.includes('show'))" :key="column.name"
62
+ class="bg-lightForm bg-darkForm odd:dark:bg-gray-900 even:dark:bg-gray-800 dark:border-gray-700"
63
+ :class="{ 'border-b': i !== coreStore.resource.columns.filter(c => c.showIn.includes('show')).length - 1 }"
63
64
  >
64
65
  <component
65
66
  v-if="column.components?.showRow"