biz9-logic 4.8.329 → 4.8.330

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.
Files changed (3) hide show
  1. package/biz9_config +1 -1
  2. package/index.js +34 -0
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='8.0.9'
1
+ VERSION='8.1.0'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -194,6 +194,40 @@ class Stat_Logic {
194
194
  parent_item_list:parent_item_list,
195
195
  }
196
196
  }
197
+
198
+ static get_stat_title = (stat_title)=>{
199
+ switch(stat_title){
200
+ case Stat_Logic.TYPE_STAT_VIEW:
201
+ return "View";
202
+ break;
203
+ case Stat_Logic.TYPE_STAT_LIKE:
204
+ return "Like";
205
+ break;
206
+ case Stat_Logic.TYPE_STAT_FAVORITE:
207
+ return "Favorite";
208
+ break;
209
+ case Stat_Logic.TYPE_STAT_CART:
210
+ return "Cart";
211
+ break;
212
+ case Stat_Logic.TYPE_STAT_ORDER:
213
+ return "Order";
214
+ break;
215
+ case Stat_Logic.TYPE_STAT_REVIEW:
216
+ return "Review";
217
+ break;
218
+ case Stat_Logic.TYPE_STAT_LOGIN:
219
+ return "Login";
220
+ break;
221
+ case Stat_Logic.TYPE_STAT_REGISTER:
222
+ return "Register";
223
+ break;
224
+ default:
225
+ return "N/A";
226
+ break;
227
+
228
+
229
+ }
230
+ }
197
231
  }
198
232
  class Page_Logic {
199
233
  static TYPE_PAGE_HOME='home';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.329",
3
+ "version": "4.8.330",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"