biz9-logic 4.8.376 → 4.8.377

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 CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='8.5.6'
1
+ VERSION='8.5.7'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -211,6 +211,7 @@ class Type {
211
211
  {title:Type.get_title(DataType.PAGE),type:DataType.PAGE,label:Type.get_title(DataType.PAGE),value:DataType.PAGE},
212
212
  {title:Type.get_title(DataType.PRODUCT),type:DataType.PRODUCT,label:Type.get_title(DataType.PRODUCT),value:DataType.PRODUCT},
213
213
  {title:Type.get_title(DataType.SERVICE),type:DataType.SERVICE,label:Type.get_title(DataType.SERVICE),value:DataType.SERVICE}
214
+ {title:Type.get_title(DataType.TYPE),type:DataType.TYPE,label:Type.get_title(DataType.TYPE),value:DataType.TYPE}
214
215
  ]
215
216
  };
216
217
 
@@ -593,7 +594,7 @@ class Service_Logic {
593
594
  option = Field_Logic.get_option(DataType.SERVICE,option?option:{});
594
595
  let item_list = [];
595
596
  for(let a=0;a<option.service_count+1;a++){
596
- item_list.push(Service_Logic.get_test("Service "+String(parseInt(a+1))),option);
597
+ item_list.push(Service_Logic.get_test("Service "+String(parseInt(a+1)),option));
597
598
  }
598
599
  return item_list;
599
600
  }
@@ -1261,18 +1262,6 @@ class Category_Logic {
1261
1262
  }
1262
1263
  return category_list;
1263
1264
  };
1264
- static get_category_type_list = () => {
1265
- return [
1266
- {data_type:Type.PAGE_BLOG_POST,value:DataType.BLOG_POST,label:Title.PAGE_BLOG_POST},
1267
- {data_type:Type.PAGE_CATEGORY,value:DataType.CATEGORY,label:Title.PAGE_CATEGORY},
1268
- {data_type:Type.PAGE_CONTENT,value:DataType.CONTENT,label:Title.PAGE_CONTENT},
1269
- {data_type:Type.PAGE_EVENT,value:DataType.EVENT,label:Title.PAGE_EVENT},
1270
- {data_type:Type.PAGE_GALLERY,value:DataType.GALLERY,label:Title.PAGE_GALLERY},
1271
- {data_type:Type.PAGE_SERVICE,value:DataType.SERVICE,label:Title.PAGE_SERVICE},
1272
- {data_type:Type.PAGE_USER,value:DataType.USER,label:Title.PAGE_USER},
1273
- {data_type:Type.PAGE_PRODUCT,value:DataType.PRODUCT,label:Title.PAGE_PRODUCT},
1274
- ];
1275
- };
1276
1265
  };
1277
1266
  class Storage {
1278
1267
  static get = (window,key) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.376",
3
+ "version": "4.8.377",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const series = require('async-series');
2
- const {DataItem,DataType,Page_Logic,Type,Stat_Logic} = require('./index');
2
+ const {DataItem,DataType,Page_Logic,Product_Logic,Type,Stat_Logic,Service_Logic,Blog_Post_Logic,Event_Logic} = require('./index');
3
3
  const {Log,Num} = require('biz9-utility');
4
4
  const {Scriptz}= require('biz9-scriptz');
5
5
 
@@ -30,7 +30,8 @@ describe("connect", () => {
30
30
  series([
31
31
  function(call) {
32
32
  console.log('CONNECT-START');
33
- console.log(Stat_Logic.get_user_activity_filter({user_id:1}));
33
+ //console.log(Product_Logic.get_test_list());
34
+ console.log(Event_Logic.get_test_list());
34
35
  console.log('CONNECT-END');
35
36
  call();
36
37
  },