ionic-vhframeworks 8.8.9 → 8.9.1
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.
|
@@ -12080,7 +12080,7 @@ export declare class VhQueryAutoWeb {
|
|
|
12080
12080
|
animationFromJSON(event: any, effect: any): void;
|
|
12081
12081
|
/**
|
|
12082
12082
|
* Hàm này đẩy source webapp từ dự án Autoweb_design lên máy chủ (server) của dự án Autoweb_build
|
|
12083
|
-
* Lưu ý: email, pw này là tài khoản đăng nhập vào dự án vhdevweb, có uid là database ở hàm khởi động
|
|
12083
|
+
* Lưu ý: email, pw này là tài khoản đăng nhập vào dự án vhdevweb, có uid là database ở hàm khởi động this.vhAuth.initializeBuildProject() dự án Build(4800)
|
|
12084
12084
|
* @example:
|
|
12085
12085
|
* this.vhQueryAutoWeb.deployWebAppsource_toBuild_byEmail('huyleduc92@gmail.com','123456')
|
|
12086
12086
|
.then((rsp:any)=>{
|
|
@@ -12103,7 +12103,8 @@ export declare class VhQueryAutoWeb {
|
|
|
12103
12103
|
/**
|
|
12104
12104
|
* Hàm này đẩy source webapp từ dự án Autoweb_design lên hosting dự án Autoweb_build, dùng database Cloud Mongo của Viethas
|
|
12105
12105
|
* @example:
|
|
12106
|
-
*
|
|
12106
|
+
* const cloning_options = {source_webapp:'renew', template_webapp:'renew', commondata_webapp:'renew', database_webapp:'renew'};
|
|
12107
|
+
* this.vhQueryAutoWeb.deployWebAppsource_toMongoHosting_byEmail('domain07.webappgiare.vn', 'userhosting@gmail.com','123456', cloning_options)
|
|
12107
12108
|
.then((rsp:any)=>{
|
|
12108
12109
|
console.log('rsp', rsp);
|
|
12109
12110
|
if(rsp.vcode === 0){
|
|
@@ -14813,6 +14814,34 @@ export declare class VhQueryAutoWeb {
|
|
|
14813
14814
|
* @return Promise object => response = {vcode, msg, data(array)}
|
|
14814
14815
|
*/
|
|
14815
14816
|
searchList(colname: string, value: any, query?: any, sort?: object): Promise<unknown>;
|
|
14817
|
+
searchList_textSearch(colname: string, value: any, query?: any, sort?: object): Promise<unknown>;
|
|
14818
|
+
/**
|
|
14819
|
+
* Hàm tìm kiếm likesearch:
|
|
14820
|
+
* @example
|
|
14821
|
+
* this.vhQueryAutoWeb.searchList_likeSearch('products', 'name', 'Điện Thoại', {}, {name:1})
|
|
14822
|
+
.then(response=>{
|
|
14823
|
+
console.log('response', response);
|
|
14824
|
+
if(response.vcode === 0){
|
|
14825
|
+
let data_searched = response.data;
|
|
14826
|
+
let limit = 20;
|
|
14827
|
+
let page = 1;
|
|
14828
|
+
let data_page = new Array(); //mảng dữ liệu phân theo page
|
|
14829
|
+
for(let i=0; i<data_searched.length;i++){
|
|
14830
|
+
if((i>=limit*(page-1))&&(i<limit*page)) data_page.push(data_searched[i]);
|
|
14831
|
+
}
|
|
14832
|
+
let totalpages = Math.ceil(data_searched.length/limit); // tổng số page
|
|
14833
|
+
}
|
|
14834
|
+
},(error:any)=>{
|
|
14835
|
+
console.log('error', error)
|
|
14836
|
+
})
|
|
14837
|
+
* @param colname
|
|
14838
|
+
* @param fieldsearch
|
|
14839
|
+
* @param query
|
|
14840
|
+
* @param value
|
|
14841
|
+
* @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
|
|
14842
|
+
* @return Promise object => response = {vcode, msg, data(array)}
|
|
14843
|
+
*/
|
|
14844
|
+
searchList_likeSearch(colname: string, fieldsearch: string, value: any, query?: any, sort?: object): Promise<unknown>;
|
|
14816
14845
|
/**
|
|
14817
14846
|
* @example
|
|
14818
14847
|
* this.vhQueryAutoWeb.searchList_PatternBlock_Thumbnail('mùa xuân',["name", "describe"], 20, 1)
|
|
@@ -19017,7 +19046,8 @@ export declare class VhBuildAutoWeb {
|
|
|
19017
19046
|
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
19018
19047
|
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
19019
19048
|
*/
|
|
19020
|
-
|
|
19049
|
+
searchList_textSearch(colname: string, value: string, query?: object, sort?: object): Promise<unknown>;
|
|
19050
|
+
searchList_likeSearch(colname: string, fieldsearch: string, value: string, query?: object, sort?: object): Promise<unknown>;
|
|
19021
19051
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhBuildAutoWeb, never>;
|
|
19022
19052
|
static ɵprov: i0.ɵɵInjectableDeclaration<VhBuildAutoWeb>;
|
|
19023
19053
|
}
|
|
@@ -20328,7 +20358,8 @@ export declare class VhDesignAutoWeb {
|
|
|
20328
20358
|
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
20329
20359
|
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
20330
20360
|
*/
|
|
20331
|
-
|
|
20361
|
+
searchList_textSearch(colname: string, value: string, query?: object, sort?: object): Promise<unknown>;
|
|
20362
|
+
searchList_likeSearch(colname: string, fieldsearch: string, value: string, query?: object, sort?: object): Promise<unknown>;
|
|
20332
20363
|
/**
|
|
20333
20364
|
* @example:
|
|
20334
20365
|
* this.vhDesignAutoWeb.isCloneBlockOrObject(block_or_object)
|