infinity-forge 3.7.4 → 3.8.0

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.
Files changed (33) hide show
  1. package/LICENSE +20 -20
  2. package/dist/infinity-forge.css +0 -3
  3. package/dist/infra/index.d.ts +1 -0
  4. package/dist/infra/index.js +1 -0
  5. package/dist/infra/index.js.map +1 -1
  6. package/dist/infra/swagger/generate-swagger.d.ts +1 -0
  7. package/dist/infra/swagger/generate-swagger.js +164 -0
  8. package/dist/infra/swagger/generate-swagger.js.map +1 -0
  9. package/dist/infra/swagger/index.d.ts +1 -0
  10. package/dist/infra/swagger/index.js +18 -0
  11. package/dist/infra/swagger/index.js.map +1 -0
  12. package/dist/sites/components/default-pages/common-ssrs-api/blog/index.d.ts +1 -1
  13. package/dist/sites/components/default-pages/common-ssrs-api/blog/index.js +2 -2
  14. package/dist/sites/components/default-pages/common-ssrs-api/blog/index.js.map +1 -1
  15. package/dist/sites/components/default-pages/common-ssrs-api/post/index.d.ts +1 -1
  16. package/dist/sites/components/default-pages/common-ssrs-api/post/index.js +2 -2
  17. package/dist/sites/components/default-pages/common-ssrs-api/post/index.js.map +1 -1
  18. package/dist/sites/public/fonts/fonts.css +760 -760
  19. package/dist/ui/components/form/input-youtube/index.js +1 -1
  20. package/dist/ui/components/form/input-youtube/index.js.map +1 -1
  21. package/dist/ui/icons/index.d.ts +2 -0
  22. package/dist/ui/icons/index.js +2 -0
  23. package/dist/ui/icons/index.js.map +1 -1
  24. package/dist/ui/icons/render/hut.d.ts +2 -0
  25. package/dist/ui/icons/render/hut.js +10 -0
  26. package/dist/ui/icons/render/hut.js.map +1 -0
  27. package/dist/ui/icons/render/map-floor.d.ts +2 -0
  28. package/dist/ui/icons/render/map-floor.js +10 -0
  29. package/dist/ui/icons/render/map-floor.js.map +1 -0
  30. package/dist/ui/icons/render/mobile.js +1 -1
  31. package/dist/ui/icons/render/mobile.js.map +1 -1
  32. package/dist/ui/styles/reset.css +356 -356
  33. package/package.json +1 -1
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 Codie.Digital (codie)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Codie.Digital (codie)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
@@ -1,5 +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
- 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}}
3
- *,: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}
4
-
5
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}
@@ -1 +1,2 @@
1
+ export * from "./swagger/index.js";
1
2
  export * from "./infinity-forge-next-config.js";
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./swagger/index.js"), exports);
17
18
  __exportStar(require("./infinity-forge-next-config.js"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/infra/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/infra/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,+DAA4C"}
@@ -0,0 +1 @@
1
+ export declare function generateSwaggerTypes(openApiDocument: any): void;
@@ -0,0 +1,164 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.generateSwaggerTypes = void 0;
15
+ var fs = require("fs");
16
+ var generateTypeScriptTypes = function (schemas) {
17
+ if (process.env.NODE_ENV !== "development")
18
+ return "";
19
+ return Object.keys(schemas)
20
+ .map(function (schemaName) {
21
+ var schema = schemas[schemaName];
22
+ var properties = schema.properties || {};
23
+ var required = schema.required || [];
24
+ var propertiesLines = Object.keys(properties)
25
+ .map(function (propName) {
26
+ var prop = properties[propName];
27
+ var tsType = mapOpenApiTypeToTS(prop);
28
+ var isRequired = required.includes(propName) ? "" : "?";
29
+ return " ".concat(propName).concat(isRequired, ": ").concat(tsType, ";");
30
+ })
31
+ .join("\n");
32
+ return "export interface ".concat(schemaName, " {\n").concat(propertiesLines, "\n}");
33
+ })
34
+ .join("\n\n");
35
+ };
36
+ var mapOpenApiTypeToTS = function (prop) {
37
+ var _a, _b;
38
+ switch (prop.type) {
39
+ case "string":
40
+ return "string";
41
+ case "number":
42
+ return "number";
43
+ case "boolean":
44
+ return "boolean";
45
+ case "array":
46
+ return "".concat(mapOpenApiTypeToTS(prop.items), "[]");
47
+ case "object":
48
+ return "Record<string, any>";
49
+ default:
50
+ if ((_b = (_a = prop === null || prop === void 0 ? void 0 : prop.allOf) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b["$ref"]) {
51
+ var name_1 = prop.allOf[0]["$ref"].replace("#/components/schemas/", "");
52
+ return name_1;
53
+ }
54
+ return "any";
55
+ }
56
+ };
57
+ var combineApiAndTypes = function (apiOps, tsInterfaces) {
58
+ var apiLiteral = Object.keys(apiOps)
59
+ .map(function (path) {
60
+ var methods = apiOps[path];
61
+ return (" \"".concat(path, "\": {\n") +
62
+ Object.keys(methods)
63
+ .map(function (method) {
64
+ var _a;
65
+ var _b = methods[method], params = _b.params, requestBody = _b.requestBody, result = _b.result;
66
+ var simplifiedRequestBody = requestBody
67
+ ? Object.entries(requestBody.properties).reduce(function (acc, _a) {
68
+ var key = _a[0], value = _a[1];
69
+ acc[key] =
70
+ value.type === "array"
71
+ ? "".concat(value.items.type, "[]")
72
+ : value.type;
73
+ return acc;
74
+ }, {})
75
+ : null;
76
+ var simplifiedResult = result
77
+ ? (_a = Object.entries(typeof result.properties === "object" ? result.properties : {})) === null || _a === void 0 ? void 0 : _a.reduce(function (acc, _a) {
78
+ var _b, _c;
79
+ var key = _a[0], value = _a[1];
80
+ if ((_c = (_b = value.allOf) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c["$ref"]) {
81
+ var name_2 = value.allOf[0]["$ref"].replace("#/components/schemas/", "");
82
+ acc[key] = name_2;
83
+ }
84
+ else if (value.type === "array") {
85
+ acc[key] = "".concat(value.items.type, "[]");
86
+ }
87
+ else if (value.type === "object") {
88
+ acc[key] = Object.entries(value.properties).reduce(function (objAcc, _a) {
89
+ var propKey = _a[0], propValue = _a[1];
90
+ objAcc[propKey] =
91
+ propValue.type === "array"
92
+ ? "".concat(propValue.items.type, "[]")
93
+ : propValue.type;
94
+ return objAcc;
95
+ }, {});
96
+ }
97
+ else if (value.format === "date-time") {
98
+ acc[key] = "Date";
99
+ }
100
+ else {
101
+ acc[key] = value.type;
102
+ }
103
+ return acc;
104
+ }, {})
105
+ : null;
106
+ var paramsString = JSON.stringify(params).replace(/"/g, "");
107
+ var requestBodyString = requestBody
108
+ ? JSON.stringify(simplifiedRequestBody).replace(/"/g, "")
109
+ : null;
110
+ var resultString = result
111
+ ? JSON.stringify(simplifiedResult).replace(/"/g, "")
112
+ : null;
113
+ return " ".concat(method, ": {\n params: ").concat(paramsString, ",\n requestBody: ").concat(requestBodyString, ",\n result: ").concat(resultString, "\n }");
114
+ })
115
+ .join(",\n") +
116
+ "\n }");
117
+ })
118
+ .join(",\n");
119
+ return "type Swagger = {\n".concat(apiLiteral, "\n};\n\n").concat(tsInterfaces);
120
+ };
121
+ function generateSwaggerTypes(openApiDocument) {
122
+ var schemas = openApiDocument.components.schemas;
123
+ var list = Object.keys(openApiDocument.paths).reduce(function (reducer, path) {
124
+ var _a;
125
+ var methods = openApiDocument.paths[path];
126
+ var methodsList = Object.keys(methods).reduce(function (reducerMethod, method) {
127
+ var _a;
128
+ var _b, _c, _d, _e, _f, _g;
129
+ var methodInfo = methods[method];
130
+ var params = methodInfo.parameters || [];
131
+ var requestBodySchema = methodInfo.requestBody
132
+ ? (_d = (_c = (_b = methodInfo.requestBody) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c["application/json"]) === null || _d === void 0 ? void 0 : _d.schema
133
+ : null;
134
+ var responseSchema = ((_e = methodInfo.responses["200"]) === null || _e === void 0 ? void 0 : _e.content)
135
+ ? methodInfo.responses["200"].content["application/json"].schema
136
+ : null;
137
+ var resolvedRequestBody = requestBodySchema &&
138
+ ((_f = requestBodySchema.$ref) === null || _f === void 0 ? void 0 : _f.includes("#/components/schemas"))
139
+ ? schemas[requestBodySchema.$ref.replace("#/components/schemas/", "")]
140
+ : requestBodySchema;
141
+ var resolvedResult = responseSchema && ((_g = responseSchema.$ref) === null || _g === void 0 ? void 0 : _g.includes("#/components/schemas"))
142
+ ? schemas[responseSchema.$ref.replace("#/components/schemas/", "")]
143
+ : responseSchema;
144
+ var paramsObject = params.reduce(function (obj, param) {
145
+ var _a;
146
+ obj[param.name] = ((_a = param.schema) === null || _a === void 0 ? void 0 : _a.type) || "unknown";
147
+ return obj;
148
+ }, {});
149
+ var methodData = (_a = {},
150
+ _a[method] = {
151
+ params: params.length > 0 ? paramsObject : {},
152
+ requestBody: resolvedRequestBody || null,
153
+ result: resolvedResult || null,
154
+ },
155
+ _a);
156
+ return __assign(__assign({}, reducerMethod), methodData);
157
+ }, {});
158
+ return __assign(__assign({}, reducer), (_a = {}, _a[path] = methodsList, _a));
159
+ }, {});
160
+ var combinedOutput = combineApiAndTypes(list, generateTypeScriptTypes(schemas));
161
+ fs.writeFileSync("./output.ts", combinedOutput, "utf-8");
162
+ }
163
+ exports.generateSwaggerTypes = generateSwaggerTypes;
164
+ //# sourceMappingURL=generate-swagger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-swagger.js","sourceRoot":"","sources":["../../../src/infra/swagger/generate-swagger.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,IAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAEzB,IAAM,uBAAuB,GAAG,UAAC,OAAO;IACtC,IAAI,OAAO,CAAC,GAAG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AAO,GAAG,CAAC;YACb,CAAC,EAAE,EAAE,CAAC,CAAC;YAEP,IAAM,UAAU;gBACd,GAAC,MAAM,IAAG;oBACR,MAAM,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;oBAC7C,WAAW,EAAE,mBAAmB,IAAI,IAAI;oBACxC,MAAM,EAAE,cAAc,IAAI,IAAI;iBAC/B;mBACF,CAAC;YAEF,6BACK,aAAa,GACb,UAAU,EACb;QACJ,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,6BACK,OAAO,gBACT,IAAI,IAAG,WAAW,OACnB;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAM,cAAc,GAAG,kBAAkB,CACvC,IAAI,EACJ,uBAAuB,CAAC,OAAO,CAAC,CACjC,CAAC;IAEF,EAAE,CAAC,aAAa,CAAC,aAAa,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;AAC3D,CAAC;AAzDD,oDAyDC"}
@@ -0,0 +1 @@
1
+ export * from "./generate-swagger.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./generate-swagger.js"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infra/swagger/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC"}
@@ -1,4 +1,4 @@
1
- export declare function getBlog(ctx: any): Promise<{
1
+ export declare function getBlog(ctx: any, apiUrl: any): Promise<{
2
2
  props: {
3
3
  page: any;
4
4
  };
@@ -38,7 +38,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getBlog = void 0;
40
40
  var sites_1 = require("../../../../../sites/index.js");
41
- function getBlog(ctx) {
41
+ function getBlog(ctx, apiUrl) {
42
42
  return __awaiter(this, void 0, void 0, function () {
43
43
  var search, page, category, res, error_1;
44
44
  var _a, _b, _c;
@@ -49,7 +49,7 @@ function getBlog(ctx) {
49
49
  search = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.query) === null || _a === void 0 ? void 0 : _a.search;
50
50
  page = ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.query) === null || _b === void 0 ? void 0 : _b.page) || 1;
51
51
  category = (_c = ctx === null || ctx === void 0 ? void 0 : ctx.query) === null || _c === void 0 ? void 0 : _c.category;
52
- return [4 /*yield*/, (0, sites_1.api)({ method: 'get', url: "blog/list?search=".concat(search || "", "&page=").concat(page || 1, "&category=").concat(category || "") })];
52
+ return [4 /*yield*/, (0, sites_1.api)({ method: 'get', url: "blog/list?search=".concat(search || "", "&page=").concat(page || 1, "&category=").concat(category || "") }, apiUrl)];
53
53
  case 1:
54
54
  res = _d.sent();
55
55
  return [2 /*return*/, { props: { page: res } }];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sites/components/default-pages/common-ssrs-api/blog/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA6B;AAE7B,SAAsB,OAAO,CAAC,GAAG;;;;;;;;oBAEvB,MA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AAE,2BAAoB,MAAM,IAAI,EAAE,mBAAS,IAAI,IAAI,CAAC,uBAAa,QAAQ,IAAI,EAAE,CAAE,EAAE,EAAE,MAAM,CAAC,EAAA;;oBAAhI,GAAG,GAAG,SAA0H;oBAEtI,sBAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAA;;;oBAE/B,sBAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAA;;;;;CAEnC;AAZD,0BAYC"}
@@ -1,4 +1,4 @@
1
- export declare function getPost(ctx: any): Promise<{
1
+ export declare function getPost(ctx: any, apiUrl: any): Promise<{
2
2
  props: {
3
3
  page: any;
4
4
  };
@@ -38,7 +38,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getPost = void 0;
40
40
  var sites_1 = require("../../../../../sites/index.js");
41
- function getPost(ctx) {
41
+ function getPost(ctx, apiUrl) {
42
42
  return __awaiter(this, void 0, void 0, function () {
43
43
  var url, page, error_1;
44
44
  return __generator(this, function (_a) {
@@ -51,7 +51,7 @@ function getPost(ctx) {
51
51
  _a.label = 1;
52
52
  case 1:
53
53
  _a.trys.push([1, 3, , 4]);
54
- return [4 /*yield*/, (0, sites_1.api)({ url: "blog/detail/".concat(url), method: 'get' })];
54
+ return [4 /*yield*/, (0, sites_1.api)({ url: "blog/detail/".concat(url), method: 'get' }, apiUrl)];
55
55
  case 2:
56
56
  page = _a.sent();
57
57
  return [2 /*return*/, { props: { page: page } }];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sites/components/default-pages/common-ssrs-api/post/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA6B;AAE7B,SAAsB,OAAO,CAAC,GAAG;;;;;;oBACzB,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAA;oBAEzB,IAAI,CAAC,GAAG,EAAE,CAAC;wBACT,sBAAO,IAAI,EAAA;oBACb,CAAC;;;;oBAGc,qBAAM,IAAA,WAAG,EAAC,EAAE,GAAG,EAAE,sBAAe,GAAG,CAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAA;;oBAA9D,IAAI,GAAG,SAAuD;oBAEpE,sBAAO,EAAE,KAAK,EAAE,EAAE,IAAI,MAAA,EAAE,EAAE,EAAA;;;oBAE1B,sBAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAA;;;;;CAEnC;AAdD,0BAcC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sites/components/default-pages/common-ssrs-api/post/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA6B;AAE7B,SAAsB,OAAO,CAAC,GAAG,EAAE,MAAM;;;;;;oBACjC,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAA;oBAEzB,IAAI,CAAC,GAAG,EAAE,CAAC;wBACT,sBAAO,IAAI,EAAA;oBACb,CAAC;;;;oBAGc,qBAAM,IAAA,WAAG,EAAC,EAAE,GAAG,EAAE,sBAAe,GAAG,CAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAC,MAAM,CAAC,EAAA;;oBAArE,IAAI,GAAG,SAA8D;oBAE3E,sBAAO,EAAE,KAAK,EAAE,EAAE,IAAI,MAAA,EAAE,EAAE,EAAA;;;oBAE1B,sBAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAA;;;;;CAEnC;AAdD,0BAcC"}