You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spot.apache.org by le...@apache.org on 2017/06/20 17:16:54 UTC

[1/6] incubator-spot git commit: Ingest summary is now inside a folder and give the capability to redirect in case user click on ingest-summary menu

Repository: incubator-spot
Updated Branches:
  refs/heads/SPOT-35_graphql_api 291714c72 -> 819d4e690


Ingest summary is now inside a folder and give the capability to redirect in case user click on ingest-summary menu


Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/819d4e69
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/819d4e69
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/819d4e69

Branch: refs/heads/SPOT-35_graphql_api
Commit: 819d4e6901e5d7a66e9c2f65b19d57c253b21260
Parents: 5be12f0
Author: Montes Velazquez <jo...@intel.com>
Authored: Wed May 31 15:24:32 2017 -0500
Committer: LedaLima <ga...@intel.com>
Committed: Tue Jun 20 12:15:45 2017 -0500

----------------------------------------------------------------------
 spot-oa/ui/ingest-summary.html        | 132 -----------------------------
 spot-oa/ui/ingest/ingest-summary.html | 132 +++++++++++++++++++++++++++++
 spot-oa/ui/js/ingest-summary.js       |   5 +-
 spot-oa/ui/js/menu/menu.js            |   2 +-
 4 files changed, 137 insertions(+), 134 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/819d4e69/spot-oa/ui/ingest-summary.html
