biz9-logic 4.8.188 → 4.8.189
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 +38 -44
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -742,7 +742,6 @@ class FieldType {
|
|
|
742
742
|
static KEY_BUSINESS="key_business";
|
|
743
743
|
static KEY_TEMPLATE="key_template";
|
|
744
744
|
static KEY_CART="key_cart";
|
|
745
|
-
static KEY_GUEST="key_guest";
|
|
746
745
|
static KEY_ORDER="key_order";
|
|
747
746
|
static KEY_USER="key_user";
|
|
748
747
|
|
|
@@ -779,13 +778,6 @@ class Social {
|
|
|
779
778
|
static LINKEDIN_URL="https://linkedin.com/";
|
|
780
779
|
}
|
|
781
780
|
class PageType {
|
|
782
|
-
static get_title = (data_type) => {
|
|
783
|
-
if(!data_type){
|
|
784
|
-
return "";
|
|
785
|
-
}else{
|
|
786
|
-
return String(Str.get_title(data_type.replaceAll('_',' '))).trim();
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
781
|
static HOME='home';
|
|
790
782
|
static ABOUT='about';
|
|
791
783
|
static CONTACT='contact';
|
|
@@ -858,6 +850,42 @@ class PageType {
|
|
|
858
850
|
static VALUE_19='value_19';
|
|
859
851
|
}
|
|
860
852
|
class DataType {
|
|
853
|
+
static ACTIVITY='activity_biz';
|
|
854
|
+
static APP='app_biz';
|
|
855
|
+
static BLANK='blank_biz';
|
|
856
|
+
static BUSINESS='business_biz';
|
|
857
|
+
static BLOG_POST='blog_post_biz';
|
|
858
|
+
static CART_ITEM="cart_item_biz";
|
|
859
|
+
static CATEGORY='category_biz';
|
|
860
|
+
static CUSTOM_FIELD='custom_field_biz';
|
|
861
|
+
static CONTENT='content_biz';
|
|
862
|
+
static EVENT='event_biz';
|
|
863
|
+
static FAQ='faq_biz';
|
|
864
|
+
static FAVORITE='favorite_biz';
|
|
865
|
+
static GALLERY='gallery_biz';
|
|
866
|
+
static ITEM_MAP='item_map_biz';
|
|
867
|
+
static ITEM='item_biz';
|
|
868
|
+
|
|
869
|
+
static CART="cart_biz";
|
|
870
|
+
static CART_ITEM="cart_item_biz";
|
|
871
|
+
static CART_SUB_ITEM="cart_sub_item_biz";
|
|
872
|
+
|
|
873
|
+
static ORDER="order_biz";
|
|
874
|
+
static ORDER_ITEM="order_item_biz";
|
|
875
|
+
static ORDER_SUB_ITEM="order_sub_item_biz";
|
|
876
|
+
static ORDER_PAYMENT="order_payment_biz";
|
|
877
|
+
|
|
878
|
+
static PROJECT='project_biz';
|
|
879
|
+
static PRODUCT='product_biz';
|
|
880
|
+
static PHOTO='photo_biz';
|
|
881
|
+
static PAGE='page_biz';
|
|
882
|
+
static REVIEW='review_biz';
|
|
883
|
+
static SERVICE='service_biz';
|
|
884
|
+
static STAT='stat_biz';
|
|
885
|
+
static TEMPLATE='template_biz';
|
|
886
|
+
static USER='user_biz';
|
|
887
|
+
static VIDEO='video_biz';
|
|
888
|
+
|
|
861
889
|
static get_data_type_title = (data_type,get_plural) => {
|
|
862
890
|
let r_data_type = (!data_type) ? "" : String(Str.get_title(data_type.replaceAll('_',' ').replaceAll('dt','').replace('biz',''))).trim();
|
|
863
891
|
if(get_plural){
|
|
@@ -873,6 +901,8 @@ class DataType {
|
|
|
873
901
|
}
|
|
874
902
|
static get_data_type_url(data_type){
|
|
875
903
|
switch(data_type){
|
|
904
|
+
case DataType.ACTIVITY:
|
|
905
|
+
return 'activity';
|
|
876
906
|
case DataType.BLOG_POST:
|
|
877
907
|
return 'blog_post';
|
|
878
908
|
case DataType.SERVICE:
|
|
@@ -923,42 +953,6 @@ class DataType {
|
|
|
923
953
|
{ title:DataType.get_title(DataType.SERVICE),type:DataType.SERVICE}
|
|
924
954
|
]
|
|
925
955
|
};
|
|
926
|
-
static ADMIN='admin_biz';
|
|
927
|
-
static BLANK='blank_biz';
|
|
928
|
-
static BUSINESS='business_biz';
|
|
929
|
-
static BLOG_POST='blog_post_biz';
|
|
930
|
-
static CART_ITEM="cart_item_biz";
|
|
931
|
-
static CATEGORY='category_biz';
|
|
932
|
-
static CUSTOM_FIELD='custom_field_biz';
|
|
933
|
-
static CONTENT='content_biz';
|
|
934
|
-
static EVENT='event_biz';
|
|
935
|
-
static FAQ='faq_biz';
|
|
936
|
-
static FAVORITE='favorite_biz';
|
|
937
|
-
static GALLERY='gallery_biz';
|
|
938
|
-
static ITEM_MAP='item_map_biz';
|
|
939
|
-
static ITEM='item_biz';
|
|
940
|
-
|
|
941
|
-
static CART="cart_biz";
|
|
942
|
-
static CART_ITEM="cart_item_biz";
|
|
943
|
-
static CART_SUB_ITEM="cart_sub_item_biz";
|
|
944
|
-
|
|
945
|
-
static ORDER="order_biz";
|
|
946
|
-
static ORDER_ITEM="order_item_biz";
|
|
947
|
-
static ORDER_SUB_ITEM="order_sub_item_biz";
|
|
948
|
-
static ORDER_PAYMENT="order_payment_biz";
|
|
949
|
-
|
|
950
|
-
static PROJECT='project_biz';
|
|
951
|
-
static PRODUCT='product_biz';
|
|
952
|
-
static PHOTO='photo_biz';
|
|
953
|
-
static PAGE='page_biz';
|
|
954
|
-
static REVIEW='review_biz';
|
|
955
|
-
static SERVICE='service_biz';
|
|
956
|
-
static STAT='stat_biz';
|
|
957
|
-
static TEMPLATE='template_biz';
|
|
958
|
-
static USER='user_biz';
|
|
959
|
-
static VIDEO='video_biz';
|
|
960
|
-
|
|
961
|
-
static APP='app_biz';
|
|
962
956
|
}
|
|
963
957
|
class Blank_Logic {
|
|
964
958
|
static get_test = (title,option) =>{
|