biz9-logic 4.8.206 → 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 +11 -16
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='6.8.6'
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.";
@@ -792,6 +795,13 @@ class FieldType {
792
795
  static DATA_SOURCE_DATABASE="database";
793
796
  static DATA_SOURCE_SERVER="server";
794
797
  static DATA_SOURCE_NOT_FOUND="not_found";
798
+
799
+ static ENVIRONMENT_TEST="test";
800
+ static ENVIRONMENT_STAGE="stage";
801
+ static ENVIRONMENT_PRODUCTION="production";
802
+
803
+ static ACTIVITY_TYPE_LOGIN="login";
804
+ static ACTIVITY_TYPE_REGISTER="register";
795
805
  }
796
806
  class Social {
797
807
  static FACEBOOK_URL="https://facebook.com/";
@@ -1075,24 +1085,9 @@ class Favorite_Logic {
1075
1085
  const item_match = item_list.find(item_find => item_find.id === item.parent_id);
1076
1086
  if (item_match) {
1077
1087
  item_match.is_favorite = true;
1078
- console.log('aaaaaaa');
1079
- console.log(item_match);
1080
- console.log('bbbbbb');
1081
1088
  }
1082
1089
  });
1083
1090
  return item_list;
1084
-
1085
- /*
1086
- for(let a = 0; a<item_list.length; a++){
1087
- item_list[a].is_favorite = false;
1088
- for(let b = 0; b<favorite_list.length; b++){
1089
- if(item_list[a].id == favorite_list[b].parent_id){
1090
- item_list[a].is_favorite = true;
1091
- }
1092
- }
1093
- }
1094
- */
1095
- return item_list;
1096
1091
  }
1097
1092
  static get_user_search_filter = (parent_data_type,user_id) =>{
1098
1093
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.206",
3
+ "version": "4.8.210",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"