build mock views
This commit is contained in:
parent
b0ed2c68f9
commit
44d47db0ad
10 changed files with 1963 additions and 9 deletions
|
|
@ -27,6 +27,18 @@ class Api {
|
|||
return data;
|
||||
}
|
||||
|
||||
static async getServiceData() {
|
||||
const data = DataUtils.dummyServiceData;
|
||||
console.log("DEBUG: API - getServiceData result: ", data);
|
||||
return data;
|
||||
}
|
||||
|
||||
static async getRouteData() {
|
||||
const data = DataUtils.dummyRouteData;
|
||||
console.log("DEBUG: API - getRouteData result: ", data);
|
||||
return data;
|
||||
}
|
||||
|
||||
static async getDocsList(doctype, fields = []) {
|
||||
const docs = await frappe.db.get_list(doctype, { fields });
|
||||
console.log(`DEBUG: API - Fetched ${doctype} list: `, docs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue