@@ -80672,12 +80672,17 @@ module.exports = function(originalModule) {
8067280672"use strict";
8067380673
8067480674
80675+ var FILE_NODE_TYPE = 'file';
80676+ var DIR_NODE_TYPE = 'directory';
80677+
8067580678var SOCKET_EVENT_TYPE = {
8067680679 SYNC_SOURCE_FILES: 'sync-source-files'
8067780680};
8067880681
8067980682module.exports = {
80680- SOCKET_EVENT_TYPE: SOCKET_EVENT_TYPE
80683+ SOCKET_EVENT_TYPE: SOCKET_EVENT_TYPE,
80684+ FILE_NODE_TYPE: FILE_NODE_TYPE,
80685+ DIR_NODE_TYPE: DIR_NODE_TYPE
8068180686};
8068280687
8068380688/***/ }),
@@ -81374,15 +81379,26 @@ function recalculateFilesLayout() {
8137481379 while (1) {
8137581380 switch (_context.prev = _context.next) {
8137681381 case 0:
81377- _context.next = 2;
81382+ _context.prev = 0;
81383+ _context.next = 3;
8137881384 return (0, _effects.put)((0, _actions.calcFilesTreeLayoutNodes)());
8137981385
81380- case 2:
81386+ case 3:
81387+ _context.next = 9;
81388+ break;
81389+
81390+ case 5:
81391+ _context.prev = 5;
81392+ _context.t0 = _context['catch'](0);
81393+ _context.next = 9;
81394+ return (0, _effects.put)({ type: 'ERROR' });
81395+
81396+ case 9:
8138181397 case 'end':
8138281398 return _context.stop();
8138381399 }
8138481400 }
81385- }, _marked, this);
81401+ }, _marked, this, [[0, 5]] );
8138681402}
8138781403
8138881404//TODO: think to move out from data-bus folder
@@ -81722,8 +81738,6 @@ var _drawHelpers = __webpack_require__(/*! ./drawHelpers */ "./js/components/tre
8172281738
8172381739var _drawHelpers2 = __webpack_require__(/*! ../SourceTree/drawHelpers */ "./js/components/tree-diagram/component/SourceTree/drawHelpers.js");
8172481740
81725- var _constants = __webpack_require__(/*! ../../store/constants */ "./js/components/tree-diagram/store/constants.js");
81726-
8172781741var _treeLayout = __webpack_require__(/*! ../../../../utils/treeLayout */ "./js/utils/treeLayout.js");
8172881742
8172981743var _SvgSet = __webpack_require__(/*! ../utils/SvgSet */ "./js/components/tree-diagram/component/utils/SvgSet.js");
@@ -82299,7 +82313,7 @@ var _SvgDraw = __webpack_require__(/*! ../utils/SvgDraw */ "./js/components/tree
8229982313
8230082314var _drawHelpers = __webpack_require__(/*! ./drawHelpers */ "./js/components/tree-diagram/component/SourceTree/drawHelpers.js");
8230182315
82302- var _constants = __webpack_require__(/*! ../../store/ constants */ "./js/components/tree-diagram/store /constants.js");
82316+ var _constants = __webpack_require__(/*! ../../../../../../shared/ constants */ "../shared /constants.js");
8230382317
8230482318var _SvgSet = __webpack_require__(/*! ../utils/SvgSet */ "./js/components/tree-diagram/component/utils/SvgSet.js");
8230582319
@@ -82601,7 +82615,7 @@ var drawFolderIcon = exports.drawFolderIcon = function drawFolderIcon(draw, shif
8260182615
8260282616 var polyline = null;
8260382617 if (closed) {
82604- polyline = draw.polyline([folderIconPoint.x - 1, folderIconPoint.y + 16, folderIconPoint.x + 15 , folderIconPoint.y + 16]);
82618+ polyline = draw.polyline([folderIconPoint.x - 1, folderIconPoint.y + 16, folderIconPoint.x + 16 , folderIconPoint.y + 16, folderIconPoint.x + 16, folderIconPoint.y + 14 ]);
8260582619
8260682620 var color = !disabled ? '#BFBFBF' : '#ccc';
8260782621 polyline.fill('none').stroke({
@@ -83012,9 +83026,6 @@ Object.defineProperty(exports, "__esModule", {
8301283026var PURPLE_COLOR = exports.PURPLE_COLOR = '#ff18a6';
8301383027var BLUE_COLOR = exports.BLUE_COLOR = '#1890ff';
8301483028
83015- var FILE_NODE_TYPE = exports.FILE_NODE_TYPE = 'file';
83016- var DIR_NODE_TYPE = exports.DIR_NODE_TYPE = 'directory';
83017-
8301883029var SYMBOL_WIDTH = exports.SYMBOL_WIDTH = 8.4;
8301983030
8302083031var LAYOUT_CONFIG = exports.LAYOUT_CONFIG = {
@@ -83254,14 +83265,16 @@ var _d3Flextree = __webpack_require__(/*! d3-flextree */ "../../node_modules/d3-
8325483265
8325583266var d3FlexTree = _interopRequireWildcard(_d3Flextree);
8325683267
83257- var _constants = __webpack_require__(/*! ../components/tree-diagram/store/constants */ "./js/components/tree-diagram/store/constants.js");
83268+ var _constants = __webpack_require__(/*! ../../../shared/constants */ "../shared/constants.js");
83269+
83270+ var _constants2 = __webpack_require__(/*! ../components/tree-diagram/store/constants */ "./js/components/tree-diagram/store/constants.js");
8325883271
8325983272function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
8326083273
8326183274var getTreeLayout = exports.getTreeLayout = function getTreeLayout(treeData, _ref) {
8326283275 var includeFileChildren = _ref.includeFileChildren,
8326383276 _ref$config = _ref.config,
83264- config = _ref$config === undefined ? _constants .LAYOUT_CONFIG : _ref$config,
83277+ config = _ref$config === undefined ? _constants2 .LAYOUT_CONFIG : _ref$config,
8326583278 closedFolders = _ref.closedFolders;
8326683279
8326783280 var layoutStructure = d3FlexTree.flextree({
0 commit comments