@mixd-id/web-scaffold 0.1.230406013 → 0.1.230406014
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/package.json
CHANGED
|
@@ -321,7 +321,7 @@ export default{
|
|
|
321
321
|
formatColumn(item, column){
|
|
322
322
|
|
|
323
323
|
let value
|
|
324
|
-
if(column.key.indexOf('.') > -1){
|
|
324
|
+
if((column.key ?? '').toString().indexOf('.') > -1){
|
|
325
325
|
const columnKeys = column.key.split('.')
|
|
326
326
|
const columnAs = columnKeys[0]
|
|
327
327
|
const columnKey = columnKeys[1]
|
|
@@ -448,6 +448,10 @@ export default{
|
|
|
448
448
|
width: 100%;
|
|
449
449
|
}
|
|
450
450
|
|
|
451
|
+
.table tr{
|
|
452
|
+
vertical-align: top;
|
|
453
|
+
}
|
|
454
|
+
|
|
451
455
|
.table th{
|
|
452
456
|
@apply relative text-left;
|
|
453
457
|
}
|
package/src/utils/helpers.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const md5 = require("md5");
|
|
2
2
|
const fs = require("fs");
|
|
3
3
|
const { Op } = module.parent.require('sequelize')
|
|
4
|
+
const axios = module.parent.require('axios')
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
const ceil = (num, precision = 0) => {
|
|
@@ -96,7 +97,7 @@ const saveBuffer = async(buffer, dir = '/storage/files/images') => {
|
|
|
96
97
|
|
|
97
98
|
const type = await fileTypeFromBuffer(buffer)
|
|
98
99
|
|
|
99
|
-
const storagePath = process.env.ROOT_PATH +
|
|
100
|
+
const storagePath = process.env.ROOT_PATH + dir
|
|
100
101
|
const ext = type && type.ext ? '.' + type.ext : ''
|
|
101
102
|
const filename = md5(buffer) + ext
|
|
102
103
|
const to = storagePath + '/' + filename
|
package/src/utils/listpage1.js
CHANGED
|
@@ -477,6 +477,13 @@ let ListPage1 = {
|
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
+
if(typeof this['loadFilters'] === 'function'){
|
|
481
|
+
where = {
|
|
482
|
+
...where,
|
|
483
|
+
...(await this['loadFilters']() ?? {})
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
480
487
|
if(preset.sorts){
|
|
481
488
|
const { order:presetOrder } = this.getPresetSortParams(preset, includes)
|
|
482
489
|
if(presetOrder){
|