adminforth 2.4.0-next.301 → 2.4.0-next.303

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.
@@ -31,6 +31,6 @@
31
31
  "@types/express": "latest",
32
32
  "@types/node": "latest",
33
33
  "@prisma/client": "latest",
34
- "prisma": "latest"
34
+ "prisma": "^7.0.0"
35
35
  }
36
36
  }
@@ -0,0 +1,8 @@
1
+ import 'dotenv/config'
2
+ import { defineConfig, env } from 'prisma/config'
3
+
4
+ export default defineConfig({
5
+ datasource: {
6
+ url: env('PRISMA_DATABASE_URL'),
7
+ },
8
+ })
@@ -4,7 +4,6 @@ generator client {
4
4
 
5
5
  datasource db {
6
6
  provider = "{{provider}}"
7
- url = env("PRISMA_DATABASE_URL")
8
7
  }
9
8
 
10
9
  model adminuser {
@@ -222,6 +222,11 @@ async function writeTemplateFiles(dirname, cwd, options) {
222
222
  data: { provider },
223
223
  condition: Boolean(prismaDbUrl), // only create if prismaDbUrl is truthy
224
224
  },
225
+ {
226
+ src: 'prisma.config.ts.hbs',
227
+ dest: 'prisma.config.ts',
228
+ data: {},
229
+ },
225
230
  {
226
231
  src: 'package.json.hbs',
227
232
  dest: 'package.json',
@@ -57,6 +57,7 @@
57
57
  'afcl-table-body odd:bg-lightTableOddBackground odd:dark:bg-darkTableOddBackground even:bg-lightTableEvenBackground even:dark:bg-darkTableEvenBackground': evenHighlights,
58
58
  'border-b border-lightTableBorder dark:border-darkTableBorder': index !== dataPage.length - 1 || totalPages > 1,
59
59
  }"
60
+ @click="tableRowClick(item)"
60
61
  >
61
62
  <td class="px-6 py-4" :key="`cell-${index}-${column.fieldName}`"
62
63
  v-for="column in props.columns"
@@ -242,6 +243,7 @@
242
243
  'update:sortField',
243
244
  'update:sortDirection',
244
245
  'sort-change',
246
+ 'clickTableRow'
245
247
  ]);
246
248
 
247
249
  function onPageInput(event: any) {
@@ -349,4 +351,8 @@ function sortArrayData(data:any[], sortField?:string, dir:'asc'|'desc'='asc') {
349
351
  return dir === 'asc' ? cmp : -cmp;
350
352
  });
351
353
  }
354
+
355
+ function tableRowClick(row) {
356
+ emit("clickTableRow", row)
357
+ }
352
358
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.4.0-next.301",
3
+ "version": "2.4.0-next.303",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",