@nyris/nyris-webapp 0.3.50 → 0.3.52
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/README.md +18 -92
- package/build/asset-manifest.json +90 -69
- package/build/index.html +1 -1
- package/build/js/settings.example.js +7 -0
- package/build/static/css/main.aa443e67.css +2 -0
- package/build/static/css/main.aa443e67.css.map +1 -0
- package/build/static/js/main.e023bcc5.js +3 -0
- package/build/static/js/main.e023bcc5.js.LICENSE.txt +268 -0
- package/build/static/js/main.e023bcc5.js.map +1 -0
- package/build/static/media/{Union.2545c072.svg → Union.dce5234bc686d28b45df0a5aea6ef6d1.svg} +1 -1
- package/package.json +47 -74
- package/public/js/settings.example.js +7 -0
- package/src/Store/Store.ts +6 -0
- package/src/common/assets/icons/Union.svg +1 -1
- package/src/components/AppMobile.tsx +16 -11
- package/src/components/CadenasWebViewer.tsx +2 -3
- package/src/components/DragDropFile.tsx +35 -32
- package/src/components/FilterComponent.tsx +4 -6
- package/src/components/FooterMobile.tsx +16 -13
- package/src/components/Header.tsx +3 -3
- package/src/components/HeaderMobile.tsx +42 -43
- package/src/components/ImageCaptureHelpModal.tsx +13 -10
- package/src/components/ImagePreviewMobile.tsx +24 -23
- package/src/components/Inquiry/InquiryBanner.tsx +13 -14
- package/src/components/Inquiry/InquiryModal.tsx +1 -1
- package/src/components/Layout.tsx +11 -6
- package/src/components/Loading.tsx +2 -3
- package/src/components/PanelResult/PostFilter.tsx +9 -9
- package/src/components/PanelResult/PostFilterAlgolia.tsx +9 -9
- package/src/components/PanelResult/expandable-panel.tsx +3 -3
- package/src/components/ProductAttribute.tsx +26 -19
- package/src/components/ProductDetailView.tsx +80 -80
- package/src/components/ProductList/index.tsx +6 -7
- package/src/components/SelectedPostFilter.tsx +2 -3
- package/src/components/ShareModal.tsx +20 -21
- package/src/components/SidePanel.tsx +18 -18
- package/src/components/carousel/ImagePreviewCarousel.tsx +7 -3
- package/src/components/default-select.tsx +5 -7
- package/src/components/drawer/cameraCustom.tsx +45 -41
- package/src/components/input/inputSearch.tsx +48 -42
- package/src/components/pre-filter/index.tsx +56 -52
- package/src/components/results/ItemResult.tsx +123 -96
- package/src/components/rfq/RfqBanner.tsx +13 -14
- package/src/components/rfq/RfqModal.tsx +1 -1
- package/src/index.tsx +20 -21
- package/src/page/landingPage/AppMD.tsx +8 -9
- package/src/page/landingPage/AppMobile.tsx +2 -3
- package/src/page/landingPage/common.scss +2 -4
- package/src/page/result/index.tsx +92 -75
- package/src/translations.ts +2 -0
- package/src/types.ts +8 -0
- package/tsconfig.json +11 -5
- package/api-mocks/feedback/v1/OPTIONS.mock +0 -6
- package/api-mocks/feedback/v1/POST.mock +0 -4
- package/api-mocks/find/v1/OPTIONS.mock +0 -6
- package/api-mocks/find/v1/POST.mock +0 -7
- package/api-mocks/find/v1/regions/OPTIONS.mock +0 -6
- package/api-mocks/find/v1/regions/POST.mock +0 -6
- package/build/precache-manifest.94e48d131d31de9b354f61c68a3ed830.js +0 -366
- package/build/service-worker.js +0 -39
- package/build/static/css/2.27ad1145.chunk.css +0 -2
- package/build/static/css/2.27ad1145.chunk.css.map +0 -1
- package/build/static/css/main.24b5a712.chunk.css +0 -2
- package/build/static/css/main.24b5a712.chunk.css.map +0 -1
- package/build/static/js/2.3399db0d.chunk.js +0 -3
- package/build/static/js/2.3399db0d.chunk.js.LICENSE.txt +0 -275
- package/build/static/js/2.3399db0d.chunk.js.map +0 -1
- package/build/static/js/main.b75d8ff6.chunk.js +0 -3
- package/build/static/js/main.b75d8ff6.chunk.js.LICENSE.txt +0 -1
- package/build/static/js/main.b75d8ff6.chunk.js.map +0 -1
- package/build/static/js/runtime-main.1ff80965.js +0 -2
- package/build/static/js/runtime-main.1ff80965.js.map +0 -1
- package/src/components/Panigation/Pagination.tsx +0 -135
- package/src/components/results/ItemResult.test.tsx +0 -0
- package/src/helpers/CommonHelper.test.ts +0 -0
- package/src/serviceWorker.ts +0 -143
- /package/build/static/media/{3d.24adb2c2.svg → 3d.a7aa94395eaef439de4bb07d24f56e21.svg} +0 -0
- /package/build/static/media/{Fill.619a9d98.svg → Fill.004d04ac1ba9c868101ab485bcfd0b0e.svg} +0 -0
- /package/build/static/media/{IconUploadDownward.6b47ab39.svg → IconUploadDownward.ed1260bef14fbf9352364ad0f08a416e.svg} +0 -0
- /package/build/static/media/{SourceSans3-Bold.a923b66a.ttf → SourceSans3-Bold.17e068739e42bdb30d1c.ttf} +0 -0
- /package/build/static/media/{SourceSans3-Light.d1772158.ttf → SourceSans3-Light.37264fa35ee0d5f209ea.ttf} +0 -0
- /package/build/static/media/{SourceSans3-Medium.fda30e61.ttf → SourceSans3-Medium.c82b4c53fc5d38ef5784.ttf} +0 -0
- /package/build/static/media/{SourceSans3-Regular.04f1a4f0.ttf → SourceSans3-Regular.c69f9658f16351f79f33.ttf} +0 -0
- /package/build/static/media/{SourceSans3-SemiBold.cf5be839.ttf → SourceSans3-SemiBold.5ad6683a8a06e3ccea94.ttf} +0 -0
- /package/build/static/media/{add.ba46a4bf.svg → add.2b72cedb98c4c89c954266d2356c166c.svg} +0 -0
- /package/build/static/media/{arrow_down.c1b611db.svg → arrow_down.f417689ce292978a8292a7f00407fdd5.svg} +0 -0
- /package/build/static/media/{arrow_left.fd9d4390.svg → arrow_left.73d03a534eaf9b99ab196e0fb67da602.svg} +0 -0
- /package/build/static/media/{arrow_right.c6fdab0b.svg → arrow_right.59a4594a3a1657037537dbae1eee0251.svg} +0 -0
- /package/build/static/media/{arrow_up.fcd6b144.svg → arrow_up.85dbe70bc51ec32c8894a06499330f14.svg} +0 -0
- /package/build/static/media/{avatar.4c5346ed.svg → avatar.43b4f53e7174b4cfd59c51b7acf6236b.svg} +0 -0
- /package/build/static/media/{bgDragmobile.e4913a92.svg → bgDragmobile.487091d95d6abb2a2711.svg} +0 -0
- /package/build/static/media/{call.c3c23966.svg → call.91e7bfc7a94979c6981988194b45850c.svg} +0 -0
- /package/build/static/media/{camera.ae3f4f51.svg → camera.7fc9fe03d10f926524c9b436720371c6.svg} +0 -0
- /package/build/static/media/{close.07dcb75c.svg → close.feb72bdc7227b9333f9528e260dd1217.svg} +0 -0
- /package/build/static/media/{download.d6432d26.svg → download.8007f7c72e2080a9ffa96fa63d480dcf.svg} +0 -0
- /package/build/static/media/{email_share.92bbfb8b.svg → email_share.0b8aeb4edc7c53e944b9c403ec77df2e.svg} +0 -0
- /package/build/static/media/{error.48b946a9.svg → error.560997da69fcc36e10dafe36df4af593.svg} +0 -0
- /package/build/static/media/{filter.bc412f08.svg → filter.9fdd64df67735e0fbf0dd7d1df32921c.svg} +0 -0
- /package/build/static/media/{filter_settings.fa0682a5.svg → filter_settings.f93788883c7fbbcd3ae194e45294d0de.svg} +0 -0
- /package/build/static/media/{home.defd14bf.svg → home.9ffb65a9c0be8fc5a502ba05cf5f719c.svg} +0 -0
- /package/build/static/media/{ic_cam.5318e2d0.svg → ic_cam.659852ba686874f710cc.svg} +0 -0
- /package/build/static/media/{ic_close_feedback.f0834c16.svg → ic_close_feedback.f0ab3c1557a131281039.svg} +0 -0
- /package/build/static/media/{ic_shopNow.0348013a.svg → ic_shopNow.71d2c270d716e3774615.svg} +0 -0
- /package/build/static/media/{ic_shopNowLight.d8eadc1e.svg → ic_shopNowLight.628bb04870f5af9a524f.svg} +0 -0
- /package/build/static/media/{icon_camera_mobile.4d7a272f.svg → icon_camera_mobile.6772053c4dfef487255649d2a05cc9d4.svg} +0 -0
- /package/build/static/media/{icon_dislike.0533c64a.svg → icon_dislike.cab8f1f21bc5222aba2d3ca689e4f392.svg} +0 -0
- /package/build/static/media/{icon_email.71b21005.svg → icon_email.f22810a3dd1b4e6853c68c134ee043b3.svg} +0 -0
- /package/build/static/media/{icon_like.80c66e3a.svg → icon_like.049f5c42107aa03b8ebae58cc8c088ca.svg} +0 -0
- /package/build/static/media/{icon_search.373c3cc4.svg → icon_search.cc17077df07fb2b82c0d58f9bddc7974.svg} +0 -0
- /package/build/static/media/{icon_search_image2.4c4af888.svg → icon_search_image2.4f4458c1e16dc5092f2367003d3aa1e4.svg} +0 -0
- /package/build/static/media/{img-1-1.6144e5f9.png → img-1-1.130fb8d0203452fee547.png} +0 -0
- /package/build/static/media/{img-1-2.ad943f0f.png → img-1-2.c512de6393df34bd1e61.png} +0 -0
- /package/build/static/media/{img2-1.a87c79c7.png → img2-1.2adc75df85eab5c127f9.png} +0 -0
- /package/build/static/media/{img2-2.39c5b73f.png → img2-2.c68532d4f95dbc63c69a.png} +0 -0
- /package/build/static/media/{img3-1.443b0c3a.png → img3-1.6eb26a22e6ea83629d27.png} +0 -0
- /package/build/static/media/{img3-2.37db7999.png → img3-2.39ae54b4032d52c79a3a.png} +0 -0
- /package/build/static/media/{img4-1.9c34c158.png → img4-1.a7594bfa47b01d2a0890.png} +0 -0
- /package/build/static/media/{img4-2.9d280a04.png → img4-2.24c0cbafe1a7ad7c24b5.png} +0 -0
- /package/build/static/media/{img5-1.b61dbd4d.png → img5-1.e6865b52df58608fd968.png} +0 -0
- /package/build/static/media/{img5-2.1c77c093.png → img5-2.ae59543efec34daf3554.png} +0 -0
- /package/build/static/media/{img6-1.8b03dd21.png → img6-1.c8bb209cdce72c2d8033.png} +0 -0
- /package/build/static/media/{img6-2.1e3e7fed.png → img6-2.b442f90b3e503ac33510.png} +0 -0
- /package/build/static/media/{info-tooltip.b98e8a9c.svg → info-tooltip.38185b73956d2d230d38d8254bb7fd91.svg} +0 -0
- /package/build/static/media/{logout.07b9ef7f.svg → logout.b544fcd2969edf431a1e998333119834.svg} +0 -0
- /package/build/static/media/{minus.3fce6c0a.svg → minus.dee9c571642279cf2af9ed09108cadd8.svg} +0 -0
- /package/build/static/media/{no-image.04b676b3.svg → no-image.0792bd463c7917d0b67f4a55a9bc55d9.svg} +0 -0
- /package/build/static/media/{powered_by_nyris.e6766baf.svg → powered_by_nyris.218facc4a2986cc09b183eeeb205b0c2.svg} +0 -0
- /package/build/static/media/{powered_by_nyris_colored.08d00bae.svg → powered_by_nyris_colored.7177945f25f07f85f8f57e02e15c0878.svg} +0 -0
- /package/build/static/media/{reverse_camera.28c80509.svg → reverse_camera.cee0200b151941cc83c182167a85d667.svg} +0 -0
- /package/build/static/media/{roboto-latin-100.5cb7edfc.woff → roboto-latin-100.a45108d3b34af91f9113.woff} +0 -0
- /package/build/static/media/{roboto-latin-100.7370c367.woff2 → roboto-latin-100.c2aa4ab115bf9c6057cb.woff2} +0 -0
- /package/build/static/media/{roboto-latin-100italic.f9e8e590.woff → roboto-latin-100italic.451d4e559d6f57cdf6a1.woff} +0 -0
- /package/build/static/media/{roboto-latin-100italic.f8b1df51.woff2 → roboto-latin-100italic.7f839a8652da29745ce4.woff2} +0 -0
- /package/build/static/media/{roboto-latin-300.ef7c6637.woff2 → roboto-latin-300.37a7069dc30fc663c878.woff2} +0 -0
- /package/build/static/media/{roboto-latin-300.b00849e0.woff → roboto-latin-300.865f928cbabcc9f8f2b5.woff} +0 -0
- /package/build/static/media/{roboto-latin-300italic.4df32891.woff → roboto-latin-300italic.bd5b7a13f2c52b531a2a.woff} +0 -0
- /package/build/static/media/{roboto-latin-300italic.14286f3b.woff2 → roboto-latin-300italic.c64e7e354c88e613c77c.woff2} +0 -0
- /package/build/static/media/{roboto-latin-400.479970ff.woff2 → roboto-latin-400.176f8f5bd5f02b3abfcf.woff2} +0 -0
- /package/build/static/media/{roboto-latin-400.60fa3c06.woff → roboto-latin-400.49ae34d4cc6b98c00c69.woff} +0 -0
- /package/build/static/media/{roboto-latin-400italic.fe65b833.woff → roboto-latin-400italic.b1d9d9904bfca8802a63.woff} +0 -0
- /package/build/static/media/{roboto-latin-400italic.51521a2a.woff2 → roboto-latin-400italic.d022bc70dc1bf7b3425d.woff2} +0 -0
- /package/build/static/media/{roboto-latin-500.87284894.woff → roboto-latin-500.cea99d3e3e13a3a599a0.woff} +0 -0
- /package/build/static/media/{roboto-latin-500.020c97dc.woff2 → roboto-latin-500.f5b74d7ffcdf85b9dd60.woff2} +0 -0
- /package/build/static/media/{roboto-latin-500italic.db4a2a23.woff2 → roboto-latin-500italic.0d8bb5b3ee5f5dac9e44.woff2} +0 -0
- /package/build/static/media/{roboto-latin-500italic.288ad9c6.woff → roboto-latin-500italic.18d00f739ff1e1c52db1.woff} +0 -0
- /package/build/static/media/{roboto-latin-700.adcde98f.woff → roboto-latin-700.2267169ee7270a22a963.woff} +0 -0
- /package/build/static/media/{roboto-latin-700.2735a3a6.woff2 → roboto-latin-700.c18ee39fb002ad58b6dc.woff2} +0 -0
- /package/build/static/media/{roboto-latin-700italic.da0e7178.woff2 → roboto-latin-700italic.7d8125ff7f707231fd89.woff2} +0 -0
- /package/build/static/media/{roboto-latin-700italic.81f57861.woff → roboto-latin-700italic.9360531f9bb817f917f0.woff} +0 -0
- /package/build/static/media/{roboto-latin-900.9b3766ef.woff2 → roboto-latin-900.870c8c1486f76054301a.woff2} +0 -0
- /package/build/static/media/{roboto-latin-900.bb1e4dc6.woff → roboto-latin-900.bac8362e7a6ea60b6983.woff} +0 -0
- /package/build/static/media/{roboto-latin-900italic.28f91510.woff → roboto-latin-900italic.c20d916c1a1b094c1cec.woff} +0 -0
- /package/build/static/media/{roboto-latin-900italic.ebf6d164.woff2 → roboto-latin-900italic.cb5ad999740e9d8a8bd1.woff2} +0 -0
- /package/build/static/media/{sectionTransBack.6cee2e36.svg → sectionTransBack.20491b21c659cd29499a.svg} +0 -0
- /package/build/static/media/{sectionTransTop.3dcf290f.svg → sectionTransTop.3a1dd8204a4137b92722.svg} +0 -0
- /package/build/static/media/{settings.e3c8138b.svg → settings.4b954549320dc34e0d000afd236cff2e.svg} +0 -0
- /package/build/static/media/{take_photo.76423216.svg → take_photo.42347c97c863fc8ec1afa36a56eb9ccb.svg} +0 -0
- /package/build/static/media/{trash.1624780d.svg → trash.ea9fa760f600fc578097ef0c01d5845f.svg} +0 -0
package/build/static/media/{Union.2545c072.svg → Union.dce5234bc686d28b45df0a5aea6ef6d1.svg}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.7972 0.00924418C14.7887 0.00617139 14.7801 0.00310346 14.7715 0.000312494L14.7718 0H10.1658C10.1495 0.0055061 10.1332 0.0109244 10.1168 0.0163371C10.0897 0.0253626 10.0625 0.0343727 10.0355 0.0437491C9.7444 0.14531 9.55892 0.345306 9.51318 0.649362C9.46744 0.952481 9.57835 1.20154 9.82963 1.3831C9.98534 1.4956 10.1642 1.51778 10.3504 1.51778C11.0032 1.51711 11.6559 1.51724 12.3085 1.51737C12.5695 1.51742 12.8305 1.51747 13.0915 1.51747H13.2639C13.269 1.5298 13.2743 1.54201 13.2796 1.55418C13.2832 1.56269 13.2869 1.57117 13.2905 1.57966C13.2689 1.59688 13.2468 1.61354 13.2246 1.63019C13.1757 1.667 13.1267 1.70381 13.084 1.74684C11.6554 3.18824 10.2274 4.63064 8.79949 6.07292C8.44459 6.43139 8.0897 6.78986 7.73481 7.1483C7.5428 7.3422 7.35058 7.53593 7.15835 7.72968C6.77404 8.117 6.3897 8.50437 6.00688 8.89326C5.73712 9.16763 5.68824 9.53294 5.87184 9.83543C6.13942 10.2764 6.71027 10.3182 7.10129 9.92356L14.5306 2.42152C14.5571 2.3949 14.5844 2.36913 14.6166 2.33882C14.632 2.32429 14.6485 2.30873 14.6666 2.29152C14.6666 2.31084 14.6669 2.32706 14.6673 2.34125C14.6678 2.3663 14.6683 2.38504 14.6663 2.40339C14.5466 3.49556 14.4516 4.58928 14.4394 5.68895C14.4344 6.1455 14.7346 6.49144 15.1625 6.50643C15.6049 6.52206 15.9405 6.20175 15.9508 5.73833C15.9547 5.5656 15.9587 5.39286 15.9627 5.22011C15.9814 4.41935 16 3.61845 16 2.81776C16 2.20964 15.969 1.60028 15.9255 0.993418C15.8847 0.429054 15.6463 0.182809 15.0899 0.0653112C15.0463 0.056019 15.0021 0.049588 14.9578 0.0431549C14.9246 0.0383382 14.8915 0.0335204 14.8586 0.0274995C14.8377 0.0237686 14.8174 0.0164929 14.7972 0.00924418ZM6.65735 0.0116066C6.6465 0.00778246 6.63564 0.00395385 6.62471 0.000320783H2.08166C2.04398 0.00756588 2.00622 0.0144228 1.96845 0.0212791C1.88406 0.0366024 1.79967 0.0519232 1.71634 0.0715694C0.751956 0.300315 0.0510725 1.14561 0.00595529 2.1334C0.00282215 2.2009 0.00219552 2.26871 0.00219552 2.33621C0.00210456 3.43333 0.00225127 4.53048 0.00239798 5.62763C0.00275661 8.30959 0.00311526 10.9916 2.32127e-06 13.6735C-0.000937621 14.4497 0.283551 15.0803 0.900467 15.5553C1.1906 15.7784 1.52114 15.9144 1.88365 15.9713C1.90744 15.9748 1.93052 15.9822 1.95366 15.9896C1.96495 15.9932 1.97626 15.9968 1.98767 16H13.9882C13.9923 15.9975 13.9963 15.9945 14.0003 15.9916C14.009 15.9852 14.0177 15.9788 14.0274 15.9769C15.2603 15.7247 15.9524 14.8832 15.9524 13.6332C15.9524 13.3632 15.9524 13.0932 15.9524 12.8233C15.9525 11.7443 15.9525 10.6654 15.9518 9.58638C15.9518 9.50326 15.9493 9.4192 15.937 9.33733C15.885 8.98608 15.6093 8.73327 15.2471 8.70015C14.9125 8.66953 14.5788 8.89015 14.4807 9.2217C14.4475 9.3342 14.4397 9.45763 14.4397 9.57607C14.4384 10.29 14.4384 11.0038 14.4383 11.7176C14.4383 12.3839 14.4383 13.0502 14.4372 13.7166C14.4366 14.1979 14.1352 14.4957 13.6536 14.4957C9.86751 14.4963 6.08143 14.4966 2.29534 14.4957C1.81284 14.4957 1.513 14.1963 1.513 13.7157C1.51237 9.90856 1.51268 6.10114 1.51362 2.29403C1.51362 2.21653 1.51644 2.13653 1.53555 2.06216C1.62454 1.71497 1.90526 1.51842 2.31289 1.5181C3.07025 1.51758 3.82752 1.51754 4.58475 1.51751C5.1905 1.51747 5.79622 1.51744 6.40195 1.51717C6.47464 1.51685 6.54826 1.51623 6.62064 1.5081C6.98283 1.46779 7.26168 1.18374 7.28706 0.832179C7.31463 0.452499 7.08779 0.130318 6.72591 0.0337576C6.70279 0.0276219 6.6801 0.019624 6.65735 0.0116066Z"
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.7972 0.00924418C14.7887 0.00617139 14.7801 0.00310346 14.7715 0.000312494L14.7718 0H10.1658C10.1495 0.0055061 10.1332 0.0109244 10.1168 0.0163371C10.0897 0.0253626 10.0625 0.0343727 10.0355 0.0437491C9.7444 0.14531 9.55892 0.345306 9.51318 0.649362C9.46744 0.952481 9.57835 1.20154 9.82963 1.3831C9.98534 1.4956 10.1642 1.51778 10.3504 1.51778C11.0032 1.51711 11.6559 1.51724 12.3085 1.51737C12.5695 1.51742 12.8305 1.51747 13.0915 1.51747H13.2639C13.269 1.5298 13.2743 1.54201 13.2796 1.55418C13.2832 1.56269 13.2869 1.57117 13.2905 1.57966C13.2689 1.59688 13.2468 1.61354 13.2246 1.63019C13.1757 1.667 13.1267 1.70381 13.084 1.74684C11.6554 3.18824 10.2274 4.63064 8.79949 6.07292C8.44459 6.43139 8.0897 6.78986 7.73481 7.1483C7.5428 7.3422 7.35058 7.53593 7.15835 7.72968C6.77404 8.117 6.3897 8.50437 6.00688 8.89326C5.73712 9.16763 5.68824 9.53294 5.87184 9.83543C6.13942 10.2764 6.71027 10.3182 7.10129 9.92356L14.5306 2.42152C14.5571 2.3949 14.5844 2.36913 14.6166 2.33882C14.632 2.32429 14.6485 2.30873 14.6666 2.29152C14.6666 2.31084 14.6669 2.32706 14.6673 2.34125C14.6678 2.3663 14.6683 2.38504 14.6663 2.40339C14.5466 3.49556 14.4516 4.58928 14.4394 5.68895C14.4344 6.1455 14.7346 6.49144 15.1625 6.50643C15.6049 6.52206 15.9405 6.20175 15.9508 5.73833C15.9547 5.5656 15.9587 5.39286 15.9627 5.22011C15.9814 4.41935 16 3.61845 16 2.81776C16 2.20964 15.969 1.60028 15.9255 0.993418C15.8847 0.429054 15.6463 0.182809 15.0899 0.0653112C15.0463 0.056019 15.0021 0.049588 14.9578 0.0431549C14.9246 0.0383382 14.8915 0.0335204 14.8586 0.0274995C14.8377 0.0237686 14.8174 0.0164929 14.7972 0.00924418ZM6.65735 0.0116066C6.6465 0.00778246 6.63564 0.00395385 6.62471 0.000320783H2.08166C2.04398 0.00756588 2.00622 0.0144228 1.96845 0.0212791C1.88406 0.0366024 1.79967 0.0519232 1.71634 0.0715694C0.751956 0.300315 0.0510725 1.14561 0.00595529 2.1334C0.00282215 2.2009 0.00219552 2.26871 0.00219552 2.33621C0.00210456 3.43333 0.00225127 4.53048 0.00239798 5.62763C0.00275661 8.30959 0.00311526 10.9916 2.32127e-06 13.6735C-0.000937621 14.4497 0.283551 15.0803 0.900467 15.5553C1.1906 15.7784 1.52114 15.9144 1.88365 15.9713C1.90744 15.9748 1.93052 15.9822 1.95366 15.9896C1.96495 15.9932 1.97626 15.9968 1.98767 16H13.9882C13.9923 15.9975 13.9963 15.9945 14.0003 15.9916C14.009 15.9852 14.0177 15.9788 14.0274 15.9769C15.2603 15.7247 15.9524 14.8832 15.9524 13.6332C15.9524 13.3632 15.9524 13.0932 15.9524 12.8233C15.9525 11.7443 15.9525 10.6654 15.9518 9.58638C15.9518 9.50326 15.9493 9.4192 15.937 9.33733C15.885 8.98608 15.6093 8.73327 15.2471 8.70015C14.9125 8.66953 14.5788 8.89015 14.4807 9.2217C14.4475 9.3342 14.4397 9.45763 14.4397 9.57607C14.4384 10.29 14.4384 11.0038 14.4383 11.7176C14.4383 12.3839 14.4383 13.0502 14.4372 13.7166C14.4366 14.1979 14.1352 14.4957 13.6536 14.4957C9.86751 14.4963 6.08143 14.4966 2.29534 14.4957C1.81284 14.4957 1.513 14.1963 1.513 13.7157C1.51237 9.90856 1.51268 6.10114 1.51362 2.29403C1.51362 2.21653 1.51644 2.13653 1.53555 2.06216C1.62454 1.71497 1.90526 1.51842 2.31289 1.5181C3.07025 1.51758 3.82752 1.51754 4.58475 1.51751C5.1905 1.51747 5.79622 1.51744 6.40195 1.51717C6.47464 1.51685 6.54826 1.51623 6.62064 1.5081C6.98283 1.46779 7.26168 1.18374 7.28706 0.832179C7.31463 0.452499 7.08779 0.130318 6.72591 0.0337576C6.70279 0.0276219 6.6801 0.019624 6.65735 0.0116066Z" />
|
|
3
3
|
</svg>
|
package/package.json
CHANGED
|
@@ -1,105 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyris/nyris-webapp",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"homepage": "./",
|
|
3
|
+
"version": "0.3.52",
|
|
5
4
|
"dependencies": {
|
|
6
|
-
"@
|
|
7
|
-
"@
|
|
8
|
-
"@
|
|
9
|
-
"@
|
|
10
|
-
"@
|
|
11
|
-
"@
|
|
12
|
-
"@
|
|
13
|
-
"@
|
|
14
|
-
"@material-ui/icons": "^4.4.1",
|
|
15
|
-
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
16
|
-
"@nyris/nyris-api": "^0.3.50",
|
|
17
|
-
"@nyris/nyris-react-components": "^0.3.50",
|
|
18
|
-
"@reduxjs/toolkit": "^1.6.1",
|
|
5
|
+
"@auth0/auth0-react": "^2.2.4",
|
|
6
|
+
"@emailjs/browser": "^4.3.3",
|
|
7
|
+
"@material-ui/core": "^4.12.4",
|
|
8
|
+
"@material-ui/icons": "^4.11.3",
|
|
9
|
+
"@material-ui/lab": "^4.0.0-alpha.61",
|
|
10
|
+
"@nyris/nyris-api": "^0.3.52",
|
|
11
|
+
"@nyris/nyris-react-components": "^0.3.52",
|
|
12
|
+
"@reduxjs/toolkit": "^2.2.1",
|
|
19
13
|
"@splidejs/react-splide": "^0.7.12",
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
22
|
-
"@
|
|
23
|
-
"@types/jest": "
|
|
24
|
-
"@types/node": "
|
|
25
|
-
"@types/react": "
|
|
26
|
-
"@types/react-dom": "
|
|
27
|
-
"
|
|
28
|
-
"@types/react-router-dom": "^5.1.8",
|
|
29
|
-
"algoliasearch": "^4.12.2",
|
|
14
|
+
"@testing-library/jest-dom": "^5.17.0",
|
|
15
|
+
"@testing-library/react": "^13.4.0",
|
|
16
|
+
"@testing-library/user-event": "^13.5.0",
|
|
17
|
+
"@types/jest": "^27.5.2",
|
|
18
|
+
"@types/node": "^16.18.88",
|
|
19
|
+
"@types/react": "^18.2.65",
|
|
20
|
+
"@types/react-dom": "^18.2.21",
|
|
21
|
+
"algoliasearch": "^4.22.1",
|
|
30
22
|
"axios": "^0.26.1",
|
|
31
|
-
"blueimp-load-image": "^
|
|
32
|
-
"classnames": "^2.
|
|
33
|
-
"framer-motion": "^
|
|
34
|
-
"
|
|
35
|
-
"i18next": "^22.4.14",
|
|
23
|
+
"blueimp-load-image": "^5.16.0",
|
|
24
|
+
"classnames": "^2.5.1",
|
|
25
|
+
"framer-motion": "^11.0.12",
|
|
26
|
+
"i18next": "^23.10.1",
|
|
36
27
|
"jotai": "^1.4.7",
|
|
37
|
-
"jquery": "^3.
|
|
38
|
-
"js-cookie": "^3.0.1",
|
|
39
|
-
"konva": "5.0.3",
|
|
28
|
+
"jquery": "^3.7.1",
|
|
40
29
|
"lodash": "^4.17.21",
|
|
41
|
-
"
|
|
42
|
-
"react": "^
|
|
43
|
-
"react-dom": "^16.13.1",
|
|
30
|
+
"react": "^18.2.0",
|
|
31
|
+
"react-dom": "^18.2.0",
|
|
44
32
|
"react-dropzone": "^14.2.3",
|
|
45
|
-
"react-
|
|
46
|
-
"react-
|
|
47
|
-
"react-
|
|
48
|
-
"react-
|
|
49
|
-
"react-
|
|
50
|
-
"react-
|
|
51
|
-
"react-move": "^6.0.0",
|
|
52
|
-
"react-qr-reader": "^3.0.0-beta-1",
|
|
53
|
-
"react-redux": "^7.1.1",
|
|
54
|
-
"react-responsive": "^9.0.0-beta.10",
|
|
55
|
-
"react-responsive-carousel": "^3.2.22",
|
|
33
|
+
"react-hot-toast": "^2.4.1",
|
|
34
|
+
"react-i18next": "^14.1.0",
|
|
35
|
+
"react-instantsearch-dom": "^6.40.4",
|
|
36
|
+
"react-redux": "^9.1.0",
|
|
37
|
+
"react-responsive": "^9.0.2",
|
|
38
|
+
"react-responsive-carousel": "^3.2.23",
|
|
56
39
|
"react-router-dom": "^5.3.0",
|
|
57
|
-
"react-scripts": "
|
|
58
|
-
"react-select": "^5.2.2",
|
|
59
|
-
"react-table": "^7.7.0",
|
|
40
|
+
"react-scripts": "5.0.1",
|
|
60
41
|
"react-webcam": "^7.2.0",
|
|
61
|
-
"redux": "^
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"typeface-roboto": "0.0.75",
|
|
67
|
-
"typescript": "^4.1.2"
|
|
42
|
+
"redux": "^5.0.1",
|
|
43
|
+
"sass": "^1.71.1",
|
|
44
|
+
"typeface-roboto": "^1.1.13",
|
|
45
|
+
"typescript": "^4.9.5",
|
|
46
|
+
"web-vitals": "^2.1.4"
|
|
68
47
|
},
|
|
69
48
|
"scripts": {
|
|
70
|
-
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
|
71
49
|
"start": "react-scripts start",
|
|
72
50
|
"build": "react-scripts build",
|
|
73
51
|
"test": "react-scripts test",
|
|
74
|
-
"eject": "react-scripts eject"
|
|
75
|
-
"mockserver": "mockserver -p 8080 -m api-mocks -q"
|
|
52
|
+
"eject": "react-scripts eject"
|
|
76
53
|
},
|
|
77
54
|
"eslintConfig": {
|
|
78
|
-
"extends":
|
|
55
|
+
"extends": [
|
|
56
|
+
"react-app",
|
|
57
|
+
"react-app/jest"
|
|
58
|
+
]
|
|
79
59
|
},
|
|
80
60
|
"browserslist": {
|
|
81
61
|
"production": [
|
|
82
62
|
">0.2%",
|
|
83
63
|
"not dead",
|
|
84
|
-
"not op_mini all"
|
|
85
|
-
"ie 11"
|
|
64
|
+
"not op_mini all"
|
|
86
65
|
],
|
|
87
66
|
"development": [
|
|
88
67
|
"last 1 chrome version",
|
|
89
68
|
"last 1 firefox version",
|
|
90
|
-
"last 1 safari version"
|
|
91
|
-
"ie 11"
|
|
69
|
+
"last 1 safari version"
|
|
92
70
|
]
|
|
93
71
|
},
|
|
94
72
|
"devDependencies": {
|
|
95
|
-
"@types/jquery": "^3.5.
|
|
96
|
-
"@types/
|
|
97
|
-
"@types/
|
|
98
|
-
"@types/react-
|
|
99
|
-
"@types/react-scroll": "^1.8.4",
|
|
100
|
-
"mockserver": "^3.1.1",
|
|
101
|
-
"react-styleguidist": "^11.0.5",
|
|
102
|
-
"redux-devtools-extension": "^2.13.8",
|
|
103
|
-
"sass": "^1.39.0"
|
|
73
|
+
"@types/jquery": "^3.5.29",
|
|
74
|
+
"@types/lodash": "^4.17.0",
|
|
75
|
+
"@types/react-instantsearch-dom": "^6.12.7",
|
|
76
|
+
"@types/react-router-dom": "^5.3.3"
|
|
104
77
|
}
|
|
105
78
|
}
|
|
@@ -30,6 +30,7 @@ var settings = {
|
|
|
30
30
|
regions: true,
|
|
31
31
|
responseFormat: 'application/offers.complete+json',
|
|
32
32
|
visualSearchFilterKey: '',
|
|
33
|
+
shouldUseUserMetadata: '',
|
|
33
34
|
// UI - theme
|
|
34
35
|
theme: {
|
|
35
36
|
appBarLogoUrl: '',
|
|
@@ -38,6 +39,12 @@ var settings = {
|
|
|
38
39
|
logoWidth: '',
|
|
39
40
|
primaryColor: '',
|
|
40
41
|
secondaryColor: '',
|
|
42
|
+
CTAButtonColor: '',
|
|
43
|
+
CTAButtonTextColor: '',
|
|
44
|
+
secondaryCTAButtonColor: '',
|
|
45
|
+
mainTextColor: '',
|
|
46
|
+
brandFieldBackground: '',
|
|
47
|
+
brandFieldPadding: '',
|
|
41
48
|
},
|
|
42
49
|
language: 'en',
|
|
43
50
|
// features
|
package/src/Store/Store.ts
CHANGED
|
@@ -10,6 +10,12 @@ declare var settings: AppSettings;
|
|
|
10
10
|
|
|
11
11
|
settings.algolia.enabled = true;
|
|
12
12
|
settings.preview = true;
|
|
13
|
+
settings.showFeedback = false;
|
|
14
|
+
settings.showFeedbackAndShare = false;
|
|
15
|
+
|
|
16
|
+
if (settings.rfq?.enabled && settings.support?.enabled) {
|
|
17
|
+
settings.support.enabled = false;
|
|
18
|
+
}
|
|
13
19
|
|
|
14
20
|
let normalizedSettings: AppSettings = {
|
|
15
21
|
...defaultSettings,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.7972 0.00924418C14.7887 0.00617139 14.7801 0.00310346 14.7715 0.000312494L14.7718 0H10.1658C10.1495 0.0055061 10.1332 0.0109244 10.1168 0.0163371C10.0897 0.0253626 10.0625 0.0343727 10.0355 0.0437491C9.7444 0.14531 9.55892 0.345306 9.51318 0.649362C9.46744 0.952481 9.57835 1.20154 9.82963 1.3831C9.98534 1.4956 10.1642 1.51778 10.3504 1.51778C11.0032 1.51711 11.6559 1.51724 12.3085 1.51737C12.5695 1.51742 12.8305 1.51747 13.0915 1.51747H13.2639C13.269 1.5298 13.2743 1.54201 13.2796 1.55418C13.2832 1.56269 13.2869 1.57117 13.2905 1.57966C13.2689 1.59688 13.2468 1.61354 13.2246 1.63019C13.1757 1.667 13.1267 1.70381 13.084 1.74684C11.6554 3.18824 10.2274 4.63064 8.79949 6.07292C8.44459 6.43139 8.0897 6.78986 7.73481 7.1483C7.5428 7.3422 7.35058 7.53593 7.15835 7.72968C6.77404 8.117 6.3897 8.50437 6.00688 8.89326C5.73712 9.16763 5.68824 9.53294 5.87184 9.83543C6.13942 10.2764 6.71027 10.3182 7.10129 9.92356L14.5306 2.42152C14.5571 2.3949 14.5844 2.36913 14.6166 2.33882C14.632 2.32429 14.6485 2.30873 14.6666 2.29152C14.6666 2.31084 14.6669 2.32706 14.6673 2.34125C14.6678 2.3663 14.6683 2.38504 14.6663 2.40339C14.5466 3.49556 14.4516 4.58928 14.4394 5.68895C14.4344 6.1455 14.7346 6.49144 15.1625 6.50643C15.6049 6.52206 15.9405 6.20175 15.9508 5.73833C15.9547 5.5656 15.9587 5.39286 15.9627 5.22011C15.9814 4.41935 16 3.61845 16 2.81776C16 2.20964 15.969 1.60028 15.9255 0.993418C15.8847 0.429054 15.6463 0.182809 15.0899 0.0653112C15.0463 0.056019 15.0021 0.049588 14.9578 0.0431549C14.9246 0.0383382 14.8915 0.0335204 14.8586 0.0274995C14.8377 0.0237686 14.8174 0.0164929 14.7972 0.00924418ZM6.65735 0.0116066C6.6465 0.00778246 6.63564 0.00395385 6.62471 0.000320783H2.08166C2.04398 0.00756588 2.00622 0.0144228 1.96845 0.0212791C1.88406 0.0366024 1.79967 0.0519232 1.71634 0.0715694C0.751956 0.300315 0.0510725 1.14561 0.00595529 2.1334C0.00282215 2.2009 0.00219552 2.26871 0.00219552 2.33621C0.00210456 3.43333 0.00225127 4.53048 0.00239798 5.62763C0.00275661 8.30959 0.00311526 10.9916 2.32127e-06 13.6735C-0.000937621 14.4497 0.283551 15.0803 0.900467 15.5553C1.1906 15.7784 1.52114 15.9144 1.88365 15.9713C1.90744 15.9748 1.93052 15.9822 1.95366 15.9896C1.96495 15.9932 1.97626 15.9968 1.98767 16H13.9882C13.9923 15.9975 13.9963 15.9945 14.0003 15.9916C14.009 15.9852 14.0177 15.9788 14.0274 15.9769C15.2603 15.7247 15.9524 14.8832 15.9524 13.6332C15.9524 13.3632 15.9524 13.0932 15.9524 12.8233C15.9525 11.7443 15.9525 10.6654 15.9518 9.58638C15.9518 9.50326 15.9493 9.4192 15.937 9.33733C15.885 8.98608 15.6093 8.73327 15.2471 8.70015C14.9125 8.66953 14.5788 8.89015 14.4807 9.2217C14.4475 9.3342 14.4397 9.45763 14.4397 9.57607C14.4384 10.29 14.4384 11.0038 14.4383 11.7176C14.4383 12.3839 14.4383 13.0502 14.4372 13.7166C14.4366 14.1979 14.1352 14.4957 13.6536 14.4957C9.86751 14.4963 6.08143 14.4966 2.29534 14.4957C1.81284 14.4957 1.513 14.1963 1.513 13.7157C1.51237 9.90856 1.51268 6.10114 1.51362 2.29403C1.51362 2.21653 1.51644 2.13653 1.53555 2.06216C1.62454 1.71497 1.90526 1.51842 2.31289 1.5181C3.07025 1.51758 3.82752 1.51754 4.58475 1.51751C5.1905 1.51747 5.79622 1.51744 6.40195 1.51717C6.47464 1.51685 6.54826 1.51623 6.62064 1.5081C6.98283 1.46779 7.26168 1.18374 7.28706 0.832179C7.31463 0.452499 7.08779 0.130318 6.72591 0.0337576C6.70279 0.0276219 6.6801 0.019624 6.65735 0.0116066Z"
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.7972 0.00924418C14.7887 0.00617139 14.7801 0.00310346 14.7715 0.000312494L14.7718 0H10.1658C10.1495 0.0055061 10.1332 0.0109244 10.1168 0.0163371C10.0897 0.0253626 10.0625 0.0343727 10.0355 0.0437491C9.7444 0.14531 9.55892 0.345306 9.51318 0.649362C9.46744 0.952481 9.57835 1.20154 9.82963 1.3831C9.98534 1.4956 10.1642 1.51778 10.3504 1.51778C11.0032 1.51711 11.6559 1.51724 12.3085 1.51737C12.5695 1.51742 12.8305 1.51747 13.0915 1.51747H13.2639C13.269 1.5298 13.2743 1.54201 13.2796 1.55418C13.2832 1.56269 13.2869 1.57117 13.2905 1.57966C13.2689 1.59688 13.2468 1.61354 13.2246 1.63019C13.1757 1.667 13.1267 1.70381 13.084 1.74684C11.6554 3.18824 10.2274 4.63064 8.79949 6.07292C8.44459 6.43139 8.0897 6.78986 7.73481 7.1483C7.5428 7.3422 7.35058 7.53593 7.15835 7.72968C6.77404 8.117 6.3897 8.50437 6.00688 8.89326C5.73712 9.16763 5.68824 9.53294 5.87184 9.83543C6.13942 10.2764 6.71027 10.3182 7.10129 9.92356L14.5306 2.42152C14.5571 2.3949 14.5844 2.36913 14.6166 2.33882C14.632 2.32429 14.6485 2.30873 14.6666 2.29152C14.6666 2.31084 14.6669 2.32706 14.6673 2.34125C14.6678 2.3663 14.6683 2.38504 14.6663 2.40339C14.5466 3.49556 14.4516 4.58928 14.4394 5.68895C14.4344 6.1455 14.7346 6.49144 15.1625 6.50643C15.6049 6.52206 15.9405 6.20175 15.9508 5.73833C15.9547 5.5656 15.9587 5.39286 15.9627 5.22011C15.9814 4.41935 16 3.61845 16 2.81776C16 2.20964 15.969 1.60028 15.9255 0.993418C15.8847 0.429054 15.6463 0.182809 15.0899 0.0653112C15.0463 0.056019 15.0021 0.049588 14.9578 0.0431549C14.9246 0.0383382 14.8915 0.0335204 14.8586 0.0274995C14.8377 0.0237686 14.8174 0.0164929 14.7972 0.00924418ZM6.65735 0.0116066C6.6465 0.00778246 6.63564 0.00395385 6.62471 0.000320783H2.08166C2.04398 0.00756588 2.00622 0.0144228 1.96845 0.0212791C1.88406 0.0366024 1.79967 0.0519232 1.71634 0.0715694C0.751956 0.300315 0.0510725 1.14561 0.00595529 2.1334C0.00282215 2.2009 0.00219552 2.26871 0.00219552 2.33621C0.00210456 3.43333 0.00225127 4.53048 0.00239798 5.62763C0.00275661 8.30959 0.00311526 10.9916 2.32127e-06 13.6735C-0.000937621 14.4497 0.283551 15.0803 0.900467 15.5553C1.1906 15.7784 1.52114 15.9144 1.88365 15.9713C1.90744 15.9748 1.93052 15.9822 1.95366 15.9896C1.96495 15.9932 1.97626 15.9968 1.98767 16H13.9882C13.9923 15.9975 13.9963 15.9945 14.0003 15.9916C14.009 15.9852 14.0177 15.9788 14.0274 15.9769C15.2603 15.7247 15.9524 14.8832 15.9524 13.6332C15.9524 13.3632 15.9524 13.0932 15.9524 12.8233C15.9525 11.7443 15.9525 10.6654 15.9518 9.58638C15.9518 9.50326 15.9493 9.4192 15.937 9.33733C15.885 8.98608 15.6093 8.73327 15.2471 8.70015C14.9125 8.66953 14.5788 8.89015 14.4807 9.2217C14.4475 9.3342 14.4397 9.45763 14.4397 9.57607C14.4384 10.29 14.4384 11.0038 14.4383 11.7176C14.4383 12.3839 14.4383 13.0502 14.4372 13.7166C14.4366 14.1979 14.1352 14.4957 13.6536 14.4957C9.86751 14.4963 6.08143 14.4966 2.29534 14.4957C1.81284 14.4957 1.513 14.1963 1.513 13.7157C1.51237 9.90856 1.51268 6.10114 1.51362 2.29403C1.51362 2.21653 1.51644 2.13653 1.53555 2.06216C1.62454 1.71497 1.90526 1.51842 2.31289 1.5181C3.07025 1.51758 3.82752 1.51754 4.58475 1.51751C5.1905 1.51747 5.79622 1.51744 6.40195 1.51717C6.47464 1.51685 6.54826 1.51623 6.62064 1.5081C6.98283 1.46779 7.26168 1.18374 7.28706 0.832179C7.31463 0.452499 7.08779 0.130318 6.72591 0.0337576C6.70279 0.0276219 6.6801 0.019624 6.65735 0.0116066Z" />
|
|
3
3
|
</svg>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, useState } from 'react';
|
|
2
2
|
import HeaderMobile from './HeaderMobile';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import {
|
|
5
5
|
setPreFilterDropdown,
|
|
6
6
|
setImageCaptureHelpModal,
|
|
@@ -51,13 +51,13 @@ function AppMobile({ children }: { children: ReactNode }) {
|
|
|
51
51
|
<FooterMobile />
|
|
52
52
|
</div>
|
|
53
53
|
</div>
|
|
54
|
-
<
|
|
54
|
+
<div
|
|
55
55
|
className={`box-filter ${isOpenFilter ? 'open' : 'close'} `}
|
|
56
|
-
position={'absolute'}
|
|
57
56
|
style={{
|
|
58
57
|
top: '0px',
|
|
59
58
|
height: '100%',
|
|
60
59
|
width: '100%',
|
|
60
|
+
position: 'absolute',
|
|
61
61
|
}}
|
|
62
62
|
>
|
|
63
63
|
<MobilePostFilter
|
|
@@ -65,13 +65,18 @@ function AppMobile({ children }: { children: ReactNode }) {
|
|
|
65
65
|
setOpenFilter(!isOpenFilter);
|
|
66
66
|
}}
|
|
67
67
|
/>
|
|
68
|
-
</
|
|
68
|
+
</div>
|
|
69
69
|
|
|
70
70
|
{preFilterDropdown && (
|
|
71
|
-
<
|
|
71
|
+
<div
|
|
72
72
|
className={`box-filter open`}
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
style={{
|
|
74
|
+
top: '0px',
|
|
75
|
+
height: '100%',
|
|
76
|
+
width: '100%',
|
|
77
|
+
zIndex: 999,
|
|
78
|
+
position: 'absolute',
|
|
79
|
+
}}
|
|
75
80
|
>
|
|
76
81
|
<div style={{ width: '100%' }} className={'wrap-filter-desktop'}>
|
|
77
82
|
<div className={'bg-white box-filter-desktop isMobile'}>
|
|
@@ -82,17 +87,17 @@ function AppMobile({ children }: { children: ReactNode }) {
|
|
|
82
87
|
/>
|
|
83
88
|
</div>
|
|
84
89
|
</div>
|
|
85
|
-
</
|
|
90
|
+
</div>
|
|
86
91
|
)}
|
|
87
92
|
|
|
88
93
|
{imageCaptureHelpModal && (
|
|
89
|
-
<
|
|
94
|
+
<div
|
|
90
95
|
className={`box-filter open`}
|
|
91
|
-
position={'absolute'}
|
|
92
96
|
style={{
|
|
93
97
|
top: '0px',
|
|
94
98
|
width: '100%',
|
|
95
99
|
zIndex: 100,
|
|
100
|
+
position: 'absolute',
|
|
96
101
|
}}
|
|
97
102
|
>
|
|
98
103
|
<div style={{ width: '100%' }} className={'wrap-filter-desktop'}>
|
|
@@ -104,7 +109,7 @@ function AppMobile({ children }: { children: ReactNode }) {
|
|
|
104
109
|
/>
|
|
105
110
|
</div>
|
|
106
111
|
</div>
|
|
107
|
-
</
|
|
112
|
+
</div>
|
|
108
113
|
)}
|
|
109
114
|
</>
|
|
110
115
|
);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Box } from '@material-ui/core';
|
|
2
1
|
import React, { useEffect, useState } from 'react';
|
|
3
2
|
import { useMediaQuery } from 'react-responsive';
|
|
4
3
|
import { ReactComponent as DownloadIcon } from 'common/assets/icons/download.svg';
|
|
@@ -128,7 +127,7 @@ function CadenasWebViewer({
|
|
|
128
127
|
}}
|
|
129
128
|
>
|
|
130
129
|
{is3dView && status3dView === 'loaded' && (
|
|
131
|
-
<
|
|
130
|
+
<div
|
|
132
131
|
style={{
|
|
133
132
|
background: '#E9E9EC',
|
|
134
133
|
width: '32px',
|
|
@@ -146,7 +145,7 @@ function CadenasWebViewer({
|
|
|
146
145
|
}}
|
|
147
146
|
>
|
|
148
147
|
<DownloadIcon width={14} height={14} color={'#FFF'} />
|
|
149
|
-
</
|
|
148
|
+
</div>
|
|
150
149
|
)}
|
|
151
150
|
</div>
|
|
152
151
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Box } from '@material-ui/core';
|
|
2
1
|
import React, { memo } from 'react';
|
|
3
2
|
import { useDropzone } from 'react-dropzone';
|
|
4
3
|
import { useAppDispatch, useAppSelector } from 'Store/Store';
|
|
@@ -55,39 +54,43 @@ function DragDropFile(props: Props) {
|
|
|
55
54
|
},
|
|
56
55
|
];
|
|
57
56
|
let region: RectCoords | undefined;
|
|
58
|
-
if (settings.regions) {
|
|
59
|
-
let res = await findRegions(image, settings);
|
|
60
|
-
dispatch(setRegions(res.regions));
|
|
61
|
-
region = res.selectedRegion;
|
|
62
|
-
dispatch(setSelectedRegion(region));
|
|
63
|
-
}
|
|
64
57
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
58
|
+
try {
|
|
59
|
+
if (settings.regions) {
|
|
60
|
+
let res = await findRegions(image, settings);
|
|
61
|
+
dispatch(setRegions(res.regions));
|
|
62
|
+
region = res.selectedRegion;
|
|
63
|
+
dispatch(setSelectedRegion(region));
|
|
64
|
+
}
|
|
65
|
+
} catch (error) {
|
|
66
|
+
} finally {
|
|
67
|
+
return find({
|
|
68
|
+
image,
|
|
69
|
+
settings,
|
|
70
|
+
region,
|
|
71
|
+
filters: !isEmpty(preFilter) ? preFilterValues : undefined,
|
|
72
|
+
}).then((res: any) => {
|
|
73
|
+
res?.results.forEach((item: any) => {
|
|
74
|
+
filters.push({
|
|
75
|
+
sku: item.sku,
|
|
76
|
+
score: item.score,
|
|
77
|
+
});
|
|
75
78
|
});
|
|
79
|
+
payload = {
|
|
80
|
+
...res,
|
|
81
|
+
filters,
|
|
82
|
+
};
|
|
83
|
+
dispatch(setSearchResults(payload));
|
|
84
|
+
onChangeLoading(false);
|
|
85
|
+
dispatch(updateStatusLoading(false));
|
|
86
|
+
return;
|
|
76
87
|
});
|
|
77
|
-
|
|
78
|
-
...res,
|
|
79
|
-
filters,
|
|
80
|
-
};
|
|
81
|
-
dispatch(setSearchResults(payload));
|
|
82
|
-
onChangeLoading(false);
|
|
83
|
-
dispatch(updateStatusLoading(false));
|
|
84
|
-
return;
|
|
85
|
-
});
|
|
88
|
+
}
|
|
86
89
|
},
|
|
87
90
|
});
|
|
88
91
|
|
|
89
92
|
return (
|
|
90
|
-
<
|
|
93
|
+
<div
|
|
91
94
|
className={`box-content-main`}
|
|
92
95
|
style={{ marginTop: 32, paddingTop: 0 }}
|
|
93
96
|
>
|
|
@@ -103,7 +106,7 @@ function DragDropFile(props: Props) {
|
|
|
103
106
|
})}
|
|
104
107
|
>
|
|
105
108
|
<>
|
|
106
|
-
<
|
|
109
|
+
<div
|
|
107
110
|
className={`box-content-drop ${isDragActive ? 'drag-active' : ''}`}
|
|
108
111
|
{...getRootProps({
|
|
109
112
|
onClick: e => {
|
|
@@ -111,9 +114,9 @@ function DragDropFile(props: Props) {
|
|
|
111
114
|
},
|
|
112
115
|
})}
|
|
113
116
|
>
|
|
114
|
-
<
|
|
117
|
+
<div style={{ marginBottom: 16 }}>
|
|
115
118
|
<IconDownload width={48} height={48} />
|
|
116
|
-
</
|
|
119
|
+
</div>
|
|
117
120
|
<label htmlFor="select_file" className="" style={{ fontSize: 14 }}>
|
|
118
121
|
<span className="fw-700 text-f14" style={{ paddingRight: '4px' }}>
|
|
119
122
|
{t('Drag and drop')}
|
|
@@ -129,10 +132,10 @@ function DragDropFile(props: Props) {
|
|
|
129
132
|
placeholder="Choose photo"
|
|
130
133
|
style={{ display: 'block', cursor: 'pointer' }}
|
|
131
134
|
/>
|
|
132
|
-
</
|
|
135
|
+
</div>
|
|
133
136
|
</>
|
|
134
137
|
</div>
|
|
135
|
-
</
|
|
138
|
+
</div>
|
|
136
139
|
);
|
|
137
140
|
}
|
|
138
141
|
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { Box, Button, Grid } from "@material-ui/core";
|
|
2
|
-
import DefaultSelect from "components/default-select";
|
|
3
1
|
import React from "react";
|
|
2
|
+
import { Button, Grid } from "@material-ui/core";
|
|
3
|
+
import DefaultSelect from "components/default-select";
|
|
4
4
|
|
|
5
5
|
interface Props {}
|
|
6
6
|
|
|
7
7
|
function FilterComponent(props: Props) {
|
|
8
|
-
const {} = props;
|
|
9
|
-
|
|
10
8
|
return (
|
|
11
|
-
<
|
|
9
|
+
<div className="box-main-filter">
|
|
12
10
|
<Grid container>
|
|
13
11
|
<Grid item className="item">
|
|
14
12
|
<DefaultSelect attribute="brand" />
|
|
@@ -26,7 +24,7 @@ function FilterComponent(props: Props) {
|
|
|
26
24
|
</Button>
|
|
27
25
|
</Grid>
|
|
28
26
|
</Grid>
|
|
29
|
-
</
|
|
27
|
+
</div>
|
|
30
28
|
);
|
|
31
29
|
}
|
|
32
30
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Button } from '@material-ui/core';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { ReactComponent as IconCameraMobile } from 'common/assets/icons/icon_camera_mobile.svg';
|
|
4
4
|
import CameraCustom from './drawer/cameraCustom';
|
|
@@ -123,14 +123,17 @@ function FooterMobile(props: Props): JSX.Element {
|
|
|
123
123
|
/>
|
|
124
124
|
</div>
|
|
125
125
|
)}
|
|
126
|
-
<
|
|
126
|
+
<div
|
|
127
127
|
className="box-footer-mobile"
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
128
|
+
style={{
|
|
129
|
+
paddingLeft: '16px',
|
|
130
|
+
paddingRight: '16px',
|
|
131
|
+
height: '64px',
|
|
132
|
+
display: 'flex',
|
|
133
|
+
position: 'relative',
|
|
134
|
+
alignItems: 'center',
|
|
135
|
+
justifyContent: 'space-between',
|
|
136
|
+
}}
|
|
134
137
|
>
|
|
135
138
|
<NavLink
|
|
136
139
|
style={{
|
|
@@ -163,7 +166,7 @@ function FooterMobile(props: Props): JSX.Element {
|
|
|
163
166
|
/>
|
|
164
167
|
</NavLink>
|
|
165
168
|
{history.location?.pathname !== '/' && !imageCaptureHelpModal && (
|
|
166
|
-
<
|
|
169
|
+
<div className="box-icon-camera-mobile">
|
|
167
170
|
<Button
|
|
168
171
|
onClick={() => {
|
|
169
172
|
setOpenModalCamera(!isOpenModalCamera);
|
|
@@ -171,7 +174,7 @@ function FooterMobile(props: Props): JSX.Element {
|
|
|
171
174
|
>
|
|
172
175
|
<IconCameraMobile color="#55566B" />
|
|
173
176
|
</Button>
|
|
174
|
-
</
|
|
177
|
+
</div>
|
|
175
178
|
)}
|
|
176
179
|
<div style={{ display: 'flex', gap: '24px' }}>
|
|
177
180
|
{history.location?.pathname !== '/' && (
|
|
@@ -212,15 +215,15 @@ function FooterMobile(props: Props): JSX.Element {
|
|
|
212
215
|
</div>
|
|
213
216
|
)}
|
|
214
217
|
</div>
|
|
215
|
-
</
|
|
216
|
-
<
|
|
218
|
+
</div>
|
|
219
|
+
<div className="box-screenshot-camera">
|
|
217
220
|
<CameraCustom
|
|
218
221
|
isToggle={isOpenModalCamera}
|
|
219
222
|
onToggleModal={() => {
|
|
220
223
|
setOpenModalCamera(!isOpenModalCamera);
|
|
221
224
|
}}
|
|
222
225
|
/>
|
|
223
|
-
</
|
|
226
|
+
</div>
|
|
224
227
|
</>
|
|
225
228
|
);
|
|
226
229
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Menu, MenuProps, withStyles } from '@material-ui/core';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import './common.scss';
|
|
4
4
|
import { useAppDispatch, useAppSelector } from 'Store/Store';
|
|
@@ -60,7 +60,7 @@ function Header(): JSX.Element {
|
|
|
60
60
|
}))(MenuItem);
|
|
61
61
|
|
|
62
62
|
return (
|
|
63
|
-
<
|
|
63
|
+
<div className="box-content" style={{ display: 'flex' }}>
|
|
64
64
|
<a
|
|
65
65
|
href={window.location.origin}
|
|
66
66
|
style={{ lineHeight: 0, paddingLeft: '10px' }}
|
|
@@ -146,7 +146,7 @@ function Header(): JSX.Element {
|
|
|
146
146
|
</StyledMenu>
|
|
147
147
|
</div>
|
|
148
148
|
)}
|
|
149
|
-
</
|
|
149
|
+
</div>
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
|