Update mithril loader extension

This commit is contained in:
Peter Stockings
2025-07-23 21:36:50 +10:00
parent 39c819f062
commit b0a172bee0
2 changed files with 210 additions and 0 deletions

View File

@@ -46,3 +46,17 @@ def mithril(function_id):
#return render_template('mithril_loader.html', args=args)
@test.route('/mithril/editor')
def editor():
args = {
'name': 'Try me',
'jsValue': 'async (req) => HtmlResponse("Hello")',
'jsonValue': '{}',
'isEdit': True,
'showHeader': False,
'showFunctionSettings': False,
'executeUrl': url_for('execute_code', playground='true'),
'generateUrl': url_for('llm.generate_script')
}
return Mithril.render('Editor', args)