biz9-logic 3.5.15 → 3.5.17
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 +18 -4
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -24,6 +24,7 @@ class DataType {
|
|
|
24
24
|
static DT_BLOG_POST='blog_post_biz';
|
|
25
25
|
static DT_CART_ITEM="cart_item_biz";
|
|
26
26
|
static DT_CATEGORY='category_biz';
|
|
27
|
+
static DT_CONTENT='content_biz';
|
|
27
28
|
static DT_EVENT='event_biz';
|
|
28
29
|
static DT_GALLERY='gallery_biz';
|
|
29
30
|
static DT_ITEM_MAP='item_map_biz';
|
|
@@ -77,6 +78,10 @@ class Url {
|
|
|
77
78
|
let action_url= "main/test/connect/";
|
|
78
79
|
return get_cloud_url_main(biz9_config.APP_TITLE_ID,biz9_config.URL,action_url,null);
|
|
79
80
|
};
|
|
81
|
+
static upload_file = (biz9_config,data_type,id) => {
|
|
82
|
+
let action_url= "main/crud/update/"+data_type + "/" + id;
|
|
83
|
+
return get_cloud_url_main(biz9_config.APP_TITLE_ID,biz9_config.URL,action_url,null);
|
|
84
|
+
};
|
|
80
85
|
static update_item = (biz9_config,data_type,id) => {
|
|
81
86
|
let action_url= "main/crud/update/"+data_type + "/" + id;
|
|
82
87
|
return get_cloud_url_main(biz9_config.APP_TITLE_ID,biz9_config.URL,action_url,null);
|
|
@@ -129,10 +134,13 @@ class Cat {
|
|
|
129
134
|
};
|
|
130
135
|
static get_category_drop_down_list = () => {
|
|
131
136
|
return [
|
|
132
|
-
{ value:
|
|
133
|
-
{ value:
|
|
134
|
-
{ value:
|
|
135
|
-
{ value:
|
|
137
|
+
{ value: DataType.BLOG_POST, label: "Blog Posts" },
|
|
138
|
+
{ value: DataType.DT_CONTENT, label: "Content" }
|
|
139
|
+
{ value: DataType.DT_EVENT, label: "Events" },
|
|
140
|
+
{ value: DataType.DT_GALLERY, label: "Galleries" },
|
|
141
|
+
{ value: DataType.DT_SERVICE, label: "Services" }
|
|
142
|
+
{ value: DataType.DT_PRODUCT, label: "Products" }
|
|
143
|
+
{ value: DataType.DT_TEMPLATE, label: "Template" }
|
|
136
144
|
];
|
|
137
145
|
};
|
|
138
146
|
static get_title_by_type = (data_type) => {
|
|
@@ -164,6 +172,12 @@ class Cat {
|
|
|
164
172
|
case DataType.DT_BLOG_POST:
|
|
165
173
|
return "Blog Post";
|
|
166
174
|
break;
|
|
175
|
+
case DataType.DT_TEMPLATE:
|
|
176
|
+
return "Template";
|
|
177
|
+
break;
|
|
178
|
+
case DataType.DT_CONTENT:
|
|
179
|
+
return "Content";
|
|
180
|
+
break;
|
|
167
181
|
default:
|
|
168
182
|
return "Blank";
|
|
169
183
|
}
|