Update mithril loader extension
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user