From: Stas Vilchik Date: Thu, 31 Mar 2016 16:06:33 +0000 (+0200) Subject: expose js libraries X-Git-Tag: 5.5-M13~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=94696a27209003241144055079c7662308231db5;p=sonarqube.git expose js libraries --- diff --git a/server/sonar-web/src/main/js/main/app.js b/server/sonar-web/src/main/js/main/app.js index e3341bf337d..c1dc38a4907 100644 --- a/server/sonar-web/src/main/js/main/app.js +++ b/server/sonar-web/src/main/js/main/app.js @@ -28,6 +28,11 @@ import numeral from 'numeral'; import './processes'; import Navigation from './nav/app'; import { installGlobal, requestMessages } from '../helpers/l10n'; +import React from 'react'; +import ReactDOM from 'react-dom'; +import d3 from 'd3'; +import * as measures from '../helpers/measures'; +import * as request from '../helpers/request'; // set the Backbone's $ Backbone.$ = $; @@ -91,6 +96,16 @@ window.require = module => { return moment; case 'numeral': return numeral; + case 'react': + return React; + case 'react-dom': + return ReactDOM; + case 'd3': + return d3; + case 'sonar-measures': + return measures; + case 'sonar-request': + return request; default: return null; }