Move query to be used from external library

This commit is contained in:
Paulo Gustavo Veiga
2021-12-05 08:33:09 -08:00
parent aecf0864f5
commit 02362b28e8
41 changed files with 62 additions and 544 deletions

View File

@ -32,7 +32,7 @@
"dependencies": {
"@wisemapping/core-js": "^0.0.1",
"@wisemapping/web2d": "^0.0.1",
"jquery": "2.1.0",
"jquery": "^3.6.0",
"mootools": "1.4.5",
"underscore": "^1.13.1"
},
@ -61,4 +61,4 @@
"webpack-dev-server": "^3.11.2",
"webpack-merge": "^5.8.0"
}
}
}

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
import { $assert, $defined } from '@wisemapping/core-js';
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import Events from './Events';
import Messages from './Messages';

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
import { $assert } from '@wisemapping/core-js';
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import Icon from './Icon';
import LinkIconTooltip from './widget/LinkIconTooltip';

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import PersistenceManager from './PersistenceManager';
class LocalStorageManager extends PersistenceManager {

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
import { $assert } from '@wisemapping/core-js';
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import Icon from './Icon';
import FloatingTip from './widget/FloatingTip';

View File

@ -1,4 +1,4 @@
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
try {
$(document).trigger('loadcomplete', 'mind');

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import { $assert, $defined } from '@wisemapping/core-js';
import Events from '../Events';
import RootedTreeSet from './RootedTreeSet';

View File

@ -1,6 +1,6 @@
import Options from '../../Options';
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
class BootstrapDialog extends Options {

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
import { $assert, $defined } from "@wisemapping/core-js";
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
class FeatureModel {
/**

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import { $assert, $defined } from '@wisemapping/core-js';
import ToolbarPaneItem from './ToolbarPaneItem';

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import ListToolbarPanel from './ListToolbarPanel';
class FontFamilyPanel extends ListToolbarPanel {

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
import ListToolbarPanel from './ListToolbarPanel';
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
class FontSizePanel extends ListToolbarPanel {
// eslint-disable-next-line class-methods-use-this

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import ToolbarPaneItem from './ToolbarPaneItem';
import ImageIcon from '../ImageIcon';

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import { $assert } from '@wisemapping/core-js';
import FloatingTip from './FloatingTip';

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
import { $assert } from "@wisemapping/core-js";
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import FloatingTip from './FloatingTip';
class LinkIconTooltip extends FloatingTip {

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import { $defined } from '@wisemapping/core-js';
import BootstrapDialogRequest from "../libraries/bootstrap/BootstrapDialogRequest";

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import jQuery from '@libraries/jquery-2.1.0';
import jQuery from 'jquery';
import BootstrapDialog from '../libraries/bootstrap/BootstrapDialog';
class NoteEditor extends BootstrapDialog{

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import { $assert } from '@wisemapping/core-js';
import Events from '../Events';

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
class ToolbarNotifier {
constructor() {

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import ListToolbarPanel from './ListToolbarPanel';
class TopicShapePanel extends ListToolbarPanel {

View File

@ -18,7 +18,7 @@
import { $assert } from '@wisemapping/core-js';
import { Mindmap, PersistenceManager, Designer, LocalStorageManager, Menu } from '../../../../src/';
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
global.jQuery = $;
let designer = null;

View File

@ -54,6 +54,7 @@
"webpack-merge": "^5.8.0"
},
"dependencies": {
"@wisemapping/core-js": "^0.0.1"
"@wisemapping/core-js": "^0.0.1",
"jquery": "^3.6.0"
}
}
}

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import { $defined } from '@wisemapping/core-js';
import ElementClass from './ElementClass';
import Toolkit from './Toolkit';

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import { $assert, $defined } from '@wisemapping/core-js';
import EventUtils from '../utils/EventUtils';
import TransformUtil from '../utils/TransformUtils';

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
import { $defined } from '@wisemapping/core-js';
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import ElementPeer from './ElementPeer';
class TextPeer extends ElementPeer {
@ -169,6 +169,7 @@ class TextPeer extends ElementPeer {
computedWidth = bbox.width;
}
} catch (e) {
// eslint-disable-next-line no-console
console.error(e);
computedWidth = 10;
}

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
class Grid {
constructor(parent, colums, rows) {

View File

@ -1,4 +1,4 @@
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import {
Toolkit, Workspace, Arrow, Point,
} from '../../src';

View File

@ -1,4 +1,4 @@
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import {
Toolkit, Workspace, CurvedLine, Point,
} from '../../src';

View File

@ -1,5 +1,5 @@
/* eslint-disable no-alert */
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import {
Toolkit, Workspace, Elipse,
} from '../../src';

View File

@ -1,4 +1,4 @@
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import {
Toolkit, Workspace, Text,
} from '../../src';

View File

@ -1,5 +1,5 @@
/* eslint-disable no-alert */
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import {
Toolkit, Workspace, Line, Group, Elipse,
} from '../../src';

View File

@ -1,4 +1,4 @@
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import {
Toolkit, Workspace, Line, Rect,
} from '../../src';

View File

@ -1,4 +1,4 @@
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import {
Toolkit, Workspace, PolyLine,
} from '../../src';

View File

@ -1,4 +1,4 @@
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import {
Toolkit, Workspace, Rect, Group,
} from '../../src';

View File

@ -1,4 +1,4 @@
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import {
Toolkit, Workspace, Rect,
} from '../../src';

View File

@ -1,4 +1,4 @@
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import {
Toolkit, Workspace, Rect,
} from '../../src';

View File

@ -1,4 +1,4 @@
import $ from '@libraries/jquery-2.1.0';
import $ from 'jquery';
import {
Toolkit, Workspace, Elipse,
} from '../../src';

View File

@ -23,11 +23,5 @@ module.exports = {
],
},
target: 'web',
resolve: {
alias: {
'@libraries': path.resolve(__dirname, '../../libraries/'),
},
extensions: ['.js', '.json'],
},
plugins: [new CleanWebpackPlugin()],
};