biz9-logic 4.8.208 → 4.8.210

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.
Files changed (3) hide show
  1. package/biz9_config +1 -1
  2. package/index.js +7 -16
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='6.8.8'
1
+ VERSION='6.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
@@ -4,16 +4,19 @@ Author: certifiedcoderz@gmail.com (Certified CoderZ)
4
4
  License GNU General Public License v3.0
5
5
  Description: BiZ9 Framework: Logic-JS
6
6
  */
7
- const moment = require('moment'); 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');
7
+ const moment = require('moment');
8
+ 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');
8
9
  const { Log,Str,DateTime,Num,Obj } = require('/home/think2/www/doqbox/biz9-framework/biz9-utility/code');
9
10
  class Message {
10
11
  static SUCCESS="Success";
12
+ static CONFIRM="Are You Sure?";
11
13
 
12
14
  static USER_LOGIN_SUCCESS="Login Success";
13
15
  static USER_LOGIN_BAD="Login Incorrect";
14
16
  static USER_REGISTER_SUCCESS="Register Success";
15
17
  static USER_REGISTER_BAD="Register Fail";
16
18
  static USER_EMAIL_NOT_VALID="Please Enter A Valid Email.";
19
+ static USER_EMAIL_NEW_CONFIRM_BAD="The New and Confirm Email Dont Match.";
17
20
  static USER_PASSWORD_NOT_VALID="Please Enter A Valid Password.";
18
21
  static USER_EMAIL_NOT_UNIQUE="E-mail Not Availble. Please Choose Another.";
19
22
  static USER_USERNAME_NOT_VALID="Please Enter A Valid Username.";
@@ -796,6 +799,9 @@ class FieldType {
796
799
  static ENVIRONMENT_TEST="test";
797
800
  static ENVIRONMENT_STAGE="stage";
798
801
  static ENVIRONMENT_PRODUCTION="production";
802
+
803
+ static ACTIVITY_TYPE_LOGIN="login";
804
+ static ACTIVITY_TYPE_REGISTER="register";
799
805
  }
800
806
  class Social {
801
807
  static FACEBOOK_URL="https://facebook.com/";
@@ -1079,24 +1085,9 @@ class Favorite_Logic {
1079
1085
  const item_match = item_list.find(item_find => item_find.id === item.parent_id);
1080
1086
  if (item_match) {
1081
1087
  item_match.is_favorite = true;
1082
- console.log('aaaaaaa');
1083
- console.log(item_match);
1084
- console.log('bbbbbb');
1085
1088
  }
1086
1089
  });
1087
1090
  return item_list;
1088
-
1089
- /*
1090
- for(let a = 0; a<item_list.length; a++){
1091
- item_list[a].is_favorite = false;
1092
- for(let b = 0; b<favorite_list.length; b++){
1093
- if(item_list[a].id == favorite_list[b].parent_id){
1094
- item_list[a].is_favorite = true;
1095
- }
1096
- }
1097
- }
1098
- */
1099
- return item_list;
1100
1091
  }
1101
1092
  static get_user_search_filter = (parent_data_type,user_id) =>{
1102
1093
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.208",
3
+ "version": "4.8.210",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"