biz9-logic 4.8.308 → 4.8.310

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='7.8.8'
1
+ VERSION='7.9.0'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -857,21 +857,6 @@ class FieldType {
857
857
  static IMAGE_SIZE_SQUARE_THUMB="squre_thumb";
858
858
  static IMAGE_SIZE_SQUARE_MID="squre_mid";
859
859
  static IMAGE_SIZE_SQUARE_LARGE="squre_large";
860
-
861
- static get_title(field_type){
862
- switch(field_type){
863
- case FieldType.USER_ROLE_SUPER_ADMIN:
864
- return "Super Admin";
865
- case FieldType.USER_ROLE_ADMIN:
866
- return "Admin";
867
- case FieldType.USER_ROLE_MANAGER:
868
- return "Manager";
869
- case FieldType.USER_ROLE_USER:
870
- return "User";
871
- case FieldType.USER_ROLE_GUEST:
872
- return "Guest";
873
- }
874
- }
875
860
  }
876
861
  class Social {
877
862
  static FACEBOOK_URL="https://facebook.com/";
@@ -1292,7 +1277,7 @@ class Item_Url {
1292
1277
  return get_cloud_url_main(app_id,url,action_url,param);
1293
1278
  };
1294
1279
  static post_favorite = (app_id,url,parent_data_type,parent_item_id,param) => {
1295
- let action_url="item/post_favorite"+parent_data_type+"/"+parent_item_id;
1280
+ let action_url="item/post_favorite/"+parent_data_type+"/"+parent_item_id;
1296
1281
  return get_cloud_url_main(app_id,url,action_url,param);
1297
1282
  };
1298
1283
  static post_field_value = (app_id,url,item_data_type,parent_item_id,value_id,param) => {
@@ -1747,7 +1732,7 @@ class User_Logic {
1747
1732
  return "Super Admin";
1748
1733
  case FieldType.USER_ROLE_ADMIN:
1749
1734
  return "Admin";
1750
- case FieldType.USER_ROLE_Manager:
1735
+ case FieldType.USER_ROLE_MANAGER:
1751
1736
  return "Manager";
1752
1737
  case FieldType.USER_ROLE_USER:
1753
1738
  return "User";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.308",
3
+ "version": "4.8.310",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -38,7 +38,7 @@ describe("connect", () => {
38
38
  //console.log('cool');
39
39
  //console.log(Image_Logic.get_process_list('upload/photos','apple'));
40
40
  //console.log(DataType.get_title(DataType.TEMPLATE,true));
41
- //console.log(FieldType.get_title(FieldType.USER_ROLE_ADMIN));
41
+ console.log(User_Logic.get_role_title(FieldType.USER_ROLE_MANAGER));
42
42
  //console.log('bbbbbb');
43
43
  //let page = Page_Logic.get_test();
44
44
  //page[Item_Logic.get_field_value_title(FieldType.ITEM_FIELD_VALUE_TYPE_TEXT,1)] = 'apple';
@@ -141,10 +141,9 @@ describe("connect", () => {
141
141
 
142
142
 
143
143
  /* --USER--START */
144
- console.log('aaaaa');
145
- let user = {country:"United States",state:"Michigan",city:"cccccccccdddd"};
146
- let country_state = User_Logic.get_country_state_city(user);
147
- Log.w('country_state',country_state);
144
+ //let user = {country:"United States",state:"Michigan",city:"cccccccccdddd"};
145
+ //let country_state = User_Logic.get_country_state_city(user);
146
+ //Log.w('country_state',country_state);
148
147
  //let user = User_Logic.get_test();
149
148
  //let user_list = User_Logic.get_test_list();
150
149
  //Log.w('user',user);