ionic-vhframeworks 8.7.6 → 8.7.9
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.
|
@@ -1840,10 +1840,8 @@ export declare class VhImage {
|
|
|
1840
1840
|
.then((rsp:any)=>{
|
|
1841
1841
|
console.log('rsp', rsp);
|
|
1842
1842
|
if(rsp.vcode === 0){
|
|
1843
|
-
if(options.compress_type == 'no-compress
|
|
1843
|
+
if(options.compress_type == 'no-compress'){
|
|
1844
1844
|
|
|
1845
|
-
}else if(options.compress_type == 'no-compress-one'){
|
|
1846
|
-
|
|
1847
1845
|
}else if(options.compress_type == 'compress-sreen'){
|
|
1848
1846
|
|
|
1849
1847
|
}else if(options.compress_type == 'compress-frame'){
|
|
@@ -1866,11 +1864,10 @@ export declare class VhImage {
|
|
|
1866
1864
|
* @param path: 'images/database/categories' or 'images/database/categories/products'
|
|
1867
1865
|
* @param options: {compress_type, resolution}
|
|
1868
1866
|
* @field compress_type:
|
|
1869
|
-
* + 'no-compress
|
|
1870
|
-
* + 'no-compress-one': Không nén ảnh sau khi tải lên, mỗi thiết bị upload lên server 1 ảnh riêng
|
|
1867
|
+
* + 'no-compress': Không nén ảnh sau khi tải lên
|
|
1871
1868
|
* + 'compress-sreen': Nén ảnh sau khi tải lên, nén ảnh theo tỉ lệ màn hình của mỗi thiết bị
|
|
1872
1869
|
* + 'compress-frame': Nén ảnh sau khi tải lên, nén ảnh theo tỉ lệ màn hình của mỗi khung hình thiết bị
|
|
1873
|
-
* @field resolution: {
|
|
1870
|
+
* @field resolution: {} hoặc {width, height} của màn hình hoặc {width, height} của khung hình
|
|
1874
1871
|
* @returns Object => obj = {vcode, message, data, error}
|
|
1875
1872
|
* vcode === 0 : upload ảnh thành công
|
|
1876
1873
|
* vcode === 1 : lỗi import file ảnh
|
|
@@ -14673,12 +14670,18 @@ export declare class VhQueryAutoWeb {
|
|
|
14673
14670
|
+ colname = 'services': value tìm trong trường 'name'
|
|
14674
14671
|
+ colname = 'newss': value tìm trong trường 'title' và 'content'
|
|
14675
14672
|
* @example
|
|
14676
|
-
* this.vhQueryAutoWeb.searchList('products', 'Điện Thoại', {price: {$gte: 10000}}, {price:1}
|
|
14673
|
+
* this.vhQueryAutoWeb.searchList('products', 'Điện Thoại', {price: {$gte: 10000}}, {price:1})
|
|
14677
14674
|
.then(response=>{
|
|
14678
14675
|
console.log('response', response);
|
|
14679
14676
|
if(response.vcode === 0){
|
|
14680
|
-
|
|
14681
|
-
|
|
14677
|
+
let data_searched = response.data;
|
|
14678
|
+
let limit = 20;
|
|
14679
|
+
let page = 1;
|
|
14680
|
+
let data_page = new Array(); //mảng dữ liệu phân theo page
|
|
14681
|
+
for(let i=0; i<data_searched.length;i++){
|
|
14682
|
+
if((i>=limit*(page-1))&&(i<limit*page)) data_page.push(data_searched[i]);
|
|
14683
|
+
}
|
|
14684
|
+
let totalpages = Math.ceil(data_searched.length/limit); // tổng số page
|
|
14682
14685
|
}
|
|
14683
14686
|
},(error:any)=>{
|
|
14684
14687
|
console.log('error', error)
|
|
@@ -14687,11 +14690,9 @@ export declare class VhQueryAutoWeb {
|
|
|
14687
14690
|
* @param query
|
|
14688
14691
|
* @param value
|
|
14689
14692
|
* @param sort null hoặc {}:không sắp xếp; {date:1}: sắp xếp date theo ASC; {date:-1}: sắp xếp date theo DESC
|
|
14690
|
-
* @
|
|
14691
|
-
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
14692
|
-
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
14693
|
+
* @return Promise object => response = {vcode, msg, data(array)}
|
|
14693
14694
|
*/
|
|
14694
|
-
searchList(colname: string, value: any, query
|
|
14695
|
+
searchList(colname: string, value: any, query?: any, sort?: object): Promise<unknown>;
|
|
14695
14696
|
/**
|
|
14696
14697
|
* @example
|
|
14697
14698
|
* this.vhQueryAutoWeb.searchList_PatternBlock_Thumbnail('mùa xuân',["name", "describe"], 20, 1)
|
|
@@ -18809,7 +18810,7 @@ export declare class VhBuildAutoWeb {
|
|
|
18809
18810
|
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
18810
18811
|
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
18811
18812
|
*/
|
|
18812
|
-
searchList(colname: string, value: string, query
|
|
18813
|
+
searchList(colname: string, value: string, query?: object, sort?: object): Promise<unknown>;
|
|
18813
18814
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhBuildAutoWeb, never>;
|
|
18814
18815
|
static ɵprov: i0.ɵɵInjectableDeclaration<VhBuildAutoWeb>;
|
|
18815
18816
|
}
|
|
@@ -20061,7 +20062,7 @@ export declare class VhDesignAutoWeb {
|
|
|
20061
20062
|
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
20062
20063
|
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
20063
20064
|
*/
|
|
20064
|
-
searchList(colname: string, value: string, query
|
|
20065
|
+
searchList(colname: string, value: string, query?: object, sort?: object): Promise<unknown>;
|
|
20065
20066
|
/**
|
|
20066
20067
|
* @example:
|
|
20067
20068
|
* this.vhDesignAutoWeb.isCloneBlockOrObject(block_or_object)
|