All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.buoyant.admin.js.main-linkerd.js Maven / Gradle / Ivy

There is a newer version: 1.7.5
Show newest version
require.config({
  paths: {
    'jQuery': 'lib/jquery-3.1.1.min',
    'lodash': 'lib/lodash.min',
    'handlebars.runtime': 'lib/handlebars.runtime',
    'bootstrap': 'lib/bootstrap.min',
    'Smoothie': 'lib/smoothie',
    'text': 'lib/text'
  },
  shim: {
    'jQuery': {
      exports: '$'
    },
    'lodash': {
      exports: '_'
    },
    'bootstrap': {
      deps : ['jQuery'],
      exports: 'Bootstrap'
    }
  }
});

require([
  'jQuery',
  'lodash',
  'bootstrap',
  'src/admin',
  'src/dashboard',
  'src/delegate',
  'src/namerd',
  'src/logging'
], function (
  $, _, bootstrap,
  adminPage,
  dashboardInitializer,
  linkerdDtabPlayground,
  namerd,
  loggingConfig
) {
  // poor man's routing
  if (window.location.pathname.endsWith("/")) {
    adminPage.initialize().done(function(routerConfig) {
      new dashboardInitializer(routerConfig);
    });
  } else if (window.location.pathname.endsWith("/delegator")) {
    adminPage.initialize(true).done(function() {
      new linkerdDtabPlayground();
    });
  } else if (window.location.pathname.endsWith("/namerd")) {
    adminPage.initialize().done(function() {
      new namerd();
    });
  } else if (window.location.pathname.endsWith("/logging")) {
    adminPage.initialize().done(function() {
      new loggingConfig();
    });
  } else if (window.location.pathname.endsWith("/services")) {
    new dashboardInitializer(null, "service");
  } else {
    adminPage.initialize();
  }
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy