biz9-logic 4.8.294 → 4.8.296

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 +10 -2
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='7.7.4'
1
+ VERSION='7.7.6'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -851,6 +851,13 @@ class FieldType {
851
851
  static ITEM_FIELD_VALUE_TYPE_IMAGE="image";
852
852
  static ITEM_FIELD_VALUE_TYPE_LIST="list";
853
853
 
854
+ static IMAGE_SIZE_THUMB="thumb";
855
+ static IMAGE_SIZE_MID="mid";
856
+ static IMAGE_SIZE_LARGE="large";
857
+ static IMAGE_SIZE_SQUARE_THUMB="squre_thumb";
858
+ static IMAGE_SIZE_SQUARE_MID="squre_mid";
859
+ static IMAGE_SIZE_SQUARE_LARGE="squre_large";
860
+
854
861
  static get_title(field_type){
855
862
  switch(field_type){
856
863
  case FieldType.USER_ROLE_SUPER_ADMIN:
@@ -1239,11 +1246,11 @@ class User_Url {
1239
1246
  }
1240
1247
  class Image_Url {
1241
1248
  static post_file = (app_id,url,params) => {
1242
- let action_url="item/post_file";
1249
+ let action_url="main/image/post_file";
1243
1250
  return get_cloud_url_main(app_id,url,action_url,params);
1244
1251
  };
1245
1252
  static post_cdn = (app_id,url,params) => {
1246
- let action_url="item/post_cdn";
1253
+ let action_url="main/image/post_cdn";
1247
1254
  return get_cloud_url_main(app_id,url,action_url,params);
1248
1255
  };
1249
1256
  }
@@ -1909,6 +1916,7 @@ module.exports = {
1909
1916
  Gallery_Logic,
1910
1917
  Gallery_Url,
1911
1918
  Item_Logic,
1919
+ Image_Url,
1912
1920
  Item_Url,
1913
1921
  Event_Logic,
1914
1922
  Message,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.294",
3
+ "version": "4.8.296",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"