diff options
author | Phil Hughes <me@iamphill.com> | 2018-02-26 19:05:24 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-02-26 19:25:24 +0300 |
commit | 6358004b1c64ed3f8b83a75a672a0a72e1bee851 (patch) | |
tree | d81a593f9a30bd82f7b3fe2792a43333ece39799 /app/assets/javascripts/network | |
parent | 78ed5c0f30478b6ecdb58c9bcb335f758acd8a9b (diff) |
Converted webpack_bundle_tag to be automatic webpack bundles
Diffstat (limited to 'app/assets/javascripts/network')
-rw-r--r-- | app/assets/javascripts/network/network.js | 19 | ||||
-rw-r--r-- | app/assets/javascripts/network/network_bundle.js | 17 |
2 files changed, 0 insertions, 36 deletions
diff --git a/app/assets/javascripts/network/network.js b/app/assets/javascripts/network/network.js deleted file mode 100644 index a3fd22aff2a..00000000000 --- a/app/assets/javascripts/network/network.js +++ /dev/null @@ -1,19 +0,0 @@ -/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, quotes, quote-props, prefer-template, comma-dangle, max-len */ - -import BranchGraph from './branch_graph'; - -export default (function() { - function Network(opts) { - var vph; - $("#filter_ref").click(function() { - return $(this).closest('form').submit(); - }); - this.branch_graph = new BranchGraph($(".network-graph"), opts); - vph = $(window).height() - 250; - $('.network-graph').css({ - 'height': vph + 'px' - }); - } - - return Network; -})(); diff --git a/app/assets/javascripts/network/network_bundle.js b/app/assets/javascripts/network/network_bundle.js deleted file mode 100644 index 129f1724cb8..00000000000 --- a/app/assets/javascripts/network/network_bundle.js +++ /dev/null @@ -1,17 +0,0 @@ -/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, quotes, no-var, vars-on-top, camelcase, comma-dangle, consistent-return, max-len */ - -import ShortcutsNetwork from '../shortcuts_network'; -import Network from './network'; - -$(function() { - if (!$(".network-graph").length) return; - - var network_graph; - network_graph = new Network({ - url: $(".network-graph").attr('data-url'), - commit_url: $(".network-graph").attr('data-commit-url'), - ref: $(".network-graph").attr('data-ref'), - commit_id: $(".network-graph").attr('data-commit-id') - }); - return new ShortcutsNetwork(network_graph.branch_graph); -}); |