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,104 +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 _reactRedux = require("react-redux");
|
|
10
|
-
var _reactRouterDom = require("react-router-dom");
|
|
11
|
-
var _RegisterForm = _interopRequireDefault(require("./RegisterForm"));
|
|
12
|
-
var _history = _interopRequireDefault(require("../../@history"));
|
|
13
|
-
require("./style.scss");
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
-
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); }
|
|
16
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
17
|
-
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); } }
|
|
18
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
|
-
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); }
|
|
21
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
22
|
-
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); }
|
|
23
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
24
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
26
|
-
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); }
|
|
27
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
28
|
-
var Register = /*#__PURE__*/function (_Component) {
|
|
29
|
-
function Register(props) {
|
|
30
|
-
var _this;
|
|
31
|
-
_classCallCheck(this, Register);
|
|
32
|
-
_this = _callSuper(this, Register, [props]);
|
|
33
|
-
_this.state = {
|
|
34
|
-
backgroundImage: 'url(/assets/img/1.jpg)',
|
|
35
|
-
fullSize: false
|
|
36
|
-
};
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
_inherits(Register, _Component);
|
|
40
|
-
return _createClass(Register, [{
|
|
41
|
-
key: "generateBackground",
|
|
42
|
-
value: function generateBackground() {
|
|
43
|
-
var backgroundImage = this.state.backgroundImage;
|
|
44
|
-
var min = 1;
|
|
45
|
-
var max = 2;
|
|
46
|
-
var picNumber = Math.floor(Math.random() * (max - min + 1)) + min;
|
|
47
|
-
backgroundImage = 'url(demo/src/assets/img/' + picNumber + '.jpg)';
|
|
48
|
-
this.setState({
|
|
49
|
-
backgroundImage: backgroundImage
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}, {
|
|
53
|
-
key: "render",
|
|
54
|
-
value: function render() {
|
|
55
|
-
var backgroundImage = this.state.backgroundImage;
|
|
56
|
-
var historyState = _history["default"].location.state;
|
|
57
|
-
if (historyState === undefined) historyState = {
|
|
58
|
-
type: 'register'
|
|
59
|
-
};
|
|
60
|
-
var _historyState = historyState,
|
|
61
|
-
type = _historyState.type;
|
|
62
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
|
-
className: 'login login--fullscreen',
|
|
64
|
-
style: {
|
|
65
|
-
backgroundImage: backgroundImage
|
|
66
|
-
}
|
|
67
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
|
-
className: "login__header"
|
|
69
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
|
-
className: "row"
|
|
71
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
|
-
className: "col-lg-8"
|
|
73
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
74
|
-
className: "login__header__logo"
|
|
75
|
-
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
|
-
className: "login__block"
|
|
77
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
|
-
className: "row"
|
|
79
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
|
-
className: "col-xl-12"
|
|
81
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
82
|
-
className: "login__block__promo text-white text-center"
|
|
83
|
-
}, /*#__PURE__*/_react["default"].createElement("h1", {
|
|
84
|
-
className: "mb-3 text-white"
|
|
85
|
-
}, /*#__PURE__*/_react["default"].createElement("strong", null, "WELCOME TO KITCHEN-CONFIGURATOR"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
86
|
-
className: "login__block__inner"
|
|
87
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
|
-
className: "register__block__form"
|
|
89
|
-
}, /*#__PURE__*/_react["default"].createElement("h4", {
|
|
90
|
-
className: "text-uppercase text-center",
|
|
91
|
-
style: {
|
|
92
|
-
paddingTop: 10
|
|
93
|
-
}
|
|
94
|
-
}, /*#__PURE__*/_react["default"].createElement("strong", null, "Please ", type === 'register' ? 'Register' : 'Add User')), /*#__PURE__*/_react["default"].createElement(_RegisterForm["default"], {
|
|
95
|
-
type: type
|
|
96
|
-
})))))));
|
|
97
|
-
}
|
|
98
|
-
}]);
|
|
99
|
-
}(_react.Component);
|
|
100
|
-
function mapStateToProps(state) {
|
|
101
|
-
return {};
|
|
102
|
-
}
|
|
103
|
-
var _default = exports["default"] = (0, _reactRedux.connect)(mapStateToProps)(Register);
|
|
104
|
-
//# sourceMappingURL=Register.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Register.js","names":["_react","_interopRequireWildcard","require","_reactRedux","_reactRouterDom","_RegisterForm","_interopRequireDefault","_history","e","__esModule","t","WeakMap","r","n","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_classCallCheck","a","TypeError","_defineProperties","length","enumerable","configurable","writable","_toPropertyKey","key","_createClass","prototype","_toPrimitive","Symbol","toPrimitive","String","Number","_callSuper","_getPrototypeOf","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","constructor","apply","_assertThisInitialized","ReferenceError","Boolean","valueOf","setPrototypeOf","getPrototypeOf","bind","_inherits","create","value","_setPrototypeOf","Register","_Component","props","_this","state","backgroundImage","fullSize","generateBackground","min","max","picNumber","Math","floor","random","setState","render","historyState","history","location","undefined","type","_historyState","createElement","className","style","paddingTop","Component","mapStateToProps","_default","exports","connect"],"sources":["../../../src/components/login/Register.js"],"sourcesContent":["import React, { Component } from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { withRouter } from 'react-router-dom';\r\nimport RegisterForm from './RegisterForm';\r\nimport history from '../../@history';\r\nimport './style.scss';\r\n\r\nclass Register extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n backgroundImage: 'url(/assets/img/1.jpg)',\r\n fullSize: false\r\n };\r\n }\r\n\r\n generateBackground() {\r\n let { backgroundImage } = this.state;\r\n\r\n let min = 1;\r\n let max = 2;\r\n let picNumber = Math.floor(Math.random() * (max - min + 1)) + min;\r\n backgroundImage = 'url(demo/src/assets/img/' + picNumber + '.jpg)';\r\n this.setState({\r\n backgroundImage: backgroundImage\r\n });\r\n }\r\n render() {\r\n const { backgroundImage } = this.state;\r\n let { state: historyState } = history.location;\r\n if (historyState === undefined) historyState = { type: 'register' };\r\n const { type } = historyState;\r\n\r\n return (\r\n <div\r\n className={'login login--fullscreen'}\r\n style={{ backgroundImage: backgroundImage }}\r\n >\r\n <div className=\"login__header\">\r\n <div className=\"row\">\r\n <div className=\"col-lg-8\">\r\n <div className=\"login__header__logo\">\r\n {/* <Button className=\"ml-3\" onClick={this.generateBackground}>\r\n Randomize Background Image\r\n </Button> */}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div className=\"login__block\">\r\n <div className=\"row\">\r\n <div className=\"col-xl-12\">\r\n <div className=\"login__block__promo text-white text-center\">\r\n <h1 className=\"mb-3 text-white\">\r\n <strong>WELCOME TO KITCHEN-CONFIGURATOR</strong>\r\n </h1>\r\n </div>\r\n <div className=\"login__block__inner\">\r\n <div className=\"register__block__form\">\r\n <h4\r\n className=\"text-uppercase text-center\"\r\n style={{ paddingTop: 10 }}\r\n >\r\n <strong>\r\n Please {type === 'register' ? 'Register' : 'Add User'}\r\n </strong>\r\n </h4>\r\n <RegisterForm type={type} />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nfunction mapStateToProps(state) {\r\n return {};\r\n}\r\n\r\nexport default connect(mapStateToProps)(Register);\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACAA,OAAA;AAAsB,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAM,CAAA,E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YAAAsF,aAAA;QAAKC,SAAS,EAAC;MAAqB,CAI/B,CACF,CACF,CACF,CAAC,eACNvF,MAAA,YAAAsF,aAAA;QAAKC,SAAS,EAAC;MAAc,gBAC3BvF,MAAA,YAAAsF,aAAA;QAAKC,SAAS,EAAC;MAAK,gBAClBvF,MAAA,YAAAsF,aAAA;QAAKC,SAAS,EAAC;MAAW,gBACxBvF,MAAA,YAAAsF,aAAA;QAAKC,SAAS,EAAC;MAA4C,gBACzDvF,MAAA,YAAAsF,aAAA;QAAIC,SAAS,EAAC;MAAiB,gBAC7BvF,MAAA,YAAAsF,aAAA,iBAAQ,iCAAuC,CAC7C,CACD,CAAC,eACNtF,MAAA,YAAAsF,aAAA;QAAKC,SAAS,EAAC;MAAqB,gBAClCvF,MAAA,YAAAsF,aAAA;QAAKC,SAAS,EAAC;MAAuB,gBACpCvF,MAAA,YAAAsF,aAAA;QACEC,SAAS,EAAC,4BAA4B;QACtCC,KAAK,EAAE;UAAEC,UAAU,EAAE;QAAG;MAAE,gBAE1BzF,MAAA,YAAAsF,aAAA,iBAAQ,SACC,EAACF,IAAI,KAAK,UAAU,GAAG,UAAU,GAAG,UACrC,CACN,CAAC,eACLpF,MAAA,YAAAsF,aAAA,CAACjF,aAAA,WAAY;QAAC+E,IAAI,EAAEA;MAAK,CAAE,CACxB,CACF,CACF,CACF,CACF,CACF,CAAC;IAEV;EAAC;AAAA,EApEoBM,gBAAS;AAuEhC,SAASC,eAAeA,CAACvB,KAAK,EAAE;EAC9B,OAAO,CAAC,CAAC;AACX;AAAC,IAAAwB,QAAA,GAAAC,OAAA,cAEc,IAAAC,mBAAO,EAACH,eAAe,CAAC,CAAC3B,QAAQ,CAAC","ignoreList":[]}
|
|
@@ -1,237 +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 _antd = require("antd");
|
|
10
|
-
var _reactRouterDom = require("react-router-dom");
|
|
11
|
-
var _constants = require("../../../constants");
|
|
12
|
-
var _history = _interopRequireDefault(require("../../../@history"));
|
|
13
|
-
var _axios = _interopRequireDefault(require("axios"));
|
|
14
|
-
require("../style.css");
|
|
15
|
-
var _excluded = ["confirmPwd"];
|
|
16
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
20
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
21
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
22
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
23
|
-
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); } }
|
|
24
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
25
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
26
|
-
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); }
|
|
27
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
28
|
-
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); }
|
|
29
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
30
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
31
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
32
|
-
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); }
|
|
33
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
34
|
-
var RegisterForm = /*#__PURE__*/function (_React$Component) {
|
|
35
|
-
function RegisterForm(props) {
|
|
36
|
-
var _this;
|
|
37
|
-
_classCallCheck(this, RegisterForm);
|
|
38
|
-
_this = _callSuper(this, RegisterForm, [props]);
|
|
39
|
-
_this.state = {
|
|
40
|
-
username: '',
|
|
41
|
-
userid: '',
|
|
42
|
-
role: 'customer',
|
|
43
|
-
password: '',
|
|
44
|
-
confirmPwd: ''
|
|
45
|
-
};
|
|
46
|
-
return _this;
|
|
47
|
-
}
|
|
48
|
-
_inherits(RegisterForm, _React$Component);
|
|
49
|
-
return _createClass(RegisterForm, [{
|
|
50
|
-
key: "handleSubmit",
|
|
51
|
-
value: function handleSubmit(e) {
|
|
52
|
-
var _this2 = this;
|
|
53
|
-
e.preventDefault();
|
|
54
|
-
var _this$state = this.state,
|
|
55
|
-
confirmPwd = _this$state.confirmPwd,
|
|
56
|
-
values = _objectWithoutProperties(_this$state, _excluded);
|
|
57
|
-
if (values.password !== confirmPwd) {
|
|
58
|
-
alert('The passwords do not match');
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
_axios["default"].post("".concat(_constants.API_SERVER_URL, "/api/user/insert"), _objectSpread({}, values)).then(function (response) {
|
|
62
|
-
if (response.data.success) {
|
|
63
|
-
alert('Successfully registered');
|
|
64
|
-
_this2.setState({
|
|
65
|
-
username: '',
|
|
66
|
-
userid: '',
|
|
67
|
-
role: 'customer',
|
|
68
|
-
password: '',
|
|
69
|
-
confirmPwd: ''
|
|
70
|
-
});
|
|
71
|
-
} else {
|
|
72
|
-
alert('Username already exists');
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}, {
|
|
77
|
-
key: "handleUsernameChange",
|
|
78
|
-
value: function handleUsernameChange(e) {
|
|
79
|
-
e.target.setCustomValidity('');
|
|
80
|
-
this.setState({
|
|
81
|
-
username: e.target.value
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
}, {
|
|
85
|
-
key: "handleUserIDChange",
|
|
86
|
-
value: function handleUserIDChange(e) {
|
|
87
|
-
e.target.setCustomValidity('');
|
|
88
|
-
this.setState({
|
|
89
|
-
userid: e.target.value
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
}, {
|
|
93
|
-
key: "handleUserRoleChange",
|
|
94
|
-
value: function handleUserRoleChange(e) {
|
|
95
|
-
this.setState({
|
|
96
|
-
role: e.target.value
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}, {
|
|
100
|
-
key: "handlePasswordChange",
|
|
101
|
-
value: function handlePasswordChange(e) {
|
|
102
|
-
e.target.setCustomValidity('');
|
|
103
|
-
this.setState({
|
|
104
|
-
password: e.target.value
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
}, {
|
|
108
|
-
key: "handleConfirmChange",
|
|
109
|
-
value: function handleConfirmChange(e) {
|
|
110
|
-
e.target.setCustomValidity('');
|
|
111
|
-
this.setState({
|
|
112
|
-
confirmPwd: e.target.value
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
}, {
|
|
116
|
-
key: "handleInputInvalid",
|
|
117
|
-
value: function handleInputInvalid(e, text) {
|
|
118
|
-
e.target.setCustomValidity('');
|
|
119
|
-
if (!e.target.validity.valid) {
|
|
120
|
-
e.target.setCustomValidity(text);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}, {
|
|
124
|
-
key: "render",
|
|
125
|
-
value: function render() {
|
|
126
|
-
var _this3 = this;
|
|
127
|
-
var _this$state2 = this.state,
|
|
128
|
-
username = _this$state2.username,
|
|
129
|
-
userid = _this$state2.userid,
|
|
130
|
-
role = _this$state2.role,
|
|
131
|
-
password = _this$state2.password,
|
|
132
|
-
confirmPwd = _this$state2.confirmPwd;
|
|
133
|
-
var type = this.props.type;
|
|
134
|
-
return /*#__PURE__*/_react["default"].createElement("form", {
|
|
135
|
-
onSubmit: function onSubmit(e) {
|
|
136
|
-
return _this3.handleSubmit(e);
|
|
137
|
-
},
|
|
138
|
-
className: "register-form"
|
|
139
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Row, {
|
|
140
|
-
className: "register-form-row"
|
|
141
|
-
}, /*#__PURE__*/_react["default"].createElement("label", {
|
|
142
|
-
className: "form-label mb-0"
|
|
143
|
-
}, "Username"), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
144
|
-
onChange: function onChange(e) {
|
|
145
|
-
return _this3.handleUsernameChange(e);
|
|
146
|
-
},
|
|
147
|
-
onInvalid: function onInvalid(e) {
|
|
148
|
-
return _this3.handleInputInvalid(e, 'Please enter your name');
|
|
149
|
-
},
|
|
150
|
-
placeholder: "Username",
|
|
151
|
-
required: true,
|
|
152
|
-
value: username
|
|
153
|
-
})), /*#__PURE__*/_react["default"].createElement(_antd.Row, {
|
|
154
|
-
className: "register-form-row"
|
|
155
|
-
}, /*#__PURE__*/_react["default"].createElement("label", {
|
|
156
|
-
className: "form-label mb-0"
|
|
157
|
-
}, "User ID"), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
158
|
-
onChange: function onChange(e) {
|
|
159
|
-
return _this3.handleUserIDChange(e);
|
|
160
|
-
},
|
|
161
|
-
onInvalid: function onInvalid(e) {
|
|
162
|
-
return _this3.handleInputInvalid(e, 'Please enter your ID.');
|
|
163
|
-
},
|
|
164
|
-
placeholder: "User ID",
|
|
165
|
-
required: true,
|
|
166
|
-
value: userid
|
|
167
|
-
})), /*#__PURE__*/_react["default"].createElement(_antd.Row, {
|
|
168
|
-
className: "register-form-row"
|
|
169
|
-
}, /*#__PURE__*/_react["default"].createElement("label", {
|
|
170
|
-
className: "form-label mb-0"
|
|
171
|
-
}, "User Role"), /*#__PURE__*/_react["default"].createElement("select", {
|
|
172
|
-
onChange: function onChange(e) {
|
|
173
|
-
return _this3.handleUserRoleChange(e);
|
|
174
|
-
},
|
|
175
|
-
value: role
|
|
176
|
-
}, /*#__PURE__*/_react["default"].createElement("option", {
|
|
177
|
-
value: "customer"
|
|
178
|
-
}, " customer "), /*#__PURE__*/_react["default"].createElement("option", {
|
|
179
|
-
value: "designer"
|
|
180
|
-
}, " designer "))), /*#__PURE__*/_react["default"].createElement(_antd.Row, {
|
|
181
|
-
className: "register-form-row"
|
|
182
|
-
}, /*#__PURE__*/_react["default"].createElement("label", {
|
|
183
|
-
className: "form-label mb-0"
|
|
184
|
-
}, "Password"), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
185
|
-
onChange: function onChange(e) {
|
|
186
|
-
return _this3.handlePasswordChange(e);
|
|
187
|
-
},
|
|
188
|
-
onInvalid: function onInvalid(e) {
|
|
189
|
-
return _this3.handleInputInvalid(e, 'Please confirm your password.');
|
|
190
|
-
},
|
|
191
|
-
type: "password",
|
|
192
|
-
placeholder: "Password",
|
|
193
|
-
value: password
|
|
194
|
-
})), /*#__PURE__*/_react["default"].createElement(_antd.Row, {
|
|
195
|
-
className: "register-form-row"
|
|
196
|
-
}, /*#__PURE__*/_react["default"].createElement("label", {
|
|
197
|
-
className: "form-label mb-0"
|
|
198
|
-
}, "Confirm"), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
199
|
-
onChange: function onChange(e) {
|
|
200
|
-
return _this3.handleConfirmChange(e);
|
|
201
|
-
},
|
|
202
|
-
onInvalid: function onInvalid(e) {
|
|
203
|
-
return _this3.handleInputInvalid(e, 'Please confirm your password.');
|
|
204
|
-
},
|
|
205
|
-
type: "password",
|
|
206
|
-
placeholder: "Confirm Password",
|
|
207
|
-
value: confirmPwd
|
|
208
|
-
})), /*#__PURE__*/_react["default"].createElement(_antd.Row, {
|
|
209
|
-
className: "login-form-row"
|
|
210
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
211
|
-
className: "divider"
|
|
212
|
-
}, "-")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
213
|
-
className: "form-actions",
|
|
214
|
-
style: {
|
|
215
|
-
width: '90%',
|
|
216
|
-
display: 'flex',
|
|
217
|
-
justifyContent: 'space-around'
|
|
218
|
-
}
|
|
219
|
-
}, /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Link, {
|
|
220
|
-
className: "register-link-btn",
|
|
221
|
-
to: "",
|
|
222
|
-
onClick: function onClick(e) {
|
|
223
|
-
return _history["default"].goBack();
|
|
224
|
-
}
|
|
225
|
-
}, ' ', "Back", ' '), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
226
|
-
type: "primary",
|
|
227
|
-
htmlType: "submit",
|
|
228
|
-
className: "login-form-button"
|
|
229
|
-
}, type === 'register' ? 'Register' : 'Add User'), /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Link, {
|
|
230
|
-
className: "register-link-btn",
|
|
231
|
-
to: "/login"
|
|
232
|
-
}, ' ', "Sign In", ' ')));
|
|
233
|
-
}
|
|
234
|
-
}]);
|
|
235
|
-
}(_react["default"].Component);
|
|
236
|
-
var _default = exports["default"] = RegisterForm;
|
|
237
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_antd","_reactRouterDom","_constants","_history","_axios","_excluded","e","__esModule","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","_objectWithoutProperties","i","_objectWithoutPropertiesLoose","n","indexOf","propertyIsEnumerable","call","hasOwnProperty","_classCallCheck","a","TypeError","_defineProperties","key","_createClass","prototype","_toPrimitive","_typeof","Symbol","toPrimitive","String","Number","_callSuper","_getPrototypeOf","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","constructor","_assertThisInitialized","ReferenceError","Boolean","valueOf","setPrototypeOf","getPrototypeOf","bind","__proto__","_inherits","create","_setPrototypeOf","RegisterForm","_React$Component","props","_this","state","username","userid","role","password","confirmPwd","handleSubmit","_this2","preventDefault","_this$state","values","alert","axios","post","concat","API_SERVER_URL","then","response","data","success","setState","handleUsernameChange","target","setCustomValidity","handleUserIDChange","handleUserRoleChange","handlePasswordChange","handleConfirmChange","handleInputInvalid","text","validity","valid","render","_this3","_this$state2","type","createElement","onSubmit","className","Row","Input","onChange","onInvalid","placeholder","required","style","width","display","justifyContent","Link","to","onClick","history","goBack","Button","htmlType","React","Component","_default","exports"],"sources":["../../../../src/components/login/RegisterForm/index.js"],"sourcesContent":["import React from 'react';\r\nimport { Input, Button, Row } from 'antd';\r\nimport { Link } from 'react-router-dom';\r\nimport { API_SERVER_URL } from '../../../constants';\r\nimport history from '../../../@history';\r\nimport axios from 'axios';\r\nimport '../style.css';\r\n\r\nclass RegisterForm extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n username: '',\r\n userid: '',\r\n role: 'customer',\r\n password: '',\r\n confirmPwd: ''\r\n };\r\n }\r\n\r\n handleSubmit(e) {\r\n e.preventDefault();\r\n\r\n const { confirmPwd, ...values } = this.state;\r\n if (values.password !== confirmPwd) {\r\n alert('The passwords do not match');\r\n return;\r\n }\r\n\r\n axios\r\n .post(`${API_SERVER_URL}/api/user/insert`, { ...values })\r\n .then(response => {\r\n if (response.data.success) {\r\n alert('Successfully registered');\r\n this.setState({\r\n username: '',\r\n userid: '',\r\n role: 'customer',\r\n password: '',\r\n confirmPwd: ''\r\n });\r\n } else {\r\n alert('Username already exists');\r\n }\r\n });\r\n }\r\n\r\n handleUsernameChange(e) {\r\n e.target.setCustomValidity('');\r\n this.setState({ username: e.target.value });\r\n }\r\n handleUserIDChange(e) {\r\n e.target.setCustomValidity('');\r\n this.setState({ userid: e.target.value });\r\n }\r\n handleUserRoleChange(e) {\r\n this.setState({ role: e.target.value });\r\n }\r\n handlePasswordChange(e) {\r\n e.target.setCustomValidity('');\r\n this.setState({ password: e.target.value });\r\n }\r\n handleConfirmChange(e) {\r\n e.target.setCustomValidity('');\r\n this.setState({ confirmPwd: e.target.value });\r\n }\r\n\r\n handleInputInvalid(e, text) {\r\n e.target.setCustomValidity('');\r\n if (!e.target.validity.valid) {\r\n e.target.setCustomValidity(text);\r\n }\r\n }\r\n\r\n render() {\r\n const { username, userid, role, password, confirmPwd } = this.state;\r\n const { type } = this.props;\r\n return (\r\n <form onSubmit={e => this.handleSubmit(e)} className=\"register-form\">\r\n <Row className=\"register-form-row\">\r\n <label className=\"form-label mb-0\">Username</label>\r\n <Input\r\n onChange={e => this.handleUsernameChange(e)}\r\n onInvalid={e =>\r\n this.handleInputInvalid(e, 'Please enter your name')\r\n }\r\n placeholder=\"Username\"\r\n required\r\n value={username}\r\n />\r\n </Row>\r\n <Row className=\"register-form-row\">\r\n <label className=\"form-label mb-0\">User ID</label>\r\n <Input\r\n onChange={e => this.handleUserIDChange(e)}\r\n onInvalid={e => this.handleInputInvalid(e, 'Please enter your ID.')}\r\n placeholder=\"User ID\"\r\n required\r\n value={userid}\r\n />\r\n </Row>\r\n <Row className=\"register-form-row\">\r\n <label className=\"form-label mb-0\">User Role</label>\r\n <select onChange={e => this.handleUserRoleChange(e)} value={role}>\r\n <option value=\"customer\"> customer </option>\r\n <option value=\"designer\"> designer </option>\r\n </select>\r\n </Row>\r\n <Row className=\"register-form-row\">\r\n <label className=\"form-label mb-0\">Password</label>\r\n <Input\r\n onChange={e => this.handlePasswordChange(e)}\r\n onInvalid={e =>\r\n this.handleInputInvalid(e, 'Please confirm your password.')\r\n }\r\n type=\"password\"\r\n placeholder=\"Password\"\r\n value={password}\r\n />\r\n </Row>\r\n <Row className=\"register-form-row\">\r\n <label className=\"form-label mb-0\">Confirm</label>\r\n <Input\r\n onChange={e => this.handleConfirmChange(e)}\r\n onInvalid={e =>\r\n this.handleInputInvalid(e, 'Please confirm your password.')\r\n }\r\n type=\"password\"\r\n placeholder=\"Confirm Password\"\r\n value={confirmPwd}\r\n />\r\n </Row>\r\n <Row className=\"login-form-row\">\r\n <div className=\"divider\">-</div>\r\n </Row>\r\n <div\r\n className=\"form-actions\"\r\n style={{\r\n width: '90%',\r\n display: 'flex',\r\n justifyContent: 'space-around'\r\n }}\r\n >\r\n <Link\r\n className=\"register-link-btn\"\r\n to=\"\"\r\n onClick={e => history.goBack()}\r\n >\r\n {' '}\r\n Back{' '}\r\n </Link>\r\n\r\n <Button\r\n type=\"primary\"\r\n htmlType=\"submit\"\r\n className=\"login-form-button\"\r\n >\r\n {type === 'register' ? 'Register' : 'Add User'}\r\n </Button>\r\n\r\n <Link className=\"register-link-btn\" to=\"/login\">\r\n {' '}\r\n Sign In{' '}\r\n </Link>\r\n </div>\r\n </form>\r\n );\r\n }\r\n}\r\n\r\nexport default RegisterForm;\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,MAAA,GAAAN,sBAAA,CAAAC,OAAA;AACAA,OAAA;AAAsB,IAAAM,SAAA;AAAA,SAAAP,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAE,QAAAF,CAAA,EAAAG,CAAA,QAAAC,CAA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AM;UACfC,cAAc,EAAE;QAClB;MAAE,gBAEF9H,MAAA,YAAAkH,aAAA,CAAC9G,eAAA,CAAA2H,IAAI;QACHX,SAAS,EAAC,mBAAmB;QAC7BY,EAAE,EAAC,EAAE;QACLC,OAAO,EAAE,SAATA,OAAOA,CAAExH,CAAC;UAAA,OAAIyH,mBAAO,CAACC,MAAM,CAAC,CAAC;QAAA;MAAC,GAE9B,GAAG,EAAC,MACD,EAAC,GACD,CAAC,eAEPnI,MAAA,YAAAkH,aAAA,CAAC/G,KAAA,CAAAiI,MAAM;QACLnB,IAAI,EAAC,SAAS;QACdoB,QAAQ,EAAC,QAAQ;QACjBjB,SAAS,EAAC;MAAmB,GAE5BH,IAAI,KAAK,UAAU,GAAG,UAAU,GAAG,UAC9B,CAAC,eAETjH,MAAA,YAAAkH,aAAA,CAAC9G,eAAA,CAAA2H,IAAI;QAACX,SAAS,EAAC,mBAAmB;QAACY,EAAE,EAAC;MAAQ,GAC5C,GAAG,EAAC,SACE,EAAC,GACJ,CACH,CACD,CAAC;IAEX;EAAC;AAAA,EA/JwBM,iBAAK,CAACC,SAAS;AAAA,IAAAC,QAAA,GAAAC,OAAA,cAkK3B/D,YAAY","ignoreList":[]}
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _axios = _interopRequireDefault(require("axios"));
|
|
8
|
-
var _jwtDecode = _interopRequireDefault(require("jwt-decode"));
|
|
9
|
-
var _constants = require("../../constants");
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
12
|
-
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); }
|
|
13
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
14
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
16
|
-
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); }
|
|
17
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
18
|
-
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); }
|
|
19
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
20
|
-
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); } }
|
|
21
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
22
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
23
|
-
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); }
|
|
24
|
-
var EventEmitter = /*#__PURE__*/function () {
|
|
25
|
-
function EventEmitter() {
|
|
26
|
-
_classCallCheck(this, EventEmitter);
|
|
27
|
-
this.events = {};
|
|
28
|
-
}
|
|
29
|
-
return _createClass(EventEmitter, [{
|
|
30
|
-
key: "_getEventListByName",
|
|
31
|
-
value: function _getEventListByName(eventName) {
|
|
32
|
-
if (typeof this.events[eventName] === 'undefined') {
|
|
33
|
-
this.events[eventName] = new Set();
|
|
34
|
-
}
|
|
35
|
-
return this.events[eventName];
|
|
36
|
-
}
|
|
37
|
-
}, {
|
|
38
|
-
key: "on",
|
|
39
|
-
value: function on(eventName, fn) {
|
|
40
|
-
this._getEventListByName(eventName).add(fn);
|
|
41
|
-
}
|
|
42
|
-
}, {
|
|
43
|
-
key: "once",
|
|
44
|
-
value: function once(eventName, fn) {
|
|
45
|
-
var self = this;
|
|
46
|
-
var _onceFn = function onceFn() {
|
|
47
|
-
self.removeListener(eventName, _onceFn);
|
|
48
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
49
|
-
args[_key] = arguments[_key];
|
|
50
|
-
}
|
|
51
|
-
fn.apply(self, args);
|
|
52
|
-
};
|
|
53
|
-
this.on(eventName, _onceFn);
|
|
54
|
-
}
|
|
55
|
-
}, {
|
|
56
|
-
key: "emit",
|
|
57
|
-
value: function emit(eventName) {
|
|
58
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
59
|
-
args[_key2 - 1] = arguments[_key2];
|
|
60
|
-
}
|
|
61
|
-
this._getEventListByName(eventName).forEach(function (fn) {
|
|
62
|
-
fn.apply(this, args);
|
|
63
|
-
}.bind(this));
|
|
64
|
-
}
|
|
65
|
-
}, {
|
|
66
|
-
key: "removeListener",
|
|
67
|
-
value: function removeListener(eventName, fn) {
|
|
68
|
-
this._getEventListByName(eventName)["delete"](fn);
|
|
69
|
-
}
|
|
70
|
-
}]);
|
|
71
|
-
}();
|
|
72
|
-
var jwtService = /*#__PURE__*/function (_EventEmitter) {
|
|
73
|
-
function jwtService() {
|
|
74
|
-
_classCallCheck(this, jwtService);
|
|
75
|
-
return _callSuper(this, jwtService, arguments);
|
|
76
|
-
}
|
|
77
|
-
_inherits(jwtService, _EventEmitter);
|
|
78
|
-
return _createClass(jwtService, [{
|
|
79
|
-
key: "init",
|
|
80
|
-
value: function init() {
|
|
81
|
-
// this.setInterceptors();
|
|
82
|
-
this.handleAuthentication();
|
|
83
|
-
}
|
|
84
|
-
}, {
|
|
85
|
-
key: "setInterceptors",
|
|
86
|
-
value: function setInterceptors() {
|
|
87
|
-
var _this = this;
|
|
88
|
-
_axios["default"].interceptors.response.use(function (response) {
|
|
89
|
-
return response;
|
|
90
|
-
}, function (err) {
|
|
91
|
-
return new Promise(function (resolve, reject) {
|
|
92
|
-
console.log(err);
|
|
93
|
-
if (err.response.status === 401 && err.config && !err.config.__isRetryRequest) {
|
|
94
|
-
// if ( err)
|
|
95
|
-
// if you ever get an unauthorized response, logout the user
|
|
96
|
-
_this.emit('onAutoLogout', 'Invalid access_token! There is a problem with Database.');
|
|
97
|
-
_this.setSession(null);
|
|
98
|
-
_this.setUser(null);
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
// throw err;
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}, {
|
|
106
|
-
key: "handleAuthentication",
|
|
107
|
-
value: function handleAuthentication() {
|
|
108
|
-
var access_token = this.getAccessToken();
|
|
109
|
-
if (!access_token) {
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
if (this.isAuthTokenValid(access_token)) {
|
|
113
|
-
this.setSession(access_token);
|
|
114
|
-
this.emit('onAutoLogin', true);
|
|
115
|
-
} else {
|
|
116
|
-
this.setSession(null);
|
|
117
|
-
this.emit('onAutoLogout', 'access_token expired');
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}, {
|
|
121
|
-
key: "createUser",
|
|
122
|
-
value: function createUser(data) {
|
|
123
|
-
var _this2 = this;
|
|
124
|
-
return new Promise(function (resolve, reject) {
|
|
125
|
-
_axios["default"].post('/api/auth/register', data).then(function (response) {
|
|
126
|
-
if (response.data.user) {
|
|
127
|
-
_this2.setUser(response.data.user);
|
|
128
|
-
_this2.setSession(response.data.access_token);
|
|
129
|
-
resolve(response.data.user);
|
|
130
|
-
} else {
|
|
131
|
-
reject(response.data.error);
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
}, {
|
|
137
|
-
key: "signInWithEmailAndPassword",
|
|
138
|
-
value: function signInWithEmailAndPassword(values) {
|
|
139
|
-
var _this3 = this;
|
|
140
|
-
return new Promise(function (resolve, reject) {
|
|
141
|
-
_axios["default"].post("".concat(_constants.API_SERVER_URL, "/api/user/login"), {
|
|
142
|
-
values: values
|
|
143
|
-
}).then(function (response) {
|
|
144
|
-
if (response.data.user) {
|
|
145
|
-
_this3.setUser(response.data.user);
|
|
146
|
-
_this3.setSession(response.data.token);
|
|
147
|
-
resolve(response.data.user);
|
|
148
|
-
} else {
|
|
149
|
-
reject(response.data.error);
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
}, {
|
|
155
|
-
key: "signInWithToken",
|
|
156
|
-
value: function signInWithToken() {
|
|
157
|
-
var _this4 = this;
|
|
158
|
-
return new Promise(function (resolve, reject) {
|
|
159
|
-
_axios["default"].post("".concat(_constants.API_SERVER_URL, "/api/user/access-token"), {
|
|
160
|
-
data: {
|
|
161
|
-
access_token: _this4.getAccessToken()
|
|
162
|
-
}
|
|
163
|
-
}).then(function (response) {
|
|
164
|
-
if (response.data.user) {
|
|
165
|
-
// this.emit('onLoginSuccess', {message: 'You log in with token.', variant: 'success'});
|
|
166
|
-
_this4.setUser(response.data.user);
|
|
167
|
-
_this4.setSession(response.data.access_token);
|
|
168
|
-
resolve(response.data.user);
|
|
169
|
-
} else {
|
|
170
|
-
reject(response.data.error);
|
|
171
|
-
}
|
|
172
|
-
})["catch"](function (err) {
|
|
173
|
-
console.log(err);
|
|
174
|
-
});
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
}, {
|
|
178
|
-
key: "updateUserData",
|
|
179
|
-
value: function updateUserData(user) {
|
|
180
|
-
return _axios["default"].post('/api/auth/user/update', {
|
|
181
|
-
user: user
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
}, {
|
|
185
|
-
key: "setSession",
|
|
186
|
-
value: function setSession(access_token) {
|
|
187
|
-
if (access_token) {
|
|
188
|
-
sessionStorage.setItem('jwt_access_token', access_token);
|
|
189
|
-
// axios.defaults.headers.common['Authorization'] = 'Bearer ' + access_token;
|
|
190
|
-
} else {
|
|
191
|
-
sessionStorage.removeItem('jwt_access_token');
|
|
192
|
-
// delete axios.defaults.headers.common['Authorization'];
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}, {
|
|
196
|
-
key: "setUser",
|
|
197
|
-
value: function setUser(user) {
|
|
198
|
-
if (user) {
|
|
199
|
-
sessionStorage.setItem('jwt_access_user', JSON.stringify(user));
|
|
200
|
-
} else {
|
|
201
|
-
sessionStorage.removeItem('jwt_access_user');
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}, {
|
|
205
|
-
key: "getUser",
|
|
206
|
-
value: function getUser() {
|
|
207
|
-
return JSON.parse(sessionStorage.getItem('jwt_access_user'));
|
|
208
|
-
}
|
|
209
|
-
}, {
|
|
210
|
-
key: "logout",
|
|
211
|
-
value: function logout() {
|
|
212
|
-
this.setSession(null);
|
|
213
|
-
this.setUser(null);
|
|
214
|
-
}
|
|
215
|
-
}, {
|
|
216
|
-
key: "isAuthTokenValid",
|
|
217
|
-
value: function isAuthTokenValid(access_token) {
|
|
218
|
-
if (!access_token) {
|
|
219
|
-
return false;
|
|
220
|
-
}
|
|
221
|
-
var decoded = (0, _jwtDecode["default"])(access_token);
|
|
222
|
-
var currentTime = Date.now() / 1000;
|
|
223
|
-
if (decoded.exp < currentTime) {
|
|
224
|
-
console.warn('access token expired');
|
|
225
|
-
return false;
|
|
226
|
-
} else {
|
|
227
|
-
return true;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}, {
|
|
231
|
-
key: "getAccessToken",
|
|
232
|
-
value: function getAccessToken() {
|
|
233
|
-
return window.sessionStorage.getItem('jwt_access_token');
|
|
234
|
-
}
|
|
235
|
-
}]);
|
|
236
|
-
}(EventEmitter);
|
|
237
|
-
var instance = new jwtService();
|
|
238
|
-
var _default = exports["default"] = instance;
|
|
239
|
-
//# sourceMappingURL=jwtService.js.map
|