Fix structure

This commit is contained in:
Paulo Gustavo Veiga 2021-10-02 18:37:42 -07:00
parent d53f13efd9
commit 32d803e271
19 changed files with 12 additions and 22 deletions

View File

@ -18,7 +18,7 @@ function mindplot() {
define(['raphael'], (Raphael) => { define(['raphael'], (Raphael) => {
global.Raphael = Raphael; global.Raphael = Raphael;
}); });
require('../test/javascript/static/test/raphael-plugins'); require('../test/playground/lib/raphael-plugins');
// Bootsrap for styles // Bootsrap for styles
require('./components/libraries/bootstrap/js/bootstrap.min'); require('./components/libraries/bootstrap/js/bootstrap.min');

View File

@ -1 +0,0 @@
../../../../../wise-editor/src/main/webapp/bootstrap/js/bootstrap.js

View File

@ -1 +0,0 @@
../../../../../core-js/target/classes/core.js

View File

@ -1 +0,0 @@
../../../../../wise-editor/src/main/webapp/js/jquery.js

View File

@ -1 +0,0 @@
../../../../../web2d/target/classes/web2d.svg-min.js

View File

@ -7,10 +7,9 @@
</head> </head>
<body> <body>
<div> <div>
<h1>Testing</h1> <h1>Mindplot Playground</h1>
<ul> <ul>
<li><a href="/layout">layout</a></li> <li><a href="/layout">layout</a></li>
<li><a href="/palette">Palette</a></li>
</ul> </ul>
</div> </div>
</body> </body>

View File

@ -17,7 +17,7 @@
*/ */
const TestSuite = require('./TestSuite').default; const TestSuite = require('./TestSuite').default;
const Mindplot = require('../../../../lib/mindplot'); const Mindplot = require('../../../lib/mindplot');
const mindplot = Mindplot(); const mindplot = Mindplot();
const BalancedTestSuite = new Class({ const BalancedTestSuite = new Class({

View File

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
const TestSuite = require('./TestSuite').default; const TestSuite = require('./TestSuite').default;
const Mindplot = require('../../../../lib/mindplot'); const Mindplot = require('../../../lib/mindplot');
const mindplot = Mindplot(); const mindplot = Mindplot();
const FreeTestSuite = new Class({ const FreeTestSuite = new Class({

View File

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
const TestSuite = require('./TestSuite').default; const TestSuite = require('./TestSuite').default;
const Mindplot = require('../../../../lib/mindplot'); const Mindplot = require('../../../lib/mindplot');
const mindplot = Mindplot(); const mindplot = Mindplot();
const SymmetricTestSuite = new Class({ const SymmetricTestSuite = new Class({

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
const Mindplot = require('../../../../lib/mindplot'); const Mindplot = require('../../../lib/mindplot');
const mindplot = Mindplot(); const mindplot = Mindplot();
const TestSuite = new Class({ const TestSuite = new Class({

View File

@ -1,4 +1,4 @@
const Mindplot = require('../../../../lib/mindplot'); const Mindplot = require('../../../lib/mindplot');
global.mindplot = Mindplot(); global.mindplot = Mindplot();
const TestSuite = require('./TestSuite').default; const TestSuite = require('./TestSuite').default;

View File

@ -1,4 +1,4 @@
const Mindplot = require('../../../../lib/mindplot'); const Mindplot = require('../../../lib/mindplot');
const mindplot = Mindplot(); const mindplot = Mindplot();
window.addEventListener('load', function (e) { window.addEventListener('load', function (e) {

View File

@ -5,8 +5,8 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
/** @type {import('webpack').Configuration} */ /** @type {import('webpack').Configuration} */
module.exports = { module.exports = {
entry: { entry: {
palette: path.resolve(__dirname, './test/javascript/static/test/testPalette'), palette: path.resolve(__dirname, './test/playground/lib/testPalette'),
layout: path.resolve(__dirname, './test/javascript/static/test/testLayout'), layout: path.resolve(__dirname, './test/playground/lib/testLayout'),
}, },
output: { output: {
path: path.resolve(__dirname, 'dist', 'test'), path: path.resolve(__dirname, 'dist', 'test'),
@ -40,17 +40,12 @@ module.exports = {
plugins: [ plugins: [
new CleanWebpackPlugin(), new CleanWebpackPlugin(),
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
template: 'test/javascript/static/index.html', template: 'test/playground/index.html',
}),
new HtmlWebpackPlugin({
chunks: ['palette'],
filename: 'palette',
template: 'test/javascript/static/palette.html',
}), }),
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
chunks: ['layout'], chunks: ['layout'],
filename: 'layout', filename: 'layout',
template: 'test/javascript/static/layout.html', template: 'test/playground/layout.html',
}), }),
], ],
}; };