fix(DX): Correct syntax highlighting in report
This commit is contained in:
parent
3dfb2d0d4f
commit
6e8fe0f855
2 changed files with 8 additions and 4 deletions
|
|
@ -108,14 +108,16 @@
|
|||
"depends_on": "eval:doc.report_type==\"Query Report\"",
|
||||
"fieldname": "query",
|
||||
"fieldtype": "Code",
|
||||
"label": "Query"
|
||||
"label": "Query",
|
||||
"options": "SQL"
|
||||
},
|
||||
{
|
||||
"depends_on": "eval:doc.report_type==\"Script Report\" && doc.is_standard===\"No\"",
|
||||
"description": "JavaScript Format: frappe.query_reports['REPORTNAME'] = {}",
|
||||
"fieldname": "javascript",
|
||||
"fieldtype": "Code",
|
||||
"label": "Javascript"
|
||||
"label": "Javascript",
|
||||
"options": "Javascript"
|
||||
},
|
||||
{
|
||||
"depends_on": "eval:doc.report_type==\"Report Builder\" || \"Custom Report\"",
|
||||
|
|
@ -145,7 +147,8 @@
|
|||
"description": "Filters will be accessible via <code>filters</code>. <br><br>Send output as <code>result = [result]</code>, or for old style <code>data = [columns], [result]</code>",
|
||||
"fieldname": "report_script",
|
||||
"fieldtype": "Code",
|
||||
"label": "Script"
|
||||
"label": "Script",
|
||||
"options": "Python"
|
||||
},
|
||||
{
|
||||
"collapsible": 1,
|
||||
|
|
@ -188,7 +191,7 @@
|
|||
"idx": 1,
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2024-01-03 15:14:24.587669",
|
||||
"modified": "2024-01-03 15:29:01.460404",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Report",
|
||||
|
|
|
|||
|
|
@ -161,6 +161,7 @@ frappe.ui.form.ControlCode = class ControlCode extends frappe.ui.form.ControlTex
|
|||
Golang: "ace/mode/golang",
|
||||
Go: "ace/mode/golang",
|
||||
Jinja: "ace/mode/django",
|
||||
SQL: "ace/mode/sql",
|
||||
};
|
||||
const language = this.df.options;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue