biz9-logic 10.0.16 → 10.0.18
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 -1
- package/package.json +1 -1
- package/test.js +2 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -18,6 +18,7 @@ class Message {
|
|
|
18
18
|
static USER_EMAIL_NEW_CONFIRM_BAD="The New and Confirm Email Dont Match.";
|
|
19
19
|
static USER_PASSWORD_NEW_CONFIRM_BAD="The New and Confirm Password Dont Match.";
|
|
20
20
|
static USER_PASSWORD_BAD="Please Enter A Valid Password.";
|
|
21
|
+
static USER_PASSWORD_NOT_VALID="Password must be between 7 and 15 characters long, have at least one uppercase and lowercase letter, and also contain at least one digit and one special character.";
|
|
21
22
|
static USER_EMAIL_NOT_UNIQUE="Email Not Availble. Please Choose Another.";
|
|
22
23
|
static USER_USERNAME_BAD="Please Enter A Valid Username.";
|
|
23
24
|
static USER_USERNAME_NOT_UNIQUE="Username Not Availble. Please Choose Another.";
|
|
@@ -37,7 +38,16 @@ class Item_Logic {
|
|
|
37
38
|
const item = DataItem.get_new(data_type,0,{title:title,title_url:Str.get_title_url(title),setting_visible:"1"});
|
|
38
39
|
return item;
|
|
39
40
|
};
|
|
40
|
-
|
|
41
|
+
static copy = (data_type,item)=>{
|
|
42
|
+
let copy_item = DataItem.get_new(data_type,0);
|
|
43
|
+
const keys = Object.keys(item);
|
|
44
|
+
keys.forEach(key => {
|
|
45
|
+
if(key!=Type.ID&&key!=Type.SOURCE&&key!=Type.TITLE&&key!=Type.TITLE_URL){
|
|
46
|
+
copy_item[key]=item[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
return copy_item;
|
|
50
|
+
};
|
|
41
51
|
static bind_child_parent_obj = (child_obj,parent_obj)=>{
|
|
42
52
|
for(const prop in parent_obj) {
|
|
43
53
|
child_obj['parent_'+prop] = parent_obj[prop];
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const series = require('async-series');
|
|
2
|
-
const {DataItem,DataType,Item_Logic,User_Logic,Page_Logic,Product_Logic,Type,Title,Stat_Logic,Service_Logic,Blog_Post_Logic,Event_Logic,Demo_Logic,Cart_Logic,Order_Logic,App_Logic,Field_Logic,Image_Logic} = require('./index');
|
|
2
|
+
const {DataItem,DataType,Item_Logic,User_Logic,Page_Logic,Product_Logic,Type,Title,Stat_Logic,Service_Logic,Blog_Post_Logic,Event_Logic,Demo_Logic,Cart_Logic,Order_Logic,App_Logic,Field_Logic,Image_Logic,Message} = require('./index');
|
|
3
3
|
const {Log,Num,Str} = require('biz9-utility');
|
|
4
4
|
const {Scriptz}= require('biz9-scriptz');
|
|
5
5
|
|
|
@@ -44,6 +44,7 @@ describe("connect", () => {
|
|
|
44
44
|
Log.w('88_image',image);
|
|
45
45
|
image = Image_Logic.get_new_by_base64(image);
|
|
46
46
|
Log.w('99_result',image);
|
|
47
|
+
Log.w('error_show',Message.USER_PASSWORD_NOT_VALID);
|
|
47
48
|
|
|
48
49
|
//Log.w('Title',Type.get_title(Type.ORDER_STATUS_NEW));
|
|
49
50
|
//Log.w('Title 2',Type.get_title(Type.ORDER_STATUS_COMPLETE));
|