mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 22:57:57 +01:00
Fix loading
This commit is contained in:
parent
c9cac78d2d
commit
a8a843353b
@ -15,6 +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.
|
||||||
*/
|
*/
|
||||||
|
import { $defined } from '@wisemapping/core-js';
|
||||||
|
|
||||||
const Command = new Class(/** @lends mindplot.Command */{
|
const Command = new Class(/** @lends mindplot.Command */{
|
||||||
/**
|
/**
|
||||||
|
@ -15,8 +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.
|
||||||
*/
|
*/
|
||||||
import { $assert } from "@wisemapping/core-js";
|
import { $assert, $defined } from "@wisemapping/core-js";
|
||||||
|
|
||||||
|
|
||||||
class CommandContext {
|
class CommandContext {
|
||||||
constructor(designer) {
|
constructor(designer) {
|
||||||
|
@ -15,6 +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.
|
||||||
*/
|
*/
|
||||||
|
import { $assert } from "@wisemapping/core-js";
|
||||||
import Icon from './Icon';
|
import Icon from './Icon';
|
||||||
import ActionDispatcher from './ActionDispatcher';
|
import ActionDispatcher from './ActionDispatcher';
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { $assert } from '@wisemapping/core-js';
|
import { $assert } from '@wisemapping/core-js';
|
||||||
|
import $ from '@libraries/jquery-2.1.0';
|
||||||
import Icon from './Icon';
|
import Icon from './Icon';
|
||||||
import LinkIconTooltip from './widget/LinkIconTooltip';
|
import LinkIconTooltip from './widget/LinkIconTooltip';
|
||||||
|
|
||||||
|
@ -15,6 +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.
|
||||||
*/
|
*/
|
||||||
|
import $ from '@libraries/jquery-2.1.0';
|
||||||
import PersistenceManager from './PersistenceManager';
|
import PersistenceManager from './PersistenceManager';
|
||||||
|
|
||||||
const LocalStorageManager = new Class({
|
const LocalStorageManager = new Class({
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
* 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.
|
||||||
*/
|
*/
|
||||||
|
import { $defined, $assert } from '@wisemapping/core-js';
|
||||||
|
import _ from '@libraries/underscore-min';
|
||||||
import Command from '../Command';
|
import Command from '../Command';
|
||||||
|
|
||||||
const GenericFunctionCommand = new Class(/** @lends GenericFunctionCommand */{
|
const GenericFunctionCommand = new Class(/** @lends GenericFunctionCommand */{
|
||||||
|
@ -15,6 +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.
|
||||||
*/
|
*/
|
||||||
|
import _ from '@libraries/underscore-min';
|
||||||
import ChildrenSorterStrategy from './ChildrenSorterStrategy';
|
import ChildrenSorterStrategy from './ChildrenSorterStrategy';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,6 +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.
|
||||||
*/
|
*/
|
||||||
|
import _ from '@libraries/underscore-min';
|
||||||
import { $assert, $defined } from '@wisemapping/core-js';
|
import { $assert, $defined } from '@wisemapping/core-js';
|
||||||
|
|
||||||
const RootedTreeSet = new Class(
|
const RootedTreeSet = new Class(
|
||||||
|
@ -15,9 +15,11 @@
|
|||||||
* 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.
|
||||||
*/
|
*/
|
||||||
|
import _ from '@libraries/underscore-min';
|
||||||
import { $assert, $defined } from '@wisemapping/core-js';
|
import { $assert, $defined } from '@wisemapping/core-js';
|
||||||
import AbstractBasicSorter from './AbstractBasicSorter';
|
import AbstractBasicSorter from './AbstractBasicSorter';
|
||||||
|
|
||||||
|
|
||||||
const SymmetricSorter = new Class(
|
const SymmetricSorter = new Class(
|
||||||
/** @lends SymmetricSorter */ {
|
/** @lends SymmetricSorter */ {
|
||||||
Extends: AbstractBasicSorter,
|
Extends: AbstractBasicSorter,
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable class-methods-use-this */
|
||||||
/*
|
/*
|
||||||
* Copyright [2015] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
|
@ -15,6 +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.
|
||||||
*/
|
*/
|
||||||
|
import { $assert } from '@wisemapping/core-js';
|
||||||
import FeatureModel from './FeatureModel';
|
import FeatureModel from './FeatureModel';
|
||||||
|
|
||||||
class IconModel extends FeatureModel {
|
class IconModel extends FeatureModel {
|
||||||
|
@ -15,6 +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.
|
||||||
*/
|
*/
|
||||||
|
import { $assert } from '@wisemapping/core-js';
|
||||||
import FeatureModel from './FeatureModel';
|
import FeatureModel from './FeatureModel';
|
||||||
|
|
||||||
class LinkModel extends FeatureModel {
|
class LinkModel extends FeatureModel {
|
||||||
@ -35,7 +36,7 @@ class LinkModel extends FeatureModel {
|
|||||||
setUrl(url) {
|
setUrl(url) {
|
||||||
$assert(url, 'url can not be null');
|
$assert(url, 'url can not be null');
|
||||||
|
|
||||||
const fixedUrl = this._fixUrl(url);
|
const fixedUrl = LinkModel._fixUrl(url);
|
||||||
this.setAttribute('url', fixedUrl);
|
this.setAttribute('url', fixedUrl);
|
||||||
|
|
||||||
const type = fixedUrl.contains('mailto:') ? 'mail' : 'url';
|
const type = fixedUrl.contains('mailto:') ? 'mail' : 'url';
|
||||||
|
@ -15,6 +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.
|
||||||
*/
|
*/
|
||||||
|
import _ from '@libraries/underscore-min';
|
||||||
|
|
||||||
// FIXME: this Class should be reimplemented
|
// FIXME: this Class should be reimplemented
|
||||||
import Events from '../Events';
|
import Events from '../Events';
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
* 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.
|
||||||
*/
|
*/
|
||||||
|
import { $assert } from "@wisemapping/core-js";
|
||||||
|
import $ from '@libraries/jquery-2.1.0';
|
||||||
import FloatingTip from './FloatingTip';
|
import FloatingTip from './FloatingTip';
|
||||||
|
|
||||||
class LinkIconTooltip extends FloatingTip {
|
class LinkIconTooltip extends FloatingTip {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
/* eslint-disable no-unused-vars */
|
/* eslint-disable no-unused-vars */
|
||||||
import '@libraries/mootools-core-1.4.5';
|
import '@libraries/mootools-core-1.4.5';
|
||||||
import _ from '@libraries/underscore-min';
|
|
||||||
|
|
||||||
import Mindmap from './components/model/Mindmap';
|
import Mindmap from './components/model/Mindmap';
|
||||||
import PersistenceManager from './components/PersistenceManager';
|
import PersistenceManager from './components/PersistenceManager';
|
||||||
|
@ -51,9 +51,8 @@ function buildDesigner(options) {
|
|||||||
// Register load events ...
|
// Register load events ...
|
||||||
designer = new Designer(options, container);
|
designer = new Designer(options, container);
|
||||||
designer.addEvent('loadSuccess', () => {
|
designer.addEvent('loadSuccess', () => {
|
||||||
window.waitDialog.close();
|
|
||||||
window.waitDialog = null;
|
|
||||||
window.mindmapLoadReady = true;
|
window.mindmapLoadReady = true;
|
||||||
|
console.log("Map loadded successfully");
|
||||||
});
|
});
|
||||||
|
|
||||||
const onerrorFn = function onerror(message, url, lineNo) {
|
const onerrorFn = function onerror(message, url, lineNo) {
|
||||||
|
Loading…
Reference in New Issue
Block a user