Add syntax highlighting for different runtimes in function history for timer & http functions

This commit is contained in:
Peter Stockings
2025-11-30 00:26:33 +11:00
parent 6c55eaa930
commit bb20146143
5 changed files with 15 additions and 7 deletions

View File

@@ -21,7 +21,8 @@ history_url=url_for('http.history', function_id=function_id)) }}
view: () => m(FunctionHistory, {
versions: {{ versions| tojson | safe }},
function_id: {{ function_id }},
restore_url: "{{ url_for('http.restore', function_id=function_id) }}"
restore_url: "{{ url_for('http.restore', function_id=function_id) }}",
runtime: "{{ runtime }}"
})
});
</script>

View File

@@ -23,7 +23,8 @@ history_url=url_for('timer.history', function_id=function_id))
view: () => m(FunctionHistory, {
versions: {{ versions| tojson | safe }},
function_id: {{ function_id }},
restore_url: "{{ url_for('timer.restore', function_id=function_id) }}"
restore_url: "{{ url_for('timer.restore', function_id=function_id) }}",
runtime: "{{ runtime }}"
})
});
</script>