diff options
author | silverwind <me@silverwind.io> | 2020-03-11 20:34:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-11 21:34:54 +0200 |
commit | e03d6277698f4e1e03d9336ba017bae130d4353c (patch) | |
tree | 418c84dd378bc86093f9837de80f92c13fe87f68 /web_src/js/features/gitGraph.js | |
parent | 984b85c1a72f9f1561447a8492bc3d33a87e3641 (diff) | |
download | gitea-e03d6277698f4e1e03d9336ba017bae130d4353c.tar.gz gitea-e03d6277698f4e1e03d9336ba017bae130d4353c.zip |
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 <sapk@users.noreply.github.com>
Diffstat (limited to 'web_src/js/features/gitGraph.js')
-rw-r--r-- | web_src/js/features/gitGraph.js | 13 |
1 files changed, 0 insertions, 13 deletions
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); -} |