biz9-logic 4.8.208 → 4.8.211
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 +11 -20
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -4,19 +4,22 @@ 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');
|
|
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
|
-
static
|
|
17
|
-
static
|
|
18
|
-
static
|
|
19
|
-
static
|
|
18
|
+
static USER_EMAIL_BAD="Please Enter A Valid Email.";
|
|
19
|
+
static USER_EMAIL_NEW_CONFIRM_BAD="The New and Confirm Email Dont Match.";
|
|
20
|
+
static USER_PASSWORD_BAD="Please Enter A Valid Password.";
|
|
21
|
+
static USER_EMAIL_NOT_UNIQUE="Email Not Availble. Please Choose Another.";
|
|
22
|
+
static USER_USERNAME_BAD="Please Enter A Valid Username.";
|
|
20
23
|
static USER_USERNAME_NOT_UNIQUE="Username Not Availble. Please Choose Another.";
|
|
21
24
|
|
|
22
25
|
static DATA_NOT_FOUND="Data Not Found.";
|
|
@@ -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 {
|