Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8cfaee0
commit 94a4cf6
Showing
11 changed files
with
199 additions
and
8 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
builder/builder/builder_page_template/page_fd73580e/page_fd73580e.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Copyright (c) 2024, Frappe Technologies Pvt Ltd and contributors | ||
// For license information, please see license.txt | ||
|
||
// frappe.ui.form.on("Builder Asset", { | ||
// refresh(frm) { | ||
|
||
// }, | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"autoname": "field:asset_name", | ||
"creation": "2024-02-26 16:16:39.699863", | ||
"doctype": "DocType", | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"asset_name", | ||
"asset_type", | ||
"block", | ||
"preview_image" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "asset_name", | ||
"fieldtype": "Data", | ||
"label": "Asset Name", | ||
"unique": 1 | ||
}, | ||
{ | ||
"fieldname": "asset_type", | ||
"fieldtype": "Select", | ||
"label": "Asset Type", | ||
"options": "Page Template" | ||
}, | ||
{ | ||
"fieldname": "block", | ||
"fieldtype": "Code", | ||
"label": "Block" | ||
}, | ||
{ | ||
"fieldname": "preview_image", | ||
"fieldtype": "Attach Image", | ||
"label": "Preview Image" | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"links": [], | ||
"modified": "2024-02-26 22:58:04.799980", | ||
"modified_by": "Administrator", | ||
"module": "Builder", | ||
"name": "Builder Asset", | ||
"naming_rule": "By fieldname", | ||
"owner": "Administrator", | ||
"permissions": [ | ||
{ | ||
"create": 1, | ||
"delete": 1, | ||
"email": 1, | ||
"export": 1, | ||
"print": 1, | ||
"read": 1, | ||
"report": 1, | ||
"role": "System Manager", | ||
"share": 1, | ||
"write": 1 | ||
} | ||
], | ||
"sort_field": "modified", | ||
"sort_order": "DESC", | ||
"states": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2024, Frappe Technologies Pvt Ltd and contributors | ||
# For license information, please see license.txt | ||
|
||
# import frappe | ||
from frappe.model.document import Document | ||
|
||
|
||
class BuilderAsset(Document): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2024, Frappe Technologies Pvt Ltd and Contributors | ||
# See license.txt | ||
|
||
# import frappe | ||
from frappe.tests.utils import FrappeTestCase | ||
|
||
|
||
class TestBuilderAsset(FrappeTestCase): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
export interface BuilderAsset{ | ||
creation: string | ||
name: string | ||
modified: string | ||
owner: string | ||
modified_by: string | ||
docstatus: 0 | 1 | 2 | ||
parent?: string | ||
parentfield?: string | ||
parenttype?: string | ||
idx?: number | ||
/** Asset Name : Data */ | ||
asset_name?: string | ||
/** Asset Type : Select */ | ||
asset_type?: "Page Template" | ||
/** Block : Code */ | ||
block?: string | ||
/** Preview Image : Attach Image */ | ||
preview_image?: string | ||
} |