infinity-forge 2.7.3 → 2.7.5
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/dist/infinity-forge.css +1 -1
- package/dist/reset.css +1 -1
- package/dist/system/presentation/components/data/menu/component.js +1 -1
- package/dist/system/presentation/components/data/menu/component.js.map +1 -1
- package/dist/system/presentation/context/auth/components/private-page/index.js +0 -1
- package/dist/system/presentation/context/auth/components/private-page/index.js.map +1 -1
- package/dist/test/index.js +11 -1
- package/dist/test/index.js.map +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/months/index.js +0 -2
- package/dist/ui/components/form/input-date-picker/calendar/months/index.js.map +1 -1
- package/dist/ui/components/form/input-file/hooks/use-file.js +10 -6
- package/dist/ui/components/form/input-file/hooks/use-file.js.map +1 -1
- package/dist/ui/components/form/input-file/render-files/file-item/styles.js +1 -1
- package/dist/ui/components/form/input-file/render-files/file-item/styles.js.map +1 -1
- package/dist/ui/contexts/dynamic-sections/context.d.ts +2 -1
- package/dist/ui/contexts/dynamic-sections/context.js +10 -5
- package/dist/ui/contexts/dynamic-sections/context.js.map +1 -1
- package/dist/ui/contexts/dynamic-sections/get-initial-props-dynamic-section.d.ts +4 -4
- package/dist/ui/contexts/dynamic-sections/get-initial-props-dynamic-section.js +11 -16
- package/dist/ui/contexts/dynamic-sections/get-initial-props-dynamic-section.js.map +1 -1
- package/dist/ui/contexts/dynamic-sections/use-dynamic-section/edit-section.js +1 -1
- package/dist/ui/contexts/dynamic-sections/use-dynamic-section/edit-section.js.map +1 -1
- package/dist/ui/contexts/get-initial-data-ssr-infinity-forge.d.ts +2 -0
- package/dist/ui/contexts/get-initial-data-ssr-infinity-forge.js +68 -0
- package/dist/ui/contexts/get-initial-data-ssr-infinity-forge.js.map +1 -0
- package/dist/ui/contexts/i18n/context.js +1 -2
- package/dist/ui/contexts/i18n/context.js.map +1 -1
- package/dist/ui/contexts/i18n/edit-mode/index.js +9 -18
- package/dist/ui/contexts/i18n/edit-mode/index.js.map +1 -1
- package/dist/ui/contexts/i18n/get-initial-props.d.ts +4 -2
- package/dist/ui/contexts/i18n/get-initial-props.js +9 -16
- package/dist/ui/contexts/i18n/get-initial-props.js.map +1 -1
- package/dist/ui/contexts/index.d.ts +1 -0
- package/dist/ui/contexts/index.js +1 -0
- package/dist/ui/contexts/index.js.map +1 -1
- package/dist/ui/styles/reset.css +6 -0
- package/dist/ui/utils/_app_utils/generate_ref.js +1 -1
- package/dist/ui/utils/_app_utils/generate_ref.js.map +1 -1
- package/dist/ui/utils/_app_utils/get-pathname-ref.d.ts +5 -1
- package/dist/ui/utils/_app_utils/get-pathname-ref.js +8 -5
- package/dist/ui/utils/_app_utils/get-pathname-ref.js.map +1 -1
- package/package.json +1 -1
package/dist/infinity-forge.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
a{text-decoration:unset}html{font-size:10px!important}a,address,b,h1,h2,h3,h4,h5,i,label,li,p,span,strong,td,time{margin-bottom:0;text-rendering:optimizeLegibility!important}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}[class*=-bold]{font-weight:700}[class*=-semibold]{font-weight:600}[class*=-medium]{font-weight:500}[class*=-regular]{font-weight:400}[class*=-light]{font-weight:300}[class*=font-80]{font-size:8rem}[class*=font-72]{font-size:7.2rem}[class*=font-70]{font-size:7rem}[class*=font-64]{font-size:6.4rem}[class*=font-50]{font-size:5rem}[class*=font-48]{font-size:4.8rem}[class*=font-40]{font-size:4rem}[class*=font-36]{font-size:3.6rem}[class*=font-32]{font-size:3.2rem}[class*=font-24]{font-size:2.4rem}[class*=font-20]{font-size:2rem}[class*=font-18]{font-size:1.8rem}[class*=font-16]{font-size:1.6rem}[class*=font-15]{font-size:1.5rem}[class*=font-14]{font-size:1.4rem}[class*=font-13]{font-size:1.3rem}[class*=font-12]{font-size:1.2rem}@media only screen and (max-width:1600px){[class*=font-80]{font-size:6rem}[class*=font-72]{font-size:5.8rem}[class*=font-70]{font-size:5.5rem}[class*=font-64]{font-size:6rem}[class*=font-50]{font-size:4.8rem}[class*=font-48]{font-size:4.4rem}[class*=font-40]{font-size:3.8rem}[class*=font-32]{font-size:3rem}[class*=font-24]{font-size:2.3rem}[class*=font-20]{font-size:1.9rem}[class*=font-18]{font-size:1.7rem}[class*=font-16]{font-size:1.55rem}}@media only screen and (max-width:1400px){[class*=font-80]{font-size:5.4rem}[class*=font-72]{font-size:5.2rem}[class*=font-70]{font-size:4.9rem}[class*=font-64]{font-size:5.6rem}[class*=font-50]{font-size:4.6rem}[class*=font-48]{font-size:4.2rem}[class*=font-40]{font-size:3.6rem}[class*=font-32]{font-size:2.8rem}[class*=font-24]{font-size:2rem}[class*=font-20]{font-size:1.8rem}[class*=font-18]{font-size:1.65rem}[class*=font-16]{font-size:1.5rem}[class*=font-13]{font-size:1.25rem}}@media only screen and (max-width:1200px){[class*=font-80]{font-size:5.5rem}[class*=font-72]{font-size:4.8rem}[class*=font-70]{font-size:4.6rem}[class*=font-64]{font-size:5.2rem}[class*=font-50]{font-size:4.2rem}[class*=font-48]{font-size:4rem}[class*=font-40]{font-size:3.2rem}[class*=font-32]{font-size:2.4rem}[class*=font-24]{font-size:1.9rem}[class*=font-20]{font-size:1.75rem}[class*=font-18]{font-size:1.6rem}[class*=font-16]{font-size:1.45rem}[class*=font-13]{font-size:1.2rem}}@media only screen and (max-width:1024px){[class*=font-80]{font-size:5.2rem}[class*=font-72]{font-size:4.5rem}[class*=font-70]{font-size:4.3rem}[class*=font-64]{font-size:4.4rem}[class*=font-50]{font-size:4rem}[class*=font-48]{font-size:3.8rem}[class*=font-40]{font-size:3rem}[class*=font-32]{font-size:2.2rem}[class*=font-24]{font-size:1.8rem}[class*=font-20]{font-size:1.7rem}[class*=font-18]{font-size:1.55rem}[class*=font-16]{font-size:1.35rem}[class*=font-14]{font-size:1.3rem}}@media only screen and (max-width:900px){[class*=font-80]{font-size:5rem}[class*=font-72]{font-size:3.8rem}[class*=font-70]{font-size:3.6rem}[class*=font-64]{font-size:3.8rem}[class*=font-48]{font-size:3.6rem}[class*=font-40]{font-size:2.8rem}[class*=font-32]{font-size:2rem}}@media only screen and (max-width:768px){[class*=font-80]{font-size:4.5rem}[class*=font-72]{font-size:3.5rem}[class*=font-70]{font-size:3rem}[class*=font-64]{font-size:3.4rem}[class*=font-50]{font-size:3.8rem}[class*=font-48]{font-size:3.4rem}[class*=font-40]{font-size:2.6rem}[class*=font-32]{font-size:1.9rem}[class*=font-24]{font-size:1.7rem}[class*=font-20]{font-size:1.65rem}[class*=font-18]{font-size:1.5rem}[class*=font-16]{font-size:1.35rem}[class*=font-13]{font-size:1.15rem}}@media only screen and (max-width:650px){[class*=font-80]{font-size:4rem}[class*=font-64]{font-size:3.2rem}[class*=font-50]{font-size:3.5rem}[class*=font-48]{font-size:3.2rem}[class*=font-40]{font-size:2.5rem}[class*=font-32]{font-size:1.8rem}[class*=font-24]{font-size:1.65rem}[class*=font-18]{font-size:1.4rem}[class*=font-16]{font-size:1.3rem}}@media only screen and (max-width:500px){[class*=font-80]{font-size:3.5rem}[class*=font-64]{font-size:2.8rem}[class*=font-50]{font-size:3rem}[class*=font-48]{font-size:2.8rem}[class*=font-40]{font-size:2.3rem}[class*=font-24]{font-size:1.6rem}[class*=font-18]{font-size:1.25rem}[class*=font-16]{font-size:1.2rem}[class*=font-14]{font-size:1.2rem}}@media only screen and (max-width:390px){[class*=font-80]{font-size:3rem}[class*=font-72]{font-size:3rem}[class*=font-64]{font-size:2.6rem}[class*=font-50]{font-size:2.8rem}[class*=font-48]{font-size:2.6rem}[class*=font-40]{font-size:2.1rem}[class*=font-32]{font-size:1.7rem}[class*=font-24]{font-size:1.4rem}[class*=font-18]{font-size:1.2rem}}*,:after,:before{box-sizing:border-box}html{font-family:Roboto,sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:Roboto,sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}
|
|
2
|
-
*,:after,:before{box-sizing:border-box}a,button{cursor:pointer;outline:unset!important}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}.row{display:flex;gap:15px}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}.infinity_forge_modal{position:relative;z-index:10000000000}
|
|
2
|
+
*,:after,:before{box-sizing:border-box}a,button{cursor:pointer;outline:unset!important}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}.row{display:flex;gap:15px}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}.infinity_forge_modal{position:relative;z-index:10000000000}#__next{position:relative;z-index:1}
|
package/dist/reset.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:after,:before{box-sizing:border-box}a,button{cursor:pointer;outline:unset!important}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}.row{display:flex;gap:15px}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}.infinity_forge_modal{position:relative;z-index:10000000000}
|
|
1
|
+
*,:after,:before{box-sizing:border-box}a,button{cursor:pointer;outline:unset!important}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}.row{display:flex;gap:15px}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}.infinity_forge_modal{position:relative;z-index:10000000000}#__next{position:relative;z-index:1}
|
|
@@ -5,7 +5,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
var system_1 = require("../../../../../system/index.js");
|
|
6
6
|
function MenuSwitch() {
|
|
7
7
|
var settings = (0, system_1.useMenu)().settings;
|
|
8
|
-
switch (settings.mode) {
|
|
8
|
+
switch (settings === null || settings === void 0 ? void 0 : settings.mode) {
|
|
9
9
|
case 'CollapsedMenu':
|
|
10
10
|
return (0, jsx_runtime_1.jsx)(system_1.CollapsedMenu, {});
|
|
11
11
|
default: return (0, jsx_runtime_1.jsx)(system_1.OpenedMenu, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/menu/component.tsx"],"names":[],"mappings":";;;;AAAA,mCAA6D;AAE7D,SAAgB,UAAU;IAChB,IAAA,QAAQ,GAAK,IAAA,gBAAO,GAAE,SAAd,CAAc;IAE9B,QAAQ,QAAQ,
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/menu/component.tsx"],"names":[],"mappings":";;;;AAAA,mCAA6D;AAE7D,SAAgB,UAAU;IAChB,IAAA,QAAQ,GAAK,IAAA,gBAAO,GAAE,SAAd,CAAc;IAE9B,QAAQ,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAAE,CAAC;QACvB,KAAK,eAAe;YAClB,OAAO,uBAAC,sBAAa,KAAG,CAAA;QAE1B,OAAO,CAAC,CAAC,OAAO,uBAAC,mBAAU,KAAG,CAAA;IAChC,CAAC;AACH,CAAC;AATD,gCASC"}
|
|
@@ -72,7 +72,6 @@ function PrivatePage(_a) {
|
|
|
72
72
|
var _b = (0, react_1.useState)(false), interceptorIsReady = _b[0], setInterceptorIsReady = _b[1];
|
|
73
73
|
var router = (0, router_1.useRouter)();
|
|
74
74
|
var _c = (0, context_1.useAuthAdmin)(), user = _c.user, roleUser = _c.roleUser, signOut = _c.signOut, ForbiddenCompoent = _c.ForbiddenCompoent;
|
|
75
|
-
console.log("i18nRoles", roles, roleUser);
|
|
76
75
|
var hasAccess = roles && roles.length > 0 ? roles.includes(roleUser) : true;
|
|
77
76
|
(0, react_1.useEffect)(function () {
|
|
78
77
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/context/auth/components/private-page/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA2C;AAE3C,sCAAuC;AACvC,6CAAyC;AAEzC,2BAA2C;AAE3C,kCAAgC;AAChC,yCAA4C;AAI5C,SAAgB,WAAW,CAAC,EAA6C;QAA3C,QAAQ,cAAA,EAAE,KAAK,WAAA,EAAE,UAAU,gBAAA;IACjD,IAAA,KAA8C,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAA5D,kBAAkB,QAAA,EAAE,qBAAqB,QAAmB,CAAA;IAEnE,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IACpB,IAAA,KAAiD,IAAA,sBAAY,GAAE,EAA7D,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,iBAAiB,uBAAmB,CAAA;IAErE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/context/auth/components/private-page/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA2C;AAE3C,sCAAuC;AACvC,6CAAyC;AAEzC,2BAA2C;AAE3C,kCAAgC;AAChC,yCAA4C;AAI5C,SAAgB,WAAW,CAAC,EAA6C;QAA3C,QAAQ,cAAA,EAAE,KAAK,WAAA,EAAE,UAAU,gBAAA;IACjD,IAAA,KAA8C,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAA5D,kBAAkB,QAAA,EAAE,qBAAqB,QAAmB,CAAA;IAEnE,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IACpB,IAAA,KAAiD,IAAA,sBAAY,GAAE,EAA7D,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,iBAAiB,uBAAmB,CAAA;IAErE,IAAM,SAAS,GAAG,KAAK,IAAI,KAAK,CAAC,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AC,kBAAkB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAE,IAAG,OAAO,CAAA;IAC5E,IAAM,UAAU,GAAG,CAAC,IAAI,IAAI,MAAM,CAAC,OAAO,IAAI,kBAAkB,IAAI,CAAC,OAAO,CAAA;IAE5E,OAAO,CACL,6DACG,OAAO,IAAI,uBAAC,kBAAa,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,MAAM,GAAG,EAEnD,UAAU,IAAI,uBAAC,cAAc,KAAG,IAChC,CACJ,CAAA;AACH,CAAC"}
|
package/dist/test/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.HomePage = void 0;
|
|
4
7
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
var link_1 = __importDefault(require("next/link"));
|
|
5
9
|
var index_1 = require("../index.js");
|
|
6
10
|
function HomePage() {
|
|
7
11
|
var _a;
|
|
@@ -9,7 +13,13 @@ function HomePage() {
|
|
|
9
13
|
refSection: 'test',
|
|
10
14
|
fields: {},
|
|
11
15
|
}), Section = _b.Section, title = _b.title, images = _b.images;
|
|
12
|
-
|
|
16
|
+
var Section2 = (0, index_1.useDynamicSection)({
|
|
17
|
+
refSection: 'test1',
|
|
18
|
+
fields: {
|
|
19
|
+
images: {}
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Section, { children: [title, (0, jsx_runtime_1.jsx)("img", { height: 100, width: 100, src: (_a = images === null || images === void 0 ? void 0 : images[0]) === null || _a === void 0 ? void 0 : _a.url, alt: '' })] }), (0, jsx_runtime_1.jsx)(Section2.Section, { children: "a" }), (0, jsx_runtime_1.jsx)(link_1.default, { href: "/", children: "Home" }), (0, jsx_runtime_1.jsx)(link_1.default, { href: "/sobre", children: "sobre" })] }));
|
|
13
23
|
}
|
|
14
24
|
exports.HomePage = HomePage;
|
|
15
25
|
//# sourceMappingURL=index.js.map
|
package/dist/test/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":";;;;;;;AAAA,mDAA4B;AAC5B,kCAA8D;AAE9D,SAAgB,QAAQ;;IAChB,IAAA,KAA6B,IAAA,yBAAiB,EAAC;QACnD,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,EAAE;KACX,CAAC,EAHM,OAAO,aAAA,EAAE,KAAK,WAAA,EAAE,MAAM,YAG5B,CAAA;IAEF,IAAM,QAAQ,GAAG,IAAA,yBAAiB,EAAC;QACjC,UAAU,EAAE,OAAO;QACnB,MAAM,EAAE;YACN,MAAM,EAAE,EACP;SACF;KACF,CAAC,CAAA;IAGF,OAAO,CACL,6DACE,wBAAC,OAAO,eACL,KAAK,EAEN,gCAAK,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,CAAC,CAAC,0CAAE,GAAG,EAAE,GAAG,EAAC,EAAE,GAAG,IACtD,EAEV,uBAAC,QAAQ,CAAC,OAAO,oBAEE,EAEnB,uBAAC,cAAI,IAAC,IAAI,EAAE,GAAG,qBAAa,EAC5B,uBAAC,cAAI,IAAC,IAAI,EAAE,QAAQ,sBAAc,IACjC,CACJ,CAAA;AACH,CAAC;AA/BD,4BA+BC"}
|
|
@@ -47,8 +47,6 @@ function Months(_a) {
|
|
|
47
47
|
var monthDate = new Date(dateSelected.year, index, 1);
|
|
48
48
|
var isMonthInRange = ((date === null || date === void 0 ? void 0 : date.minDate) ? monthDate >= new Date(date === null || date === void 0 ? void 0 : date.minDate.getFullYear(), date === null || date === void 0 ? void 0 : date.minDate.getMonth(), 1) : true) &&
|
|
49
49
|
((date === null || date === void 0 ? void 0 : date.maxDate) ? monthDate <= new Date(date === null || date === void 0 ? void 0 : date.maxDate.getFullYear(), date === null || date === void 0 ? void 0 : date.maxDate.getMonth(), 1) : true);
|
|
50
|
-
console.log('isMonthInRange', ((date === null || date === void 0 ? void 0 : date.minDate) ? monthDate >= new Date(date === null || date === void 0 ? void 0 : date.minDate.getFullYear(), date === null || date === void 0 ? void 0 : date.minDate.getMonth(), 1) : true) &&
|
|
51
|
-
((date === null || date === void 0 ? void 0 : date.maxDate) ? monthDate <= new Date(date === null || date === void 0 ? void 0 : date.maxDate.getFullYear(), date === null || date === void 0 ? void 0 : date.maxDate.getMonth(), 1) : true));
|
|
52
50
|
var isSelected = values[name].getMonth() === index &&
|
|
53
51
|
values[name].getMonth() === dateSelected.month &&
|
|
54
52
|
values[name].getFullYear() === dateSelected.year;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/form/input-date-picker/calendar/months/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAyC;AAEzC,mCAAyC;AAEzC,0CAA6B;AAE7B,SAAgB,MAAM,CAAC,EASE;QARvB,QAAQ,cAAA,EACR,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,YAAY,kBAAA,EACZ,OAAO,aAAA,EACP,YAAY,kBAAA,EACZ,eAAe,qBAAA;IAET,IAAA,KAA4B,IAAA,yBAAgB,GAAE,EAA5C,MAAM,YAAA,EAAE,aAAa,mBAAuB,CAAA;IAEpD,IAAM,MAAM,GAAG,mBAAY,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAA;IAE5C,OAAO,CACL,uBAA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AE,UAAG,UAAU,IAAI,UAAU,eAAK,IAAI,IAAI,EAAE,CAAC,QAAQ,EAAE,KAAK,KAAK,IAAI,CAAC,UAAU,IAAI,SAAS,cAAI,CAAC,cAAc,IAAI,UAAU,CAAE,EACzI,OAAO,EAAE;oBACP,IAAI,CAAC,cAAc;wBAAE,OAAM;oBAE3B,eAAe,uBAAM,YAAY,KAAE,KAAK,EAAE,KAAK,IAAG,CAAA;oBAElD,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;wBACrB,aAAa,CAAC,IAAI,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAA;wBAC1D,YAAY,CAAC,KAAK,CAAC,CAAA;oBACrB,CAAC;oBAED,OAAO,CAAC,CAAC,CAAC,CAAA;gBACZ,CAAC,EACD,QAAQ,EAAE,CAAC,cAAc,YAExB,SAAS,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,IAhBrB,SAAS,CAiBP,CACV,CAAA;QACH,CAAC,CAAC,GACO,CACZ,CAAA;AACH,CAAC;AApDD,wBAoDC"}
|
|
@@ -62,8 +62,14 @@ var formik_1 = require("formik");
|
|
|
62
62
|
var ui_1 = require("../../../../../ui/index.js");
|
|
63
63
|
var use_file_elements_1 = require("./use-file-elements.js");
|
|
64
64
|
function useFile(props) {
|
|
65
|
-
var _a = (0, react_1.useState)(
|
|
66
|
-
|
|
65
|
+
var _a = (0, react_1.useState)(''), idFile = _a[0], setIdFile = _a[1];
|
|
66
|
+
(0, react_1.useEffect)(function () {
|
|
67
|
+
if (!idFile) {
|
|
68
|
+
setIdFile((0, ui_1.uid)(10));
|
|
69
|
+
}
|
|
70
|
+
}, [idFile]);
|
|
71
|
+
var _b = (0, react_1.useState)(false), loading = _b[0], setLoading = _b[1];
|
|
72
|
+
var _c = (0, formik_1.useField)({ name: (props === null || props === void 0 ? void 0 : props.name) || '' }), field = _c[0], _ = _c[1], handlers = _c[2];
|
|
67
73
|
function convertToFileSystemType(file) {
|
|
68
74
|
return {
|
|
69
75
|
id: Date.now(),
|
|
@@ -82,14 +88,13 @@ function useFile(props) {
|
|
|
82
88
|
case 0:
|
|
83
89
|
files = event.currentTarget.files;
|
|
84
90
|
if (!props.isLocalFile) return [3 /*break*/, 1];
|
|
85
|
-
console.log(
|
|
91
|
+
console.log('files', files);
|
|
86
92
|
fileSystemTypes = Array.from(files).map(convertToFileSystemType);
|
|
87
|
-
console.log(props.isAccumalativeFile, field.value);
|
|
88
93
|
if (props.isAccumalativeFile && field.value) {
|
|
89
94
|
handlers.setValue(__spreadArray(__spreadArray([], field.value, true), fileSystemTypes, true));
|
|
90
95
|
}
|
|
91
96
|
else {
|
|
92
|
-
console.log(fileSystemTypes,
|
|
97
|
+
console.log(fileSystemTypes, 'fileSystem');
|
|
93
98
|
handlers.setValue(fileSystemTypes);
|
|
94
99
|
}
|
|
95
100
|
return [3 /*break*/, 3];
|
|
@@ -106,7 +111,6 @@ function useFile(props) {
|
|
|
106
111
|
});
|
|
107
112
|
});
|
|
108
113
|
}
|
|
109
|
-
var idFile = (0, ui_1.uid)(10);
|
|
110
114
|
var fileState = { idFile: idFile, field: field, handlers: handlers, loading: loading, setLoading: setLoading, onChangeInputFile: onChangeInputFile };
|
|
111
115
|
var fileElements = (0, use_file_elements_1.useFileElements)({ fileProps: props, fileState: fileState });
|
|
112
116
|
return __assign(__assign({}, fileState), fileElements);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-file.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/input-file/hooks/use-file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"use-file.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/input-file/hooks/use-file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC,KAAK,CAAC,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;wBAEtE,IAAI,KAAK,CAAC,kBAAkB,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;4BAC5C,QAAQ,CAAC,QAAQ,iCAAK,KAAK,CAAC,KAAK,SAAK,eAAe,QAAE,CAAA;wBACzD,CAAC;6BAAM,CAAC;4BACN,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,YAAY,CAAC,CAAA;4BAC1C,QAAQ,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAA;wBACpC,CAAC;;;wBAED,UAAU,CAAC,IAAI,CAAC,CAAA;wBAEH,qBAAM,IAAA,eAAU,EAAC,EAAE,KAAK,OAAA,EAAE,CAAC,EAAA;;wBAAlC,IAAI,GAAG,SAA2B;wBAExC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;wBAEvB,UAAU,CAAC,KAAK,CAAC,CAAA;;;;;;KAEpB;IAED,IAAM,SAAS,GAAG,EAAE,MAAM,QAAA,EAAE,KAAK,OAAA,EAAE,QAAQ,UAAA,EAAE,OAAO,SAAA,EAAE,UAAU,YAAA,EAAE,iBAAiB,mBAAA,EAAE,CAAA;IAErF,IAAM,YAAY,GAAG,IAAA,mCAAe,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,WAAA,EAAE,CAAC,CAAA;IAErE,6BAAY,SAAS,GAAK,YAAY,EAAE;AAC1C,CAAC;AArDD,0BAqDC"}
|
|
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.FileItem = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.FileItem = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n gap: 15px;\n margin-bottom: 15px;\n\n .image {\n height: 90px;\n width: 90px;\n border-radius: 5px;\n border: 1px solid #aaa;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n\n img {\n object-fit: contain;\n height: 100%;\n width: 100%;\n }\n }\n\n .text {\n width: calc(100% - 105px);\n\n h3 {\n display: flex;\n justify-content: space-between;\n padding-top: 5px;\n gap: 10px;\n
|
|
12
|
+
exports.FileItem = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n gap: 15px;\n margin-bottom: 15px;\n\n .image {\n height: 90px;\n width: 90px;\n border-radius: 5px;\n border: 1px solid #aaa;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n\n img {\n object-fit: contain;\n height: 100%;\n width: 100%;\n }\n }\n\n .text {\n width: calc(100% - 105px);\n\n h3 {\n display: flex;\n justify-content: space-between;\n padding-top: 5px;\n gap: 10px;\n\n .left {\n display: flex;\n flex-direction: column;\n\n .file-name {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n max-width: 130px;\n }\n }\n\n .size {\n display: flex;\n flex-direction: column;\n gap: 3px;\n\n span {\n display: flex;\n gap: 3px;\n\n svg {\n width: 14px;\n height: auto;\n fill: #000;\n }\n }\n }\n }\n\n .actions {\n display: flex;\n gap: 10px;\n margin-top: 15px;\n\n > div > label {\n border: 0;\n padding: 0;\n height: unset;\n margin: 0;\n display: inline-block;\n\n &:hover {\n background-color: transparent;\n }\n }\n\n .action-button {\n padding: 0;\n border: 0;\n width: 30px;\n height: 30px;\n border-radius: 5px;\n background: #e1e1e1;\n color: #828282;\n cursor: pointer;\n padding: 8px;\n display: flex;\n transition: 0.3s;\n\n &:hover {\n background-color: #cbcaca;\n }\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"], ["\n display: flex;\n gap: 15px;\n margin-bottom: 15px;\n\n .image {\n height: 90px;\n width: 90px;\n border-radius: 5px;\n border: 1px solid #aaa;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n\n img {\n object-fit: contain;\n height: 100%;\n width: 100%;\n }\n }\n\n .text {\n width: calc(100% - 105px);\n\n h3 {\n display: flex;\n justify-content: space-between;\n padding-top: 5px;\n gap: 10px;\n\n .left {\n display: flex;\n flex-direction: column;\n\n .file-name {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n max-width: 130px;\n }\n }\n\n .size {\n display: flex;\n flex-direction: column;\n gap: 3px;\n\n span {\n display: flex;\n gap: 3px;\n\n svg {\n width: 14px;\n height: auto;\n fill: #000;\n }\n }\n }\n }\n\n .actions {\n display: flex;\n gap: 10px;\n margin-top: 15px;\n\n > div > label {\n border: 0;\n padding: 0;\n height: unset;\n margin: 0;\n display: inline-block;\n\n &:hover {\n background-color: transparent;\n }\n }\n\n .action-button {\n padding: 0;\n border: 0;\n width: 30px;\n height: 30px;\n border-radius: 5px;\n background: #e1e1e1;\n color: #828282;\n cursor: pointer;\n padding: 8px;\n display: flex;\n transition: 0.3s;\n\n &:hover {\n background-color: #cbcaca;\n }\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"])));
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/form/input-file/render-files/file-item/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,QAAQ,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/form/input-file/render-files/file-item/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,QAAQ,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,m/DAAA,g7DA6GpC,KAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DynamicSection } from '../../../system/index.js';
|
|
3
|
-
import { FetcherParams } from
|
|
3
|
+
import { FetcherParams } from '../../../ui/index.js';
|
|
4
4
|
declare function DynamicSectionProvider({ children, sections, }: {
|
|
5
5
|
sections: DynamicSection[];
|
|
6
6
|
children: React.ReactNode;
|
|
@@ -8,5 +8,6 @@ declare function DynamicSectionProvider({ children, sections, }: {
|
|
|
8
8
|
declare function useDynamicSectionContext(): {
|
|
9
9
|
sections: DynamicSection[];
|
|
10
10
|
mutate: (params?: FetcherParams) => void;
|
|
11
|
+
isEditMode: boolean;
|
|
11
12
|
};
|
|
12
13
|
export { DynamicSectionProvider, useDynamicSectionContext };
|
|
@@ -56,28 +56,33 @@ var ui_1 = require("../../../ui/index.js");
|
|
|
56
56
|
var dynamicSectionContext = (0, react_1.createContext)({
|
|
57
57
|
sections: [],
|
|
58
58
|
mutate: function () { },
|
|
59
|
+
isEditMode: false,
|
|
59
60
|
});
|
|
60
61
|
function DynamicSectionProvider(_a) {
|
|
61
62
|
var _this = this;
|
|
62
63
|
var children = _a.children, _b = _a.sections, sections = _b === void 0 ? [] : _b;
|
|
64
|
+
var user = (0, system_1.useAuthAdmin)().user;
|
|
63
65
|
var router = (0, router_1.useRouter)();
|
|
64
|
-
var
|
|
66
|
+
var hasUser = !!user;
|
|
67
|
+
var isEditMode = router.isReady && (router.query.editMode === 'true' || router.query.editMode === 'false') && hasUser;
|
|
65
68
|
var _c = (0, ui_1.useQuery)({
|
|
66
|
-
queryKey:
|
|
69
|
+
queryKey: 'RemoteDynamicSection_loadAll',
|
|
67
70
|
queryFn: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
68
71
|
var response;
|
|
69
72
|
return __generator(this, function (_a) {
|
|
70
73
|
switch (_a.label) {
|
|
71
|
-
case 0: return [4 /*yield*/, system_1.container
|
|
74
|
+
case 0: return [4 /*yield*/, system_1.container
|
|
75
|
+
.get(system_1.Types.RemoteDynamicSection)
|
|
76
|
+
.loadAll(__assign(__assign({}, (0, ui_1.getPathnameRef)({ router: router })), { isEditMode: true }))];
|
|
72
77
|
case 1:
|
|
73
78
|
response = _a.sent();
|
|
74
79
|
return [2 /*return*/, response];
|
|
75
80
|
}
|
|
76
81
|
});
|
|
77
82
|
}); },
|
|
78
|
-
enabled: isEditMode
|
|
83
|
+
enabled: isEditMode,
|
|
79
84
|
}), data = _c.data, isFetching = _c.isFetching, mutate = _c.mutate;
|
|
80
|
-
return ((0, jsx_runtime_1.jsxs)(dynamicSectionContext.Provider, { value: { sections: isEditMode ? data : sections, mutate: mutate }, children: [isFetching && isEditMode && data && (0, jsx_runtime_1.jsx)(ui_1.LoadingScreen, { color: '#000', size: 30, hasOpacity: true }), children] }));
|
|
85
|
+
return ((0, jsx_runtime_1.jsxs)(dynamicSectionContext.Provider, { value: { isEditMode: isEditMode, sections: isEditMode && Array.isArray(data) && data.length > 0 ? data : sections, mutate: mutate }, children: [isFetching && isEditMode && data && (0, jsx_runtime_1.jsx)(ui_1.LoadingScreen, { color: '#000', size: 30, hasOpacity: true }), children] }));
|
|
81
86
|
}
|
|
82
87
|
exports.DynamicSectionProvider = DynamicSectionProvider;
|
|
83
88
|
function useDynamicSectionContext() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/ui/contexts/dynamic-sections/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAiD;AAEjD,sCAAuC;AAEvC,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/ui/contexts/dynamic-sections/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAiD;AAEjD,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CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,MAAM,QAAA,EAAE,aAC5I,UAAU,IAAI,UAAU,IAAI,IAAI,IAAI,uBAAC,kBAAa,IAAC,KAAK,EAAC,MAAM,EAAC,IAAI,EAAE,EAAE,EAAE,UAAU,SAAG,EAEvF,QAAQ,IACsB,CAClC,CAAA;AACH,CAAC;AAMQ,wDAAsB;AAJ/B,SAAS,wBAAwB;IAC/B,OAAO,IAAA,kBAAU,EAAC,qBAAqB,CAAC,CAAA;AAC1C,CAAC;AAEgC,4DAAwB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { GetServerSidePropsContext, PreviewData } from "next";
|
|
3
|
+
import { ParsedUrlQuery } from "querystring";
|
|
4
|
+
export declare function getInitialPropsDynamicSection(context: GetServerSidePropsContext<ParsedUrlQuery, PreviewData>): Promise<any>;
|
|
@@ -38,26 +38,21 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getInitialPropsDynamicSection = void 0;
|
|
40
40
|
var ui_1 = require("../../../ui/index.js");
|
|
41
|
-
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
var context = _b.context;
|
|
47
|
-
return __generator(this, function (_d) {
|
|
48
|
-
switch (_d.label) {
|
|
41
|
+
function getInitialPropsDynamicSection(context) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
43
|
+
var params, sections, err_1;
|
|
44
|
+
return __generator(this, function (_a) {
|
|
45
|
+
switch (_a.label) {
|
|
49
46
|
case 0:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
remote = system_1.container.get(system_1.Types.RemoteDynamicSection);
|
|
55
|
-
return [4 /*yield*/, remote.loadAll((0, ui_1.getPathnameRef)(context))];
|
|
47
|
+
_a.trys.push([0, 2, , 3]);
|
|
48
|
+
params = new URLSearchParams((0, ui_1.getPathnameRef)({ pageUrl: context.resolvedUrl })).toString();
|
|
49
|
+
return [4 /*yield*/, fetch("".concat(process.env.api, "section?").concat(params)).then(function (r) { return r.json(); })];
|
|
56
50
|
case 1:
|
|
57
|
-
sections =
|
|
51
|
+
sections = _a.sent();
|
|
58
52
|
return [2 /*return*/, sections];
|
|
59
53
|
case 2:
|
|
60
|
-
err_1 =
|
|
54
|
+
err_1 = _a.sent();
|
|
55
|
+
console.log(err_1);
|
|
61
56
|
return [2 /*return*/, []];
|
|
62
57
|
case 3: return [2 /*return*/];
|
|
63
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-initial-props-dynamic-section.js","sourceRoot":"","sources":["../../../../src/ui/contexts/dynamic-sections/get-initial-props-dynamic-section.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-initial-props-dynamic-section.js","sourceRoot":"","sources":["../../../../src/ui/contexts/dynamic-sections/get-initial-props-dynamic-section.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAsC;AAItC,SAAsB,6BAA6B,CAAC,OAA+D;;;;;;;oBAGzG,MAAM,GAAG,IAAI,eAAe,CAAC,IAAA,mBAAc,EAAC,EAAE,OAAO,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;oBAC/E,qBAAM,KAAK,CAAC,UAAG,OAAO,CAAC,GAAG,CAAC,GAAG,qBAAW,MAAM,CAAE,CAAC,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,IAAI,EAAE,EAAR,CAAQ,CAAC,EAAA;;oBAAnF,QAAQ,GAAG,SAAwE;oBAEzF,sBAAO,QAAQ,EAAC;;;oBAEhB,OAAO,CAAC,GAAG,CAAC,KAAG,CAAC,CAAA;oBAChB,sBAAO,EAAE,EAAC;;;;;CAEb;AAXD,sEAWC"}
|
|
@@ -119,6 +119,6 @@ function EditSectionComponent(_a) {
|
|
|
119
119
|
}); }, name: 'enabled' }) }), (0, jsx_runtime_1.jsxs)("button", { type: 'button', onClick: function () { return setOpen(true); }, className: 'edit_section', children: [(0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconEdit', fill: '#000' }), "Editar"] })] })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: " " }))] }));
|
|
120
120
|
}
|
|
121
121
|
exports.EditSectionComponent = EditSectionComponent;
|
|
122
|
-
var Styles = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 10px;\n z-index:
|
|
122
|
+
var Styles = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 10px;\n z-index: 2;\n position: relative;\n\n & + * {\n z-index: 1;\n position: relative;\n }\n \n & + * {\n opacity: ", ";\n }\n\n .input_control {\n margin-bottom: 0;\n }\n\n .edit_section {\n font-size: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n border-radius: 3px;\n border: 1px solid #ccc;\n padding: 5px 10px;\n transition: 0.3s;\n\n\n &:hover {\n background-color: #f1f1f1;\n }\n\n svg {\n width: 10px !important;\n height: auto !important;\n fill: #000 !important;\n }\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 10px;\n z-index: 2;\n position: relative;\n\n & + * {\n z-index: 1;\n position: relative;\n }\n \n & + * {\n opacity: ", ";\n }\n\n .input_control {\n margin-bottom: 0;\n }\n\n .edit_section {\n font-size: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n border-radius: 3px;\n border: 1px solid #ccc;\n padding: 5px 10px;\n transition: 0.3s;\n\n\n &:hover {\n background-color: #f1f1f1;\n }\n\n svg {\n width: 10px !important;\n height: auto !important;\n fill: #000 !important;\n }\n }\n"])), function (props) { return (props.$enabled ? 1 : 0.6); });
|
|
123
123
|
var templateObject_1;
|
|
124
124
|
//# sourceMappingURL=edit-section.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-section.js","sourceRoot":"","sources":["../../../../../src/ui/contexts/dynamic-sections/use-dynamic-section/edit-section.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAGhC,sCAAuC;AAEvC,wEAAsC;AAEtC,2BAUa;AACb,mCAAiF;AAIjF,SAAgB,oBAAoB,CAAC,EAQpC;IARD,iBA2GC;QA1GC,MAAM,YAAA,EACN,UAAU,gBAAA,EACV,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAA;IAMb,IAAA,KAAkB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAhC,IAAI,QAAA,EAAE,OAAO,QAAmB,CAAA;IAE/B,IAAA,KAAK,GAAK,IAAA,kBAAS,GAAE,MAAhB,CAAgB;IAErB,IAAA,WAAW,GAAK,IAAA,aAAQ,GAAE,YAAf,CAAe;IAClC,IAAM,OAAO,GAAG,IAAA,mBAAc,EAAC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,OAAO,EAAb,CAAa,CAAC,CAAA;IAExD,SAAe,YAAY,CAAC,IAAI;;;;;4BACb,qBAAM,kBAAS;6BAC7B,GAAG,CAAuB,cAAK,CAAC,oBAAoB,CAAC,CACrD,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,EAAE,EAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,EAAA;;wBAFrC,QAAQ,GAAG,SAE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C,CAAA;;;;iCAC7E,EACD,IAAI,EAAC,SAAS,GACd,GACU,EAEd,oCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,cAAM,OAAA,OAAO,CAAC,IAAI,CAAC,EAAb,CAAa,EAAE,SAAS,EAAC,cAAc,aAC1E,uBAAC,SAAI,IAAC,IAAI,EAAC,UAAU,EAAC,IAAI,EAAC,MAAM,GAAG,cAG7B,IACF,CACV,CAAC,CAAC,CAAC,CACF,iEAAM,CACP,IACA,CACJ,CAAA;AACH,CAAC;AA3GD,oDA2GC;AAED,IAAM,MAAM,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"edit-section.js","sourceRoot":"","sources":["../../../../../src/ui/contexts/dynamic-sections/use-dynamic-section/edit-section.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAGhC,sCAAuC;AAEvC,wEAAsC;AAEtC,2BAUa;AACb,mCAAiF;AAIjF,SAAgB,oBAAoB,CAAC,EAQpC;IARD,iBA2GC;QA1GC,MAAM,YAAA,EACN,UAAU,gBAAA,EACV,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAA;IAMb,IAAA,KAAkB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAhC,IAAI,QAAA,EAAE,OAAO,QAAmB,CAAA;IAE/B,IAAA,KAAK,GAAK,IAAA,kBAAS,GAAE,MAAhB,CAAgB;IAErB,IAAA,WAAW,GAAK,IAAA,aAAQ,GAAE,YAAf,CAAe;IAClC,IAAM,OAAO,GAAG,IAAA,mBAAc,EAAC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,OAAO,EAAb,CAAa,CAAC,CAAA;IAExD,SAAe,YAAY,CAAC,IAAI;;;;;4BACb,qBAAM,kBAAS;6BAC7B,GAAG,CAAuB,cAAK,CAAC,oBAAoB,CAAC,CACrD,CAAA,OAAO,aAAP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AM,OAAO,CAAC,8BAA8B,CAAC,EAAA;;4CAA7C,SAA6C,CAAA;4CAC7C,WAAW,CAAC,EAAE,OAAO,EAAE,+BAA+B,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAA;;;;iCAC7E,EACD,IAAI,EAAC,SAAS,GACd,GACU,EAEd,oCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,cAAM,OAAA,OAAO,CAAC,IAAI,CAAC,EAAb,CAAa,EAAE,SAAS,EAAC,cAAc,aAC1E,uBAAC,SAAI,IAAC,IAAI,EAAC,UAAU,EAAC,IAAI,EAAC,MAAM,GAAG,cAG7B,IACF,CACV,CAAC,CAAC,CAAC,CACF,iEAAM,CACP,IACA,CACJ,CAAA;AACH,CAAC;AA3GD,oDA2GC;AAED,IAAM,MAAM,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,swBAAuB,wOAepC,EAAqC,ydA6BnD,KA7Bc,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAA1B,CAA0B,CA6BnD,CAAA"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
exports.GetInfinityForgeSSRFunctions = void 0;
|
|
51
|
+
var i18n_1 = require("./i18n/index.js");
|
|
52
|
+
var dynamic_sections_1 = require("./dynamic-sections/index.js");
|
|
53
|
+
var GetInfinityForgeSSRFunctions = function (context, roles) { return __awaiter(void 0, void 0, void 0, function () {
|
|
54
|
+
var i18n, dynamicSections;
|
|
55
|
+
return __generator(this, function (_a) {
|
|
56
|
+
switch (_a.label) {
|
|
57
|
+
case 0: return [4 /*yield*/, (0, i18n_1.i18nGetInitialProps)(context, roles || [])];
|
|
58
|
+
case 1:
|
|
59
|
+
i18n = _a.sent();
|
|
60
|
+
return [4 /*yield*/, (0, dynamic_sections_1.getInitialPropsDynamicSection)(context)];
|
|
61
|
+
case 2:
|
|
62
|
+
dynamicSections = _a.sent();
|
|
63
|
+
return [2 /*return*/, { props: __assign(__assign({}, i18n), { dynamicSections: dynamicSections }) }];
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}); };
|
|
67
|
+
exports.GetInfinityForgeSSRFunctions = GetInfinityForgeSSRFunctions;
|
|
68
|
+
//# sourceMappingURL=get-initial-data-ssr-infinity-forge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-initial-data-ssr-infinity-forge.js","sourceRoot":"","sources":["../../../src/ui/contexts/get-initial-data-ssr-infinity-forge.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+BAA4C;AAC5C,uDAAkE;AAE3D,IAAM,4BAA4B,GAAuB,UAAO,OAAO,EAAE,KAAgB;;;;oBACjF,qBAAM,IAAA,0BAAmB,EAAC,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC,EAAA;;gBAAtD,IAAI,GAAG,SAA+C;gBAEpC,qBAAM,IAAA,gDAA6B,EAAC,OAAO,CAAC,EAAA;;gBAA9D,eAAe,GAAG,SAA4C;gBAEpE,sBAAO,EAAE,KAAK,wBAAO,IAAI,KAAE,eAAe,iBAAA,GAAE,EAAE,EAAA;;;KAC/C,CAAA;AANY,QAAA,4BAA4B,gCAMxC"}
|
|
@@ -77,7 +77,7 @@ function I18nProvider(props) {
|
|
|
77
77
|
var response;
|
|
78
78
|
return __generator(this, function (_a) {
|
|
79
79
|
switch (_a.label) {
|
|
80
|
-
case 0: return [4 /*yield*/, (0, sites_1.api)({ method: 'get', url: 'word', body: (0, ui_1.getPathnameRef)(
|
|
80
|
+
case 0: return [4 /*yield*/, (0, sites_1.api)({ method: 'get', url: 'word', body: (0, ui_1.getPathnameRef)({ router: router }) })];
|
|
81
81
|
case 1:
|
|
82
82
|
response = _a.sent();
|
|
83
83
|
return [2 /*return*/, response];
|
|
@@ -87,7 +87,6 @@ function I18nProvider(props) {
|
|
|
87
87
|
enabled: isReady && query.editMode === 'true',
|
|
88
88
|
}), data = _a.data, isFetching = _a.isFetching, mutate = _a.mutate;
|
|
89
89
|
var words = data || props.words;
|
|
90
|
-
console.log("roleToEditLanguage", props.roleToEditLanguage);
|
|
91
90
|
return ((0, jsx_runtime_1.jsxs)(I18nContext.Provider, { value: __assign(__assign({}, props), { isFetchingWords: isFetching, words: words, mutate: mutate, changeLanguage: changeLanguage }), children: [router.query.editMode === "true" ? ((0, jsx_runtime_1.jsx)(system_1.PrivatePage, { roles: props.roleToEditLanguage, children: props.children })) : (props.children), !props.disableEditMode && (0, jsx_runtime_1.jsx)(edit_mode_1.EditMode, {})] }));
|
|
92
91
|
}
|
|
93
92
|
exports.I18nProvider = I18nProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/ui/contexts/i18n/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAiD;AAEjD,sCAAuC;AAEvC,iCAA6B;AAC7B,2BAA+C;AAC/C,mCAAgD;AAEhD,yCAAsC;AAItC,IAAM,WAAW,GAAG,IAAA,qBAAa,EAAkB;IACjD,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,EAAE;IACb,KAAK,EAAE,EAAE;IACT,eAAe,EAAE,IAAI;IACrB,MAAM,EAAE,cAAO,CAAC;IAChB,aAAa,EAAE,EAAE;IACjB,cAAc,EAAE,cAAM,OAAA,SAAS,EAAT,CAAS;CAChC,CAAC,CAAA;AAEF,SAAS,YAAY,CAAC,KAAuB;IAA7C,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/ui/contexts/i18n/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAiD;AAEjD,sCAAuC;AAEvC,iCAA6B;AAC7B,2BAA+C;AAC/C,mCAAgD;AAEhD,yCAAsC;AAItC,IAAM,WAAW,GAAG,IAAA,qBAAa,EAAkB;IACjD,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,EAAE;IACb,KAAK,EAAE,EAAE;IACT,eAAe,EAAE,IAAI;IACrB,MAAM,EAAE,cAAO,CAAC;IAChB,aAAa,EAAE,EAAE;IACjB,cAAc,EAAE,cAAM,OAAA,SAAS,EAAT,CAAS;CAChC,CAAC,CAAA;AAEF,SAAS,YAAY,CAAC,KAAuB;IAA7C,iBAkCC;IAjCC,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAClB,IAAA,QAAQ,GAA6B,MAAM,SAAnC,EAAE,MAAM,GAAqB,MAAM,OAA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C;AAQQ,oCAAY;AANrB,SAAS,OAAO;IACd,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,WAAW,CAAC,CAAA;IAEvC,OAAO,OAAO,CAAA;AAChB,CAAC;AAEsB,0BAAO"}
|
|
@@ -1,25 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.EditMode = void 0;
|
|
7
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
var react_1 = __importDefault(require("react"));
|
|
9
5
|
var router_1 = require("next/router");
|
|
10
6
|
var ui_1 = require("../../../../ui/index.js");
|
|
11
7
|
var system_1 = require("../../../../system/index.js");
|
|
12
8
|
function EditMode() {
|
|
13
|
-
var
|
|
9
|
+
var user = (0, system_1.useAuthAdmin)().user;
|
|
14
10
|
var router = (0, router_1.useRouter)();
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (storage) {
|
|
19
|
-
setHasPermission(true);
|
|
20
|
-
}
|
|
21
|
-
}, []);
|
|
22
|
-
if (!hasPermission || router.query.editMode === "false") {
|
|
11
|
+
var hasUser = !!(user);
|
|
12
|
+
var isEditMode = router.isReady && (router.query.editMode === "true" || router.query.editMode === "false") && hasUser;
|
|
13
|
+
if (!isEditMode) {
|
|
23
14
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
24
15
|
}
|
|
25
16
|
return ((0, jsx_runtime_1.jsx)("button", { type: 'button', style: {
|
|
@@ -29,11 +20,11 @@ function EditMode() {
|
|
|
29
20
|
right: 20,
|
|
30
21
|
width: '100px',
|
|
31
22
|
height: '35px',
|
|
32
|
-
border:
|
|
33
|
-
fontWeight:
|
|
34
|
-
color:
|
|
35
|
-
background: router.query.editMode ===
|
|
36
|
-
}, onClick: function () { return (0, ui_1.updateRoute)({ router: router, params: { editMode: router.query.editMode ===
|
|
23
|
+
border: '0',
|
|
24
|
+
fontWeight: 'bold',
|
|
25
|
+
color: '#fff',
|
|
26
|
+
background: router.query.editMode === 'true' ? 'green' : '#000',
|
|
27
|
+
}, onClick: function () { return (0, ui_1.updateRoute)({ router: router, params: { editMode: router.query.editMode === 'true' ? 'false' : 'true' } }); }, children: "Modo edi\u00E7\u00E3o" }));
|
|
37
28
|
}
|
|
38
29
|
exports.EditMode = EditMode;
|
|
39
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/contexts/i18n/edit-mode/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/contexts/i18n/edit-mode/index.tsx"],"names":[],"mappings":";;;;AAEA,sCAAuC;AAEvC,2BAAkC;AAClC,mCAAwC;AAExC,SAAgB,QAAQ;IAEf,IAAA,IAAI,GAAI,IAAA,qBAAY,GAAE,KAAlB,CAAmB;IAE9B,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAC;IAE3B,IAAM,OAAO,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IACxB,IAAM,UAAU,GAAG,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,KAAK,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,KAAK,OAAO,CAAC,IAAI,OAAO,CAAA;IAEvH,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,kDAAK,CAAA;IACd,CAAC;IAED,OAAO,CACL,mCACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE;YACL,QAAQ,EAAE,OAAO;YACjB,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,GAAG;YACX,UAAU,EAAE,MAAM;YAClB,KAAK,EAAE,MAAM;YACb,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;SAChE,EACD,OAAO,EAAE,cAAM,OAAA,IAAA,gBAAW,EAAC,EAAE,MAAM,QAAA,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAAlG,CAAkG,sCAG1G,CACV,CAAA;AACH,CAAC;AAjCD,4BAiCC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
2
|
import { I18nContextProps } from './interfaces.js';
|
|
3
|
-
|
|
3
|
+
import { ParsedUrlQuery } from 'querystring';
|
|
4
|
+
import { GetServerSidePropsContext, PreviewData } from 'next';
|
|
5
|
+
export declare function i18nGetInitialProps(context: GetServerSidePropsContext<ParsedUrlQuery, PreviewData>, roleToEditLanguage: I18nContextProps["roleToEditLanguage"], disableEditMode?: boolean): Promise<{
|
|
4
6
|
i18n: I18nContextProps | null;
|
|
5
7
|
}>;
|
|
@@ -42,36 +42,29 @@ var ui_1 = require("../../../ui/index.js");
|
|
|
42
42
|
function i18nGetInitialProps(context_1, roleToEditLanguage_1) {
|
|
43
43
|
return __awaiter(this, arguments, void 0, function (context, roleToEditLanguage, disableEditMode) {
|
|
44
44
|
var words, languages, err_1;
|
|
45
|
-
var _a, _b, _c;
|
|
46
45
|
if (disableEditMode === void 0) { disableEditMode = false; }
|
|
47
|
-
return __generator(this, function (
|
|
48
|
-
switch (
|
|
46
|
+
return __generator(this, function (_a) {
|
|
47
|
+
switch (_a.label) {
|
|
49
48
|
case 0:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return [2 /*return*/, {
|
|
53
|
-
i18n: null,
|
|
54
|
-
}];
|
|
55
|
-
}
|
|
56
|
-
return [4 /*yield*/, (0, sites_1.api)({ method: 'get', url: 'word', body: (0, ui_1.getPathnameRef)(context) })];
|
|
49
|
+
_a.trys.push([0, 3, , 4]);
|
|
50
|
+
return [4 /*yield*/, (0, sites_1.api)({ method: 'get', url: 'word', body: (0, ui_1.getPathnameRef)({ pageUrl: context === null || context === void 0 ? void 0 : context.resolvedUrl }) })];
|
|
57
51
|
case 1:
|
|
58
|
-
words =
|
|
52
|
+
words = _a.sent();
|
|
59
53
|
return [4 /*yield*/, fetch(process.env.api + 'language').then(function (r) { return r.json(); })];
|
|
60
54
|
case 2:
|
|
61
|
-
languages =
|
|
55
|
+
languages = _a.sent();
|
|
62
56
|
return [2 /*return*/, {
|
|
63
57
|
i18n: {
|
|
64
58
|
words: words,
|
|
65
59
|
disableEditMode: disableEditMode,
|
|
66
60
|
roleToEditLanguage: roleToEditLanguage,
|
|
67
61
|
languages: languages,
|
|
68
|
-
language:
|
|
69
|
-
languagesNext:
|
|
62
|
+
language: context === null || context === void 0 ? void 0 : context.locale,
|
|
63
|
+
languagesNext: context === null || context === void 0 ? void 0 : context.locales,
|
|
70
64
|
},
|
|
71
65
|
}];
|
|
72
66
|
case 3:
|
|
73
|
-
err_1 =
|
|
74
|
-
console.log(err_1);
|
|
67
|
+
err_1 = _a.sent();
|
|
75
68
|
return [2 /*return*/, {
|
|
76
69
|
i18n: null,
|
|
77
70
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-initial-props.js","sourceRoot":"","sources":["../../../../src/ui/contexts/i18n/get-initial-props.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA6B;
|
|
1
|
+
{"version":3,"file":"get-initial-props.js","sourceRoot":"","sources":["../../../../src/ui/contexts/i18n/get-initial-props.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA6B;AAE7B,2BAAqC;AAMrC,SAAsB,mBAAmB;wDAAC,OAA+D,EAAE,kBAA0D,EAAE,eAAuB;;QAAvB,gCAAA,EAAA,uBAAuB;;;;;oBAG5K,qBAAM,IAAA,WAAG,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAA,mBAAc,EAAC,EAAE,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,EAAE,CAAC,EAAG,CAAC,EAAA;;oBAA3G,KAAK,GAAG,SAAmG;oBAC/F,qBAAM,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,UAAU,CAAC,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,IAAI,EAAE,EAAR,CAAQ,CAAC,EAAA;;oBAA3E,SAAS,GAAG,SAA+D;oBAEjF,sBAAO;4BACL,IAAI,EAAE;gCACJ,KAAK,OAAA;gCACL,eAAe,iBAAA;gCACf,kBAAkB,oBAAA;gCAClB,SAAS,EAAE,SAAS;gCACpB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;gCACzB,aAAa,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;6BAChC;yBACF,EAAA;;;oBAED,sBAAO;4BACL,IAAI,EAAE,IAAI;yBACX,EAAA;;;;;CAEJ;AArBD,kDAqBC"}
|
|
@@ -18,4 +18,5 @@ __exportStar(require("./i18n/index.js"), exports);
|
|
|
18
18
|
__exportStar(require("./toast/index.js"), exports);
|
|
19
19
|
__exportStar(require("./route-loading/index.js"), exports);
|
|
20
20
|
__exportStar(require("./dynamic-sections/index.js"), exports);
|
|
21
|
+
__exportStar(require("./get-initial-data-ssr-infinity-forge.js"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,0CAAuB;AACvB,kDAA+B;AAC/B,qDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,0CAAuB;AACvB,kDAA+B;AAC/B,qDAAkC;AAClC,wEAAqD"}
|
package/dist/ui/styles/reset.css
CHANGED
|
@@ -4,7 +4,7 @@ exports.normalizeString = exports.generateRef = void 0;
|
|
|
4
4
|
var get_pathname_ref_1 = require("./get-pathname-ref.js");
|
|
5
5
|
function generateRef(referenceID, router, isGlobal) {
|
|
6
6
|
var _a;
|
|
7
|
-
return ((isGlobal ? 'global' : normalizeString((_a = (0, get_pathname_ref_1.getPathnameRef)(
|
|
7
|
+
return ((isGlobal ? 'global' : normalizeString((_a = (0, get_pathname_ref_1.getPathnameRef)({ router: router })) === null || _a === void 0 ? void 0 : _a.page)) +
|
|
8
8
|
'_' +
|
|
9
9
|
normalizeString(referenceID));
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate_ref.js","sourceRoot":"","sources":["../../../../src/ui/utils/_app_utils/generate_ref.ts"],"names":[],"mappings":";;;AACA,uDAAmD;AAEnD,SAAgB,WAAW,CAAC,WAAmB,EAAE,MAAkB,EAAE,QAAkB;;IACrF,OAAO,CACL,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,MAAA,IAAA,iCAAc,EAAC,
|
|
1
|
+
{"version":3,"file":"generate_ref.js","sourceRoot":"","sources":["../../../../src/ui/utils/_app_utils/generate_ref.ts"],"names":[],"mappings":";;;AACA,uDAAmD;AAEnD,SAAgB,WAAW,CAAC,WAAmB,EAAE,MAAkB,EAAE,QAAkB;;IACrF,OAAO,CACL,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,MAAA,IAAA,iCAAc,EAAC,EAAE,MAAM,QAAA,EAAE,CAAC,0CAAE,IAAI,CAAC,CAAC;QACzE,GAAG;QACH,eAAe,CAAC,WAAW,CAAC,CAC7B,CAAA;AACH,CAAC;AAND,kCAMC;AAED,SAAgB,eAAe,CAAC,KAAa;IAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,EAAE,CAAA;IACX,CAAC;IAED,OAAO,KAAK;SACT,SAAS,CAAC,KAAK,CAAC;SAChB,UAAU,CAAC,kBAAkB,EAAE,EAAE,CAAC;SAClC,UAAU,CAAC,eAAe,EAAE,GAAG,CAAC;SAChC,UAAU,CAAC,QAAQ,EAAE,GAAG,CAAC;SACzB,UAAU,CAAC,UAAU,EAAE,EAAE,CAAC;SAC1B,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC;SACnB,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC;SACnB,WAAW,EAAE,CAAA;AAClB,CAAC;AAdD,0CAcC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { AppContext } from 'next/app';
|
|
2
2
|
import { NextRouter } from 'next/router';
|
|
3
|
-
export declare function getPathnameRef(
|
|
3
|
+
export declare function getPathnameRef(props: {
|
|
4
|
+
context?: AppContext;
|
|
5
|
+
router?: NextRouter;
|
|
6
|
+
pageUrl?: string;
|
|
7
|
+
}): {
|
|
4
8
|
page: string;
|
|
5
9
|
};
|
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getPathnameRef = void 0;
|
|
4
4
|
var generate_ref_1 = require("./generate_ref.js");
|
|
5
|
-
function getPathnameRef(
|
|
6
|
-
var _a;
|
|
7
|
-
var pathname = (
|
|
8
|
-
if (pathname.includes("?")) {
|
|
5
|
+
function getPathnameRef(props) {
|
|
6
|
+
var _a, _b, _c;
|
|
7
|
+
var pathname = ((_a = props === null || props === void 0 ? void 0 : props.router) === null || _a === void 0 ? void 0 : _a.asPath) || ((_c = (_b = props === null || props === void 0 ? void 0 : props.context) === null || _b === void 0 ? void 0 : _b.router) === null || _c === void 0 ? void 0 : _c.asPath) || (props === null || props === void 0 ? void 0 : props.pageUrl);
|
|
8
|
+
if (pathname === null || pathname === void 0 ? void 0 : pathname.includes("?")) {
|
|
9
9
|
pathname = pathname.split("?")[0];
|
|
10
10
|
}
|
|
11
11
|
if (pathname === '/' || !pathname) {
|
|
12
12
|
return { page: 'home' };
|
|
13
13
|
}
|
|
14
|
+
if (pathname[0].includes("/")) {
|
|
15
|
+
pathname = pathname.replace("/", "");
|
|
16
|
+
}
|
|
14
17
|
var parts = pathname.split('/');
|
|
15
|
-
return { page: (0, generate_ref_1.normalizeString)(parts[
|
|
18
|
+
return { page: (0, generate_ref_1.normalizeString)(parts[0]) };
|
|
16
19
|
}
|
|
17
20
|
exports.getPathnameRef = getPathnameRef;
|
|
18
21
|
//# sourceMappingURL=get-pathname-ref.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-pathname-ref.js","sourceRoot":"","sources":["../../../../src/ui/utils/_app_utils/get-pathname-ref.ts"],"names":[],"mappings":";;;AAGA,+CAAgD;AAEhD,SAAgB,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"get-pathname-ref.js","sourceRoot":"","sources":["../../../../src/ui/utils/_app_utils/get-pathname-ref.ts"],"names":[],"mappings":";;;AAGA,+CAAgD;AAEhD,SAAgB,cAAc,CAAC,KAAoE;;IACjG,IAAI,QAAQ,GAAG,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,MAAM,MAAI,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,0CAAE,MAAM,0CAAE,MAAM,CAAA,KAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,CAAA,CAAA;IAExF,IAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC3B,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IACnC,CAAC;IAED,IAAI,QAAQ,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAC,CAAA;IACxB,CAAC;IAED,IAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC7B,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAA;IACtC,CAAC;IAED,IAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAEjC,OAAO,EAAE,IAAI,EAAE,IAAA,8BAAe,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAG,CAAA;AAC7C,CAAC;AAlBD,wCAkBC"}
|