{"size": 1338, "ext": "js", "max_stars_repo_path": "helper/tools/apache-jena-fuseki/webapp/js/app/controllers/manage-controller.js", "max_stars_repo_name": "ashishp98/vocol", "max_stars_repo_stars_event_min_datetime": "2015-03-03T11:52:31.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-05T09:21:11.000Z", "max_issues_repo_path": "fuseki/webapp/js/app/controllers/manage-controller.js", "max_issues_repo_name": "aabccd021/legal-kg", "max_issues_repo_issues_event_min_datetime": "2018-06-12T07:42:34.000Z", "max_issues_repo_issues_event_max_datetime": "2020-10-01T19:13:27.000Z", "max_forks_repo_path": "fuseki/webapp/js/app/controllers/manage-controller.js", "max_forks_repo_name": "aabccd021/legal-kg", "max_forks_repo_forks_event_min_datetime": "2015-07-20T13:16:26.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-09T17:00:54.000Z"}
{"max_stars_count": 90, "max_issues_count": 1404, "max_forks_count": 25, "avg_line_length": 33.45, "max_line_length": 100, "alphanum_fraction": 0.653961136}
/** Controller for the admin/data-management.html page */
define(
  function( require ) {
    var Marionette = require( "marionette" ),
        Backbone = require( "backbone" ),
        _ = require( "underscore" ),
        fui = require( "app/fui" ),
        TabbedViewManagerView = require( "app/views/tabbed-view-manager" ),
        DatasetSimpleCreateView = require( "app/views/dataset-simple-create" ),
        DatasetManagementView = require( "app/views/dataset-management" );

    var ManageController = function() {
      this.initEvents();
    };

    _.extend( ManageController.prototype, {

      initEvents: function() {
        _.bindAll( this, "onServerModelReady" );
        fui.vent.on( "models.fuseki-server.ready", this.onServerModelReady );
      },

      /** When the fuseki server is ready, we can list the initial datasets */
      onServerModelReady: function( event ) {
        fui.views.datasetManagement = new DatasetManagementView( {model: fui.models.fusekiServer} );
        fui.views.datasetManagement.render();

        fui.views.tabbedViewManagerView = new TabbedViewManagerView();
        fui.views.tabbedViewManagerView.render();

        fui.views.datasetSimpleCreate = new DatasetSimpleCreateView();
        fui.views.datasetSimpleCreate.render();
      }

    } );

    return ManageController;
  }
);
