From 01a7012a7cca15b29ae17fc9ec654c7ff6b89d77 Mon Sep 17 00:00:00 2001 From: Arzl James <70579069+arzljames@users.noreply.github.com> Date: Tue, 26 Mar 2024 21:22:23 +0800 Subject: [PATCH 1/9] fix: demo page revamp (#2413) # Description Removed the stack cards from the demo page and render directly the demo form. Fixes #2407 ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) # How Has This Been Tested? - [x] Manual Test # Screenshots / Screen recording Please add screenshots or recording if applicable **FROM:** ![image](https://github.com/zesty-io/website/assets/70579069/b9b8d86a-81a6-4255-a43b-443efc2997d2) **TO:** ![image](https://github.com/zesty-io/website/assets/70579069/1e187304-8605-4e85-a1ca-8f4859b01117) --- src/components/cta/TryFreeButton.js | 2 +- src/layouts/Main/MarketingMain.js | 4 + src/layouts/Main/components/Topbar/Topbar.js | 3 +- src/views/zesty/Demo.js | 179 ++----------------- 4 files changed, 21 insertions(+), 167 deletions(-) diff --git a/src/components/cta/TryFreeButton.js b/src/components/cta/TryFreeButton.js index 27a62fabf..fb029a330 100644 --- a/src/components/cta/TryFreeButton.js +++ b/src/components/cta/TryFreeButton.js @@ -10,7 +10,7 @@ import Icon from '@mui/material/Icon'; import CodeBlock from './CodeBlock'; export default function TryFreeButton({ - text = 'Request Demo', + text = '', target = 'blank', fullWidth = false, component = 'button', diff --git a/src/layouts/Main/MarketingMain.js b/src/layouts/Main/MarketingMain.js index a7c00b14d..b30d58662 100644 --- a/src/layouts/Main/MarketingMain.js +++ b/src/layouts/Main/MarketingMain.js @@ -19,6 +19,7 @@ import { Topbar } from './components'; import dynamic from 'next/dynamic'; import revampTheme from 'theme/revampTheme'; +import useFetch from 'components/hooks/useFetch'; const Footer = dynamic(() => import('./components/Footer/FooterDynamic')); const Sidebar = dynamic(() => import('./components').then((e) => e.Sidebar)); @@ -99,6 +100,8 @@ const MarketingMain = ({ } }, [userInfo]); + const data = useFetch('/-/demo-cta.json'); + return ( <> {isLoggedIn === false && !isLoginPage && } @@ -163,6 +166,7 @@ const MarketingMain = ({ isAuthenticated={isLoggedIn} userInfo={userInfo?.data} loading={loading} + cta={data?.data?.demo_cta} /> diff --git a/src/layouts/Main/components/Topbar/Topbar.js b/src/layouts/Main/components/Topbar/Topbar.js index ce4f88aa5..ec7e0cae9 100644 --- a/src/layouts/Main/components/Topbar/Topbar.js +++ b/src/layouts/Main/components/Topbar/Topbar.js @@ -35,6 +35,7 @@ const Topbar = ({ userInfo = {}, loading = false, flyoutNavigation: data = [], + cta, }) => { const theme = useTheme(); const { mode } = theme.palette; @@ -167,7 +168,7 @@ const Topbar = ({ { +function Demo({ content }) { const theme = useTheme(); - const cardData = content?.dynamic_contact_page?.data; + const getDemoSectionProps = { + title: content?.demo_section_title, + supportingText: content?.demo_section_supportingtext, + formTitle: content?.demo_section_formtitle, + cta: content?.cta_button_text, + id: '#demo-cta', + }; + return ( revampTheme(theme.palette.mode)}> - - {/* */} + ); -}; +} export default Demo; - -function EngageTypeCards({ cardData }) { - const theme = useTheme(); - return ( - - - - How would you like to engage? - - - - - {cardData?.map((item) => { - return ( - - pushDataLayer({ - buttonText: item?.button_text || '', - targetPage: item.button_link || '#', - }) - } - href={item.button_link || '#'} - sx={{ textDecoration: 'none' }} - item - xs={12} - sm={4} - > - ({ - '&:hover': { - background: - theme.palette.mode === 'light' - ? theme.palette.grey[200] - : theme.palette.grey[800], - }, - })} - borderRadius="8px" - > - - - - {item?.title || ''} - - - - - - - - {item?.description || ''} - - - - - - - - - ); - })} - - - - - - - - - - - - ); -} From 59240571853fae9888a9ed73198eadb4da57a12c Mon Sep 17 00:00:00 2001 From: Jomar Montuya <61284357+jomarmontuya@users.noreply.github.com> Date: Tue, 26 Mar 2024 21:23:55 +0800 Subject: [PATCH 2/9] fix: account ui top right search support legacy search (#2412) # Description Allow Search by Legacy ID inside account ui topbar search Fixes # (issue) ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) ![image](https://github.com/zesty-io/website/assets/61284357/d61663a3-dbdf-465e-bd06-a3c8474026e7) closes https://github.com/zesty-io/website/issues/2347 --- src/components/accounts/ui/select/AccountsComboBox.js | 3 ++- src/components/console/AccountsAppbar.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/accounts/ui/select/AccountsComboBox.js b/src/components/accounts/ui/select/AccountsComboBox.js index 36fc9996e..beec9f2d7 100644 --- a/src/components/accounts/ui/select/AccountsComboBox.js +++ b/src/components/accounts/ui/select/AccountsComboBox.js @@ -141,7 +141,7 @@ const StyledPopper = styled(Popper)({ const filterOptions = createFilterOptions({ matchFrom: 'any', - stringify: (option) => option.name + option.value, + stringify: (option) => option.name + option.value + option.id, }); const Index = ({ @@ -161,6 +161,7 @@ const Index = ({ return { name: e.name, value: e.ZUID, + id: e.ID, }; }); diff --git a/src/components/console/AccountsAppbar.js b/src/components/console/AccountsAppbar.js index 1b239ae7e..eb65fa623 100644 --- a/src/components/console/AccountsAppbar.js +++ b/src/components/console/AccountsAppbar.js @@ -93,6 +93,7 @@ export const AccountsAppbar = ({ colorInvert = false }) => { if (isDocsPage) { return <>; } + return ( Date: Mon, 1 Apr 2024 23:59:37 +0800 Subject: [PATCH 3/9] fix(constant.js): customer stories link (#2417) # Description Fix customer stories link under flyout navigation of use cases. Fixes #2415 ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) # How Has This Been Tested? Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. - [x] Manual Test # Screenshots / Screen recording https://github.com/zesty-io/website/assets/70579069/63907101-7dc2-4685-9c70-ef6a5364212e --- src/components/globals/constants.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/globals/constants.js b/src/components/globals/constants.js index ef44204f6..b0f667f99 100644 --- a/src/components/globals/constants.js +++ b/src/components/globals/constants.js @@ -2248,6 +2248,11 @@ export const flyoutNavigation = [ ], }, related_articles: null, + meta: { + web: { + uri: '/mindshare/customer-stories/rocket-league-launches-e-sports-site-celebrating-players-and-tournaments/', + }, + }, }, ], }, @@ -2383,6 +2388,11 @@ export const flyoutNavigation = [ ], }, related_articles: null, + meta: { + web: { + uri: '/mindshare/customer-stories/cornershop-by-uber-selects-zesty-io-to-drive-global-expansion-effort/', + }, + }, }, ], }, From 296d916854073cfbffed3b3cfb7de2dd3f4a1aa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darwin=20=E2=9D=A4=EF=B8=8F=E2=9D=A4=EF=B8=8F=E2=9D=A4?= =?UTF-8?q?=EF=B8=8F?= <71545960+darwin808@users.noreply.github.com> Date: Wed, 3 Apr 2024 14:38:34 +0800 Subject: [PATCH 4/9] build: update next js `14.1.4` (#2418) # Description update next js to `14.1.4` Co-authored-by: darwin.apolinario --- package-lock.json | 178 ++++++++++++++++++++++++---------------------- package.json | 2 +- 2 files changed, 93 insertions(+), 87 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3913b440c..bd3c08ead 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,7 +39,7 @@ "markdown-it": "^13.0.2", "markdown-to-jsx": "^7.3.2", "material-ui-phone-number": "^3.0.0", - "next": "^14.0.4", + "next": "^14.1.4", "notistack": "^3.0.1", "prop-types": "^15.8.1", "react": "^18.2.0", @@ -3219,14 +3219,14 @@ } }, "node_modules/@next/env": { - "version": "14.0.4", - "resolved": "https://registry.npmjs.org/@next/env/-/env-14.0.4.tgz", - "integrity": "sha512-irQnbMLbUNQpP1wcE5NstJtbuA/69kRfzBrpAD7Gsn8zm/CY6YQYc3HQBz8QPxwISG26tIm5afvvVbu508oBeQ==" + "version": "14.1.4", + "resolved": "https://registry.npmjs.org/@next/env/-/env-14.1.4.tgz", + "integrity": "sha512-e7X7bbn3Z6DWnDi75UWn+REgAbLEqxI8Tq2pkFOFAMpWAWApz/YCUhtWMWn410h8Q2fYiYL7Yg5OlxMOCfFjJQ==" }, "node_modules/@next/swc-darwin-arm64": { - "version": "14.0.4", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.0.4.tgz", - "integrity": "sha512-mF05E/5uPthWzyYDyptcwHptucf/jj09i2SXBPwNzbgBNc+XnwzrL0U6BmPjQeOL+FiB+iG1gwBeq7mlDjSRPg==", + "version": "14.1.4", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.1.4.tgz", + "integrity": "sha512-ubmUkbmW65nIAOmoxT1IROZdmmJMmdYvXIe8211send9ZYJu+SqxSnJM4TrPj9wmL6g9Atvj0S/2cFmMSS99jg==", "cpu": [ "arm64" ], @@ -3239,9 +3239,9 @@ } }, "node_modules/@next/swc-darwin-x64": { - "version": "14.0.4", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.0.4.tgz", - "integrity": "sha512-IZQ3C7Bx0k2rYtrZZxKKiusMTM9WWcK5ajyhOZkYYTCc8xytmwSzR1skU7qLgVT/EY9xtXDG0WhY6fyujnI3rw==", + "version": "14.1.4", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.1.4.tgz", + "integrity": "sha512-b0Xo1ELj3u7IkZWAKcJPJEhBop117U78l70nfoQGo4xUSvv0PJSTaV4U9xQBLvZlnjsYkc8RwQN1HoH/oQmLlQ==", "cpu": [ "x64" ], @@ -3254,9 +3254,9 @@ } }, "node_modules/@next/swc-linux-arm64-gnu": { - "version": "14.0.4", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.0.4.tgz", - "integrity": "sha512-VwwZKrBQo/MGb1VOrxJ6LrKvbpo7UbROuyMRvQKTFKhNaXjUmKTu7wxVkIuCARAfiI8JpaWAnKR+D6tzpCcM4w==", + "version": "14.1.4", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.1.4.tgz", + "integrity": "sha512-457G0hcLrdYA/u1O2XkRMsDKId5VKe3uKPvrKVOyuARa6nXrdhJOOYU9hkKKyQTMru1B8qEP78IAhf/1XnVqKA==", "cpu": [ "arm64" ], @@ -3269,9 +3269,9 @@ } }, "node_modules/@next/swc-linux-arm64-musl": { - "version": "14.0.4", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.0.4.tgz", - "integrity": "sha512-8QftwPEW37XxXoAwsn+nXlodKWHfpMaSvt81W43Wh8dv0gkheD+30ezWMcFGHLI71KiWmHK5PSQbTQGUiidvLQ==", + "version": "14.1.4", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.1.4.tgz", + "integrity": "sha512-l/kMG+z6MB+fKA9KdtyprkTQ1ihlJcBh66cf0HvqGP+rXBbOXX0dpJatjZbHeunvEHoBBS69GYQG5ry78JMy3g==", "cpu": [ "arm64" ], @@ -3284,9 +3284,9 @@ } }, "node_modules/@next/swc-linux-x64-gnu": { - "version": "14.0.4", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.0.4.tgz", - "integrity": "sha512-/s/Pme3VKfZAfISlYVq2hzFS8AcAIOTnoKupc/j4WlvF6GQ0VouS2Q2KEgPuO1eMBwakWPB1aYFIA4VNVh667A==", + "version": "14.1.4", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.1.4.tgz", + "integrity": "sha512-BapIFZ3ZRnvQ1uWbmqEGJuPT9cgLwvKtxhK/L2t4QYO7l+/DxXuIGjvp1x8rvfa/x1FFSsipERZK70pewbtJtw==", "cpu": [ "x64" ], @@ -3299,9 +3299,9 @@ } }, "node_modules/@next/swc-linux-x64-musl": { - "version": "14.0.4", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.0.4.tgz", - "integrity": "sha512-m8z/6Fyal4L9Bnlxde5g2Mfa1Z7dasMQyhEhskDATpqr+Y0mjOBZcXQ7G5U+vgL22cI4T7MfvgtrM2jdopqWaw==", + "version": "14.1.4", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.1.4.tgz", + "integrity": "sha512-mqVxTwk4XuBl49qn2A5UmzFImoL1iLm0KQQwtdRJRKl21ylQwwGCxJtIYo2rbfkZHoSKlh/YgztY0qH3wG1xIg==", "cpu": [ "x64" ], @@ -3314,9 +3314,9 @@ } }, "node_modules/@next/swc-win32-arm64-msvc": { - "version": "14.0.4", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.0.4.tgz", - "integrity": "sha512-7Wv4PRiWIAWbm5XrGz3D8HUkCVDMMz9igffZG4NB1p4u1KoItwx9qjATHz88kwCEal/HXmbShucaslXCQXUM5w==", + "version": "14.1.4", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.1.4.tgz", + "integrity": "sha512-xzxF4ErcumXjO2Pvg/wVGrtr9QQJLk3IyQX1ddAC/fi6/5jZCZ9xpuL9Tzc4KPWMFq8GGWFVDMshZOdHGdkvag==", "cpu": [ "arm64" ], @@ -3329,9 +3329,9 @@ } }, "node_modules/@next/swc-win32-ia32-msvc": { - "version": "14.0.4", - "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.0.4.tgz", - "integrity": "sha512-zLeNEAPULsl0phfGb4kdzF/cAVIfaC7hY+kt0/d+y9mzcZHsMS3hAS829WbJ31DkSlVKQeHEjZHIdhN+Pg7Gyg==", + "version": "14.1.4", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.1.4.tgz", + "integrity": "sha512-WZiz8OdbkpRw6/IU/lredZWKKZopUMhcI2F+XiMAcPja0uZYdMTZQRoQ0WZcvinn9xZAidimE7tN9W5v9Yyfyw==", "cpu": [ "ia32" ], @@ -3344,9 +3344,9 @@ } }, "node_modules/@next/swc-win32-x64-msvc": { - "version": "14.0.4", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.0.4.tgz", - "integrity": "sha512-yEh2+R8qDlDCjxVpzOTEpBLQTEFAcP2A8fUFLaWNap9GitYKkKv1//y2S6XY6zsR4rCOPRpU7plYDR+az2n30A==", + "version": "14.1.4", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.1.4.tgz", + "integrity": "sha512-4Rto21sPfw555sZ/XNLqfxDUNeLhNYGO2dlPqsnuCg8N8a2a9u1ltqBOPQ4vj1Gf7eJC0W2hHG2eYUHuiXgY2w==", "cpu": [ "x64" ], @@ -5197,7 +5197,8 @@ }, "node_modules/asap": { "version": "2.0.6", - "license": "MIT" + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" }, "node_modules/asn1": { "version": "0.2.6", @@ -5486,7 +5487,8 @@ }, "node_modules/base16": { "version": "1.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/base16/-/base16-1.0.0.tgz", + "integrity": "sha512-pNdYkNPiJUnEhnfXV56+sQy8+AaPcG3POZAUnwr4EeqCUZFz4u2PePbo3e5Gj4ziYPCWGUZT9RHisvJKnwFuBQ==" }, "node_modules/base64-arraybuffer": { "version": "0.1.4", @@ -5824,7 +5826,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001563", + "version": "1.0.30001605", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001605.tgz", + "integrity": "sha512-nXwGlFWo34uliI9z3n6Qc0wZaf7zaZWA1CPZ169La5mV3I/gem7bst0vr5XQH5TJXZIMfDeZyOrZnSlVzKxxHQ==", "funding": [ { "type": "opencollective", @@ -5838,8 +5842,7 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ], - "license": "CC-BY-4.0" + ] }, "node_modules/caseless": { "version": "0.12.0", @@ -6330,7 +6333,8 @@ }, "node_modules/cross-fetch": { "version": "3.1.8", - "license": "MIT", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz", + "integrity": "sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==", "dependencies": { "node-fetch": "^2.6.12" } @@ -8101,14 +8105,16 @@ }, "node_modules/fbemitter": { "version": "3.0.0", - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/fbemitter/-/fbemitter-3.0.0.tgz", + "integrity": "sha512-KWKaceCwKQU0+HPoop6gn4eOHk50bBv/VxjJtGMfwmJt3D29JpN4H4eisCtIPA+a8GVBam+ldMMpMjJUvpDyHw==", "dependencies": { "fbjs": "^3.0.0" } }, "node_modules/fbjs": { "version": "3.0.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.5.tgz", + "integrity": "sha512-ztsSx77JBtkuMrEypfhgc3cI0+0h+svqeie7xHbh1k/IKdcydnvadp/mUaGgjAOXQmQSxsqgaRhS3q9fy+1kxg==", "dependencies": { "cross-fetch": "^3.1.5", "fbjs-css-vars": "^1.0.0", @@ -8121,7 +8127,8 @@ }, "node_modules/fbjs-css-vars": { "version": "1.0.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz", + "integrity": "sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==" }, "node_modules/fd-slicer": { "version": "1.1.0", @@ -8584,10 +8591,6 @@ "node": ">=10.13.0" } }, - "node_modules/glob-to-regexp": { - "version": "0.4.1", - "license": "BSD-2-Clause" - }, "node_modules/global": { "version": "4.4.0", "license": "MIT", @@ -11795,7 +11798,8 @@ }, "node_modules/lodash.curry": { "version": "4.1.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.curry/-/lodash.curry-4.1.1.tgz", + "integrity": "sha512-/u14pXGviLaweY5JI0IUzgzF2J6Ne8INyzAZjImcryjgkZ+ebruBxy2/JaOOkTqScddcYtakjhSaeemV8lR0tA==" }, "node_modules/lodash.debounce": { "version": "4.0.8", @@ -11803,7 +11807,8 @@ }, "node_modules/lodash.flow": { "version": "3.5.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.flow/-/lodash.flow-3.5.0.tgz", + "integrity": "sha512-ff3BX/tSioo+XojX4MOsOMhJw0nZoUEF011LX8g8d3gvjVbxd89cCio4BCXronjxcTUIJUoqKEUA+n4CqvvRPw==" }, "node_modules/lodash.isplainobject": { "version": "4.0.6", @@ -13084,18 +13089,17 @@ } }, "node_modules/next": { - "version": "14.0.4", - "resolved": "https://registry.npmjs.org/next/-/next-14.0.4.tgz", - "integrity": "sha512-qbwypnM7327SadwFtxXnQdGiKpkuhaRLE2uq62/nRul9cj9KhQ5LhHmlziTNqUidZotw/Q1I9OjirBROdUJNgA==", + "version": "14.1.4", + "resolved": "https://registry.npmjs.org/next/-/next-14.1.4.tgz", + "integrity": "sha512-1WTaXeSrUwlz/XcnhGTY7+8eiaFvdet5z9u3V2jb+Ek1vFo0VhHKSAIJvDWfQpttWjnyw14kBeq28TPq7bTeEQ==", "dependencies": { - "@next/env": "14.0.4", + "@next/env": "14.1.4", "@swc/helpers": "0.5.2", "busboy": "1.6.0", - "caniuse-lite": "^1.0.30001406", + "caniuse-lite": "^1.0.30001579", "graceful-fs": "^4.2.11", "postcss": "8.4.31", - "styled-jsx": "5.1.1", - "watchpack": "2.4.0" + "styled-jsx": "5.1.1" }, "bin": { "next": "dist/bin/next" @@ -13104,15 +13108,15 @@ "node": ">=18.17.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "14.0.4", - "@next/swc-darwin-x64": "14.0.4", - "@next/swc-linux-arm64-gnu": "14.0.4", - "@next/swc-linux-arm64-musl": "14.0.4", - "@next/swc-linux-x64-gnu": "14.0.4", - "@next/swc-linux-x64-musl": "14.0.4", - "@next/swc-win32-arm64-msvc": "14.0.4", - "@next/swc-win32-ia32-msvc": "14.0.4", - "@next/swc-win32-x64-msvc": "14.0.4" + "@next/swc-darwin-arm64": "14.1.4", + "@next/swc-darwin-x64": "14.1.4", + "@next/swc-linux-arm64-gnu": "14.1.4", + "@next/swc-linux-arm64-musl": "14.1.4", + "@next/swc-linux-x64-gnu": "14.1.4", + "@next/swc-linux-x64-musl": "14.1.4", + "@next/swc-win32-arm64-msvc": "14.1.4", + "@next/swc-win32-ia32-msvc": "14.1.4", + "@next/swc-win32-x64-msvc": "14.1.4" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", @@ -14379,7 +14383,8 @@ }, "node_modules/promise": { "version": "7.3.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", "dependencies": { "asap": "~2.0.3" } @@ -14475,7 +14480,8 @@ }, "node_modules/pure-color": { "version": "1.3.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/pure-color/-/pure-color-1.3.0.tgz", + "integrity": "sha512-QFADYnsVoBMw1srW7OVKEYjG+MbIa49s54w1MA1EDY6r2r/sTcKKYqRX1f4GYvnXP7eN/Pe9HFcX+hwzmrXRHA==" }, "node_modules/pure-rand": { "version": "6.0.4", @@ -14561,7 +14567,8 @@ }, "node_modules/react": { "version": "18.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", "dependencies": { "loose-envify": "^1.1.0" }, @@ -14571,7 +14578,8 @@ }, "node_modules/react-base16-styling": { "version": "0.6.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/react-base16-styling/-/react-base16-styling-0.6.0.tgz", + "integrity": "sha512-yvh/7CArceR/jNATXOKDlvTnPKPmGZz7zsenQ3jUwLzHkNUR0CvY3yGYJbWJ/nnxsL8Sgmt5cO3/SILVuPO6TQ==", "dependencies": { "base16": "^1.0.0", "lodash.curry": "^4.0.1", @@ -14594,7 +14602,8 @@ }, "node_modules/react-dom": { "version": "18.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", + "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", "dependencies": { "loose-envify": "^1.1.0", "scheduler": "^0.23.0" @@ -14689,7 +14698,8 @@ }, "node_modules/react-json-view": { "version": "1.21.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/react-json-view/-/react-json-view-1.21.3.tgz", + "integrity": "sha512-13p8IREj9/x/Ye4WI/JpjhoIwuzEgUAtgJZNBJckfzJt1qyh24BdTm6UQNGnyTq9dapQdrqvquZTo3dz1X6Cjw==", "dependencies": { "flux": "^4.0.1", "react-base16-styling": "^0.6.0", @@ -14703,7 +14713,8 @@ }, "node_modules/react-json-view/node_modules/flux": { "version": "4.0.4", - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/flux/-/flux-4.0.4.tgz", + "integrity": "sha512-NCj3XlayA2UsapRpM7va6wU1+9rE5FIL7qoMcmxWHRzbp0yujihMBm9BBHZ1MDIk5h5o2Bl6eGiCe8rYELAmYw==", "dependencies": { "fbemitter": "^3.0.0", "fbjs": "^3.0.1" @@ -14916,7 +14927,8 @@ }, "node_modules/react-textarea-autosize": { "version": "8.5.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/react-textarea-autosize/-/react-textarea-autosize-8.5.3.tgz", + "integrity": "sha512-XT1024o2pqCuZSuBt9FwHlaDeNtVrtCXu0Rnz88t1jUGheCLa3PhjE1GH8Ctm2axEtvdCl5SUHYschyQ0L5QHQ==", "dependencies": { "@babel/runtime": "^7.20.13", "use-composed-ref": "^1.3.0", @@ -15549,7 +15561,8 @@ }, "node_modules/setimmediate": { "version": "1.0.5", - "license": "MIT" + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" }, "node_modules/sha.js": { "version": "2.4.11", @@ -16698,6 +16711,8 @@ }, "node_modules/ua-parser-js": { "version": "1.0.37", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.37.tgz", + "integrity": "sha512-bhTyI94tZofjo+Dn8SN6Zv8nBDvyXTymAdM3LDI/0IboIUwTu1rEhW7v2TfiVsoYWgkQ4kOVqnI8APUFbIQIFQ==", "funding": [ { "type": "opencollective", @@ -16712,7 +16727,6 @@ "url": "https://github.com/sponsors/faisalman" } ], - "license": "MIT", "engines": { "node": "*" } @@ -16929,14 +16943,16 @@ }, "node_modules/use-composed-ref": { "version": "1.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.3.0.tgz", + "integrity": "sha512-GLMG0Jc/jiKov/3Ulid1wbv3r54K9HlMW29IWcDFPEqFkSO2nS0MuefWgMJpeHQ9YJeXDL3ZUF+P3jdXlZX/cQ==", "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0" } }, "node_modules/use-isomorphic-layout-effect": { "version": "1.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz", + "integrity": "sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==", "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, @@ -16948,7 +16964,8 @@ }, "node_modules/use-latest": { "version": "1.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/use-latest/-/use-latest-1.2.1.tgz", + "integrity": "sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==", "dependencies": { "use-isomorphic-layout-effect": "^1.1.1" }, @@ -17160,17 +17177,6 @@ "loose-envify": "^1.0.0" } }, - "node_modules/watchpack": { - "version": "2.4.0", - "license": "MIT", - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" - } - }, "node_modules/wcwidth": { "version": "1.0.1", "dev": true, diff --git a/package.json b/package.json index 9a33d55d9..d210b4e99 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "markdown-it": "^13.0.2", "markdown-to-jsx": "^7.3.2", "material-ui-phone-number": "^3.0.0", - "next": "^14.0.4", + "next": "^14.1.4", "notistack": "^3.0.1", "prop-types": "^15.8.1", "react": "^18.2.0", From 45fd4c9fee80646f8711705006462fa796157c9a Mon Sep 17 00:00:00 2001 From: "Japheth Louie M. Gofredo" <83058948+japhethLG@users.noreply.github.com> Date: Fri, 5 Apr 2024 22:19:33 +0800 Subject: [PATCH 5/9] fix: login meta title and description issue (#2421) # Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. Fixes #2416 ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) # How Has This Been Tested? Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. - [x] Manual Test # Screenshots / Screen recording Please add screenshots or recording if applicable ![image](https://github.com/zesty-io/website/assets/83058948/b8adc4be-7b67-40ea-bccd-14eb2809c6dc) **fixed** ![image](https://github.com/zesty-io/website/assets/83058948/df68f116-a1ea-48ab-b1d7-d537e4a63b74) --- src/pages/login/index.js | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/src/pages/login/index.js b/src/pages/login/index.js index 050e6cf8c..365518cd2 100644 --- a/src/pages/login/index.js +++ b/src/pages/login/index.js @@ -16,14 +16,15 @@ const site = 'https://www.zesty.io'; const Login = (props) => { const router = useRouter(); const content = props.data.data[0].content; + const loginContent = props.loginData.data[0].content; const ogimage = content?.feature_image?.data[0]?.url; const preview = ogimage.replace( 'kfg6bckb.media.zestyio.com', 'kfg6bckb.media.zesty.site', ); - const title = content.seo_meta_title; - const description = content.seo_meta_description; + const title = loginContent.seo_meta_title; + const description = loginContent.seo_meta_description; const canonicalURL = site + router.asPath; const isLoggedIn = useIsLoggedIn(); @@ -66,22 +67,31 @@ const Login = (props) => { }; export async function getServerSideProps({ req, res }) { - const isProd = process.env.PRODUCTION === 'true' ? true : false; + const isProd = process.env.PRODUCTION === 'true'; + const baseUrl = isProd + ? 'https://www.zesty.io' + : 'https://kfg6bckb-dev.webengine.zesty.io'; - let url = 'https://www.zesty.io/-/instant/6-90fbdcadfc-4lc0s5.json'; - if (!isProd) { - url = - 'https://kfg6bckb-dev.webengine.zesty.io/-/instant/6-90fbdcadfc-4lc0s5.json'; - } + const url = `${baseUrl}/-/instant/6-90fbdcadfc-4lc0s5.json`; + const loginUrl = `${baseUrl}/-/instant/6-ccb9ca9fc1-06fhhc.json`; let isAuthenticated = (await isUserAuthenticated(req, true, isProd)) || getIsAuthenticated(res); - const response = await fetch(url, { cache: 'no-cache' }); - const data = await response.json(); + + const [response, loginResponse] = await Promise.all([ + fetch(url, { cache: 'no-cache' }), + fetch(loginUrl, { cache: 'no-cache' }), + ]); + + const [data, loginData] = await Promise.all([ + response.json(), + loginResponse.json(), + ]); return { props: { data, + loginData, isAuthenticated, }, }; From cf02783641d1dc29db127fdb833e64c31e71b451 Mon Sep 17 00:00:00 2001 From: Arzl James <70579069+arzljames@users.noreply.github.com> Date: Mon, 8 Apr 2024 21:58:12 +0800 Subject: [PATCH 6/9] =?UTF-8?q?fix(slashimageherowithcta.js):=20conditiona?= =?UTF-8?q?l=20rendering=20when=20cta=20is=20avai=E2=80=A6=20(#2428)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Description Remove blank CTA button. Mindshare tag page should not contain a CTA button based on the schema structure from the manager. Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) # Screenshots / Screen recording ![image](https://github.com/zesty-io/website/assets/70579069/ffab6c68-345c-42ac-82eb-d4851b80017f) --- .../heroes/SlashImageHeroWithCta/SlashImageHeroWithCta.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blocks/heroes/SlashImageHeroWithCta/SlashImageHeroWithCta.js b/src/blocks/heroes/SlashImageHeroWithCta/SlashImageHeroWithCta.js index 210110a96..b5de3ca12 100644 --- a/src/blocks/heroes/SlashImageHeroWithCta/SlashImageHeroWithCta.js +++ b/src/blocks/heroes/SlashImageHeroWithCta/SlashImageHeroWithCta.js @@ -109,6 +109,7 @@ const Hero = ({ )} + ) : ( - Date: Fri, 12 Apr 2024 23:18:54 +0800 Subject: [PATCH 7/9] feat: Add the next JS playlist to the Learning Hub (#2430) # Description Added a separate 'Featured Tutorials' section under 'Featured Videos' and 'All Videos'. Fixes #2422 ## Type of change Please delete options that are not relevant. - [x] New feature (non-breaking change which adds functionality) # How Has This Been Tested? Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. - [x] Manual Test # Screenshots / Screen recording ![image](https://github.com/zesty-io/website/assets/83058948/e02e83c8-53cc-4f05-9c9a-20fca072153e) --- .../marketing/LearningHub/FeaturedVideos.js | 5 ++--- src/components/marketing/LearningHub/Filters.js | 2 ++ src/views/zesty/LearningHub.js | 14 +++++++++++++- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/components/marketing/LearningHub/FeaturedVideos.js b/src/components/marketing/LearningHub/FeaturedVideos.js index 3d8518406..07b888dac 100644 --- a/src/components/marketing/LearningHub/FeaturedVideos.js +++ b/src/components/marketing/LearningHub/FeaturedVideos.js @@ -15,7 +15,7 @@ import VideoCard from './FeaturedCard'; import { useContext } from 'react'; import { LearningHubVideosContext } from './context/LearningHubVideosContext'; -const FeaturedVideos = ({ featuredVideos = [] }) => { +const FeaturedVideos = ({ title, featuredVideos = [] }) => { const { searchKey, selectedTags } = useContext(LearningHubVideosContext); /************************************************ @@ -30,7 +30,6 @@ const FeaturedVideos = ({ featuredVideos = [] }) => {