mirror of https://github.com/go-gitea/gitea
Pack web_src/js/draw.js to public/js/index.js (#8975)
* pack web_src/js/draw.js to public/js/index.js * fix eslintpull/8924/head
parent
06a8504c78
commit
42ada741e3
@ -1,15 +0,0 @@ |
||||
/* globals gitGraph */ |
||||
|
||||
$(document).ready(function () { |
||||
const graphList = []; |
||||
|
||||
if (!document.getElementById('graph-canvas')) { |
||||
return; |
||||
} |
||||
|
||||
$("#graph-raw-list li span.node-relation").each(function () { |
||||
graphList.push($(this).text()); |
||||
}) |
||||
|
||||
gitGraph(document.getElementById('graph-canvas'), graphList); |
||||
}) |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,15 @@ |
||||
/* globals gitGraph */ |
||||
|
||||
$(() => { |
||||
const graphList = []; |
||||
|
||||
if (!document.getElementById('graph-canvas')) { |
||||
return; |
||||
} |
||||
|
||||
$('#graph-raw-list li span.node-relation').each(function () { |
||||
graphList.push($(this).text()); |
||||
}); |
||||
|
||||
gitGraph(document.getElementById('graph-canvas'), graphList); |
||||
}); |
Loading…
Reference in new issue