----------------------------------------------------------------------
diff --git a/spot-oa/ui/ingest-summary.html b/spot-oa/ui/ingest-summary.html
deleted file mode 100755
index 68289e3..0000000
--- a/spot-oa/ui/ingest-summary.html
+++ /dev/null
@@ -1,132 +0,0 @@
-<!DOCTYPE html>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one or more
-  ~ contributor license agreements.  See the NOTICE file distributed with
-  ~ this work for additional information regarding copyright ownership.
-  ~ The ASF licenses this file to You under the Apache License, Version 2.0
-  ~ (the "License"); you may not use this file except in compliance with
-  ~ the License.  You may obtain a copy of the License at
-  ~
-  ~    http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing, software
-  ~ distributed under the License is distributed on an "AS IS" BASIS,
-  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  ~ See the License for the specific language governing permissions and
-  ~ limitations under the License.
-  -->
-
-<html>
-<head>
-    <title>Ingest Summary</title>
-
-    <meta charset="UTF-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
-
-    <!--Bootstrap styles-->
-    <link rel="stylesheet" type="text/css" href="css/bootstrap-spot.min.css" />
-    <!--Bootstrap Date picker styles-->
-    <link rel="stylesheet" type="text/css" href="node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker3.min.css" />
-    <!-- Spot styles -->
-    <link rel="stylesheet" type="text/css" href="css/main.css" />
-    <!-- Favicon -->
-    <link rel="apple-touch-icon" sizes="57x57" href="images/favicon/apple-icon-57x57.png">
-    <link rel="apple-touch-icon" sizes="60x60" href="images/favicon/apple-icon-60x60.png"
-    <link rel="apple-touch-icon" sizes="72x72" href="images/favicon/apple-icon-72x72.png">
-    <link rel="apple-touch-icon" sizes="76x76" href="images/favicon/apple-icon-76x76.png">
-    <link rel="apple-touch-icon" sizes="114x114" href="images/favicon/apple-icon-114x114.png">
-    <link rel="apple-touch-icon" sizes="120x120" href="images/favicon/apple-icon-120x120.png">
-    <link rel="apple-touch-icon" sizes="144x144" href="images/favicon/apple-icon-144x144.png">
-    <link rel="apple-touch-icon" sizes="152x152" href="images/favicon/apple-icon-152x152.png">
-    <link rel="apple-touch-icon" sizes="180x180" href="images/favicon/apple-icon-180x180.png">
-    <link rel="icon" type="image/png" sizes="192x192"  href="images/favicon/android-icon-192x192.png">
-    <link rel="icon" type="image/png" sizes="32x32" href="images/favicon/favicon-32x32.png">
-    <link rel="icon" type="image/png" sizes="96x96" href="images/favicon/favicon-96x96.png">
-    <link rel="icon" type="image/png" sizes="16x16" href="images/favicon/favicon-16x16.png">
-    <link rel="manifest" href="images/favicon/manifest.json">
-    <meta name="msapplication-TileColor" content="#ffffff">
-    <meta name="msapplication-TileImage" content="images/favicon/ms-icon-144x144.png">
-    <meta name="theme-color" content="#ffffff">
-    <style type="text/css">
-        .spot-row {
-            height: 100%;
-        }
-
-        .is-chart svg {
-            width: 100%;
-            height: 100%;
-        }
-
-        .is-chart svg .header text {
-            text-anchor: middle;
-            fill: #82837e;
-        }
-
-        .is-chart svg .header text tspan.bold {
-            font-weight: bold;
-        }
-
-        .is-chart .axis {
-            shape-rendering: crispEdges;
-        }
-
-        .is-chart .axis path, .is-chart .axis line {
-            fill: none;
-        }
-
-        .is-chart .pipeline {
-            pointer-events: all;
-        }
-
-        .is-chart .pipeline.zoom-in {
-            cursor: zoom-in;
-        }
-
-        .is-chart .pipeline.zoom-out {
-            cursor: zoom-out;
-        }
-
-        .is-chart .pipeline.e-resize {
-            cursor: e-resize;
-        }
-    </style>
-</head>
-<body>
-    <nav id="spot-nav" class="navbar navbar-default">
-        <div class="container-fluid">
-            <!-- App name and toggle get grouped for better mobile display -->
-            <div class="navbar-header">
-                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-menu">
-                    <span class="sr-only">Toggle navigation</span>
-                    <span class="icon-bar"></span>
-                    <span class="icon-bar"></span>
-                    <span class="icon-bar"></span>
-                </button>
-                <span class="navbar-brand">Apache Spot :: Ingest Summary</span>
-            </div>
-            <!-- Collect the nav links, forms, and other content for toggling -->
-            <div class="collapse navbar-collapse" id="main-menu">
-              <!-- Main Menu -->
-            </div>
-            <div id="search-box" class="row text-right">
-                <!--Tools Buttons-->
-                <div id="nav_form" class="col-md-12">
-                  <!-- Search form placeholder -->
-                </div>
-            </div> <!-- /Tools Buttons-->
-        </div>
-    </nav>
-    <div id="spot-content-wrapper" class="container-fluid">
-      <!-- Main Content Placeholder -->
-    </div>
-
-    <!-- SCRIPTS -->
-    <script type="application/javascript" src="node_modules/jquery/dist/jquery.min.js"></script>
-    <script type="application/javascript" src="node_modules/d3/d3.min.js"></script>
-    <script type="application/javascript" src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
-    <script type="application/javascript" src="node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
-    <script type="application/javascript" src="node_modules/react/dist/react.min.js"></script>
-    <script type="application/javascript" src="node_modules/react-dom/dist/react-dom.min.js"></script>
-    <script type="application/javascript" src="js/ingest-summary.bundle.min.js"></script>
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/819d4e69/spot-oa/ui/ingest/ingest-summary.html
----------------------------------------------------------------------
diff --git a/spot-oa/ui/ingest/ingest-summary.html b/spot-oa/ui/ingest/ingest-summary.html
new file mode 100644
index 0000000..41324e1
--- /dev/null
+++ b/spot-oa/ui/ingest/ingest-summary.html
@@ -0,0 +1,132 @@
+<!DOCTYPE html>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<html>
+<head>
+    <title>Ingest Summary</title>
+
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
+
+    <!--Bootstrap styles-->
+    <link rel="stylesheet" type="text/css" href="../css/bootstrap-spot.min.css" />
+    <!--Bootstrap Date picker styles-->
+    <link rel="stylesheet" type="text/css" href="../node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker3.min.css" />
+    <!-- Spot styles -->
+    <link rel="stylesheet" type="text/css" href="../css/main.css" />
+    <!-- Favicon -->
+    <link rel="apple-touch-icon" sizes="57x57" href="../images/favicon/apple-icon-57x57.png">
+    <link rel="apple-touch-icon" sizes="60x60" href="../images/favicon/apple-icon-60x60.png"
+    <link rel="apple-touch-icon" sizes="72x72" href="../images/favicon/apple-icon-72x72.png">
+    <link rel="apple-touch-icon" sizes="76x76" href="../images/favicon/apple-icon-76x76.png">
+    <link rel="apple-touch-icon" sizes="114x114" href="../images/favicon/apple-icon-114x114.png">
+    <link rel="apple-touch-icon" sizes="120x120" href="../images/favicon/apple-icon-120x120.png">
+    <link rel="apple-touch-icon" sizes="144x144" href="../images/favicon/apple-icon-144x144.png">
+    <link rel="apple-touch-icon" sizes="152x152" href="../images/favicon/apple-icon-152x152.png">
+    <link rel="apple-touch-icon" sizes="180x180" href="../images/favicon/apple-icon-180x180.png">
+    <link rel="icon" type="image/png" sizes="192x192"  href="../images/favicon/android-icon-192x192.png">
+    <link rel="icon" type="image/png" sizes="32x32" href="../images/favicon/favicon-32x32.png">
+    <link rel="icon" type="image/png" sizes="96x96" href="../images/favicon/favicon-96x96.png">
+    <link rel="icon" type="image/png" sizes="16x16" href="../images/favicon/favicon-16x16.png">
+    <link rel="manifest" href="../images/favicon/manifest.json">
+    <meta name="msapplication-TileColor" content="#ffffff">
+    <meta name="msapplication-TileImage" content="images/favicon/ms-icon-144x144.png">
+    <meta name="theme-color" content="#ffffff">
+    <style type="text/css">
+        .spot-row {
+            height: 100%;
+        }
+
+        .is-chart svg {
+            width: 100%;
+            height: 100%;
+        }
+
+        .is-chart svg .header text {
+            text-anchor: middle;
+            fill: #82837e;
+        }
+
+        .is-chart svg .header text tspan.bold {
+            font-weight: bold;
+        }
+
+        .is-chart .axis {
+            shape-rendering: crispEdges;
+        }
+
+        .is-chart .axis path, .is-chart .axis line {
+            fill: none;
+        }
+
+        .is-chart .pipeline {
+            pointer-events: all;
+        }
+
+        .is-chart .pipeline.zoom-in {
+            cursor: zoom-in;
+        }
+
+        .is-chart .pipeline.zoom-out {
+            cursor: zoom-out;
+        }
+
+        .is-chart .pipeline.e-resize {
+            cursor: e-resize;
+        }
+    </style>
+</head>
+<body>
+    <nav id="spot-nav" class="navbar navbar-default">
+        <div class="container-fluid">
+            <!-- App name and toggle get grouped for better mobile display -->
+            <div class="navbar-header">
+                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-menu">
+                    <span class="sr-only">Toggle navigation</span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                </button>
+                <span class="navbar-brand">Apache Spot :: Ingest Summary</span>
+            </div>
+            <!-- Collect the nav links, forms, and other content for toggling -->
+            <div class="collapse navbar-collapse" id="main-menu">
+              <!-- Main Menu -->
+            </div>
+            <div id="search-box" class="row text-right">
+                <!--Tools Buttons-->
+                <div id="nav_form" class="col-md-12">
+                  <!-- Search form placeholder -->
+                </div>
+            </div> <!-- /Tools Buttons-->
+        </div>
+    </nav>
+    <div id="spot-content-wrapper" class="container-fluid">
+      <!-- Main Content Placeholder -->
+    </div>
+
+    <!-- SCRIPTS -->
+    <script type="application/javascript" src="../node_modules/jquery/dist/jquery.min.js"></script>
+    <script type="application/javascript" src="../node_modules/d3/d3.min.js"></script>
+    <script type="application/javascript" src="../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
+    <script type="application/javascript" src="../node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
+    <script type="application/javascript" src="../node_modules/react/dist/react.min.js"></script>
+    <script type="application/javascript" src="../node_modules/react-dom/dist/react-dom.min.js"></script>
+    <script type="application/javascript" src="../js/ingest-summary.bundle.min.js"></script>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/819d4e69/spot-oa/ui/js/ingest-summary.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/js/ingest-summary.js b/spot-oa/ui/js/ingest-summary.js
index 31d0b50..873b989 100755
--- a/spot-oa/ui/js/ingest-summary.js
+++ b/spot-oa/ui/js/ingest-summary.js
@@ -5,6 +5,7 @@ const ReactDOM = require('react-dom');
 
 const SpotActions = require('./actions/SpotActions');
 const InSumActions = require('./actions/InSumActions');
+const EdInActions = require('./actions/EdInActions');
 const IngestSummaryStore = require('./stores/IngestSummaryStore');
 const SpotConstants = require('./constants/SpotConstants');
 const SpotUtils = require('./utils/SpotUtils');
