mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 23:54:55 +01:00
Align loaders name
This commit is contained in:
parent
6395f05d96
commit
224f0f0446
14
packages/mindplot/test/playground/context-loader.js
Normal file
14
packages/mindplot/test/playground/context-loader.js
Normal file
@ -0,0 +1,14 @@
|
||||
const Mindplot = require('../../lib/mindplot');
|
||||
global.mindplot = Mindplot();
|
||||
|
||||
const TestSuite = require('./lib/TestSuite').default;
|
||||
const BalancedTestSuite = require('./lib/BalancedTestSuite').default;
|
||||
const SymmetricTestSuite = require('./lib/SymmetricTestSuite').default;
|
||||
const FreeTestSuite = require('./lib/FreeTestSuite').default;
|
||||
|
||||
window.addEventListener('DOMContentLoaded', function () {
|
||||
var basicTest = new TestSuite();
|
||||
var balancedTest = new BalancedTestSuite();
|
||||
var symmetricTest = new SymmetricTestSuite();
|
||||
var freeTest = new FreeTestSuite();
|
||||
});
|
@ -1,14 +0,0 @@
|
||||
const Mindplot = require('../../../lib/mindplot');
|
||||
global.mindplot = Mindplot();
|
||||
|
||||
const TestSuite = require('./TestSuite').default;
|
||||
const BalancedTestSuite = require('./BalancedTestSuite').default;
|
||||
const SymmetricTestSuite = require('./SymmetricTestSuite').default;
|
||||
const FreeTestSuite = require('./FreeTestSuite').default;
|
||||
|
||||
window.addEventListener('DOMContentLoaded', function () {
|
||||
var basicTest = new TestSuite();
|
||||
var balancedTest = new BalancedTestSuite();
|
||||
var symmetricTest = new SymmetricTestSuite();
|
||||
var freeTest = new FreeTestSuite();
|
||||
});
|
@ -1,16 +0,0 @@
|
||||
const Mindplot = require('../../../lib/mindplot');
|
||||
const mindplot = Mindplot();
|
||||
|
||||
window.addEventListener('load', function (e) {
|
||||
var model = {
|
||||
getValue: function () {},
|
||||
setValue: function (value) {
|
||||
console.log('value:' + value);
|
||||
},
|
||||
};
|
||||
var palette = new mindplot.widget.ColorPalettePanel(
|
||||
'myButton',
|
||||
model,
|
||||
'../../../lib/components/widget'
|
||||
);
|
||||
});
|
@ -1,13 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<body>
|
||||
<div id="myButton" style="border: 1px red solid">The button</div>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
@ -5,8 +5,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
/** @type {import('webpack').Configuration} */
|
||||
module.exports = {
|
||||
entry: {
|
||||
palette: path.resolve(__dirname, './test/playground/lib/testPalette'),
|
||||
layout: path.resolve(__dirname, './test/playground/lib/testLayout'),
|
||||
layout: path.resolve(__dirname, './test/playground/context-loader'),
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist', 'test'),
|
||||
@ -27,15 +26,11 @@ module.exports = {
|
||||
use: 'babel-loader',
|
||||
test: /.(js|jsx)$/,
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
{
|
||||
type: 'asset',
|
||||
test: /\.(png|svg|jpg|jpeg|gif)$/i,
|
||||
},
|
||||
}
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.js', '.jsx', '.json'],
|
||||
extensions: ['.js','.json'],
|
||||
},
|
||||
plugins: [
|
||||
new CleanWebpackPlugin(),
|
||||
|
Loading…
Reference in New Issue
Block a user