biz9-logic 4.9.82 → 4.9.85
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 +2 -2
- package/index.js +16 -27
- package/package.json +2 -2
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -318,6 +318,21 @@ class Type {
|
|
|
318
318
|
{value:Type.USER_ROLE_GUEST,label:Title.USER_ROLE_GUEST},
|
|
319
319
|
];
|
|
320
320
|
};
|
|
321
|
+
static get_page_list(){
|
|
322
|
+
return [
|
|
323
|
+
{value:Type.PAGE_ABOUT,label:Title.PAGE_ABOUT},
|
|
324
|
+
{value:Type.PAGE_BLOG_POST,label:Title.PAGE_BLOG_POST},
|
|
325
|
+
{value:Type.PAGE_BLOG_POST_HOME,label:Title.PAGE_BLOG_POST_HOME},
|
|
326
|
+
{value:Type.PAGE_BLOG_POST_SEARCH,label:Title.PAGE_BLOG_POST_SEARCH},
|
|
327
|
+
{value:Type.PAGE_CONTACT,label:Title.PAGE_CONTACT},
|
|
328
|
+
{value:Type.PAGE_EVENT,label:Title.PAGE_EVENT},
|
|
329
|
+
{value:Type.PAGE_FAQ,label:Title.PAGE_FAQ},
|
|
330
|
+
{value:Type.PAGE_GALLERY,label:Title.PAGE_GALLERY},
|
|
331
|
+
{value:Type.PAGE_HOME,label:Title.PAGE_HOME},
|
|
332
|
+
{value:Type.PAGE_PRODUCT,label:Title.PAGE_PRODUCT},
|
|
333
|
+
{value:Type.PAGE_SERVICE,label:Title.PAGE_SERVICE},
|
|
334
|
+
];
|
|
335
|
+
};
|
|
321
336
|
static get_stat_type_list = () =>{
|
|
322
337
|
return [
|
|
323
338
|
{title:Type.get_title(Type.STAT_CART),type:Type.STAT_CART,label:Type.get_title(Type.STAT_CART),value:Type.STAT_CART},
|
|
@@ -576,33 +591,7 @@ class Stat_Logic {
|
|
|
576
591
|
}
|
|
577
592
|
}
|
|
578
593
|
class Page_Logic {
|
|
579
|
-
|
|
580
|
-
return [
|
|
581
|
-
{value:Type.PAGE_ABOUT,label:Title.PAGE_ABOUT},
|
|
582
|
-
|
|
583
|
-
{value:Type.PAGE_BLOG_POST,label:Title.PAGE_BLOG_POST},
|
|
584
|
-
{value:Type.PAGE_BLOG_POST_HOME,label:Title.PAGE_BLOG_POST_HOME},
|
|
585
|
-
{value:Type.PAGE_BLOG_POST_SEARCH,label:Title.PAGE_BLOG_POST_SEARCH},
|
|
586
|
-
|
|
587
|
-
{value:Type.PAGE_CONTACT,label:Title.PAGE_CONTACT},
|
|
588
|
-
{value:Type.PAGE_EVENT,label:Title.PAGE_EVENT},
|
|
589
|
-
{value:Type.PAGE_FAQ,label:Title.PAGE_FAQ},
|
|
590
|
-
{value:Type.PAGE_GALLERY,label:Title.PAGE_GALLERY},
|
|
591
|
-
{value:Type.PAGE_HOME,label:Title.PAGE_HOME},
|
|
592
|
-
{value:Type.PAGE_PRODUCT,label:Title.PAGE_PRODUCT},
|
|
593
|
-
{value:Type.PAGE_SERVICE,label:Title.PAGE_SERVICE},
|
|
594
|
-
];
|
|
595
|
-
};
|
|
596
|
-
/*
|
|
597
|
-
static get_page_title = (data_type) => {
|
|
598
|
-
if(!data_type){
|
|
599
|
-
return "";
|
|
600
|
-
}else{
|
|
601
|
-
return String(Str.get_title(data_type.replaceAll('_',' '))).trim();
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
*/
|
|
605
|
-
static get_test = (title,option) =>{
|
|
594
|
+
static get_test = (title,option) =>{
|
|
606
595
|
[title,option] = Field_Logic.get_option_title(title,option);
|
|
607
596
|
option = Field_Logic.get_option(DataType.PAGE,option?option:{});
|
|
608
597
|
let page = DataItem.get_new(DataType.PAGE,0,Field_Logic.get_test(title,option));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "biz9-logic",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.85",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"async-series": "^0.0.1",
|
|
12
|
-
"biz9-scriptz": "^5.8.
|
|
12
|
+
"biz9-scriptz": "^5.8.12",
|
|
13
13
|
"biz9-utility": "^3.8.36",
|
|
14
14
|
"jest": "^29.7.0",
|
|
15
15
|
"moment": "^2.30.1"
|