From e03d6277698f4e1e03d9336ba017bae130d4353c Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 11 Mar 2020 20:34:54 +0100 Subject: Misc JS linting and naming tweaks (#10652) - lowercase all js filenames except Vue components - enable new lint rules, mostly focused on shorter code - autofix new lint violations - apply misc transformations indexOf -> includes and onevent-> addEventListener Co-authored-by: Antoine GIRARD --- web_src/js/features/gitGraph.js | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 web_src/js/features/gitGraph.js (limited to 'web_src/js/features/gitGraph.js') diff --git a/web_src/js/features/gitGraph.js b/web_src/js/features/gitGraph.js deleted file mode 100644 index a18c575163..0000000000 --- a/web_src/js/features/gitGraph.js +++ /dev/null @@ -1,13 +0,0 @@ -export default async function initGitGraph() { - const graphCanvas = document.getElementById('graph-canvas'); - if (!graphCanvas) return; - - const { default: gitGraph } = await import(/* webpackChunkName: "gitgraph" */'../vendor/gitGraph.js'); - - const graphList = []; - $('#graph-raw-list li span.node-relation').each(function () { - graphList.push($(this).text()); - }); - - gitGraph(graphCanvas, graphList); -} -- cgit v1.2.3