@@ -13,7 +14,7 @@ const DateUtils = require('./utils/DateUtils');
 // Build and Render Toolbar
 const DateInput = require('./components/DateInput.react');
 const OptionPicker = require('./components/OptionPicker.react');
-const MainMenu = require('../../js/menu/components/MainMenu.react');
+const MainMenu = require('./menu/components/MainMenu.react');
 
 // Find out period
 var startDate, endDate, today;
@@ -58,6 +59,8 @@ ReactDOM.render(
   <MainMenu />,
   document.getElementById('main-menu')
 );
+EdInActions.getWidgets('menu', '');
+SpotActions.setDate(SpotUtils.getCurrentDate());
 
 ReactDOM.render(
     <form className="form-inline">

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/819d4e69/spot-oa/ui/js/menu/menu.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/js/menu/menu.js b/spot-oa/ui/js/menu/menu.js
index aca6a52..23109fb 100644
--- a/spot-oa/ui/js/menu/menu.js
+++ b/spot-oa/ui/js/menu/menu.js
@@ -28,7 +28,7 @@ let menu =
                   // {name: 'Advanced Mode', link: '../proxy/ipython_notebook.html#date=${date}', target: '_blank'}
                 ]
               },
-              {name: 'Ingest Summary', link: '../ingest-summary.html#end-date=${date}|pipeline=proxy', glyphicon: '', labelledby: '', sub: [], target: '_self'},
+              {name: 'Ingest Summary', link: '../ingest/ingest-summary.html#end-date=${date}|pipeline=proxy', glyphicon: '', labelledby: '', sub: [], target: '_self'},
               {name: 'Plugins', link: '', glyphicon: '', labelledby: 'pluginsMenu', sub: []}
 
           ]


[3/6] incubator-spot git commit: Flow dynamic menu, now SPOT menu has an object who's reflected on all menus without editing every .html page

Posted by le...@apache.org.
Flow dynamic menu, now SPOT menu has an object who's reflected on all menus without editing every .html page


Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/97fcb3de
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/97fcb3de
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/97fcb3de

Branch: refs/heads/SPOT-35_graphql_api
Commit: 97fcb3ded3b95f873bf82fcb88e0ffa75f371b77
Parents: 291714c
Author: Montes Velazquez <jo...@intel.com>
Authored: Wed May 3 09:29:39 2017 -0500
Committer: LedaLima <ga...@intel.com>
Committed: Tue Jun 20 12:15:45 2017 -0500

----------------------------------------------------------------------
 spot-oa/ui/flow/js/storyboard.js                |  6 ++
 spot-oa/ui/flow/js/suspicious.js                |  6 ++
 spot-oa/ui/flow/js/threat-investigation.js      |  6 ++
 spot-oa/ui/flow/storyboard.html                 | 58 +-------------------
 spot-oa/ui/flow/suspicious.html                 | 57 +------------------
 spot-oa/ui/flow/threat-investigation.html       | 58 +-------------------
 spot-oa/ui/js/menu/components/MainMenu.react.js | 58 ++++++++++++++++++++
 spot-oa/ui/js/menu/menu.js                      | 42 ++++++++++++++
 spot-oa/ui/js/menu/stores/MainMenuStore.js      | 42 ++++++++++++++
 9 files changed, 165 insertions(+), 168 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/97fcb3de/spot-oa/ui/flow/js/storyboard.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/flow/js/storyboard.js b/spot-oa/ui/flow/js/storyboard.js
index 6970553..c7bf775 100755
--- a/spot-oa/ui/flow/js/storyboard.js
+++ b/spot-oa/ui/flow/js/storyboard.js
@@ -11,6 +11,7 @@ const SpotUtils = require('../../js/utils/SpotUtils');
 
 // Build and Render Toolbar
 const DateInput = require('../../js/components/DateInput.react');
