mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2025-06-11 02:23:22 +02:00
Move query to be used from external library
This commit is contained in:
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import $ from '@libraries/jquery-2.1.0';
|
||||
import $ from 'jquery';
|
||||
|
||||
try {
|
||||
$(document).trigger('loadcomplete', 'mind');
|
||||
|
@ -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';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import Options from '../../Options';
|
||||
|
||||
import $ from '@libraries/jquery-2.1.0';
|
||||
import $ from 'jquery';
|
||||
|
||||
class BootstrapDialog extends Options {
|
||||
|
||||
|
@ -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 {
|
||||
/**
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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";
|
||||
|
@ -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{
|
||||
|
@ -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';
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import $ from '@libraries/jquery-2.1.0';
|
||||
import $ from 'jquery';
|
||||
|
||||
class ToolbarNotifier {
|
||||
constructor() {
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import $ from '@libraries/jquery-2.1.0';
|
||||
import $ from 'jquery';
|
||||
import {
|
||||
Toolkit, Workspace, Arrow, Point,
|
||||
} from '../../src';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import $ from '@libraries/jquery-2.1.0';
|
||||
import $ from 'jquery';
|
||||
import {
|
||||
Toolkit, Workspace, CurvedLine, Point,
|
||||
} from '../../src';
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* eslint-disable no-alert */
|
||||
import $ from '@libraries/jquery-2.1.0';
|
||||
import $ from 'jquery';
|
||||
import {
|
||||
Toolkit, Workspace, Elipse,
|
||||
} from '../../src';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import $ from '@libraries/jquery-2.1.0';
|
||||
import $ from 'jquery';
|
||||
import {
|
||||
Toolkit, Workspace, Text,
|
||||
} from '../../src';
|
||||
|
@ -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';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import $ from '@libraries/jquery-2.1.0';
|
||||
import $ from 'jquery';
|
||||
import {
|
||||
Toolkit, Workspace, Line, Rect,
|
||||
} from '../../src';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import $ from '@libraries/jquery-2.1.0';
|
||||
import $ from 'jquery';
|
||||
import {
|
||||
Toolkit, Workspace, PolyLine,
|
||||
} from '../../src';
|
||||
|
2
packages/web2d/test/playground/prototype.js
vendored
2
packages/web2d/test/playground/prototype.js
vendored
@ -1,4 +1,4 @@
|
||||
import $ from '@libraries/jquery-2.1.0';
|
||||
import $ from 'jquery';
|
||||
import {
|
||||
Toolkit, Workspace, Rect, Group,
|
||||
} from '../../src';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import $ from '@libraries/jquery-2.1.0';
|
||||
import $ from 'jquery';
|
||||
import {
|
||||
Toolkit, Workspace, Rect,
|
||||
} from '../../src';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import $ from '@libraries/jquery-2.1.0';
|
||||
import $ from 'jquery';
|
||||
import {
|
||||
Toolkit, Workspace, Rect,
|
||||
} from '../../src';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import $ from '@libraries/jquery-2.1.0';
|
||||
import $ from 'jquery';
|
||||
import {
|
||||
Toolkit, Workspace, Elipse,
|
||||
} from '../../src';
|
||||
|
@ -23,11 +23,5 @@ module.exports = {
|
||||
],
|
||||
},
|
||||
target: 'web',
|
||||
resolve: {
|
||||
alias: {
|
||||
'@libraries': path.resolve(__dirname, '../../libraries/'),
|
||||
},
|
||||
extensions: ['.js', '.json'],
|
||||
},
|
||||
plugins: [new CleanWebpackPlugin()],
|
||||
};
|
||||
|
Reference in New Issue
Block a user