biz9-logic 4.8.197 → 4.8.201

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 +23 -12
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='6.7.7'
1
+ VERSION='6.8.1'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -7,16 +7,27 @@ Description: BiZ9 Framework: Logic-JS
7
7
  const moment = require('moment'); const { get_new_item_main,get_data_config_main,get_cloud_url_main,get_biz_item_main,get_cloud_filter_obj_main,get_new_full_item_main } = require('./main');
8
8
  const { Log,Str,DateTime,Num,Obj } = require('/home/think2/www/doqbox/biz9-framework/biz9-utility/code');
9
9
  class Message {
10
- static SUCCESS="Update Success";
10
+ static SUCCESS="Success";
11
11
  static LOGIN_GOOD="Login Success";
12
12
  static LOGIN_BAD="Login Incorrect";
13
- static ERROR_TITLE="Please Enter A Valid Title";
14
- static ERROR_EMAIL="Please Enter A Valid E-mail";
15
- static DATA_NOT_FOUND="Data Not Found";
16
- static FAVORITE_ADD_SUCCESS="Favorite Add Success";
17
- static FAVORITE_REMOVE_SUCCESS="Favorite Remove Success";
18
- static REVIEW_ADD_SUCCESS="Review Add Success";
19
- static REVIEW_REMOVE_SUCCESS="Review Remove Success";
13
+
14
+ static ERROR_TITLE_NOT_VALID="Please Enter A Valid Title.";
15
+ static ERROR_TITLE_NOT_UNIQUE="Title Not Availble. Please Choose Another.";
16
+
17
+ static ERROR_USERNAME_NOT_VALID="Please Enter A Valid Username";
18
+ static ERROR_USERNAME_NOT_UNIQUE="Username Not Availble. Please Choose Another.";
19
+
20
+ static ERROR_EMAIL_NOT_VALID="Please Enter A Valid Email.";
21
+ static ERROR_EMAIL_NOT_UNIQUE="E-mail Not Availble. Please Choose Another.";
22
+
23
+ static DATA_NOT_FOUND="Data Not Found.";
24
+ static SYSTEM_NOT_FOUND="System Not Found.";
25
+
26
+ static FAVORITE_ADD_SUCCESS="Favorite Add Success.";
27
+ static FAVORITE_REMOVE_SUCCESS="Favorite Remove Success.";
28
+
29
+ static REVIEW_ADD_SUCCESS="Review Add Success.";
30
+ static REVIEW_REMOVE_SUCCESS="Review Remove Success.";
20
31
  }
21
32
  class TemplateType {
22
33
  static PRIMARY='primary';
@@ -1835,21 +1846,21 @@ class Storage {
1835
1846
  return null;
1836
1847
  }
1837
1848
  }
1838
- static set = (window,key,obj) => {
1849
+ static post = (window,key,obj) => {
1839
1850
  if(!Obj.check_is_empty(window)){
1840
1851
  if(window.localStorage){
1841
1852
  window.localStorage.setItem(key,JSON.stringify(obj));
1842
1853
  }
1843
1854
  }
1844
1855
  }
1845
- static remove = (window,key) =>{
1856
+ static delete = (window,key) =>{
1846
1857
  if(!Obj.check_is_empty(window)){
1847
1858
  if(window.localStorage){
1848
1859
  window.localStorage.removeItem(key);
1849
1860
  }
1850
1861
  }
1851
1862
  }
1852
- static clear = (window) =>{
1863
+ static delete_all = (window) =>{
1853
1864
  if(!Obj.check_is_empty(window)){
1854
1865
  if(window.localStorage){
1855
1866
  window.localStorage.clear();
@@ -1900,7 +1911,7 @@ class User_Logic {
1900
1911
  }
1901
1912
  return req.session.user;
1902
1913
  }
1903
- static set_request_user(req){
1914
+ static post_request_user(req){
1904
1915
  req.session.user=user;
1905
1916
  }
1906
1917
  static del_request_user(req){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.197",
3
+ "version": "4.8.201",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"