biz9-logic 4.8.298 → 4.8.299
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 +6 -12
- package/package.json +1 -1
- package/test.js +6 -5
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -5,7 +5,6 @@ License GNU General Public License v3.0
|
|
|
5
5
|
Description: BiZ9 Framework: Logic-JS
|
|
6
6
|
*/
|
|
7
7
|
const moment = require('moment');
|
|
8
|
-
const path = require('path');
|
|
9
8
|
const { exec } = require('child_process');
|
|
10
9
|
const sharp = require('sharp');
|
|
11
10
|
const { get_new_item_main,get_data_config_main,get_cloud_url_main,get_biz_item_main,get_cloud_filter_obj_main,get_new_full_item_main } = require('./main');
|
|
@@ -2030,13 +2029,12 @@ class Image_Logic {
|
|
|
2030
2029
|
});
|
|
2031
2030
|
}
|
|
2032
2031
|
});
|
|
2033
|
-
|
|
2034
2032
|
}
|
|
2035
2033
|
static get_process_list = (upload_dir,image_filename) =>{
|
|
2036
2034
|
return [
|
|
2037
2035
|
{
|
|
2038
2036
|
image_filename:FieldType.IMAGE_SIZE_THUMB+"_"+image_filename,
|
|
2039
|
-
path_filename:
|
|
2037
|
+
path_filename:upload_dir+"/"+FieldType.IMAGE_SIZE_THUMB+"_"+image_filename,
|
|
2040
2038
|
size:250,
|
|
2041
2039
|
is_square:false,
|
|
2042
2040
|
post_file:false,
|
|
@@ -2044,7 +2042,7 @@ class Image_Logic {
|
|
|
2044
2042
|
},
|
|
2045
2043
|
{
|
|
2046
2044
|
image_filename:FieldType.IMAGE_SIZE_MID+"_"+image_filename,
|
|
2047
|
-
path_filename:
|
|
2045
|
+
path_filename:upload_dir+"/"+FieldType.IMAGE_SIZE_MID+"_"+image_filename,
|
|
2048
2046
|
size:720,
|
|
2049
2047
|
is_square:false,
|
|
2050
2048
|
post_file:false,
|
|
@@ -2052,7 +2050,7 @@ class Image_Logic {
|
|
|
2052
2050
|
},
|
|
2053
2051
|
{
|
|
2054
2052
|
image_filename:FieldType.IMAGE_SIZE_LARGE+"_"+image_filename,
|
|
2055
|
-
path_filename:
|
|
2053
|
+
path_filename:upload_dir+"/"+FieldType.IMAGE_SIZE_LARGE+"_"+image_filename,
|
|
2056
2054
|
size:1000,
|
|
2057
2055
|
is_square:false,
|
|
2058
2056
|
post_file:false,
|
|
@@ -2060,7 +2058,7 @@ class Image_Logic {
|
|
|
2060
2058
|
},
|
|
2061
2059
|
{
|
|
2062
2060
|
image_filename:FieldType.IMAGE_SIZE_SQUARE_THUMB+"_"+image_filename,
|
|
2063
|
-
path_filename:
|
|
2061
|
+
path_filename:upload_dir+"/"+FieldType.IMAGE_SIZE_SQUARE_THUMB+"_"+image_filename,
|
|
2064
2062
|
size:250,
|
|
2065
2063
|
is_square:true,
|
|
2066
2064
|
post_file:false,
|
|
@@ -2068,7 +2066,7 @@ class Image_Logic {
|
|
|
2068
2066
|
},
|
|
2069
2067
|
{
|
|
2070
2068
|
image_filename:FieldType.IMAGE_SIZE_SQUARE_MID+"_"+image_filename,
|
|
2071
|
-
path_filename:
|
|
2069
|
+
path_filename:upload_dir+"/"+FieldType.IMAGE_SIZE_SQUARE_MID+"_"+image_filename,
|
|
2072
2070
|
size:720,
|
|
2073
2071
|
is_square:true,
|
|
2074
2072
|
post_file:false,
|
|
@@ -2076,7 +2074,7 @@ class Image_Logic {
|
|
|
2076
2074
|
},
|
|
2077
2075
|
{
|
|
2078
2076
|
image_filename:FieldType.IMAGE_SIZE_SQUARE_LARGE+"_"+image_filename,
|
|
2079
|
-
path_filename:
|
|
2077
|
+
path_filename:upload_dir+"/"+FieldType.IMAGE_SIZE_SQUARE_LARGE+"_"+image_filename,
|
|
2080
2078
|
size:1000,
|
|
2081
2079
|
is_square:true,
|
|
2082
2080
|
post_file:false,
|
|
@@ -2084,10 +2082,6 @@ class Image_Logic {
|
|
|
2084
2082
|
},
|
|
2085
2083
|
];
|
|
2086
2084
|
}
|
|
2087
|
-
static get_process_square_list = (upload_dir,image_filename,path) =>{
|
|
2088
|
-
return [
|
|
2089
|
-
];
|
|
2090
|
-
}
|
|
2091
2085
|
}
|
|
2092
2086
|
module.exports = {
|
|
2093
2087
|
App_Logic,
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const series = require('async-series');
|
|
3
|
-
const {DataItem,DataType,Url,Obj,BiZ_Url,Cat,Stock,Schedule,Storage,Business,Product,Service,Event,Template,Page,Category,Review,Blog_Post,Faq_Logic,Category_Url,Blank_Url,Blank_Logic,Item_Logic,Service_Logic,Template_Logic,Page_Logic,Product_Logic,Event_Logic,Blog_Post_Logic,Content_Logic,Category_Logic,Team_Logic,Business_Logic,PageType,Sub_Item_Logic,Page_Url,Review_Logic,User_Logic,Field_Logic,Order_Logic,Cart_Logic,Faq_Url,App_Logic,FieldType,Product_Url,Gallery_Logic} = require('./index');
|
|
3
|
+
const {DataItem,DataType,Url,Obj,BiZ_Url,Cat,Stock,Schedule,Storage,Business,Product,Service,Event,Template,Page,Category,Review,Blog_Post,Faq_Logic,Category_Url,Blank_Url,Blank_Logic,Item_Logic,Service_Logic,Template_Logic,Page_Logic,Product_Logic,Event_Logic,Blog_Post_Logic,Content_Logic,Category_Logic,Team_Logic,Business_Logic,PageType,Sub_Item_Logic,Page_Url,Review_Logic,User_Logic,Field_Logic,Order_Logic,Cart_Logic,Faq_Url,App_Logic,FieldType,Product_Url,Gallery_Logic,Image_Logic} = require('./index');
|
|
4
4
|
const {Log,Num} = require('biz9-utility');
|
|
5
5
|
const {Scriptz}= require('biz9-scriptz');
|
|
6
6
|
|
|
@@ -36,17 +36,18 @@ describe("connect", () => {
|
|
|
36
36
|
//console.log(gallery);
|
|
37
37
|
//console.log('ITEM-END');
|
|
38
38
|
console.log('cool');
|
|
39
|
-
console.log(
|
|
39
|
+
console.log(Image_Logic.get_process_list('upload/photos','apple'));
|
|
40
|
+
//console.log(DataType.get_title(DataType.TEMPLATE,true));
|
|
40
41
|
//console.log(FieldType.get_title(FieldType.USER_ROLE_ADMIN));
|
|
41
|
-
console.log('bbbbbb');
|
|
42
|
-
let page = Page_Logic.get_test();
|
|
42
|
+
//console.log('bbbbbb');
|
|
43
|
+
//let page = Page_Logic.get_test();
|
|
43
44
|
//page[Item_Logic.get_field_value_title(FieldType.ITEM_FIELD_VALUE_TYPE_TEXT,1)] = 'apple';
|
|
44
45
|
//page[Item_Logic.get_field_value_title(FieldType.ITEM_FIELD_VALUE_TYPE_LIST,1,1)] = 'cool';
|
|
45
46
|
//page[Item_Logic.get_field_value_title('list',1,2)] = 'apple';
|
|
46
47
|
//page[Item_Logic.get_field_value_title('list',1,3)] = 'sauce';
|
|
47
48
|
//Log.w('page',page);
|
|
48
49
|
//Log.w('text_1_value',Item_Logic.get_field_value_value(FieldType.ITEM_FIELD_VALUE_TYPE_TEXT,page,1));
|
|
49
|
-
Log.w('list_1_value',Item_Logic.get_field_value_value(FieldType.ITEM_FIELD_VALUE_TYPE_LIST,page,1));
|
|
50
|
+
//Log.w('list_1_value',Item_Logic.get_field_value_value(FieldType.ITEM_FIELD_VALUE_TYPE_LIST,page,1));
|
|
50
51
|
|
|
51
52
|
|
|
52
53
|
//console.log(Page_Logic.get_page_value_field_title('text',1));
|