|
|
|
@ -48,10 +48,30 @@
|
|
|
|
|
|
|
|
|
|
// NOTE: This file will eventually contain non-editor JS. For now, it's just a 'redirect' to the editor implementation.
|
|
|
|
|
|
|
|
|
|
__webpack_require__(84);
|
|
|
|
|
__webpack_require__(1);
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 1 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
var Promise = __webpack_require__(2);
|
|
|
|
|
var React = __webpack_require__(41);
|
|
|
|
|
var ReactDOM = __webpack_require__(51);
|
|
|
|
|
var documentReadyPromise = __webpack_require__(67);
|
|
|
|
|
|
|
|
|
|
var App = __webpack_require__(68);
|
|
|
|
|
|
|
|
|
|
Promise.try(function () {
|
|
|
|
|
return documentReadyPromise();
|
|
|
|
|
}).then(function () {
|
|
|
|
|
ReactDOM.render(React.createElement(App, null), document.getElementById("editor-app"));
|
|
|
|
|
}).catch(function (err) {
|
|
|
|
|
console.error(err);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 1 */,
|
|
|
|
|
/* 2 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
@ -24326,7 +24346,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 68 */,
|
|
|
|
|
/* 68 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
var React = __webpack_require__(41);
|
|
|
|
|
var createReactClass = __webpack_require__(69);
|
|
|
|
|
|
|
|
|
|
var Menu = __webpack_require__(72);
|
|
|
|
|
var Node = __webpack_require__(79);
|
|
|
|
|
|
|
|
|
|
var App = createReactClass({
|
|
|
|
|
displayName: "App",
|
|
|
|
|
|
|
|
|
|
getInitialState: function getInitialState() {
|
|
|
|
|
return {
|
|
|
|
|
menuItems: [{
|
|
|
|
|
type: "folder",
|
|
|
|
|
name: "Foo"
|
|
|
|
|
}, {
|
|
|
|
|
type: "folder",
|
|
|
|
|
name: "Bar"
|
|
|
|
|
}, {
|
|
|
|
|
type: "object-type",
|
|
|
|
|
name: "Baz"
|
|
|
|
|
}]
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
render: function render() {
|
|
|
|
|
return React.createElement(
|
|
|
|
|
"div",
|
|
|
|
|
{ className: "editor-app" },
|
|
|
|
|
React.createElement(
|
|
|
|
|
"div",
|
|
|
|
|
{ className: "header" },
|
|
|
|
|
React.createElement(
|
|
|
|
|
"h1",
|
|
|
|
|
null,
|
|
|
|
|
React.createElement("img", { src: "/images/logo-32.png", className: "logo" }),
|
|
|
|
|
React.createElement(
|
|
|
|
|
"span",
|
|
|
|
|
{ className: "name" },
|
|
|
|
|
"Cryto Play"
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
React.createElement(Menu, { items: this.state.menuItems }),
|
|
|
|
|
React.createElement(
|
|
|
|
|
"div",
|
|
|
|
|
{ className: "canvas" },
|
|
|
|
|
React.createElement(Node, null)
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
module.exports = App;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 69 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
@ -25334,152 +25412,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 72 */,
|
|
|
|
|
/* 73 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
|
|
Copyright (c) 2016 Jed Watson.
|
|
|
|
|
Licensed under the MIT License (MIT), see
|
|
|
|
|
http://jedwatson.github.io/classnames
|
|
|
|
|
*/
|
|
|
|
|
/* global define */
|
|
|
|
|
|
|
|
|
|
(function () {
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
var hasOwn = {}.hasOwnProperty;
|
|
|
|
|
|
|
|
|
|
function classNames () {
|
|
|
|
|
var classes = [];
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < arguments.length; i++) {
|
|
|
|
|
var arg = arguments[i];
|
|
|
|
|
if (!arg) continue;
|
|
|
|
|
|
|
|
|
|
var argType = typeof arg;
|
|
|
|
|
|
|
|
|
|
if (argType === 'string' || argType === 'number') {
|
|
|
|
|
classes.push(arg);
|
|
|
|
|
} else if (Array.isArray(arg)) {
|
|
|
|
|
classes.push(classNames.apply(null, arg));
|
|
|
|
|
} else if (argType === 'object') {
|
|
|
|
|
for (var key in arg) {
|
|
|
|
|
if (hasOwn.call(arg, key) && arg[key]) {
|
|
|
|
|
classes.push(key);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return classes.join(' ');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (typeof module !== 'undefined' && module.exports) {
|
|
|
|
|
module.exports = classNames;
|
|
|
|
|
} else if (true) {
|
|
|
|
|
// register as 'classnames', consistent with npm package name
|
|
|
|
|
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {
|
|
|
|
|
return classNames;
|
|
|
|
|
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
|
|
|
} else {
|
|
|
|
|
window.classNames = classNames;
|
|
|
|
|
}
|
|
|
|
|
}());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 74 */,
|
|
|
|
|
/* 75 */,
|
|
|
|
|
/* 76 */,
|
|
|
|
|
/* 77 */,
|
|
|
|
|
/* 78 */,
|
|
|
|
|
/* 79 */,
|
|
|
|
|
/* 80 */,
|
|
|
|
|
/* 81 */,
|
|
|
|
|
/* 82 */,
|
|
|
|
|
/* 83 */,
|
|
|
|
|
/* 84 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
var Promise = __webpack_require__(2);
|
|
|
|
|
var React = __webpack_require__(41);
|
|
|
|
|
var ReactDOM = __webpack_require__(51);
|
|
|
|
|
var documentReadyPromise = __webpack_require__(67);
|
|
|
|
|
|
|
|
|
|
var App = __webpack_require__(85);
|
|
|
|
|
|
|
|
|
|
Promise.try(function () {
|
|
|
|
|
return documentReadyPromise();
|
|
|
|
|
}).then(function () {
|
|
|
|
|
ReactDOM.render(React.createElement(App, null), document.getElementById("editor-app"));
|
|
|
|
|
}).catch(function (err) {
|
|
|
|
|
console.error(err);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 85 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
var React = __webpack_require__(41);
|
|
|
|
|
var createReactClass = __webpack_require__(69);
|
|
|
|
|
|
|
|
|
|
var Menu = __webpack_require__(86);
|
|
|
|
|
var Node = __webpack_require__(92);
|
|
|
|
|
|
|
|
|
|
var App = createReactClass({
|
|
|
|
|
displayName: "App",
|
|
|
|
|
|
|
|
|
|
getInitialState: function getInitialState() {
|
|
|
|
|
return {
|
|
|
|
|
menuItems: [{
|
|
|
|
|
type: "folder",
|
|
|
|
|
name: "Foo"
|
|
|
|
|
}, {
|
|
|
|
|
type: "folder",
|
|
|
|
|
name: "Bar"
|
|
|
|
|
}, {
|
|
|
|
|
type: "object-type",
|
|
|
|
|
name: "Baz"
|
|
|
|
|
}]
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
render: function render() {
|
|
|
|
|
return React.createElement(
|
|
|
|
|
"div",
|
|
|
|
|
{ className: "editor-app" },
|
|
|
|
|
React.createElement(
|
|
|
|
|
"div",
|
|
|
|
|
{ className: "header" },
|
|
|
|
|
React.createElement(
|
|
|
|
|
"h1",
|
|
|
|
|
null,
|
|
|
|
|
React.createElement("img", { src: "/images/logo-32.png", className: "logo" }),
|
|
|
|
|
React.createElement(
|
|
|
|
|
"span",
|
|
|
|
|
{ className: "name" },
|
|
|
|
|
"Cryto Play"
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
React.createElement(Menu, { items: this.state.menuItems }),
|
|
|
|
|
React.createElement(
|
|
|
|
|
"div",
|
|
|
|
|
{ className: "canvas" },
|
|
|
|
|
React.createElement(Node, null)
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
module.exports = App;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 86 */
|
|
|
|
|
/* 72 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
@ -25490,12 +25423,12 @@
|
|
|
|
|
var createReactClass = __webpack_require__(69);
|
|
|
|
|
var classnames = __webpack_require__(73);
|
|
|
|
|
|
|
|
|
|
var HorizontalInputList = __webpack_require__(87);
|
|
|
|
|
var ControlBar = __webpack_require__(88);
|
|
|
|
|
var HorizontalInputList = __webpack_require__(74);
|
|
|
|
|
var ControlBar = __webpack_require__(75);
|
|
|
|
|
|
|
|
|
|
var Label = __webpack_require__(89);
|
|
|
|
|
var HorizontalButtonSet = __webpack_require__(90);
|
|
|
|
|
var Button = __webpack_require__(91);
|
|
|
|
|
var Label = __webpack_require__(76);
|
|
|
|
|
var HorizontalButtonSet = __webpack_require__(77);
|
|
|
|
|
var Button = __webpack_require__(78);
|
|
|
|
|
|
|
|
|
|
var MenuItem = createReactClass({
|
|
|
|
|
displayName: "MenuItem",
|
|
|
|
@ -25588,7 +25521,61 @@
|
|
|
|
|
module.exports = Menu;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 87 */
|
|
|
|
|
/* 73 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
|
|
Copyright (c) 2016 Jed Watson.
|
|
|
|
|
Licensed under the MIT License (MIT), see
|
|
|
|
|
http://jedwatson.github.io/classnames
|
|
|
|
|
*/
|
|
|
|
|
/* global define */
|
|
|
|
|
|
|
|
|
|
(function () {
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
var hasOwn = {}.hasOwnProperty;
|
|
|
|
|
|
|
|
|
|
function classNames () {
|
|
|
|
|
var classes = [];
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < arguments.length; i++) {
|
|
|
|
|
var arg = arguments[i];
|
|
|
|
|
if (!arg) continue;
|
|
|
|
|
|
|
|
|
|
var argType = typeof arg;
|
|
|
|
|
|
|
|
|
|
if (argType === 'string' || argType === 'number') {
|
|
|
|
|
classes.push(arg);
|
|
|
|
|
} else if (Array.isArray(arg)) {
|
|
|
|
|
classes.push(classNames.apply(null, arg));
|
|
|
|
|
} else if (argType === 'object') {
|
|
|
|
|
for (var key in arg) {
|
|
|
|
|
if (hasOwn.call(arg, key) && arg[key]) {
|
|
|
|
|
classes.push(key);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return classes.join(' ');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (typeof module !== 'undefined' && module.exports) {
|
|
|
|
|
module.exports = classNames;
|
|
|
|
|
} else if (true) {
|
|
|
|
|
// register as 'classnames', consistent with npm package name
|
|
|
|
|
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {
|
|
|
|
|
return classNames;
|
|
|
|
|
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
|
|
|
} else {
|
|
|
|
|
window.classNames = classNames;
|
|
|
|
|
}
|
|
|
|
|
}());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 74 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
@ -25611,7 +25598,7 @@
|
|
|
|
|
module.exports = HorizontalInputList;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 88 */
|
|
|
|
|
/* 75 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
@ -25634,7 +25621,7 @@
|
|
|
|
|
module.exports = ControlBar;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 89 */
|
|
|
|
|
/* 76 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
@ -25658,7 +25645,7 @@
|
|
|
|
|
module.exports = Label;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 90 */
|
|
|
|
|
/* 77 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
@ -25681,7 +25668,7 @@
|
|
|
|
|
module.exports = HorizontalButtonSet;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 91 */
|
|
|
|
|
/* 78 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
@ -25704,7 +25691,7 @@
|
|
|
|
|
module.exports = ButtonInput;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 92 */
|
|
|
|
|
/* 79 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
@ -25712,12 +25699,12 @@
|
|
|
|
|
var React = __webpack_require__(41);
|
|
|
|
|
var createReactClass = __webpack_require__(69);
|
|
|
|
|
|
|
|
|
|
var VerticalInputList = __webpack_require__(93);
|
|
|
|
|
var HorizontalInputList = __webpack_require__(87);
|
|
|
|
|
var PanelHeader = __webpack_require__(94);
|
|
|
|
|
var VerticalInputList = __webpack_require__(80);
|
|
|
|
|
var HorizontalInputList = __webpack_require__(74);
|
|
|
|
|
var PanelHeader = __webpack_require__(81);
|
|
|
|
|
|
|
|
|
|
var TextInput = __webpack_require__(95);
|
|
|
|
|
var Label = __webpack_require__(89);
|
|
|
|
|
var TextInput = __webpack_require__(82);
|
|
|
|
|
var Label = __webpack_require__(76);
|
|
|
|
|
|
|
|
|
|
var PropertyInput = createReactClass({
|
|
|
|
|
displayName: "PropertyInput",
|
|
|
|
@ -25801,7 +25788,7 @@
|
|
|
|
|
module.exports = Node;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 93 */
|
|
|
|
|
/* 80 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
@ -25824,7 +25811,7 @@
|
|
|
|
|
module.exports = VerticalInputList;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 94 */
|
|
|
|
|
/* 81 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
@ -25847,7 +25834,7 @@
|
|
|
|
|
module.exports = PanelHeader;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 95 */
|
|
|
|
|
/* 82 */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|