mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-29 17:14:55 +01:00
58 lines
1.3 KiB
JavaScript
58 lines
1.3 KiB
JavaScript
'use strict';
|
|
module.exports = mindplot; //eslint-disable-line
|
|
|
|
function mindplot() {
|
|
// Jquery for mindplot and bootstrap
|
|
global.$ = require('jquery');
|
|
global.jQuery = require('jquery');
|
|
|
|
// Mootools for the classes of Mindplot
|
|
require('mootools');
|
|
|
|
// Underscore handling common tasks
|
|
global._ = require('underscore');
|
|
|
|
// Core-js packages of Wisemapping
|
|
global.core = require('@wismapping/core-js');
|
|
|
|
define(['raphael'], (Raphael) => {
|
|
global.Raphael = Raphael;
|
|
});
|
|
require('../test/playground/lib/raphael-plugins');
|
|
|
|
// Bootsrap for styles
|
|
require('./components/libraries/bootstrap/js/bootstrap.min');
|
|
|
|
/* * * * * * * *
|
|
* MINDPLOT *
|
|
* * * * * * * */
|
|
|
|
// Commands
|
|
const { Commands } = require('./components/commands');
|
|
|
|
// Layout
|
|
const { Layout } = require('./components/layout');
|
|
|
|
// Model
|
|
|
|
const { Model } = require('./components/model');
|
|
|
|
// Persistence
|
|
const { Persistence } = require('./components/persistence');
|
|
|
|
// Widgets
|
|
const { Widgets } = require('./components/widget');
|
|
|
|
// Components
|
|
const { Components } = require('./components');
|
|
|
|
return {
|
|
commands: Commands,
|
|
layout: Layout,
|
|
models: Model,
|
|
persistence: Persistence,
|
|
widget: Widgets,
|
|
component: Components,
|
|
};
|
|
}
|