zet-lib 1.2.95 → 1.2.96

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.
Files changed (2) hide show
  1. package/lib/zRoute.js +6 -0
  2. package/package.json +1 -1
package/lib/zRoute.js CHANGED
@@ -966,6 +966,12 @@ zRoute.dataTableData = (key, value, MYMODEL, relations, myid = '') => {
966
966
  myvalue = Util.fileView('/uploads/' + MYMODEL.routeName + '/', value)
967
967
  break
968
968
 
969
+ case 'dropzone':
970
+ if (myvalue && myvalue.length > 0) {
971
+ myvalue = value.map((item) => `<a class="text-success" target="_blank" href="/uploads/${MYMODEL.routeName}/${key}/${item}"> ${item.substring(13)}</a> `)
972
+ }
973
+ break
974
+
969
975
  case 'password':
970
976
  myvalue = 'xxxxxx'
971
977
  break
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.2.95",
3
+ "version": "1.2.96",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"