biz9-logic 4.8.352 → 4.8.354
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/biz9_config +1 -1
- package/index.js +25 -24
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -261,9 +261,9 @@ class Type {
|
|
|
261
261
|
static IMAGE_SIZE_SQUARE_LARGE="squre_large";
|
|
262
262
|
|
|
263
263
|
//re_size
|
|
264
|
-
static
|
|
265
|
-
static
|
|
266
|
-
static
|
|
264
|
+
static IMAGE_RESIZE_NORMAL="normal";
|
|
265
|
+
static IMAGE_RESIZE_SQUARE="squre";
|
|
266
|
+
static IMAGE_RESIZE_NONE="none";
|
|
267
267
|
|
|
268
268
|
static get_title = (type,option)=>{
|
|
269
269
|
/* option
|
|
@@ -272,6 +272,7 @@ class Type {
|
|
|
272
272
|
* get_url = ex. true,false / def. false
|
|
273
273
|
*/
|
|
274
274
|
let r_type = "";
|
|
275
|
+
option = option ? option : {get_lowercase:false,get_plural:false,get_url:false};
|
|
275
276
|
switch(type){
|
|
276
277
|
case Type.STAT_VIEW:
|
|
277
278
|
return "View";
|
|
@@ -1629,46 +1630,46 @@ class Image_Logic {
|
|
|
1629
1630
|
image_filename = image_filename ? image_filename : "";
|
|
1630
1631
|
return [
|
|
1631
1632
|
{
|
|
1632
|
-
image_filename:Type.
|
|
1633
|
-
path_filename:upload_dir+"/"+Type.
|
|
1633
|
+
image_filename:Type.IMAGE_SIZE_ORIGINAL+"_"+image_filename,
|
|
1634
|
+
path_filename:upload_dir+"/"+Type.IMAGE_SIZE_ORIGINAL+"_"+image_filename,
|
|
1634
1635
|
size:0,
|
|
1635
|
-
type_resize:Type.
|
|
1636
|
+
type_resize:Type.IMAGE_RESIZE_NONE,
|
|
1636
1637
|
},
|
|
1637
1638
|
{
|
|
1638
|
-
image_filename:Type.
|
|
1639
|
-
path_filename:upload_dir+"/"+Image_Logic.Type.
|
|
1639
|
+
image_filename:Type.IMAGE_SIZE_THUMB+"_"+image_filename,
|
|
1640
|
+
path_filename:upload_dir+"/"+Image_Logic.Type.IMAGE_SIZE_THUMB+"_"+image_filename,
|
|
1640
1641
|
size:250,
|
|
1641
|
-
type_resize:Image_Logic.Type.
|
|
1642
|
+
type_resize:Image_Logic.Type.IMAGE_RESIZE_NORMAL,
|
|
1642
1643
|
},
|
|
1643
1644
|
{
|
|
1644
|
-
image_filename:Image_Logic.Type.
|
|
1645
|
-
path_filename:upload_dir+"/"+Image_Logic.Type.
|
|
1645
|
+
image_filename:Image_Logic.Type.IMAGE_SIZE_MID+"_"+image_filename,
|
|
1646
|
+
path_filename:upload_dir+"/"+Image_Logic.Type.IMAGE_SIZE_MID+"_"+image_filename,
|
|
1646
1647
|
size:720,
|
|
1647
|
-
type_resize:Image_Logic.Type.
|
|
1648
|
+
type_resize:Image_Logic.Type.IMAGE_RESIZE_NORMAL,
|
|
1648
1649
|
},
|
|
1649
1650
|
{
|
|
1650
|
-
image_filename:Image_Logic.Type.
|
|
1651
|
-
path_filename:upload_dir+"/"+Image_Logic.Type.
|
|
1651
|
+
image_filename:Image_Logic.Type.IMAGE_SIZE_LARGE+"_"+image_filename,
|
|
1652
|
+
path_filename:upload_dir+"/"+Image_Logic.Type.IMAGE_SIZE_LARGE+"_"+image_filename,
|
|
1652
1653
|
size:1000,
|
|
1653
|
-
type_resize:Image_Logic.Type.
|
|
1654
|
+
type_resize:Image_Logic.Type.IMAGE_RESIZE_NORMAL,
|
|
1654
1655
|
},
|
|
1655
1656
|
{
|
|
1656
|
-
image_filename:Image_Logic.Type.
|
|
1657
|
-
path_filename:upload_dir+"/"+Image_Logic.Type.
|
|
1657
|
+
image_filename:Image_Logic.Type.IMAGE_SIZE_SQUARE_THUMB+"_"+image_filename,
|
|
1658
|
+
path_filename:upload_dir+"/"+Image_Logic.Type.IMAGE_SIZE_SQUARE_THUMB+"_"+image_filename,
|
|
1658
1659
|
size:250,
|
|
1659
|
-
type_resize:Image_Logic.Type.
|
|
1660
|
+
type_resize:Image_Logic.Type.IMAGE_RESIZE_SQUARE,
|
|
1660
1661
|
},
|
|
1661
1662
|
{
|
|
1662
|
-
image_filename:Image_Logic.Type.
|
|
1663
|
-
path_filename:upload_dir+"/"+Image_Logic.Type.
|
|
1663
|
+
image_filename:Image_Logic.Type.IMAGE_SIZE_SQUARE_MID+"_"+image_filename,
|
|
1664
|
+
path_filename:upload_dir+"/"+Image_Logic.Type.IMAGE_SIZE_SQUARE_MID+"_"+image_filename,
|
|
1664
1665
|
size:720,
|
|
1665
|
-
type_resize:Image_Logic.Type.
|
|
1666
|
+
type_resize:Image_Logic.Type.IMAGE_RESIZE_SQUARE,
|
|
1666
1667
|
},
|
|
1667
1668
|
{
|
|
1668
|
-
image_filename:Image_Logic.Type.
|
|
1669
|
-
path_filename:upload_dir+"/"+Image_Logic.Type.
|
|
1669
|
+
image_filename:Image_Logic.Type.IMAGE_SIZE_SQUARE_LARGE+"_"+image_filename,
|
|
1670
|
+
path_filename:upload_dir+"/"+Image_Logic.Type.IMAGE_SIZE_SQUARE_LARGE+"_"+image_filename,
|
|
1670
1671
|
size:1000,
|
|
1671
|
-
type_resize:Image_Logic.Type.
|
|
1672
|
+
type_resize:Image_Logic.Type.IMAGE_RESIZE_SQUARE,
|
|
1672
1673
|
},
|
|
1673
1674
|
];
|
|
1674
1675
|
}
|