biz9-logic 4.8.249 → 4.8.250
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 +3 -4
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -910,7 +910,6 @@ class PageType {
|
|
|
910
910
|
return String(Str.get_title(data_type.replaceAll('_',' '))).trim();
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
|
|
914
913
|
}
|
|
915
914
|
class DataType {
|
|
916
915
|
|
|
@@ -951,7 +950,7 @@ class DataType {
|
|
|
951
950
|
static USER='user_biz';
|
|
952
951
|
static VIDEO='video_biz';
|
|
953
952
|
|
|
954
|
-
static
|
|
953
|
+
static get_title = (data_type,get_plural) => {
|
|
955
954
|
let r_data_type = (!data_type) ? "" : String(Str.get_title(data_type.replaceAll('_',' ').replaceAll('dt','').replace('biz',''))).trim();
|
|
956
955
|
if(get_plural){
|
|
957
956
|
if(data_type==DataType.GALLERY){
|
|
@@ -964,7 +963,7 @@ class DataType {
|
|
|
964
963
|
}
|
|
965
964
|
|
|
966
965
|
}
|
|
967
|
-
static
|
|
966
|
+
static get_url(data_type){
|
|
968
967
|
switch(data_type){
|
|
969
968
|
case DataType.ACTIVITY:
|
|
970
969
|
return 'activity';
|
|
@@ -1006,7 +1005,7 @@ class DataType {
|
|
|
1006
1005
|
return 'custom_field';
|
|
1007
1006
|
}
|
|
1008
1007
|
}
|
|
1009
|
-
static
|
|
1008
|
+
static get_list = () =>{
|
|
1010
1009
|
return [
|
|
1011
1010
|
{ title:DataType.get_title(DataType.BLOG_POST),type:DataType.BLOG_POST},
|
|
1012
1011
|
{ title:DataType.get_title(DataType.EVENT),type:DataType.EVENT},
|