Added Supervision/Monitoring support
[src/xds/xds-agent.git] / webapp / src / app / pages / pages-menu.ts
index 1a3dd97..230966d 100644 (file)
@@ -1,3 +1,39 @@
+/**
+* @license
+* Copyright (C) 2017-2018 "IoT.bzh"
+* Author Sebastien Douheret <sebastien@iot.bzh>
+*
+* Licensed 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.
+*/
+
+/**
+* @license
+* Copyright (C) 2017-2018 "IoT.bzh"
+* Author Sebastien Douheret <sebastien@iot.bzh>
+*
+* Licensed 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.
+*/
+
 import { NbMenuItem } from '@nebular/theme';
 
 export const MENU_ITEMS: NbMenuItem[] = [
@@ -11,171 +47,79 @@ export const MENU_ITEMS: NbMenuItem[] = [
     title: 'DEVELOPMENT',
     group: true,
   },
-  {
-    title: 'Projects',
-    icon: 'nb-keypad',
-    link: '/pages/projects',
-  },
   {
     title: 'SDKs',
     icon: 'fa fa-file-archive-o',
     link: '/pages/sdks',
-  },
-  {
-    title: 'Boards',
-    icon: 'fa fa-microchip',
-    children: [
-    ],
-  },
-  {
-    title: 'Build',
-    icon: 'fa fa-cogs',
-    link: '/pages/build',
-  },
-  {
-    title: 'MISC',
-    group: true,
-  },
-
-  {
-    title: 'Configuration',
-    icon: 'fa fa-sliders',
-    link: '/pages/config',
+    /*
     children: [
       {
-        title: 'Global',
-        link: '/pages/config/global',
-      },
-      {
-        title: 'XDS Server',
-        link: '/pages/config/xds',
+        title: 'SDKs Management',
+        link: '/pages/sdks/management',
       },
     ],
+    */
   },
-  /*
   {
-    title: 'UI Features',
+    title: 'Projects',
     icon: 'nb-keypad',
-    link: '/pages/ui-features',
-    children: [
-      {
-        title: 'Buttons',
-        link: '/pages/ui-features/buttons',
-      },
-      {
-        title: 'Grid',
-        link: '/pages/ui-features/grid',
-      },
-      {
-        title: 'Icons',
-        link: '/pages/ui-features/icons',
-      },
-      {
-        title: 'Modals',
-        link: '/pages/ui-features/modals',
-      },
-      {
-        title: 'Typography',
-        link: '/pages/ui-features/typography',
-      },
-      {
-        title: 'Animated Searches',
-        link: '/pages/ui-features/search-fields',
-      },
-      {
-        title: 'Tabs',
-        link: '/pages/ui-features/tabs',
-      },
-    ],
-  },
-  {
-    title: 'Forms',
-    icon: 'nb-compose',
-    children: [
-      {
-        title: 'Form Inputs',
-        link: '/pages/forms/inputs',
-      },
-      {
-        title: 'Form Layouts',
-        link: '/pages/forms/layouts',
-      },
-    ],
+    link: '/pages/projects',
   },
   {
-    title: 'Components',
-    icon: 'nb-gear',
-    children: [
-      {
-        title: 'Tree',
-        link: '/pages/components/tree',
-      }, {
-        title: 'Notifications',
-        link: '/pages/components/notifications',
-      },
-    ],
+    title: 'Build',
+    icon: 'fa fa-cogs',
+    link: '/pages/build',
   },
   {
-    title: 'Maps',
-    icon: 'nb-location',
+    title: 'Targets',
+    icon: 'fa fa-microchip',
+    link: '/pages/targets',
     children: [
       {
-        title: 'Google Maps',
-        link: '/pages/maps/gmaps',
+        title: 'List',
+        link: '/pages/targets/list',
       },
       {
-        title: 'Leaflet Maps',
-        link: '/pages/maps/leaflet',
-      },
-      {
-        title: 'Bubble Maps',
-        link: '/pages/maps/bubble',
+        title: 'Terminal',
+        link: '/pages/targets/term',
       },
     ],
   },
   {
-    title: 'Charts',
-    icon: 'nb-bar-chart',
+    title: 'Supervision / Monitoring',
+    icon: 'fa fa-bar-chart',
+    link: '/pages/supervision',
     children: [
       {
-        title: 'Echarts',
-        link: '/pages/charts/echarts',
-      },
-      {
-        title: 'Charts.js',
-        link: '/pages/charts/chartjs',
+        title: 'Config',
+        link: '/pages/supervision/config',
       },
       {
-        title: 'D3',
-        link: '/pages/charts/d3',
+        title: 'Graph',
+        link: '/pages/supervision/graph',
       },
     ],
   },
   {
-    title: 'Editors',
-    icon: 'nb-title',
-    children: [
-      {
-        title: 'TinyMCE',
-        link: '/pages/editors/tinymce',
-      },
-      {
-        title: 'CKEditor',
-        link: '/pages/editors/ckeditor',
-      },
-    ],
+    title: 'MISC',
+    group: true,
   },
+
   {
-    title: 'Tables',
-    icon: 'nb-tables',
+    title: 'Configuration',
+    icon: 'fa fa-sliders',
+    link: '/pages/config',
     children: [
       {
-        title: 'Smart Table',
-        link: '/pages/tables/smart-table',
+        title: 'Global',
+        link: '/pages/config/global',
+      },
+      {
+        title: 'XDS Server',
+        link: '/pages/config/xds',
       },
     ],
   },
-  */
   {
     title: 'Auth',
     icon: 'nb-locked',