+const MainMenu = require('../../js/menu/components/MainMenu.react');
 
 function resetFilterAndReload()
 {
@@ -19,6 +20,11 @@ function resetFilterAndReload()
 };
 
 ReactDOM.render(
+  <MainMenu />,
+  document.getElementById('main-menu')
+);
+
+ReactDOM.render(
   (
     <form className="form-inline">
       <div className="form-group">

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/97fcb3de/spot-oa/ui/flow/js/suspicious.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/flow/js/suspicious.js b/spot-oa/ui/flow/js/suspicious.js
index 12d7b5a..58642f8 100755
--- a/spot-oa/ui/flow/js/suspicious.js
+++ b/spot-oa/ui/flow/js/suspicious.js
@@ -11,6 +11,7 @@ const SpotUtils = require('../../js/utils/SpotUtils');
 // Build and Render Toolbar
 const FilterInput = require('./components/FilterInput.react');
 const DateInput = require('../../js/components/DateInput.react');
+const MainMenu = require('../../js/menu/components/MainMenu.react');
 
 function resetFilterAndReload()
 {
@@ -23,6 +24,11 @@ function switchComponents () {
 };
 
 ReactDOM.render(
+  <MainMenu />,
+  document.getElementById('main-menu')
+);
+
+ReactDOM.render(
   (
     <form className="form-inline">
       <div className="form-group">

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/97fcb3de/spot-oa/ui/flow/js/threat-investigation.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/flow/js/threat-investigation.js b/spot-oa/ui/flow/js/threat-investigation.js
index 7bdfe20..89fef3f 100755
--- a/spot-oa/ui/flow/js/threat-investigation.js
+++ b/spot-oa/ui/flow/js/threat-investigation.js
@@ -7,6 +7,12 @@ const SpotActions = require('../../js/actions/SpotActions');
 const SpotUtils = require('../../js/utils/SpotUtils');
 
 const DateInput = require('../../js/components/DateInput.react');
+const MainMenu = require('../../js/menu/components/MainMenu.react');
+
+ReactDOM.render(
+  <MainMenu />,
+  document.getElementById('main-menu')
+);
 
 ReactDOM.render(
     (

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/97fcb3de/spot-oa/ui/flow/storyboard.html
----------------------------------------------------------------------
diff --git a/spot-oa/ui/flow/storyboard.html b/spot-oa/ui/flow/storyboard.html
index 48121c2..f295d71 100755
--- a/spot-oa/ui/flow/storyboard.html
+++ b/spot-oa/ui/flow/storyboard.html
@@ -21,6 +21,7 @@
     <title>NetFlow :: Storyboard</title>
 
     <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
 
     <!--Bootstrap styles-->
     <link rel="stylesheet" type="text/css" href="../css/bootstrap-spot.min.css" />
@@ -70,62 +71,7 @@
             </div>
             <!-- Collect the nav links, forms, and other content for toggling -->
             <div class="collapse navbar-collapse" id="main-menu">
-                <ul class="nav navbar-nav navbar-right">
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Flows
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="flowsMenu">
-                            <li>
-                                <a data-href="suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            DNS
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="dnsMenu">
-                            <li>
-                                <a data-href="../dns/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../dns/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../dns/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Proxy
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="proxyMenu">
-                            <li>
-                                <a data-href="../proxy/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../proxy/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../proxy/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li>
-                        <a data-href="../ingest-summary.html#end-date=${date}|pipeline=flow">Ingest Summary</a>
-                    </li>
-                </ul>
+              <!-- Main Menu -->
             </div>
             <div id="search-box" class="row text-right">
                 <!--Tools Buttons-->

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/97fcb3de/spot-oa/ui/flow/suspicious.html
----------------------------------------------------------------------
diff --git a/spot-oa/ui/flow/suspicious.html b/spot-oa/ui/flow/suspicious.html
index 01d5f50..5fea68e 100755
--- a/spot-oa/ui/flow/suspicious.html
+++ b/spot-oa/ui/flow/suspicious.html
@@ -78,62 +78,7 @@
             </div>
             <!-- Collect the nav links, forms, and other content for toggling -->
             <div class="collapse navbar-collapse" id="main-menu">
-                <ul class="nav navbar-nav navbar-right">
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Flows
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="flowsMenu">
-                            <li>
-                                <a data-href="suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            DNS
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="dnsMenu">
-                            <li>
-                                <a data-href="../dns/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../dns/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../dns/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Proxy
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="proxyMenu">
-                            <li>
-                                <a data-href="../proxy/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../proxy/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../proxy/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li>
-                        <a data-href="../ingest-summary.html#end-date=${date}|pipeline=flow">Ingest Summary</a>
-                    </li>
-                </ul>
+              <!-- Main Menu -->
             </div>
             <div id="search-box" class="row text-right">
                 <!--Tools Buttons-->

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/97fcb3de/spot-oa/ui/flow/threat-investigation.html
----------------------------------------------------------------------
diff --git a/spot-oa/ui/flow/threat-investigation.html b/spot-oa/ui/flow/threat-investigation.html
index 0b80392..0d51e7e 100755
--- a/spot-oa/ui/flow/threat-investigation.html
+++ b/spot-oa/ui/flow/threat-investigation.html
@@ -21,6 +21,7 @@
     <title>Netflow :: Threat Investigation</title>
 
     <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
 
     <!--Bootstrap styles-->
     <link rel="stylesheet" type="text/css" href="../css/bootstrap-spot.min.css" />
@@ -68,62 +69,7 @@
             </div>
             <!-- Collect the nav links, forms, and other content for toggling -->
             <div class="collapse navbar-collapse" id="main-menu">
-                <ul class="nav navbar-nav navbar-right">
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Flows
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="flowsMenu">
-                            <li>
-                                <a data-href="suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            DNS
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="dnsMenu">
-                            <li>
-                                <a data-href="../dns/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../dns/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../dns/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Proxy
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="proxyMenu">
-                            <li>
-                                <a data-href="../proxy/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../proxy/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../proxy/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li>
-                        <a data-href="../ingest-summary.html#end-date=${date}|pipeline=flow">Ingest Summary</a>
-                    </li>
-                </ul>
+              <!-- Main Menu -->
             </div>
             <div id="search-box" class="row text-right">
                 <!--Tools Buttons-->

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/97fcb3de/spot-oa/ui/js/menu/components/MainMenu.react.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/js/menu/components/MainMenu.react.js b/spot-oa/ui/js/menu/components/MainMenu.react.js
new file mode 100644
index 0000000..e5a9ceb
--- /dev/null
+++ b/spot-oa/ui/js/menu/components/MainMenu.react.js
@@ -0,0 +1,58 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.
+
+var React = require('react');
+
+var MainMenuStore = require('../stores/MainMenuStore');
+
+var MainMenu = React.createClass({
+  getInitialState: function () {
+    return {
+      menu: MainMenuStore.getMenu()
+    };
+  },
+  componentDidMount: function () {
+    MainMenuStore.addChangeMenuListener(this.onChange);
+  },
+  componentWillUnmount: function () {
+    MainMenuStore.removeChangeMenuListener(this.onChange);
+  },
+  render: function () {
+    let createdMenu = this.state.menu.map((dropdwn) =>
+      <li className="dropdown">
+          {(dropdwn.sub.length === 0 && dropdwn.labelledby === 'pluginsMenu') ? '' : dropdwn.sub.length === 0 ?
+            <a data-href={dropdwn.link} target={dropdwn.target}>{dropdwn.name}</a>
+            :
+            <a className="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
+                {dropdwn.glyphicon !== '' ? <span className={'glyphicon ' + dropdwn.glyphicon} aria-hidden="true"></span>
+                :
+                dropdwn.name}&nbsp;
+                <span className="caret"></span>
+            </a>
+          }
+          <ul className="dropdown-menu" aria-labelledby={dropdwn.labelledby}>
+            {dropdwn.sub.map((li) =>
+              <li>
+                  <a data-href={li.link} target={li.target}>{li.name}</a>
+              </li>
+            )}
+          </ul>
+      </li>
+    );
+
+    return(
+      <div>
+        <ul className="nav navbar-nav navbar-right">
+          {createdMenu}
+        </ul>
+      </div>
+    );
+  },
+  onChange: function ()
+  {
+    this.setState({menu: MainMenuStore.getMenu()});
+  }
+
+});
+
+
+module.exports = MainMenu;

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/97fcb3de/spot-oa/ui/js/menu/menu.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/js/menu/menu.js b/spot-oa/ui/js/menu/menu.js
new file mode 100644
index 0000000..c34cf29
--- /dev/null
+++ b/spot-oa/ui/js/menu/menu.js
@@ -0,0 +1,42 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.
+
+let menu =
+    {
+       menu:
+          [
+             {name: 'Flows', link: '', glyphicon: '', labelledby: 'flowsMenu', sub:
+                [
+                   {name: 'Suspicious', link: '../flow/suspicious.html#date=${date}', target: '_self'},
+                   {name: 'Threat Investigation', link: '../flow/threat-investigation.html#date=${date}', target: '_self'},
+                   {name: 'Storyboard', link: '../flow/storyboard.html#date=${date}', target: '_self'},
+                  //  {name: 'Advanced Mode', link: '../flow/ipython_notebook.html#date=${date}', target: '_blank'}
+                ]
+             },
+             {name: 'DNS', link: '', glyphicon: '', labelledby: 'dnsMenu', sub:
+                [
+                  {name: 'Suspicious', link: '../dns/suspicious.html#date=${date}', target: '_self'},
+                  {name: 'Threat Investigation', link: '../dns/threat-investigation.html#date=${date}', target: '_self'},
+                  {name: 'Storyboard', link: '../dns/storyboard.html#date=${date}', target: '_self'},
+                  // {name: 'Advanced Mode', link: '../dns/ipython_notebook.html#date=${date}', target: '_blank'}
+                ]
+              },
+              {name: 'Proxy', link: '', glyphicon: '', labelledby: 'proxyMenu', sub:
+                [
+                  {name: 'Suspicious', link: '../proxy/suspicious.html#date=${date}', target: '_self'},
+                  {name: 'Threat Investigation', link: '../proxy/threat-investigation.html#date=${date}', target: '_self'},
+                  {name: 'Storyboard', link: '../proxy/storyboard.html#date=${date}', target: '_self'},
+                  // {name: 'Advanced Mode', link: '../proxy/ipython_notebook.html#date=${date}', target: '_blank'}
+                ]
+              },
+              {name: 'Ingest Summary', link: '../ingest-summary.html#end-date=${date}|pipeline=proxy', glyphicon: '', labelledby: '', sub: [], target: '_self'},
+              {name: '', link: '', glyphicon: 'glyphicon-cog', labelledby: 'configMenu', sub:
+                [
+                  {name: 'Manage Plugins', link: '../config/plugins.html#date=${date}', target: '_self'}
+                ]
+              },
+              {name: 'Plugins', link: '', glyphicon: '', labelledby: 'pluginsMenu', sub: []}
+
+          ]
+    };
+
+module.exports = menu;

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/97fcb3de/spot-oa/ui/js/menu/stores/MainMenuStore.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/js/menu/stores/MainMenuStore.js b/spot-oa/ui/js/menu/stores/MainMenuStore.js
new file mode 100644
index 0000000..078c1d7
--- /dev/null
+++ b/spot-oa/ui/js/menu/stores/MainMenuStore.js
@@ -0,0 +1,42 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.
+const EventEmitter = require('events').EventEmitter;
+
+const SpotDispatcher = require('../../../js/dispatchers/SpotDispatcher');
+const SpotConstants = require('../../../js/constants/SpotConstants');
+const Menu = require('../menu');
+
+class MainMenuStore {
+    constructor() {
+        this.menu = Menu.menu;
+        this.eventEmitter = new EventEmitter();
+    }
+
+    getMenu() {
+      return this.menu;
+    }
+
+    addChangeMenuListener(callback) {
+        this.eventEmitter.on('change', callback);
+    }
+
+    removeChangeMenuListener(callback) {
+        this.eventEmitter.removeListener('change', callback);
+    }
+
+    notifyListeners() {
+        this.eventEmitter.emit('change');
+    }
+
+}
+
+const mm = new MainMenuStore();
+
+SpotDispatcher.register(function (action) {
+    switch (action.actionType) {
+        case SpotConstants.RELOAD_MENU:
+            mm.notifyListeners();
+            break;
+    }
+});
+
+module.exports = mm;


[4/6] incubator-spot git commit: DNS dynamic menu, now SPOT menu has an object who's reflected on all menus without editing every .html page

Posted by le...@apache.org.
DNS dynamic menu, now SPOT menu has an object who's reflected on all menus without editing every .html page


Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/c2466e49
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/c2466e49
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/c2466e49

Branch: refs/heads/SPOT-35_graphql_api
Commit: c2466e4998599e4ca3e7138c49d62e7ea092b918
Parents: 97fcb3d
Author: Montes Velazquez <jo...@intel.com>
Authored: Wed May 3 09:35:07 2017 -0500
Committer: LedaLima <ga...@intel.com>
Committed: Tue Jun 20 12:15:45 2017 -0500

----------------------------------------------------------------------
 spot-oa/ui/dns/js/storyboard.js           |  6 +++
 spot-oa/ui/dns/js/suspicious.js           |  6 +++
 spot-oa/ui/dns/js/threat-investigation.js |  6 +++
 spot-oa/ui/dns/storyboard.html            | 58 +-------------------------
 spot-oa/ui/dns/suspicious.html            | 57 +------------------------
 spot-oa/ui/dns/threat-investigation.html  | 58 +-------------------------
 6 files changed, 23 insertions(+), 168 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/c2466e49/spot-oa/ui/dns/js/storyboard.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/dns/js/storyboard.js b/spot-oa/ui/dns/js/storyboard.js
index 7374828..d09ddf8 100755
--- a/spot-oa/ui/dns/js/storyboard.js
+++ b/spot-oa/ui/dns/js/storyboard.js
@@ -8,6 +8,12 @@ const SpotConstants = require('../../js/constants/SpotConstants');
 const SpotUtils = require('../../js/utils/SpotUtils');
 const DateInput = require('../../js/components/DateInput.react');
 const StoryboardActions = require('../../js/actions/StoryboardActions');
+const MainMenu = require('../../js/menu/components/MainMenu.react');
+
+ReactDOM.render(
+  <MainMenu />,
+  document.getElementById('main-menu')
+);
 
 ReactDOM.render(
   (

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/c2466e49/spot-oa/ui/dns/js/suspicious.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/dns/js/suspicious.js b/spot-oa/ui/dns/js/suspicious.js
index 57f8968..fe45118 100755
--- a/spot-oa/ui/dns/js/suspicious.js
+++ b/spot-oa/ui/dns/js/suspicious.js
@@ -11,6 +11,7 @@ const SpotUtils = require('../../js/utils/SpotUtils');
 // Build and Render Toolbar
 const FilterInput = require('./components/FilterInput.react');
 const DateInput = require('../../js/components/DateInput.react');
+const MainMenu = require('../../js/menu/components/MainMenu.react');
 
 function resetFilterAndReload()
 {
@@ -23,6 +24,11 @@ function switchComponents () {
 };
 
 ReactDOM.render(
+  <MainMenu />,
+  document.getElementById('main-menu')
+);
+
+ReactDOM.render(
   (
     <form className="form-inline">
       <div className="form-group">

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/c2466e49/spot-oa/ui/dns/js/threat-investigation.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/dns/js/threat-investigation.js b/spot-oa/ui/dns/js/threat-investigation.js
index efd5c1c..adf60f9 100755
--- a/spot-oa/ui/dns/js/threat-investigation.js
+++ b/spot-oa/ui/dns/js/threat-investigation.js
@@ -7,6 +7,12 @@ const SpotActions = require('../../js/actions/SpotActions');
 const SpotUtils = require('../../js/utils/SpotUtils');
 
 const DateInput = require('../../js/components/DateInput.react');
+const MainMenu = require('../../js/menu/components/MainMenu.react');
+
+ReactDOM.render(
+  <MainMenu />,
+  document.getElementById('main-menu')
+);
 
 ReactDOM.render(
     (

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/c2466e49/spot-oa/ui/dns/storyboard.html
----------------------------------------------------------------------
diff --git a/spot-oa/ui/dns/storyboard.html b/spot-oa/ui/dns/storyboard.html
index 251a289..e478081 100755
--- a/spot-oa/ui/dns/storyboard.html
+++ b/spot-oa/ui/dns/storyboard.html
@@ -21,6 +21,7 @@
     <title>DNS :: Storyboard</title>
 
     <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
 
     <!--Bootstrap styles-->
     <link rel="stylesheet" type="text/css" href="../css/bootstrap-spot.min.css" />
@@ -70,62 +71,7 @@
             </div>
             <!-- Collect the nav links, forms, and other content for toggling -->
             <div class="collapse navbar-collapse" id="main-menu">
-                <ul class="nav navbar-nav navbar-right">
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Flows
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="flowsMenu">
-                            <li>
-                                <a data-href="../flow/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../flow/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../flow/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            DNS
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="dnsMenu">
-                            <li>
-                                <a data-href="suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Proxy
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="proxyMenu">
-                            <li>
-                                <a data-href="../proxy/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../proxy/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../proxy/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li>
-                        <a data-href="../ingest-summary.html#end-date=${date}|pipeline=dns">Ingest Summary</a>
-                    </li>
-                </ul>
+              <!-- Main Menu -->
             </div>
             <div id="search-box" class="row text-right">
                 <!--Tools Buttons-->

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/c2466e49/spot-oa/ui/dns/suspicious.html
----------------------------------------------------------------------
diff --git a/spot-oa/ui/dns/suspicious.html b/spot-oa/ui/dns/suspicious.html
index b809026..e0ef0b5 100755
--- a/spot-oa/ui/dns/suspicious.html
+++ b/spot-oa/ui/dns/suspicious.html
@@ -83,62 +83,7 @@
             </div>
             <!-- Collect the nav links, forms, and other content for toggling -->
             <div class="collapse navbar-collapse" id="main-menu">
-                <ul class="nav navbar-nav navbar-right">
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Flows
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="flowsMenu">
-                            <li>
-                                <a data-href="../flow/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../flow/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../flow/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            DNS
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="dnsMenu">
-                            <li>
-                                <a data-href="suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Proxy
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="proxyMenu">
-                            <li>
-                                <a data-href="../proxy/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../proxy/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../proxy/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li>
-                        <a data-href="../ingest-summary.html#end-date=${date}|pipeline=dns">Ingest Summary</a>
-                    </li>
-                </ul>
+                <!-- Main Menu -->
             </div>
             <div id="search-box" class="row text-right">
                 <!--Tools Buttons-->

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/c2466e49/spot-oa/ui/dns/threat-investigation.html
----------------------------------------------------------------------
diff --git a/spot-oa/ui/dns/threat-investigation.html b/spot-oa/ui/dns/threat-investigation.html
index 804a988..1c504bf 100755
--- a/spot-oa/ui/dns/threat-investigation.html
+++ b/spot-oa/ui/dns/threat-investigation.html
@@ -21,6 +21,7 @@
     <title>DNS :: Threat Investigation</title>
 
     <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
 
     <!--Bootstrap styles-->
     <link rel="stylesheet" type="text/css" href="../css/bootstrap-spot.min.css" />
@@ -68,62 +69,7 @@
             </div>
             <!-- Collect the nav links, forms, and other content for toggling -->
             <div class="collapse navbar-collapse" id="main-menu">
-                <ul class="nav navbar-nav navbar-right">
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Flows
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="flowsMenu">
-                            <li>
-                                <a data-href="../flow/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../flow/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../flow/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            DNS
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="dnsMenu">
-                            <li>
-                                <a data-href="suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Proxy
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="proxyMenu">
-                            <li>
-                                <a data-href="../proxy/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../proxy/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../proxy/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li>
-                        <a data-href="../ingest-summary.html#end-date=${date}|pipeline=dns">Ingest Summary</a>
-                    </li>
-                </ul>
+              <!-- Main Menu -->
             </div>
             <div id="search-box" class="row text-right">
                 <!--Tools Buttons-->


[2/6] incubator-spot git commit: INGEST-SUMMARY dynamic menu, now SPOT menu has an object who's reflected on all menus without editing every .html page

Posted by le...@apache.org.
INGEST-SUMMARY dynamic menu, now SPOT menu has an object who's reflected on all menus without editing every .html page


Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/3fa17d39
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/3fa17d39
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/3fa17d39

Branch: refs/heads/SPOT-35_graphql_api
Commit: 3fa17d39e1f92027ed8b72a573fcba0778180a2b
Parents: 39ba681
Author: Montes Velazquez <jo...@intel.com>
Authored: Wed May 3 09:52:22 2017 -0500
Committer: LedaLima <ga...@intel.com>
Committed: Tue Jun 20 12:15:45 2017 -0500

----------------------------------------------------------------------
 spot-oa/ui/ingest-summary.html  | 58 ++----------------------------------
 spot-oa/ui/js/ingest-summary.js |  6 ++++
 2 files changed, 8 insertions(+), 56 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/3fa17d39/spot-oa/ui/ingest-summary.html
----------------------------------------------------------------------
diff --git a/spot-oa/ui/ingest-summary.html b/spot-oa/ui/ingest-summary.html
index bc910a9..68289e3 100755
--- a/spot-oa/ui/ingest-summary.html
+++ b/spot-oa/ui/ingest-summary.html
@@ -21,6 +21,7 @@
     <title>Ingest Summary</title>
 
     <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
 
     <!--Bootstrap styles-->
     <link rel="stylesheet" type="text/css" href="css/bootstrap-spot.min.css" />
@@ -105,62 +106,7 @@
             </div>
             <!-- Collect the nav links, forms, and other content for toggling -->
             <div class="collapse navbar-collapse" id="main-menu">
-                <ul class="nav navbar-nav navbar-right">
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Flows
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="flowsMenu">
-                            <li>
-                                <a data-href="flow/suspicious.html#date=${end-date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="flow/threat-investigation.html#date=${end-date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="flow/storyboard.html#date=${end-date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            DNS
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="dnsMenu">
-                            <li>
-                                <a data-href="dns/suspicious.html#date=${end-date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="dns/threat-investigation.html#date=${end-date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="dns/storyboard.html#date=${end-date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Proxy
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="proxyMenu">
-                            <li>
-                                <a data-href="proxy/suspicious.html#date=${end-date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="proxy/threat-investigation.html#date=${end-date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="proxy/storyboard.html#date=${end-date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li>
-                        <a>Ingest Summary</a>
-                    </li>
-                </ul>
+              <!-- Main Menu -->
             </div>
             <div id="search-box" class="row text-right">
                 <!--Tools Buttons-->

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/3fa17d39/spot-oa/ui/js/ingest-summary.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/js/ingest-summary.js b/spot-oa/ui/js/ingest-summary.js
index f374860..31d0b50 100755
--- a/spot-oa/ui/js/ingest-summary.js
+++ b/spot-oa/ui/js/ingest-summary.js
@@ -13,6 +13,7 @@ const DateUtils = require('./utils/DateUtils');
 // Build and Render Toolbar
 const DateInput = require('./components/DateInput.react');
 const OptionPicker = require('./components/OptionPicker.react');
+const MainMenu = require('../../js/menu/components/MainMenu.react');
 
 // Find out period
 var startDate, endDate, today;
@@ -54,6 +55,11 @@ const loadPipeline = function loadPipeline(pipeline) {
 }
 
 ReactDOM.render(
+  <MainMenu />,
+  document.getElementById('main-menu')
+);
+
+ReactDOM.render(
     <form className="form-inline">
         <div className="form-group">
             <label htmlFor="pipeline-picker">Source: </label>


[5/6] incubator-spot git commit: Update menu.js

Posted by le...@apache.org.
Update menu.js

Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/5be12f05
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/5be12f05
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/5be12f05

Branch: refs/heads/SPOT-35_graphql_api
Commit: 5be12f051006b6033911f37b317a7501b7c2af4c
Parents: 3fa17d3
Author: BryanMontes <br...@gmail.com>
Authored: Thu May 25 17:59:26 2017 -0500
Committer: LedaLima <ga...@intel.com>
Committed: Tue Jun 20 12:15:45 2017 -0500

----------------------------------------------------------------------
 spot-oa/ui/js/menu/menu.js | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/5be12f05/spot-oa/ui/js/menu/menu.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/js/menu/menu.js b/spot-oa/ui/js/menu/menu.js
index c34cf29..aca6a52 100644
--- a/spot-oa/ui/js/menu/menu.js
+++ b/spot-oa/ui/js/menu/menu.js
@@ -29,11 +29,6 @@ let menu =
                 ]
               },
               {name: 'Ingest Summary', link: '../ingest-summary.html#end-date=${date}|pipeline=proxy', glyphicon: '', labelledby: '', sub: [], target: '_self'},
-              {name: '', link: '', glyphicon: 'glyphicon-cog', labelledby: 'configMenu', sub:
-                [
-                  {name: 'Manage Plugins', link: '../config/plugins.html#date=${date}', target: '_self'}
-                ]
-              },
               {name: 'Plugins', link: '', glyphicon: '', labelledby: 'pluginsMenu', sub: []}
 
           ]


[6/6] incubator-spot git commit: PROXY dynamic menu, now SPOT menu has an object who's reflected on all menus without editing every .html page

Posted by le...@apache.org.
PROXY dynamic menu, now SPOT menu has an object who's reflected on all menus without editing every .html page


Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/39ba6817
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/39ba6817
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/39ba6817

Branch: refs/heads/SPOT-35_graphql_api
Commit: 39ba681736cb63d080ff8dbd4b589f78cd4322be
Parents: c2466e4
Author: Montes Velazquez <jo...@intel.com>
Authored: Wed May 3 09:47:51 2017 -0500
Committer: LedaLima <ga...@intel.com>
Committed: Tue Jun 20 12:15:45 2017 -0500

----------------------------------------------------------------------
 spot-oa/ui/proxy/js/storyboard.js           |  6 +++
 spot-oa/ui/proxy/js/suspicious.js           |  6 +++
 spot-oa/ui/proxy/js/threat-investigation.js |  6 +++
 spot-oa/ui/proxy/storyboard.html            | 58 +-----------------------
 spot-oa/ui/proxy/suspicious.html            | 57 +----------------------
 spot-oa/ui/proxy/threat-investigation.html  | 58 +-----------------------
 6 files changed, 23 insertions(+), 168 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/39ba6817/spot-oa/ui/proxy/js/storyboard.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/proxy/js/storyboard.js b/spot-oa/ui/proxy/js/storyboard.js
index f642f30..c0c243a 100755
--- a/spot-oa/ui/proxy/js/storyboard.js
+++ b/spot-oa/ui/proxy/js/storyboard.js
@@ -9,6 +9,12 @@ const SpotActions = require('../../js/actions/SpotActions');
 const SpotConstants = require('../../js/constants/SpotConstants');
 const SpotUtils = require('../../js/utils/SpotUtils');
 const StoryboardActions = require('../../js/actions/StoryboardActions');
+const MainMenu = require('../../js/menu/components/MainMenu.react');
+
+ReactDOM.render(
+  <MainMenu />,
+  document.getElementById('main-menu')
+);
 
 ReactDOM.render(
   (

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/39ba6817/spot-oa/ui/proxy/js/suspicious.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/proxy/js/suspicious.js b/spot-oa/ui/proxy/js/suspicious.js
index 74e0dd6..22f51a4 100755
--- a/spot-oa/ui/proxy/js/suspicious.js
+++ b/spot-oa/ui/proxy/js/suspicious.js
@@ -11,6 +11,7 @@ const SpotUtils = require('../../js/utils/SpotUtils');
 // Build and Render Toolbar
 const FilterInput = require('./components/FilterInput.react');
 const DateInput = require('../../js/components/DateInput.react');
+const MainMenu = require('../../js/menu/components/MainMenu.react');
 
 function resetFilterAndReload() {
     EdInActions.setFilter('');
@@ -22,6 +23,11 @@ function switchComponents () {
 };
 
 ReactDOM.render(
+  <MainMenu />,
+  document.getElementById('main-menu')
+);
+
+ReactDOM.render(
     (
         <form className="form-inline">
             <div className="form-group">

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/39ba6817/spot-oa/ui/proxy/js/threat-investigation.js
----------------------------------------------------------------------
diff --git a/spot-oa/ui/proxy/js/threat-investigation.js b/spot-oa/ui/proxy/js/threat-investigation.js
index 208f2ee..2662a32 100755
--- a/spot-oa/ui/proxy/js/threat-investigation.js
+++ b/spot-oa/ui/proxy/js/threat-investigation.js
@@ -7,6 +7,12 @@ const SpotActions = require('../../js/actions/SpotActions');
 const SpotUtils = require('../../js/utils/SpotUtils');
 
 const DateInput = require('../../js/components/DateInput.react');
+const MainMenu = require('../../js/menu/components/MainMenu.react');
+
+ReactDOM.render(
+  <MainMenu />,
+  document.getElementById('main-menu')
+);
 
 ReactDOM.render(
     (

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/39ba6817/spot-oa/ui/proxy/storyboard.html
----------------------------------------------------------------------
diff --git a/spot-oa/ui/proxy/storyboard.html b/spot-oa/ui/proxy/storyboard.html
index 8d23ebb..01bdd94 100755
--- a/spot-oa/ui/proxy/storyboard.html
+++ b/spot-oa/ui/proxy/storyboard.html
@@ -21,6 +21,7 @@
     <title>Proxy :: Storyboard</title>
 
     <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
 
     <!--Bootstrap styles-->
     <link rel="stylesheet" type="text/css" href="../css/bootstrap-spot.min.css" />
@@ -148,62 +149,7 @@
             </div>
             <!-- Collect the nav links, forms, and other content for toggling -->
             <div class="collapse navbar-collapse" id="main-menu">
-                <ul class="nav navbar-nav navbar-right">
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Flows
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="flowsMenu">
-                            <li>
-                                <a data-href="../flow/suspicious.html#date=${date}">Suspicious Connects</a>
-                            </li>
-                            <li>
-                                <a data-href="../flow/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../flow/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            DNS
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="proxyMenu">
-                            <li>
-                                <a data-href="../dns/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../dns/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../dns/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Proxy
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="dnsMenu">
-                            <li>
-                                <a data-href="suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li>
-                        <a data-href="../ingest-summary.html#end-date=${date}|pipeline=proxy">Ingest Summary</a>
-                    </li>
-                </ul>
+              <!-- Main Menu -->
             </div>
             <div id="search-box" class="row text-right">
                 <!--Tools Buttons-->

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/39ba6817/spot-oa/ui/proxy/suspicious.html
----------------------------------------------------------------------
diff --git a/spot-oa/ui/proxy/suspicious.html b/spot-oa/ui/proxy/suspicious.html
index d5874b1..29bea60 100755
--- a/spot-oa/ui/proxy/suspicious.html
+++ b/spot-oa/ui/proxy/suspicious.html
@@ -141,62 +141,7 @@
             </div>
             <!-- Collect the nav links, forms, and other content for toggling -->
             <div class="collapse navbar-collapse" id="main-menu">
-                <ul class="nav navbar-nav navbar-right">
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Flows
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="flowsMenu">
-                            <li>
-                                <a data-href="../flow/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../flow/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../flow/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            DNS
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="dnsMenu">
-                            <li>
-                                <a data-href="../dns/suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="../dns/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../dns/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Proxy
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="proxyMenu">
-                            <li>
-                                <a data-href="suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li>
-                        <a data-href="../ingest-summary.html#end-date=${date}|pipeline=proxy">Ingest Summary</a>
-                    </li>
-                </ul>
+              <!-- Main Menu -->
             </div>
             <div id="search-box" class="row text-right">
                 <!--Tools Buttons-->

http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/39ba6817/spot-oa/ui/proxy/threat-investigation.html
----------------------------------------------------------------------
diff --git a/spot-oa/ui/proxy/threat-investigation.html b/spot-oa/ui/proxy/threat-investigation.html
index 57b34eb..9493f98 100755
--- a/spot-oa/ui/proxy/threat-investigation.html
+++ b/spot-oa/ui/proxy/threat-investigation.html
@@ -21,6 +21,7 @@
     <title>Proxy :: Threat Investigation</title>
 
     <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
 
     <!--Bootstrap styles-->
     <link rel="stylesheet" type="text/css" href="../css/bootstrap-spot.min.css" />
@@ -67,62 +68,7 @@
             </div>
             <!-- Collect the nav links, forms, and other content for toggling -->
             <div class="collapse navbar-collapse" id="main-menu">
-                <ul class="nav navbar-nav navbar-right">
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Flows
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="flowsMenu">
-                            <li>
-                                <a data-href="../flow/suspicious.html#date=${date}">Suspicious Connects</a>
-                            </li>
-                            <li>
-                                <a data-href="../flow/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../flow/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            DNS
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="dnsMenu">
-                            <li>
-                                <a data-href="../dns/suspicious.html#date=${date}">Suspicious DNS</a>
-                            </li>
-                            <li>
-                                <a data-href="../dns/threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="../dns/storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li class="dropdown">
-                        <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
-                            Proxy
-                            <span class="caret"></span>
-                        </a>
-                        <ul class="dropdown-menu" aria-labelledby="proxyMenu">
-                            <li>
-                                <a data-href="suspicious.html#date=${date}">Suspicious</a>
-                            </li>
-                            <li>
-                                <a data-href="threat-investigation.html#date=${date}">Threat Investigation</a>
-                            </li>
-                            <li>
-                                <a data-href="storyboard.html#date=${date}">Storyboard</a>
-                            </li>
-                        </ul>
-                    </li>
-                    <li>
-                        <a data-href="../ingest-summary.html#end-date=${date}|pipeline=proxy">Ingest Summary</a>
-                    </li>
-                </ul>
+              <!-- Main Menu -->
             </div>
             <div id="search-box" class="row text-right">
                 <!--Tools Buttons-->