aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/maintenance/app.js
blob: dd2a626399d0578bd427f958d6001c2d0cf5fcbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import _ from 'underscore';
import Backbone from 'backbone';
import Marionette from 'backbone.marionette';
import MainView from './main-view';
import './partials';
import '../../helpers/handlebars-helpers';

var App = new Marionette.Application();

App.on('start', function () {
  let options = window.sonarqube;

  var viewOptions = _.extend(options, {
    model: new Backbone.Model()
  });
  var mainView = new MainView(viewOptions);
  mainView.render().refresh();
});

App.start();