kitchen-simulator 5.0.0-test.2 → 5.0.0-test.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/KitchenConfigurator.js +1 -1
- package/es/KitchenConfigurator.js.map +1 -1
- package/es/index.js +2 -2
- package/es/index.js.map +1 -1
- package/package.json +8 -16
- package/src/KitchenConfigurator.jsx +1 -1
- package/src/index.js +3 -3
- package/lib/@history.js +0 -11
- package/lib/@history.js.map +0 -1
- package/lib/AppContext.js +0 -11
- package/lib/AppContext.js.map +0 -1
- package/lib/KitchenConfigurator.js +0 -1353
- package/lib/KitchenConfigurator.js.map +0 -1
- package/lib/KitchenConfiguratorApp.js +0 -539
- package/lib/KitchenConfiguratorApp.js.map +0 -1
- package/lib/actions/area-actions.js +0 -22
- package/lib/actions/area-actions.js.map +0 -1
- package/lib/actions/export.js +0 -44
- package/lib/actions/export.js.map +0 -1
- package/lib/actions/groups-actions.js +0 -108
- package/lib/actions/groups-actions.js.map +0 -1
- package/lib/actions/holes-actions.js +0 -141
- package/lib/actions/holes-actions.js.map +0 -1
- package/lib/actions/items-actions.js +0 -365
- package/lib/actions/items-actions.js.map +0 -1
- package/lib/actions/lines-actions.js +0 -98
- package/lib/actions/lines-actions.js.map +0 -1
- package/lib/actions/project-actions.js +0 -333
- package/lib/actions/project-actions.js.map +0 -1
- package/lib/actions/scene-actions.js +0 -44
- package/lib/actions/scene-actions.js.map +0 -1
- package/lib/actions/user-actions.js +0 -69
- package/lib/actions/user-actions.js.map +0 -1
- package/lib/actions/vertices-actions.js +0 -36
- package/lib/actions/vertices-actions.js.map +0 -1
- package/lib/actions/viewer2d-actions.js +0 -74
- package/lib/actions/viewer2d-actions.js.map +0 -1
- package/lib/actions/viewer3d-actions.js +0 -33
- package/lib/actions/viewer3d-actions.js.map +0 -1
- package/lib/catalog/areas/area/planner-element.js +0 -47
- package/lib/catalog/areas/area/planner-element.js.map +0 -1
- package/lib/catalog/catalog.js +0 -283
- package/lib/catalog/catalog.js.map +0 -1
- package/lib/catalog/factories/area-factory-3d.js +0 -192
- package/lib/catalog/factories/area-factory-3d.js.map +0 -1
- package/lib/catalog/factories/area-factory.js +0 -90
- package/lib/catalog/factories/area-factory.js.map +0 -1
- package/lib/catalog/factories/export.js +0 -26
- package/lib/catalog/factories/export.js.map +0 -1
- package/lib/catalog/factories/wall-factory-3d.js +0 -213
- package/lib/catalog/factories/wall-factory-3d.js.map +0 -1
- package/lib/catalog/factories/wall-factory.js +0 -279
- package/lib/catalog/factories/wall-factory.js.map +0 -1
- package/lib/catalog/holes/door-closet/planner-element.js +0 -232
- package/lib/catalog/holes/door-closet/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-double/planner-element.js +0 -325
- package/lib/catalog/holes/door-double/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-exterior/planner-element.js +0 -225
- package/lib/catalog/holes/door-exterior/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-interior/planner-element.js +0 -237
- package/lib/catalog/holes/door-interior/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-panic/planner-element.js +0 -513
- package/lib/catalog/holes/door-panic/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-panic-double/planner-element.js +0 -473
- package/lib/catalog/holes/door-panic-double/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-sliding/planner-element.js +0 -235
- package/lib/catalog/holes/door-sliding/planner-element.js.map +0 -1
- package/lib/catalog/holes/doorway-framed/planner-element.js +0 -155
- package/lib/catalog/holes/doorway-framed/planner-element.js.map +0 -1
- package/lib/catalog/holes/doorway-frameless/planner-element.js +0 -114
- package/lib/catalog/holes/doorway-frameless/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-clear/planner-element.js +0 -176
- package/lib/catalog/holes/window-clear/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-cross/planner-element.js +0 -175
- package/lib/catalog/holes/window-cross/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-double-hung/planner-element.js +0 -313
- package/lib/catalog/holes/window-double-hung/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-vertical/planner-element.js +0 -286
- package/lib/catalog/holes/window-vertical/planner-element.js.map +0 -1
- package/lib/catalog/lines/wall/planner-element.js +0 -77
- package/lib/catalog/lines/wall/planner-element.js.map +0 -1
- package/lib/catalog/molding/molding-dcm/planner-element.js +0 -39
- package/lib/catalog/molding/molding-dcm/planner-element.js.map +0 -1
- package/lib/catalog/molding/molding-fbm/planner-element.js +0 -39
- package/lib/catalog/molding/molding-fbm/planner-element.js.map +0 -1
- package/lib/catalog/molding/molding-lrm/planner-element.js +0 -39
- package/lib/catalog/molding/molding-lrm/planner-element.js.map +0 -1
- package/lib/catalog/properties/export.js +0 -82
- package/lib/catalog/properties/export.js.map +0 -1
- package/lib/catalog/properties/property-checkbox.js +0 -79
- package/lib/catalog/properties/property-checkbox.js.map +0 -1
- package/lib/catalog/properties/property-color.js +0 -47
- package/lib/catalog/properties/property-color.js.map +0 -1
- package/lib/catalog/properties/property-enum.js +0 -63
- package/lib/catalog/properties/property-enum.js.map +0 -1
- package/lib/catalog/properties/property-hidden.js +0 -27
- package/lib/catalog/properties/property-hidden.js.map +0 -1
- package/lib/catalog/properties/property-lenght-measure.js +0 -109
- package/lib/catalog/properties/property-lenght-measure.js.map +0 -1
- package/lib/catalog/properties/property-length-measure.js +0 -93
- package/lib/catalog/properties/property-length-measure.js.map +0 -1
- package/lib/catalog/properties/property-length-measure_hole.js +0 -109
- package/lib/catalog/properties/property-length-measure_hole.js.map +0 -1
- package/lib/catalog/properties/property-number.js +0 -56
- package/lib/catalog/properties/property-number.js.map +0 -1
- package/lib/catalog/properties/property-read-only.js +0 -34
- package/lib/catalog/properties/property-read-only.js.map +0 -1
- package/lib/catalog/properties/property-string.js +0 -56
- package/lib/catalog/properties/property-string.js.map +0 -1
- package/lib/catalog/properties/property-toggle.js +0 -47
- package/lib/catalog/properties/property-toggle.js.map +0 -1
- package/lib/catalog/properties/shared-property-style.js +0 -21
- package/lib/catalog/properties/shared-property-style.js.map +0 -1
- package/lib/catalog/utils/FuseUtils.js +0 -89
- package/lib/catalog/utils/FuseUtils.js.map +0 -1
- package/lib/catalog/utils/exporter.js +0 -156
- package/lib/catalog/utils/exporter.js.map +0 -1
- package/lib/catalog/utils/geom-utils.js +0 -206
- package/lib/catalog/utils/geom-utils.js.map +0 -1
- package/lib/catalog/utils/item-loader.js +0 -1534
- package/lib/catalog/utils/item-loader.js.map +0 -1
- package/lib/catalog/utils/load-obj.js +0 -100
- package/lib/catalog/utils/load-obj.js.map +0 -1
- package/lib/catalog/utils/mtl-loader.js +0 -360
- package/lib/catalog/utils/mtl-loader.js.map +0 -1
- package/lib/catalog/utils/obj-loader.js +0 -479
- package/lib/catalog/utils/obj-loader.js.map +0 -1
- package/lib/class/FuseUtils.js +0 -89
- package/lib/class/FuseUtils.js.map +0 -1
- package/lib/class/area.js +0 -151
- package/lib/class/area.js.map +0 -1
- package/lib/class/export.js +0 -97
- package/lib/class/export.js.map +0 -1
- package/lib/class/group.js +0 -446
- package/lib/class/group.js.map +0 -1
- package/lib/class/guide.js +0 -68
- package/lib/class/guide.js.map +0 -1
- package/lib/class/hole.js +0 -935
- package/lib/class/hole.js.map +0 -1
- package/lib/class/item.js +0 -1894
- package/lib/class/item.js.map +0 -1
- package/lib/class/layer.js +0 -673
- package/lib/class/layer.js.map +0 -1
- package/lib/class/line.js +0 -1296
- package/lib/class/line.js.map +0 -1
- package/lib/class/project.js +0 -829
- package/lib/class/project.js.map +0 -1
- package/lib/class/vertex.js +0 -272
- package/lib/class/vertex.js.map +0 -1
- package/lib/components/atoms/Snackbar/index.js +0 -57
- package/lib/components/atoms/Snackbar/index.js.map +0 -1
- package/lib/components/atoms/radio-button/index.js +0 -33
- package/lib/components/atoms/radio-button/index.js.map +0 -1
- package/lib/components/atoms/radio-button/styles.js +0 -12
- package/lib/components/atoms/radio-button/styles.js.map +0 -1
- package/lib/components/button/MainButton.js +0 -98
- package/lib/components/button/MainButton.js.map +0 -1
- package/lib/components/button/ToggleMeasureButton.js +0 -63
- package/lib/components/button/ToggleMeasureButton.js.map +0 -1
- package/lib/components/catalog-view/catalog-breadcrumb.js +0 -61
- package/lib/components/catalog-view/catalog-breadcrumb.js.map +0 -1
- package/lib/components/catalog-view/catalog-item.js +0 -233
- package/lib/components/catalog-view/catalog-item.js.map +0 -1
- package/lib/components/catalog-view/catalog-list.js +0 -189
- package/lib/components/catalog-view/catalog-list.js.map +0 -1
- package/lib/components/catalog-view/catalog-page-item.js +0 -137
- package/lib/components/catalog-view/catalog-page-item.js.map +0 -1
- package/lib/components/catalog-view/catalog-turn-back-page-item.js +0 -113
- package/lib/components/catalog-view/catalog-turn-back-page-item.js.map +0 -1
- package/lib/components/configurator/custom-configurator.js +0 -101
- package/lib/components/configurator/custom-configurator.js.map +0 -1
- package/lib/components/configurator/project-configurator.js +0 -138
- package/lib/components/configurator/project-configurator.js.map +0 -1
- package/lib/components/content.js +0 -132
- package/lib/components/content.js.map +0 -1
- package/lib/components/export.js +0 -90
- package/lib/components/export.js.map +0 -1
- package/lib/components/firstsetting/button/styles.js +0 -34
- package/lib/components/firstsetting/button/styles.js.map +0 -1
- package/lib/components/firstsetting/export.js +0 -16
- package/lib/components/firstsetting/export.js.map +0 -1
- package/lib/components/firstsetting/firstsetting-content-button.js +0 -224
- package/lib/components/firstsetting/firstsetting-content-button.js.map +0 -1
- package/lib/components/firstsetting/firstsetting-toggle-button.js +0 -133
- package/lib/components/firstsetting/firstsetting-toggle-button.js.map +0 -1
- package/lib/components/firstsetting/firstsetting.js +0 -633
- package/lib/components/firstsetting/firstsetting.js.map +0 -1
- package/lib/components/footerbar/button/ControlButton.js +0 -79
- package/lib/components/footerbar/button/ControlButton.js.map +0 -1
- package/lib/components/footerbar/button/DirectionButton.js +0 -76
- package/lib/components/footerbar/button/DirectionButton.js.map +0 -1
- package/lib/components/footerbar/button/DirectionPanSpinButton.js +0 -57
- package/lib/components/footerbar/button/DirectionPanSpinButton.js.map +0 -1
- package/lib/components/footerbar/button/ToggleButton.js +0 -83
- package/lib/components/footerbar/button/ToggleButton.js.map +0 -1
- package/lib/components/footerbar/button/ToggleConvertButton.js +0 -80
- package/lib/components/footerbar/button/ToggleConvertButton.js.map +0 -1
- package/lib/components/footerbar/button/ToggleMeasureButton.js +0 -59
- package/lib/components/footerbar/button/ToggleMeasureButton.js.map +0 -1
- package/lib/components/footerbar/button/styles.js +0 -29
- package/lib/components/footerbar/button/styles.js.map +0 -1
- package/lib/components/footerbar/export.js +0 -16
- package/lib/components/footerbar/export.js.map +0 -1
- package/lib/components/footerbar/footer-content-button.js +0 -224
- package/lib/components/footerbar/footer-content-button.js.map +0 -1
- package/lib/components/footerbar/footer-toggle-button.js +0 -133
- package/lib/components/footerbar/footer-toggle-button.js.map +0 -1
- package/lib/components/footerbar/footerbar.js +0 -808
- package/lib/components/footerbar/footerbar.js.map +0 -1
- package/lib/components/footerbar/styles.js +0 -41
- package/lib/components/footerbar/styles.js.map +0 -1
- package/lib/components/header/button/MenuButton.js +0 -77
- package/lib/components/header/button/MenuButton.js.map +0 -1
- package/lib/components/header/button/SaveButton.js +0 -57
- package/lib/components/header/button/SaveButton.js.map +0 -1
- package/lib/components/header/button/styles.js +0 -68
- package/lib/components/header/button/styles.js.map +0 -1
- package/lib/components/header/export.js +0 -12
- package/lib/components/header/export.js.map +0 -1
- package/lib/components/header/header.js +0 -556
- package/lib/components/header/header.js.map +0 -1
- package/lib/components/header/styles.js +0 -47
- package/lib/components/header/styles.js.map +0 -1
- package/lib/components/login/Login.js +0 -94
- package/lib/components/login/Login.js.map +0 -1
- package/lib/components/login/LoginForm/index.js +0 -140
- package/lib/components/login/LoginForm/index.js.map +0 -1
- package/lib/components/login/Register.js +0 -104
- package/lib/components/login/Register.js.map +0 -1
- package/lib/components/login/RegisterForm/index.js +0 -237
- package/lib/components/login/RegisterForm/index.js.map +0 -1
- package/lib/components/login/jwtService.js +0 -239
- package/lib/components/login/jwtService.js.map +0 -1
- package/lib/components/molecules/slider/index.js +0 -22
- package/lib/components/molecules/slider/index.js.map +0 -1
- package/lib/components/molecules/slider/styles.js +0 -2
- package/lib/components/molecules/slider/styles.js.map +0 -1
- package/lib/components/myprojects/export.js +0 -12
- package/lib/components/myprojects/export.js.map +0 -1
- package/lib/components/myprojects/index.js +0 -453
- package/lib/components/myprojects/index.js.map +0 -1
- package/lib/components/myprojects/styles.js +0 -31
- package/lib/components/myprojects/styles.js.map +0 -1
- package/lib/components/sidebar/custom-accordion.js +0 -45
- package/lib/components/sidebar/custom-accordion.js.map +0 -1
- package/lib/components/sidebar/export.js +0 -50
- package/lib/components/sidebar/export.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js +0 -74
- package/lib/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.js +0 -124
- package/lib/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js +0 -135
- package/lib/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js +0 -260
- package/lib/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js +0 -84
- package/lib/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/element-editor.js +0 -884
- package/lib/components/sidebar/panel-element-editor/element-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/multi-elements-editor.js +0 -2
- package/lib/components/sidebar/panel-element-editor/multi-elements-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/panel-element-editor.js +0 -56
- package/lib/components/sidebar/panel-element-editor/panel-element-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/panel-multi-elements-editor.js +0 -125
- package/lib/components/sidebar/panel-element-editor/panel-multi-elements-editor.js.map +0 -1
- package/lib/components/sidebar/panel-group-editor.js +0 -218
- package/lib/components/sidebar/panel-group-editor.js.map +0 -1
- package/lib/components/sidebar/panel-groups.js +0 -274
- package/lib/components/sidebar/panel-groups.js.map +0 -1
- package/lib/components/sidebar/panel-guides.js +0 -192
- package/lib/components/sidebar/panel-guides.js.map +0 -1
- package/lib/components/sidebar/panel-layer-elements.js +0 -258
- package/lib/components/sidebar/panel-layer-elements.js.map +0 -1
- package/lib/components/sidebar/panel-layers.js +0 -347
- package/lib/components/sidebar/panel-layers.js.map +0 -1
- package/lib/components/sidebar/panel.js +0 -110
- package/lib/components/sidebar/panel.js.map +0 -1
- package/lib/components/sidebar/sidebar.js +0 -117
- package/lib/components/sidebar/sidebar.js.map +0 -1
- package/lib/components/sidebar/toolbar-panel.js +0 -171
- package/lib/components/sidebar/toolbar-panel.js.map +0 -1
- package/lib/components/sign/export.js +0 -18
- package/lib/components/sign/export.js.map +0 -1
- package/lib/components/sign/main/index.js +0 -567
- package/lib/components/sign/main/index.js.map +0 -1
- package/lib/components/sign/main/styles.js +0 -27
- package/lib/components/sign/main/styles.js.map +0 -1
- package/lib/components/style/button.js +0 -121
- package/lib/components/style/button.js.map +0 -1
- package/lib/components/style/cancel-button.js +0 -30
- package/lib/components/style/cancel-button.js.map +0 -1
- package/lib/components/style/content-container.js +0 -41
- package/lib/components/style/content-container.js.map +0 -1
- package/lib/components/style/content-title.js +0 -38
- package/lib/components/style/content-title.js.map +0 -1
- package/lib/components/style/delete-button.js +0 -35
- package/lib/components/style/delete-button.js.map +0 -1
- package/lib/components/style/export.js +0 -122
- package/lib/components/style/export.js.map +0 -1
- package/lib/components/style/form-block.js +0 -32
- package/lib/components/style/form-block.js.map +0 -1
- package/lib/components/style/form-color-input.js +0 -35
- package/lib/components/style/form-color-input.js.map +0 -1
- package/lib/components/style/form-label.js +0 -34
- package/lib/components/style/form-label.js.map +0 -1
- package/lib/components/style/form-number-input.js +0 -197
- package/lib/components/style/form-number-input.js.map +0 -1
- package/lib/components/style/form-number-input_2.js +0 -214
- package/lib/components/style/form-number-input_2.js.map +0 -1
- package/lib/components/style/form-select.js +0 -30
- package/lib/components/style/form-select.js.map +0 -1
- package/lib/components/style/form-slider.js +0 -53
- package/lib/components/style/form-slider.js.map +0 -1
- package/lib/components/style/form-submit-button.js +0 -36
- package/lib/components/style/form-submit-button.js.map +0 -1
- package/lib/components/style/form-text-input.js +0 -84
- package/lib/components/style/form-text-input.js.map +0 -1
- package/lib/components/toolbar/button/ControlButton.js +0 -76
- package/lib/components/toolbar/button/ControlButton.js.map +0 -1
- package/lib/components/toolbar/button/DirectionButton.js +0 -57
- package/lib/components/toolbar/button/DirectionButton.js.map +0 -1
- package/lib/components/toolbar/button/RightButton.js +0 -140
- package/lib/components/toolbar/button/RightButton.js.map +0 -1
- package/lib/components/toolbar/button/ToggleButton.js +0 -66
- package/lib/components/toolbar/button/ToggleButton.js.map +0 -1
- package/lib/components/toolbar/button/index.js +0 -94
- package/lib/components/toolbar/button/index.js.map +0 -1
- package/lib/components/toolbar/button/styles.js +0 -21
- package/lib/components/toolbar/button/styles.js.map +0 -1
- package/lib/components/toolbar/components/DoorStyleMenu.js +0 -112
- package/lib/components/toolbar/components/DoorStyleMenu.js.map +0 -1
- package/lib/components/toolbar/components/Pricing.js +0 -110
- package/lib/components/toolbar/components/Pricing.js.map +0 -1
- package/lib/components/toolbar/components/ReviewForQuote.js +0 -485
- package/lib/components/toolbar/components/ReviewForQuote.js.map +0 -1
- package/lib/components/toolbar/export.js +0 -50
- package/lib/components/toolbar/export.js.map +0 -1
- package/lib/components/toolbar/main/Alert.js +0 -132
- package/lib/components/toolbar/main/Alert.js.map +0 -1
- package/lib/components/toolbar/main/TakePictureModal.js +0 -109
- package/lib/components/toolbar/main/TakePictureModal.js.map +0 -1
- package/lib/components/toolbar/main/confirm-popup.js +0 -95
- package/lib/components/toolbar/main/confirm-popup.js.map +0 -1
- package/lib/components/toolbar/main/index.js +0 -4619
- package/lib/components/toolbar/main/index.js.map +0 -1
- package/lib/components/toolbar/main/myComponents.js +0 -125
- package/lib/components/toolbar/main/myComponents.js.map +0 -1
- package/lib/components/toolbar/main/styles.js +0 -73
- package/lib/components/toolbar/main/styles.js.map +0 -1
- package/lib/components/toolbar/plugin-item.js +0 -156
- package/lib/components/toolbar/plugin-item.js.map +0 -1
- package/lib/components/toolbar/popup/appliance/appliance-category/index.js +0 -86
- package/lib/components/toolbar/popup/appliance/appliance-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/appliance/choose-appliance/index.js +0 -85
- package/lib/components/toolbar/popup/appliance/choose-appliance/index.js.map +0 -1
- package/lib/components/toolbar/popup/appliance/index.js +0 -89
- package/lib/components/toolbar/popup/appliance/index.js.map +0 -1
- package/lib/components/toolbar/popup/autosaveprompt/index.js +0 -99
- package/lib/components/toolbar/popup/autosaveprompt/index.js.map +0 -1
- package/lib/components/toolbar/popup/autosaveprompt/styles.js +0 -16
- package/lib/components/toolbar/popup/autosaveprompt/styles.js.map +0 -1
- package/lib/components/toolbar/popup/cabinet/cabinet-category/index.js +0 -86
- package/lib/components/toolbar/popup/cabinet/cabinet-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/cabinet/choose-product/index.js +0 -107
- package/lib/components/toolbar/popup/cabinet/choose-product/index.js.map +0 -1
- package/lib/components/toolbar/popup/cabinet/index.js +0 -91
- package/lib/components/toolbar/popup/cabinet/index.js.map +0 -1
- package/lib/components/toolbar/popup/doorStyle/choose-style/index.js +0 -59
- package/lib/components/toolbar/popup/doorStyle/choose-style/index.js.map +0 -1
- package/lib/components/toolbar/popup/doorStyle/index.js +0 -68
- package/lib/components/toolbar/popup/doorStyle/index.js.map +0 -1
- package/lib/components/toolbar/popup/doorStyle/style-category/index.js +0 -152
- package/lib/components/toolbar/popup/doorStyle/style-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +0 -9
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryContext.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryTemp.js +0 -128
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryTemp.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/index.js +0 -572
- package/lib/components/toolbar/popup/downloadsummary/index.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show2D/show2DView.js +0 -60
- package/lib/components/toolbar/popup/downloadsummary/show2D/show2DView.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.js +0 -200
- package/lib/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show3D/show3DView.js +0 -254
- package/lib/components/toolbar/popup/downloadsummary/show3D/show3DView.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.js +0 -1762
- package/lib/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showCabinetInfo.js +0 -96
- package/lib/components/toolbar/popup/downloadsummary/showCabinetInfo.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showElevation/showElevationView.js +0 -125
- package/lib/components/toolbar/popup/downloadsummary/showElevation/showElevationView.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.js +0 -1713
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.js +0 -184
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showWarranty.js +0 -115
- package/lib/components/toolbar/popup/downloadsummary/showWarranty.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/styles.js +0 -47
- package/lib/components/toolbar/popup/downloadsummary/styles.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/category/index.js +0 -44
- package/lib/components/toolbar/popup/finishingtouch/category/index.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/index.js +0 -54
- package/lib/components/toolbar/popup/finishingtouch/index.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/material-edit.js +0 -163
- package/lib/components/toolbar/popup/finishingtouch/material-edit.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/product/index.js +0 -65
- package/lib/components/toolbar/popup/finishingtouch/product/index.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/choose-floor/confirm-popup.js +0 -124
- package/lib/components/toolbar/popup/floorplan/choose-floor/confirm-popup.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/choose-floor/index.js +0 -255
- package/lib/components/toolbar/popup/floorplan/choose-floor/index.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/choose-floor/styles.js +0 -20
- package/lib/components/toolbar/popup/floorplan/choose-floor/styles.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/floor-category/index.js +0 -99
- package/lib/components/toolbar/popup/floorplan/floor-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/index.js +0 -56
- package/lib/components/toolbar/popup/floorplan/index.js.map +0 -1
- package/lib/components/toolbar/popup/index.js +0 -195
- package/lib/components/toolbar/popup/index.js.map +0 -1
- package/lib/components/toolbar/popup/newproject/index.js +0 -75
- package/lib/components/toolbar/popup/newproject/index.js.map +0 -1
- package/lib/components/toolbar/popup/newproject/styles.js +0 -16
- package/lib/components/toolbar/popup/newproject/styles.js.map +0 -1
- package/lib/components/toolbar/popup/product/appliance.js +0 -73
- package/lib/components/toolbar/popup/product/appliance.js.map +0 -1
- package/lib/components/toolbar/popup/product/cabinetproduct.js +0 -33
- package/lib/components/toolbar/popup/product/cabinetproduct.js.map +0 -1
- package/lib/components/toolbar/popup/product/doorstyle.js +0 -59
- package/lib/components/toolbar/popup/product/doorstyle.js.map +0 -1
- package/lib/components/toolbar/popup/product/doorstyleproduct.js +0 -59
- package/lib/components/toolbar/popup/product/doorstyleproduct.js.map +0 -1
- package/lib/components/toolbar/popup/product/floor.js +0 -59
- package/lib/components/toolbar/popup/product/floor.js.map +0 -1
- package/lib/components/toolbar/popup/product/floorproduct.js +0 -68
- package/lib/components/toolbar/popup/product/floorproduct.js.map +0 -1
- package/lib/components/toolbar/popup/product/index.js +0 -59
- package/lib/components/toolbar/popup/product/index.js.map +0 -1
- package/lib/components/toolbar/popup/product/primary.js +0 -71
- package/lib/components/toolbar/popup/product/primary.js.map +0 -1
- package/lib/components/toolbar/popup/product/productline.js +0 -128
- package/lib/components/toolbar/popup/product/productline.js.map +0 -1
- package/lib/components/toolbar/popup/product/reviewItem.js +0 -346
- package/lib/components/toolbar/popup/product/reviewItem.js.map +0 -1
- package/lib/components/toolbar/popup/product/reviewMolding.js +0 -291
- package/lib/components/toolbar/popup/product/reviewMolding.js.map +0 -1
- package/lib/components/toolbar/popup/product/styles.js +0 -79
- package/lib/components/toolbar/popup/product/styles.js.map +0 -1
- package/lib/components/toolbar/popup/savedesign/FullPictureForm.js +0 -169
- package/lib/components/toolbar/popup/savedesign/FullPictureForm.js.map +0 -1
- package/lib/components/toolbar/popup/savedesign/index.js +0 -516
- package/lib/components/toolbar/popup/savedesign/index.js.map +0 -1
- package/lib/components/toolbar/popup/savedesign/styles.js +0 -26
- package/lib/components/toolbar/popup/savedesign/styles.js.map +0 -1
- package/lib/components/toolbar/popup/setDoorStyleOption/index.js +0 -64
- package/lib/components/toolbar/popup/setDoorStyleOption/index.js.map +0 -1
- package/lib/components/toolbar/popup/styles.js +0 -104
- package/lib/components/toolbar/popup/styles.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/AddToCartOptions.js +0 -166
- package/lib/components/toolbar/popup/submitforquote/AddToCartOptions.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/CustomerRequestsForm.js +0 -93
- package/lib/components/toolbar/popup/submitforquote/CustomerRequestsForm.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/SkipDesignerReview.js +0 -45
- package/lib/components/toolbar/popup/submitforquote/SkipDesignerReview.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/StepDots.js +0 -40
- package/lib/components/toolbar/popup/submitforquote/StepDots.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/cart-choice.js +0 -141
- package/lib/components/toolbar/popup/submitforquote/cart-choice.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/doorstyle-menus.js +0 -50
- package/lib/components/toolbar/popup/submitforquote/doorstyle-menus.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/index.js +0 -698
- package/lib/components/toolbar/popup/submitforquote/index.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/styles.js +0 -38
- package/lib/components/toolbar/popup/submitforquote/styles.js.map +0 -1
- package/lib/components/toolbar/popup/submitprompt/index.js +0 -79
- package/lib/components/toolbar/popup/submitprompt/index.js.map +0 -1
- package/lib/components/toolbar/popup/submitprompt/styles.js +0 -16
- package/lib/components/toolbar/popup/submitprompt/styles.js.map +0 -1
- package/lib/components/toolbar/toolbar-button.js +0 -111
- package/lib/components/toolbar/toolbar-button.js.map +0 -1
- package/lib/components/toolbar/toolbar-load-button.js +0 -36
- package/lib/components/toolbar/toolbar-load-button.js.map +0 -1
- package/lib/components/toolbar/toolbar-save-button.js +0 -34
- package/lib/components/toolbar/toolbar-save-button.js.map +0 -1
- package/lib/components/tutorial-view/Modal.js +0 -503
- package/lib/components/tutorial-view/Modal.js.map +0 -1
- package/lib/components/tutorial-view/styles.js +0 -13
- package/lib/components/tutorial-view/styles.js.map +0 -1
- package/lib/components/viewer2d/area.js +0 -90
- package/lib/components/viewer2d/area.js.map +0 -1
- package/lib/components/viewer2d/export.js +0 -122
- package/lib/components/viewer2d/export.js.map +0 -1
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +0 -45
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js.map +0 -1
- package/lib/components/viewer2d/grids/grid-streak.js +0 -45
- package/lib/components/viewer2d/grids/grid-streak.js.map +0 -1
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +0 -45
- package/lib/components/viewer2d/grids/grid-vertical-streak.js.map +0 -1
- package/lib/components/viewer2d/grids/grids.js +0 -45
- package/lib/components/viewer2d/grids/grids.js.map +0 -1
- package/lib/components/viewer2d/group.js +0 -63
- package/lib/components/viewer2d/group.js.map +0 -1
- package/lib/components/viewer2d/item.js +0 -522
- package/lib/components/viewer2d/item.js.map +0 -1
- package/lib/components/viewer2d/layer.js +0 -172
- package/lib/components/viewer2d/layer.js.map +0 -1
- package/lib/components/viewer2d/line.js +0 -899
- package/lib/components/viewer2d/line.js.map +0 -1
- package/lib/components/viewer2d/ruler.js +0 -108
- package/lib/components/viewer2d/ruler.js.map +0 -1
- package/lib/components/viewer2d/rulerDist.js +0 -154
- package/lib/components/viewer2d/rulerDist.js.map +0 -1
- package/lib/components/viewer2d/rulerX.js +0 -159
- package/lib/components/viewer2d/rulerX.js.map +0 -1
- package/lib/components/viewer2d/rulerY.js +0 -161
- package/lib/components/viewer2d/rulerY.js.map +0 -1
- package/lib/components/viewer2d/scene.js +0 -148
- package/lib/components/viewer2d/scene.js.map +0 -1
- package/lib/components/viewer2d/snap.js +0 -84
- package/lib/components/viewer2d/snap.js.map +0 -1
- package/lib/components/viewer2d/state.js +0 -88
- package/lib/components/viewer2d/state.js.map +0 -1
- package/lib/components/viewer2d/utils.js +0 -174
- package/lib/components/viewer2d/utils.js.map +0 -1
- package/lib/components/viewer2d/vertex.js +0 -76
- package/lib/components/viewer2d/vertex.js.map +0 -1
- package/lib/components/viewer2d/viewer2d.js +0 -1409
- package/lib/components/viewer2d/viewer2d.js.map +0 -1
- package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -2598
- package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js.map +0 -1
- package/lib/components/viewer3d/dcm.js +0 -408
- package/lib/components/viewer3d/dcm.js.map +0 -1
- package/lib/components/viewer3d/fbm.js +0 -421
- package/lib/components/viewer3d/fbm.js.map +0 -1
- package/lib/components/viewer3d/front3D.js +0 -76
- package/lib/components/viewer3d/front3D.js.map +0 -1
- package/lib/components/viewer3d/grid-creator.js +0 -35
- package/lib/components/viewer3d/grid-creator.js.map +0 -1
- package/lib/components/viewer3d/grids/grid-horizontal-streak.js +0 -45
- package/lib/components/viewer3d/grids/grid-horizontal-streak.js.map +0 -1
- package/lib/components/viewer3d/grids/grid-streak.js +0 -36
- package/lib/components/viewer3d/grids/grid-streak.js.map +0 -1
- package/lib/components/viewer3d/grids/grid-vertical-streak.js +0 -45
- package/lib/components/viewer3d/grids/grid-vertical-streak.js.map +0 -1
- package/lib/components/viewer3d/libs/first-person-controls.js +0 -75
- package/lib/components/viewer3d/libs/first-person-controls.js.map +0 -1
- package/lib/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1288
- package/lib/components/viewer3d/libs/helvetiker_regular.typeface.js.map +0 -1
- package/lib/components/viewer3d/libs/mtl-loader.js +0 -360
- package/lib/components/viewer3d/libs/mtl-loader.js.map +0 -1
- package/lib/components/viewer3d/libs/obj-loader.js +0 -465
- package/lib/components/viewer3d/libs/obj-loader.js.map +0 -1
- package/lib/components/viewer3d/libs/orbit-controls.js +0 -701
- package/lib/components/viewer3d/libs/orbit-controls.js.map +0 -1
- package/lib/components/viewer3d/libs/pointer-lock-controls.js +0 -48
- package/lib/components/viewer3d/libs/pointer-lock-controls.js.map +0 -1
- package/lib/components/viewer3d/lrm.js +0 -312
- package/lib/components/viewer3d/lrm.js.map +0 -1
- package/lib/components/viewer3d/model.js +0 -715
- package/lib/components/viewer3d/model.js.map +0 -1
- package/lib/components/viewer3d/pointer-lock-navigation.js +0 -123
- package/lib/components/viewer3d/pointer-lock-navigation.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/itemRect.js +0 -69
- package/lib/components/viewer3d/ruler-utils/itemRect.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/layer3D.js +0 -503
- package/lib/components/viewer3d/ruler-utils/layer3D.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/ruler3D.js +0 -235
- package/lib/components/viewer3d/ruler-utils/ruler3D.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -70
- package/lib/components/viewer3d/ruler-utils/scene3D.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/state3D.js +0 -26
- package/lib/components/viewer3d/ruler-utils/state3D.js.map +0 -1
- package/lib/components/viewer3d/scene-creator.js +0 -3641
- package/lib/components/viewer3d/scene-creator.js.map +0 -1
- package/lib/components/viewer3d/three-memory-cleaner.js +0 -61
- package/lib/components/viewer3d/three-memory-cleaner.js.map +0 -1
- package/lib/components/viewer3d/viewer3d-first-person.js +0 -321
- package/lib/components/viewer3d/viewer3d-first-person.js.map +0 -1
- package/lib/components/viewer3d/viewer3d.js +0 -2508
- package/lib/components/viewer3d/viewer3d.js.map +0 -1
- package/lib/components/wizardstep/button/styles.js +0 -67
- package/lib/components/wizardstep/button/styles.js.map +0 -1
- package/lib/components/wizardstep/export.js +0 -12
- package/lib/components/wizardstep/export.js.map +0 -1
- package/lib/components/wizardstep/index.js +0 -978
- package/lib/components/wizardstep/index.js.map +0 -1
- package/lib/components/wizardstep/styles.js +0 -68
- package/lib/components/wizardstep/styles.js.map +0 -1
- package/lib/components/wizardstep/wizardstep-content-button.js +0 -224
- package/lib/components/wizardstep/wizardstep-content-button.js.map +0 -1
- package/lib/components/wizardstep/wizardstep-toggle-button.js +0 -133
- package/lib/components/wizardstep/wizardstep-toggle-button.js.map +0 -1
- package/lib/constants.js +0 -646
- package/lib/constants.js.map +0 -1
- package/lib/hooks/useCheckCart.js +0 -60
- package/lib/hooks/useCheckCart.js.map +0 -1
- package/lib/hooks/useGetPricesBySku.js +0 -81
- package/lib/hooks/useGetPricesBySku.js.map +0 -1
- package/lib/hooks/useValidateToken.js +0 -207
- package/lib/hooks/useValidateToken.js.map +0 -1
- package/lib/index.js +0 -102
- package/lib/index.js.map +0 -1
- package/lib/models.js +0 -518
- package/lib/models.js.map +0 -1
- package/lib/plugins/SVGLoader.js +0 -1418
- package/lib/plugins/SVGLoader.js.map +0 -1
- package/lib/plugins/autosave.js +0 -40
- package/lib/plugins/autosave.js.map +0 -1
- package/lib/plugins/console-debugger.js +0 -45
- package/lib/plugins/console-debugger.js.map +0 -1
- package/lib/plugins/export.js +0 -34
- package/lib/plugins/export.js.map +0 -1
- package/lib/plugins/keyboard.js +0 -108
- package/lib/plugins/keyboard.js.map +0 -1
- package/lib/reducers/areas-reducer.js +0 -19
- package/lib/reducers/areas-reducer.js.map +0 -1
- package/lib/reducers/export.js +0 -98
- package/lib/reducers/export.js.map +0 -1
- package/lib/reducers/groups-reducer.js +0 -45
- package/lib/reducers/groups-reducer.js.map +0 -1
- package/lib/reducers/holes-reducer.js +0 -69
- package/lib/reducers/holes-reducer.js.map +0 -1
- package/lib/reducers/items-reducer.js +0 -147
- package/lib/reducers/items-reducer.js.map +0 -1
- package/lib/reducers/lines-reducer.js +0 -52
- package/lib/reducers/lines-reducer.js.map +0 -1
- package/lib/reducers/project-reducer.js +0 -136
- package/lib/reducers/project-reducer.js.map +0 -1
- package/lib/reducers/reducer.js +0 -27
- package/lib/reducers/reducer.js.map +0 -1
- package/lib/reducers/scene-reducer.js +0 -35
- package/lib/reducers/scene-reducer.js.map +0 -1
- package/lib/reducers/user-reducer.js +0 -48
- package/lib/reducers/user-reducer.js.map +0 -1
- package/lib/reducers/vertices-reducer.js +0 -26
- package/lib/reducers/vertices-reducer.js.map +0 -1
- package/lib/reducers/viewer2d-reducer.js +0 -83
- package/lib/reducers/viewer2d-reducer.js.map +0 -1
- package/lib/reducers/viewer3d-reducer.js +0 -64
- package/lib/reducers/viewer3d-reducer.js.map +0 -1
- package/lib/shared-style.js +0 -73
- package/lib/shared-style.js.map +0 -1
- package/lib/styles/export.js +0 -14
- package/lib/styles/export.js.map +0 -1
- package/lib/translator/en.js +0 -111
- package/lib/translator/en.js.map +0 -1
- package/lib/translator/it.js +0 -86
- package/lib/translator/it.js.map +0 -1
- package/lib/translator/ru.js +0 -86
- package/lib/translator/ru.js.map +0 -1
- package/lib/translator/translator.js +0 -91
- package/lib/translator/translator.js.map +0 -1
- package/lib/utils/browser.js +0 -41
- package/lib/utils/browser.js.map +0 -1
- package/lib/utils/email-validator.js +0 -11
- package/lib/utils/email-validator.js.map +0 -1
- package/lib/utils/export.js +0 -57
- package/lib/utils/export.js.map +0 -1
- package/lib/utils/geometry.js +0 -2329
- package/lib/utils/geometry.js.map +0 -1
- package/lib/utils/get-edges-of-subgraphs.js +0 -29
- package/lib/utils/get-edges-of-subgraphs.js.map +0 -1
- package/lib/utils/graph-cycles.js +0 -241
- package/lib/utils/graph-cycles.js.map +0 -1
- package/lib/utils/graph-inner-cycles.js +0 -55
- package/lib/utils/graph-inner-cycles.js.map +0 -1
- package/lib/utils/graph.js +0 -152
- package/lib/utils/graph.js.map +0 -1
- package/lib/utils/helper.js +0 -360
- package/lib/utils/helper.js.map +0 -1
- package/lib/utils/history.js +0 -37
- package/lib/utils/history.js.map +0 -1
- package/lib/utils/id-broker.js +0 -26
- package/lib/utils/id-broker.js.map +0 -1
- package/lib/utils/logger.js +0 -15
- package/lib/utils/logger.js.map +0 -1
- package/lib/utils/math.js +0 -58
- package/lib/utils/math.js.map +0 -1
- package/lib/utils/molding.js +0 -864
- package/lib/utils/molding.js.map +0 -1
- package/lib/utils/name-generator.js +0 -24
- package/lib/utils/name-generator.js.map +0 -1
- package/lib/utils/objects-utils.js +0 -61
- package/lib/utils/objects-utils.js.map +0 -1
- package/lib/utils/phone-validator.js +0 -11
- package/lib/utils/phone-validator.js.map +0 -1
- package/lib/utils/process-black-list.js +0 -25
- package/lib/utils/process-black-list.js.map +0 -1
- package/lib/utils/react-if.js +0 -25
- package/lib/utils/react-if.js.map +0 -1
- package/lib/utils/snap-scene.js +0 -106
- package/lib/utils/snap-scene.js.map +0 -1
- package/lib/utils/snap.js +0 -250
- package/lib/utils/snap.js.map +0 -1
- package/lib/utils/threeCSG.es6.js +0 -504
- package/lib/utils/threeCSG.es6.js.map +0 -1
- package/lib/version.js +0 -8
- package/lib/version.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jwtService.js","names":["_axios","_interopRequireDefault","require","_jwtDecode","_constants","e","__esModule","_callSuper","t","o","_getPrototypeOf","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","constructor","apply","_typeof","TypeError","_assertThisInitialized","ReferenceError","Boolean","prototype","valueOf","call","Object","setPrototypeOf","getPrototypeOf","bind","__proto__","_inherits","create","value","writable","configurable","defineProperty","_setPrototypeOf","Symbol","iterator","_classCallCheck","a","n","_defineProperties","r","length","enumerable","_toPropertyKey","key","_createClass","i","_toPrimitive","toPrimitive","String","Number","EventEmitter","events","_getEventListByName","eventName","Set","on","fn","add","once","self","onceFn","removeListener","_len","arguments","args","Array","_key","emit","_len2","_key2","forEach","jwtService","_EventEmitter","init","handleAuthentication","setInterceptors","_this","axios","interceptors","response","use","err","Promise","resolve","reject","console","log","status","config","__isRetryRequest","setSession","setUser","access_token","getAccessToken","isAuthTokenValid","createUser","data","_this2","post","then","user","error","signInWithEmailAndPassword","values","_this3","concat","API_SERVER_URL","token","signInWithToken","_this4","updateUserData","sessionStorage","setItem","removeItem","JSON","stringify","getUser","parse","getItem","logout","decoded","jwtDecode","currentTime","Date","now","exp","warn","window","instance","_default","exports"],"sources":["../../../src/components/login/jwtService.js"],"sourcesContent":["import axios from 'axios';\r\nimport jwtDecode from 'jwt-decode';\r\nimport { API_SERVER_URL } from '../../constants';\r\n\r\nclass EventEmitter {\r\n constructor() {\r\n this.events = {};\r\n }\r\n\r\n _getEventListByName(eventName) {\r\n if (typeof this.events[eventName] === 'undefined') {\r\n this.events[eventName] = new Set();\r\n }\r\n return this.events[eventName];\r\n }\r\n\r\n on(eventName, fn) {\r\n this._getEventListByName(eventName).add(fn);\r\n }\r\n\r\n once(eventName, fn) {\r\n const self = this;\r\n\r\n const onceFn = function (...args) {\r\n self.removeListener(eventName, onceFn);\r\n fn.apply(self, args);\r\n };\r\n this.on(eventName, onceFn);\r\n }\r\n\r\n emit(eventName, ...args) {\r\n this._getEventListByName(eventName).forEach(\r\n function (fn) {\r\n fn.apply(this, args);\r\n }.bind(this)\r\n );\r\n }\r\n\r\n removeListener(eventName, fn) {\r\n this._getEventListByName(eventName).delete(fn);\r\n }\r\n}\r\n\r\nclass jwtService extends EventEmitter {\r\n init() {\r\n // this.setInterceptors();\r\n this.handleAuthentication();\r\n }\r\n\r\n setInterceptors() {\r\n axios.interceptors.response.use(\r\n response => {\r\n return response;\r\n },\r\n err => {\r\n return new Promise((resolve, reject) => {\r\n console.log(err);\r\n if (\r\n err.response.status === 401 &&\r\n err.config &&\r\n !err.config.__isRetryRequest\r\n ) {\r\n // if ( err)\r\n // if you ever get an unauthorized response, logout the user\r\n this.emit(\r\n 'onAutoLogout',\r\n 'Invalid access_token! There is a problem with Database.'\r\n );\r\n this.setSession(null);\r\n this.setUser(null);\r\n return;\r\n }\r\n // throw err;\r\n });\r\n }\r\n );\r\n }\r\n\r\n handleAuthentication() {\r\n let access_token = this.getAccessToken();\r\n\r\n if (!access_token) {\r\n return;\r\n }\r\n if (this.isAuthTokenValid(access_token)) {\r\n this.setSession(access_token);\r\n this.emit('onAutoLogin', true);\r\n } else {\r\n this.setSession(null);\r\n this.emit('onAutoLogout', 'access_token expired');\r\n }\r\n }\r\n\r\n createUser(data) {\r\n return new Promise((resolve, reject) => {\r\n axios.post('/api/auth/register', data).then(response => {\r\n if (response.data.user) {\r\n this.setUser(response.data.user);\r\n this.setSession(response.data.access_token);\r\n resolve(response.data.user);\r\n } else {\r\n reject(response.data.error);\r\n }\r\n });\r\n });\r\n }\r\n\r\n signInWithEmailAndPassword(values) {\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_SERVER_URL}/api/user/login`, {\r\n values\r\n })\r\n .then(response => {\r\n if (response.data.user) {\r\n this.setUser(response.data.user);\r\n this.setSession(response.data.token);\r\n resolve(response.data.user);\r\n } else {\r\n reject(response.data.error);\r\n }\r\n });\r\n });\r\n }\r\n\r\n signInWithToken() {\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_SERVER_URL}/api/user/access-token`, {\r\n data: {\r\n access_token: this.getAccessToken()\r\n }\r\n })\r\n .then(response => {\r\n if (response.data.user) {\r\n // this.emit('onLoginSuccess', {message: 'You log in with token.', variant: 'success'});\r\n this.setUser(response.data.user);\r\n this.setSession(response.data.access_token);\r\n resolve(response.data.user);\r\n } else {\r\n reject(response.data.error);\r\n }\r\n })\r\n .catch(err => {\r\n console.log(err);\r\n });\r\n });\r\n }\r\n\r\n updateUserData(user) {\r\n return axios.post('/api/auth/user/update', {\r\n user: user\r\n });\r\n }\r\n\r\n setSession(access_token) {\r\n if (access_token) {\r\n sessionStorage.setItem('jwt_access_token', access_token);\r\n // axios.defaults.headers.common['Authorization'] = 'Bearer ' + access_token;\r\n } else {\r\n sessionStorage.removeItem('jwt_access_token');\r\n // delete axios.defaults.headers.common['Authorization'];\r\n }\r\n }\r\n setUser(user) {\r\n if (user) {\r\n sessionStorage.setItem('jwt_access_user', JSON.stringify(user));\r\n } else {\r\n sessionStorage.removeItem('jwt_access_user');\r\n }\r\n }\r\n getUser() {\r\n return JSON.parse(sessionStorage.getItem('jwt_access_user'));\r\n }\r\n logout() {\r\n this.setSession(null);\r\n this.setUser(null);\r\n }\r\n\r\n isAuthTokenValid(access_token) {\r\n if (!access_token) {\r\n return false;\r\n }\r\n const decoded = jwtDecode(access_token);\r\n const currentTime = Date.now() / 1000;\r\n if (decoded.exp < currentTime) {\r\n console.warn('access token expired');\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }\r\n\r\n getAccessToken() {\r\n return window.sessionStorage.getItem('jwt_access_token');\r\n }\r\n}\r\n\r\nconst instance = new jwtService();\r\n\r\nexport default instance;\r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MACrC,IAAIJ,OAAO,CAACK,GAAG,GAAGH,WAAW,EAAE;QAC7BrC,OAAO,CAACyC,IAAI,CAAC,sBAAsB,CAAC;QACpC,OAAO,KAAK;MACd,CAAC,MAAM;QACL,OAAO,IAAI;MACb;IACF;EAAC;IAAAnF,GAAA;IAAAf,KAAA,EAED,SAAAiE,cAAcA,CAAA,EAAG;MACf,OAAOkC,MAAM,CAAChB,cAAc,CAACO,OAAO,CAAC,kBAAkB,CAAC;IAC1D;EAAC;AAAA,EAxJsBpE,YAAY;AA2JrC,IAAM8E,QAAQ,GAAG,IAAIzD,UAAU,CAAC,CAAC;AAAC,IAAA0D,QAAA,GAAAC,OAAA,cAEnBF,QAAQ","ignoreList":[]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _infiniteReactCarousel = require("infinite-react-carousel");
|
|
10
|
-
var S = _interopRequireWildcard(require("./styles"));
|
|
11
|
-
require("./styles.scss");
|
|
12
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
-
var Slider = function Slider(_ref) {
|
|
15
|
-
var children = _ref.children;
|
|
16
|
-
return /*#__PURE__*/_react["default"].createElement(_infiniteReactCarousel.Slider, {
|
|
17
|
-
arrows: false,
|
|
18
|
-
dots: true
|
|
19
|
-
}, children);
|
|
20
|
-
};
|
|
21
|
-
var _default = exports["default"] = Slider;
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_infiniteReactCarousel","S","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Slider","_ref","children","createElement","arrows","dots","_default","exports"],"sources":["../../../../src/components/molecules/slider/index.jsx"],"sourcesContent":["import React from 'react';\r\nimport { Slider as BaseSlider } from 'infinite-react-carousel';\r\n\r\nimport * as S from './styles';\r\nimport './styles.scss';\r\n\r\nconst Slider = ({ children }) => {\r\n return (\r\n <BaseSlider arrows={false} dots={true}>\r\n {children}\r\n </BaseSlider>\r\n );\r\n};\r\n\r\nexport default Slider;\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAEA,IAAAE,CAAA,GAAAC,uBAAA,CAAAH,OAAA;AACAA,OAAA;AAAuB,SAAAG,wBAAAC,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAH,uBAAA,YAAAA,wBAAAC,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAA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Content":[""],"mappings":"","ignoreList":[]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _index = _interopRequireDefault(require("./index"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
-
var _default = exports["default"] = {
|
|
10
|
-
MyProjects: _index["default"]
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=export.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.js","names":["_index","_interopRequireDefault","require","e","__esModule","_default","exports","MyProjects"],"sources":["../../../src/components/myprojects/export.js"],"sourcesContent":["import MyProjects from './index';\n\nexport default {\n MyProjects\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAiC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,IAAAE,QAAA,GAAAC,OAAA,cAElB;EACbC,UAAU,EAAVA;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,453 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var S = _interopRequireWildcard(require("./styles"));
|
|
11
|
-
var _constants = require("../../constants");
|
|
12
|
-
var _axios = _interopRequireDefault(require("axios"));
|
|
13
|
-
var _history = _interopRequireDefault(require("../../@history"));
|
|
14
|
-
var _moment = _interopRequireDefault(require("moment"));
|
|
15
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
17
|
-
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
18
|
-
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
19
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
20
|
-
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
21
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
22
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
23
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
24
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
25
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
26
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
27
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
28
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
29
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
30
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
31
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
32
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
33
|
-
var sortData = ['date', 'name'];
|
|
34
|
-
var thumbnail = '/assets/img/project_img.png';
|
|
35
|
-
var MyProjects = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
36
|
-
function MyProjects(props, context) {
|
|
37
|
-
var _this;
|
|
38
|
-
_classCallCheck(this, MyProjects);
|
|
39
|
-
_this = _callSuper(this, MyProjects, [props]);
|
|
40
|
-
_this.state = {
|
|
41
|
-
sortType: 'date',
|
|
42
|
-
searchValue: '',
|
|
43
|
-
viewType: 1,
|
|
44
|
-
//1: detail, 2: tile
|
|
45
|
-
myProjects: []
|
|
46
|
-
};
|
|
47
|
-
return _this;
|
|
48
|
-
}
|
|
49
|
-
_inherits(MyProjects, _Component);
|
|
50
|
-
return _createClass(MyProjects, [{
|
|
51
|
-
key: "getProjects",
|
|
52
|
-
value: function getProjects() {
|
|
53
|
-
var _this2 = this;
|
|
54
|
-
var user_email = sessionStorage.getItem('email');
|
|
55
|
-
var clientName = sessionStorage.getItem('visualizerName');
|
|
56
|
-
_axios["default"].post("".concat(_constants.API_SERVER_URL, "/api/project/getmyprojects"), {
|
|
57
|
-
email: user_email,
|
|
58
|
-
clientName: clientName
|
|
59
|
-
}).then(function (res) {
|
|
60
|
-
if (res.data.success === true) {
|
|
61
|
-
_this2.setState({
|
|
62
|
-
myProjects: res.data.projects
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}, {
|
|
68
|
-
key: "componentDidMount",
|
|
69
|
-
value: function componentDidMount() {
|
|
70
|
-
this.getProjects();
|
|
71
|
-
}
|
|
72
|
-
}, {
|
|
73
|
-
key: "openProject",
|
|
74
|
-
value: function openProject(role, token, pid, urmParam) {
|
|
75
|
-
var _this3 = this;
|
|
76
|
-
var visualizerName = sessionStorage.getItem('visualizerName');
|
|
77
|
-
_history["default"].push({
|
|
78
|
-
pathname: "/".concat(visualizerName, "/project/").concat(role, "/").concat(token, "/").concat(pid, "?").concat(urmParam)
|
|
79
|
-
});
|
|
80
|
-
_axios["default"].post("".concat(_constants.API_SERVER_URL, "/api/project/loadPidProject"), {
|
|
81
|
-
pid: pid,
|
|
82
|
-
visualizerName: visualizerName
|
|
83
|
-
}).then(/*#__PURE__*/function () {
|
|
84
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
|
|
85
|
-
var projectElement, jsonData, _t;
|
|
86
|
-
return _regenerator().w(function (_context) {
|
|
87
|
-
while (1) switch (_context.p = _context.n) {
|
|
88
|
-
case 0:
|
|
89
|
-
projectElement = response.data.projectElement;
|
|
90
|
-
if (!(projectElement.length === 0)) {
|
|
91
|
-
_context.n = 1;
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
return _context.a(2);
|
|
95
|
-
case 1:
|
|
96
|
-
sessionStorage.setItem('projectTitle', projectElement[0].title);
|
|
97
|
-
_this3.context.projectActions.rename(projectElement[0].title);
|
|
98
|
-
sessionStorage.setItem('projectId', projectElement[0].id);
|
|
99
|
-
sessionStorage.setItem('email', projectElement[0].email);
|
|
100
|
-
sessionStorage.setItem('firstName', projectElement[0].firstName);
|
|
101
|
-
sessionStorage.setItem('lastName', projectElement[0].lastName);
|
|
102
|
-
sessionStorage.setItem('phone', projectElement[0].phone);
|
|
103
|
-
if (!projectElement[0].project_data) {
|
|
104
|
-
_context.n = 2;
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
jsonData = JSON.parse(projectElement[0].project_data);
|
|
108
|
-
_context.n = 5;
|
|
109
|
-
break;
|
|
110
|
-
case 2:
|
|
111
|
-
_context.p = 2;
|
|
112
|
-
_context.n = 3;
|
|
113
|
-
return _axios["default"].post("".concat(constants.API_SERVER_URL, "/api/project/loadPidData"), {
|
|
114
|
-
pid: match.params.pid
|
|
115
|
-
}).data.data;
|
|
116
|
-
case 3:
|
|
117
|
-
jsonData = _context.v;
|
|
118
|
-
_context.n = 5;
|
|
119
|
-
break;
|
|
120
|
-
case 4:
|
|
121
|
-
_context.p = 4;
|
|
122
|
-
_t = _context.v;
|
|
123
|
-
_this3.setState({
|
|
124
|
-
isSnackBarOpen: true,
|
|
125
|
-
snackBarMessage: _t
|
|
126
|
-
});
|
|
127
|
-
case 5:
|
|
128
|
-
jsonData.isLoadingCabinet = false;
|
|
129
|
-
_this3.context.projectActions.loadProject(jsonData, _this3.props.categoryData);
|
|
130
|
-
_this3.props.setMyProjectsOpen(false);
|
|
131
|
-
case 6:
|
|
132
|
-
return _context.a(2);
|
|
133
|
-
}
|
|
134
|
-
}, _callee, null, [[2, 4]]);
|
|
135
|
-
}));
|
|
136
|
-
return function (_x) {
|
|
137
|
-
return _ref.apply(this, arguments);
|
|
138
|
-
};
|
|
139
|
-
}());
|
|
140
|
-
}
|
|
141
|
-
}, {
|
|
142
|
-
key: "getDateArray",
|
|
143
|
-
value: function getDateArray(date) {
|
|
144
|
-
var array = date.split(' ');
|
|
145
|
-
var date_array = [];
|
|
146
|
-
array[0].split('-').forEach(function (element) {
|
|
147
|
-
return date_array.push(parseInt(element));
|
|
148
|
-
});
|
|
149
|
-
array[1].split(':').forEach(function (element) {
|
|
150
|
-
return date_array.push(parseInt(element));
|
|
151
|
-
});
|
|
152
|
-
return date_array;
|
|
153
|
-
}
|
|
154
|
-
}, {
|
|
155
|
-
key: "getDiffDate",
|
|
156
|
-
value: function getDiffDate(date) {
|
|
157
|
-
var now_date = (0, _moment["default"])(new Date()).format('YYYY-MM-DD HH:mm:ss');
|
|
158
|
-
var saved_date = (0, _moment["default"])(date).format('YYYY-MM-DD HH:mm:ss');
|
|
159
|
-
var diffDate = '';
|
|
160
|
-
var now_date_array = this.getDateArray(now_date);
|
|
161
|
-
var saved_date_array = this.getDateArray(saved_date);
|
|
162
|
-
now_date_array.forEach(function (item, index) {
|
|
163
|
-
if (item !== saved_date_array[index] && diffDate === '') {
|
|
164
|
-
diffDate = diffDate + (item - saved_date_array[index]);
|
|
165
|
-
switch (index) {
|
|
166
|
-
case 0:
|
|
167
|
-
diffDate = diffDate + ' year';
|
|
168
|
-
break;
|
|
169
|
-
case 1:
|
|
170
|
-
diffDate = diffDate + ' month';
|
|
171
|
-
break;
|
|
172
|
-
case 2:
|
|
173
|
-
diffDate = diffDate + ' day';
|
|
174
|
-
break;
|
|
175
|
-
case 3:
|
|
176
|
-
diffDate = diffDate + ' hour';
|
|
177
|
-
break;
|
|
178
|
-
case 4:
|
|
179
|
-
diffDate = diffDate + ' minute';
|
|
180
|
-
break;
|
|
181
|
-
case 5:
|
|
182
|
-
diffDate = diffDate + ' second';
|
|
183
|
-
break;
|
|
184
|
-
default:
|
|
185
|
-
break;
|
|
186
|
-
}
|
|
187
|
-
if (item - saved_date_array[index] !== 1) {
|
|
188
|
-
diffDate = diffDate + 's';
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
return diffDate;
|
|
193
|
-
}
|
|
194
|
-
}, {
|
|
195
|
-
key: "sort",
|
|
196
|
-
value: function sort(a, b) {}
|
|
197
|
-
}, {
|
|
198
|
-
key: "render",
|
|
199
|
-
value: function render() {
|
|
200
|
-
var _this4 = this;
|
|
201
|
-
var _this$state = this.state,
|
|
202
|
-
sortType = _this$state.sortType,
|
|
203
|
-
searchValue = _this$state.searchValue,
|
|
204
|
-
viewType = _this$state.viewType,
|
|
205
|
-
myProjects = _this$state.myProjects;
|
|
206
|
-
var _this$props$match$par = this.props.match.params,
|
|
207
|
-
token = _this$props$match$par.token,
|
|
208
|
-
role = _this$props$match$par.role;
|
|
209
|
-
return /*#__PURE__*/_react["default"].createElement(S.DialogWrapper, null, /*#__PURE__*/_react["default"].createElement(S.Dialog, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
210
|
-
style: {
|
|
211
|
-
cursor: 'pointer',
|
|
212
|
-
width: '100%',
|
|
213
|
-
userSelect: 'none'
|
|
214
|
-
},
|
|
215
|
-
onClick: function onClick() {
|
|
216
|
-
return _this4.props.setMyProjectsOpen(false);
|
|
217
|
-
}
|
|
218
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
219
|
-
style: {
|
|
220
|
-
"float": 'right',
|
|
221
|
-
height: 25,
|
|
222
|
-
transform: 'rotate(45deg)'
|
|
223
|
-
},
|
|
224
|
-
src: "/assets/img/svg/bottombar/arrow-plus.svg"
|
|
225
|
-
})), /*#__PURE__*/_react["default"].createElement(S.DialogTitle, null, "Retrieve a saved projects"), /*#__PURE__*/_react["default"].createElement(S.DialogContent, null, "Select from the list below what file do you want to recover."), /*#__PURE__*/_react["default"].createElement(S.DialogContentSelection, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
226
|
-
style: {
|
|
227
|
-
display: 'flex',
|
|
228
|
-
justifyContent: 'space-between'
|
|
229
|
-
}
|
|
230
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
231
|
-
style: {
|
|
232
|
-
display: 'flex'
|
|
233
|
-
}
|
|
234
|
-
}, /*#__PURE__*/_react["default"].createElement(S.DialogContents, {
|
|
235
|
-
style: {
|
|
236
|
-
fontSize: 13
|
|
237
|
-
}
|
|
238
|
-
}, "Sort by:"), /*#__PURE__*/_react["default"].createElement(S.SelectWrapper, null, /*#__PURE__*/_react["default"].createElement(S.Select, {
|
|
239
|
-
id: "sort_select",
|
|
240
|
-
onClick: function onClick() {
|
|
241
|
-
document.getElementById('arrow').style.transform = document.getElementById('arrow').style.transform === 'rotate(180deg)' ? 'unset' : 'rotate(180deg)';
|
|
242
|
-
document.getElementById('sort_option').style.display = document.getElementById('sort_option').style.display === 'none' ? 'flex' : 'none';
|
|
243
|
-
document.getElementById('sort_select').style.borderBottomColor = _constants.SECONDARY_PURPLE_COLOR;
|
|
244
|
-
}
|
|
245
|
-
}, sortType.charAt(0).toUpperCase() + sortType.substr(1)), /*#__PURE__*/_react["default"].createElement(S.ArrowIcon, {
|
|
246
|
-
id: "arrow",
|
|
247
|
-
maskImage: "/assets/img/svg/bottombar/arrow-down.svg"
|
|
248
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
249
|
-
id: "sort_option",
|
|
250
|
-
style: {
|
|
251
|
-
position: 'absolute',
|
|
252
|
-
display: 'none',
|
|
253
|
-
flexDirection: 'column',
|
|
254
|
-
top: 30,
|
|
255
|
-
zIndex: 100,
|
|
256
|
-
width: 150,
|
|
257
|
-
borderRadius: 5,
|
|
258
|
-
backgroundColor: _constants.BG_COLOR_1,
|
|
259
|
-
boxShadow: '0px 3px 5px -1px rgba(156, 154, 154, 0.2), 0px 6px 10px 0px rgba(156, 154, 154, 0.39), 0px 1px 18px 0px rgba(156, 154, 154, 0.12)'
|
|
260
|
-
}
|
|
261
|
-
}, sortData.map(function (item) {
|
|
262
|
-
return /*#__PURE__*/_react["default"].createElement(S.SelectOption, {
|
|
263
|
-
onClick: function onClick() {
|
|
264
|
-
document.getElementById('arrow').style.transform = 'unset';
|
|
265
|
-
document.getElementById('sort_option').style.display = 'none';
|
|
266
|
-
document.getElementById('sort_select').style.borderBottomColor = _constants.TEXT_COLOR_NEUTRAL_1;
|
|
267
|
-
_this4.setState({
|
|
268
|
-
sortType: item
|
|
269
|
-
});
|
|
270
|
-
},
|
|
271
|
-
style: {
|
|
272
|
-
backgroundColor: sortType === item && _constants.TEXT_COLOR_NEUTRAL_4
|
|
273
|
-
}
|
|
274
|
-
}, item.charAt(0).toUpperCase() + item.substr(1));
|
|
275
|
-
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
276
|
-
style: {
|
|
277
|
-
position: 'relative'
|
|
278
|
-
}
|
|
279
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
280
|
-
src: "/assets/img/svg/lefttoolbar/search.svg",
|
|
281
|
-
style: {
|
|
282
|
-
position: 'absolute',
|
|
283
|
-
left: 0,
|
|
284
|
-
width: 35,
|
|
285
|
-
height: 35,
|
|
286
|
-
padding: 10
|
|
287
|
-
}
|
|
288
|
-
}), /*#__PURE__*/_react["default"].createElement(S.SearchInput, {
|
|
289
|
-
value: searchValue,
|
|
290
|
-
onChange: function onChange(e) {
|
|
291
|
-
return _this4.setState({
|
|
292
|
-
searchValue: e.target.value
|
|
293
|
-
});
|
|
294
|
-
},
|
|
295
|
-
placeholder: "Search file names"
|
|
296
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
297
|
-
style: {
|
|
298
|
-
display: 'flex'
|
|
299
|
-
}
|
|
300
|
-
}, /*#__PURE__*/_react["default"].createElement(S.ActionButton, {
|
|
301
|
-
onClick: function onClick() {
|
|
302
|
-
return _this4.setState({
|
|
303
|
-
viewType: 1
|
|
304
|
-
});
|
|
305
|
-
},
|
|
306
|
-
style: {
|
|
307
|
-
backgroundColor: viewType === 1 && _constants.BG_COLOR_HOVER
|
|
308
|
-
}
|
|
309
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
310
|
-
src: "/assets/img/svg/wizardstep/detail_view.svg"
|
|
311
|
-
})), /*#__PURE__*/_react["default"].createElement(S.ActionButton, {
|
|
312
|
-
onClick: function onClick() {
|
|
313
|
-
return _this4.setState({
|
|
314
|
-
viewType: 2
|
|
315
|
-
});
|
|
316
|
-
},
|
|
317
|
-
style: {
|
|
318
|
-
backgroundColor: viewType === 2 && _constants.BG_COLOR_HOVER,
|
|
319
|
-
marginLeft: 10
|
|
320
|
-
}
|
|
321
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
322
|
-
src: "/assets/img/svg/wizardstep/tile_view.svg"
|
|
323
|
-
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
324
|
-
style: {
|
|
325
|
-
height: 400,
|
|
326
|
-
width: '100%',
|
|
327
|
-
scrollY: 'overflow',
|
|
328
|
-
marginTop: 10,
|
|
329
|
-
padding: 5
|
|
330
|
-
}
|
|
331
|
-
}, viewType === 1 ? /*#__PURE__*/_react["default"].createElement(S.MyProjectsTable, null, /*#__PURE__*/_react["default"].createElement(S.MyProjectsThead, null, /*#__PURE__*/_react["default"].createElement(S.MyProjectsTh, {
|
|
332
|
-
style: {
|
|
333
|
-
width: '40%'
|
|
334
|
-
}
|
|
335
|
-
}, "Name"), /*#__PURE__*/_react["default"].createElement(S.MyProjectsTh, {
|
|
336
|
-
style: {
|
|
337
|
-
width: '60%'
|
|
338
|
-
}
|
|
339
|
-
}, "Date")), myProjects.sort(function (a, b) {
|
|
340
|
-
var value0, value1;
|
|
341
|
-
switch (sortType) {
|
|
342
|
-
case 'name':
|
|
343
|
-
value0 = a.project_title;
|
|
344
|
-
value1 = b.project_title;
|
|
345
|
-
break;
|
|
346
|
-
case 'date':
|
|
347
|
-
value0 = b.create_date;
|
|
348
|
-
value1 = a.create_date;
|
|
349
|
-
break;
|
|
350
|
-
default:
|
|
351
|
-
break;
|
|
352
|
-
}
|
|
353
|
-
return value0 !== value1 ? value0 < value1 ? -1 : 1 : 0;
|
|
354
|
-
}).filter(function (it) {
|
|
355
|
-
return searchValue === '' || it.project_title.search(searchValue) !== -1 || it.project_title.toLowerCase().search(searchValue.toLowerCase()) !== -1;
|
|
356
|
-
}).map(function (item) {
|
|
357
|
-
var date = _this4.getDiffDate(item.create_date);
|
|
358
|
-
return /*#__PURE__*/_react["default"].createElement(S.MyProjectsThead, {
|
|
359
|
-
style: {
|
|
360
|
-
backgroundColor: _constants.BG_COLOR_1,
|
|
361
|
-
borderBottom: '2px solid #FAFAFF'
|
|
362
|
-
}
|
|
363
|
-
}, /*#__PURE__*/_react["default"].createElement(S.MyProjectsTh, {
|
|
364
|
-
style: {
|
|
365
|
-
width: '40%',
|
|
366
|
-
display: 'flex',
|
|
367
|
-
alignItems: 'center'
|
|
368
|
-
}
|
|
369
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
370
|
-
src: thumbnail,
|
|
371
|
-
style: {
|
|
372
|
-
width: 60
|
|
373
|
-
}
|
|
374
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
375
|
-
style: {
|
|
376
|
-
marginLeft: 10
|
|
377
|
-
}
|
|
378
|
-
}, item.project_title.charAt(0).toUpperCase() + item.project_title.substr(1))), /*#__PURE__*/_react["default"].createElement(S.MyProjectsTh, {
|
|
379
|
-
style: {
|
|
380
|
-
width: '60%',
|
|
381
|
-
display: 'flex',
|
|
382
|
-
justifyContent: 'space-between',
|
|
383
|
-
alignItems: 'center'
|
|
384
|
-
}
|
|
385
|
-
}, date + ' ago', /*#__PURE__*/_react["default"].createElement(S.ActionButton, {
|
|
386
|
-
onClick: function onClick() {
|
|
387
|
-
return _this4.openProject(role, token, item.id, item.urmParam);
|
|
388
|
-
},
|
|
389
|
-
style: {
|
|
390
|
-
width: 'max-content'
|
|
391
|
-
}
|
|
392
|
-
}, "Open")));
|
|
393
|
-
})) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
394
|
-
style: {
|
|
395
|
-
flexWrap: 'wrap',
|
|
396
|
-
display: 'flex'
|
|
397
|
-
}
|
|
398
|
-
}, myProjects.sort(function (a, b) {
|
|
399
|
-
var value0, value1;
|
|
400
|
-
switch (sortType) {
|
|
401
|
-
case 'name':
|
|
402
|
-
value0 = a.project_title;
|
|
403
|
-
value1 = b.project_title;
|
|
404
|
-
break;
|
|
405
|
-
case 'date':
|
|
406
|
-
value0 = b.create_date;
|
|
407
|
-
value1 = a.create_date;
|
|
408
|
-
break;
|
|
409
|
-
default:
|
|
410
|
-
break;
|
|
411
|
-
}
|
|
412
|
-
return value0 !== value1 ? value0 < value1 ? -1 : 1 : 0;
|
|
413
|
-
}).filter(function (it) {
|
|
414
|
-
return searchValue === '' || it.project_title.search(searchValue) !== -1 || it.project_title.toLowerCase().search(searchValue.toLowerCase()) !== -1;
|
|
415
|
-
}).map(function (item) {
|
|
416
|
-
var date = _this4.getDiffDate(item.create_date);
|
|
417
|
-
return /*#__PURE__*/_react["default"].createElement(S.TileItem, {
|
|
418
|
-
onClick: function onClick() {
|
|
419
|
-
return _this4.openProject(role, token, item.id, item.urmParam);
|
|
420
|
-
}
|
|
421
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
422
|
-
src: thumbnail,
|
|
423
|
-
style: {
|
|
424
|
-
width: '100%'
|
|
425
|
-
}
|
|
426
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
427
|
-
style: {
|
|
428
|
-
marginTop: 10
|
|
429
|
-
}
|
|
430
|
-
}, item.project_title.charAt(0).toUpperCase() + item.project_title.substr(1)), /*#__PURE__*/_react["default"].createElement("span", {
|
|
431
|
-
style: {
|
|
432
|
-
fontSize: 13,
|
|
433
|
-
fontWeight: 100,
|
|
434
|
-
marginTop: 5
|
|
435
|
-
}
|
|
436
|
-
}, date + ' ago'));
|
|
437
|
-
}))))));
|
|
438
|
-
}
|
|
439
|
-
}]);
|
|
440
|
-
}(_react.Component);
|
|
441
|
-
MyProjects.propTypes = {
|
|
442
|
-
state: _propTypes["default"].object.isRequired,
|
|
443
|
-
content: _propTypes["default"].number.isRequired
|
|
444
|
-
};
|
|
445
|
-
MyProjects.contextTypes = {
|
|
446
|
-
projectActions: _propTypes["default"].object.isRequired,
|
|
447
|
-
viewer2DActions: _propTypes["default"].object.isRequired,
|
|
448
|
-
viewer3DActions: _propTypes["default"].object.isRequired,
|
|
449
|
-
linesActions: _propTypes["default"].object.isRequired,
|
|
450
|
-
itemsActions: _propTypes["default"].object.isRequired,
|
|
451
|
-
catalog: _propTypes["default"].object.isRequired
|
|
452
|
-
};
|
|
453
|
-
//# sourceMappingURL=index.js.map
|