From 9a272573e2ff0bf82b462547c5f210013e51f465 Mon Sep 17 00:00:00 2001 From: jaaaaavier Date: Mon, 9 Feb 2026 15:13:06 +0100 Subject: [PATCH 1/6] feat: update banners from temp mail --- next-env.d.ts | 2 +- .../cloud-object-storage/HeroSection.tsx | 2 +- src/components/temp-email/HeroSection.tsx | 28 +++------ src/components/temp-email/InfoSection.tsx | 60 ++----------------- 4 files changed, 16 insertions(+), 76 deletions(-) diff --git a/next-env.d.ts b/next-env.d.ts index 2d5420eba..0c7fad710 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,7 +1,7 @@ /// /// /// -import "./.next/types/routes.d.ts"; +import "./.next/dev/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/src/components/cloud-object-storage/HeroSection.tsx b/src/components/cloud-object-storage/HeroSection.tsx index 55dee0a33..9be5b778c 100644 --- a/src/components/cloud-object-storage/HeroSection.tsx +++ b/src/components/cloud-object-storage/HeroSection.tsx @@ -24,7 +24,7 @@ export const HeroSection = ({ textContent }) => {

{textContent.description}

{textContent.cta} diff --git a/src/components/temp-email/HeroSection.tsx b/src/components/temp-email/HeroSection.tsx index f0eb0c126..ce73f79a6 100644 --- a/src/components/temp-email/HeroSection.tsx +++ b/src/components/temp-email/HeroSection.tsx @@ -226,21 +226,15 @@ export const HeroSection = ({ textContent, lang }) => { return (
-
+
BitDefender Vertical Banner - window.open( - `https://www.bitdefender.com/pages/consumer/${languageForImage}/new/voucher-ts-ps/?vcampaign=internxt`, - '_blank', - 'noopener noreferrer', - ) - } + onClick={() => window.open(`https://internxt.com/`, '_blank', 'noopener noreferrer')} />
@@ -274,21 +268,15 @@ export const HeroSection = ({ textContent, lang }) => {

-
+
BitDefender Vertical Banner - window.open( - `https://www.bitdefender.com/pages/consumer/${languageForImage}/new/voucher-ts-ps/?vcampaign=internxt/`, - '_blank', - 'noopener noreferrer', - ) - } + onClick={() => window.open(`https://internxt.com/`, '_blank', 'noopener noreferrer')} />
diff --git a/src/components/temp-email/InfoSection.tsx b/src/components/temp-email/InfoSection.tsx index 90dc4d2cd..db75aeec6 100644 --- a/src/components/temp-email/InfoSection.tsx +++ b/src/components/temp-email/InfoSection.tsx @@ -46,21 +46,15 @@ export const InfoSection = ({ textContent, bannerText, lang }) => {
-
+
File Arrow Up icon - window.open( - `https://www.bitdefender.com/pages/consumer/en/new/voucher-ts-ps/?vcampaign=internxt`, - '_blank', - 'noopener noreferrer', - ) - } + onClick={() => window.open(`https://internxt.com/`, '_blank', 'noopener noreferrer')} />
@@ -81,24 +75,6 @@ export const InfoSection = ({ textContent, bannerText, lang }) => {
-
- File Arrow Up icon - window.open( - `https://www.bitdefender.com/pages/consumer/${languageForImage}/new/voucher-ts-ps/?vcampaign=internxt`, - '_blank', - 'noopener noreferrer', - ) - } - /> -
-

{textContent.whatIsTempMail.title}

{textContent.whatIsTempMail.description}

@@ -124,24 +100,6 @@ export const InfoSection = ({ textContent, bannerText, lang }) => {
-
- File Arrow Up icon - window.open( - `https://www.bitdefender.com/pages/consumer/en/new/voucher-ts-ps/?vcampaign=internxt`, - '_blank', - 'noopener noreferrer', - ) - } - /> -
-
{
-
+
File Arrow Up icon - window.open( - `https://www.bitdefender.com/pages/consumer/${languageForImage}/new/voucher-ts-ps/?vcampaign=internxt`, - '_blank', - 'noopener noreferrer', - ) - } + onClick={() => window.open(`https://internxt.com/`, '_blank', 'noopener noreferrer')} />
From 74bb15255974d2b9c727f3b0dbb76685be571071 Mon Sep 17 00:00:00 2001 From: jaaaaavier Date: Mon, 9 Feb 2026 15:26:41 +0100 Subject: [PATCH 2/6] Update HeroSection.tsx --- src/components/cloud-object-storage/HeroSection.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/cloud-object-storage/HeroSection.tsx b/src/components/cloud-object-storage/HeroSection.tsx index 9be5b778c..a87737e4a 100644 --- a/src/components/cloud-object-storage/HeroSection.tsx +++ b/src/components/cloud-object-storage/HeroSection.tsx @@ -2,6 +2,7 @@ import Image from 'next/image'; import Link from 'next/link'; import { HighlightText } from '../components/HighlightText'; import { getImage } from '@/lib/getImage'; +import router from 'next/router'; export const HeroSection = ({ textContent }) => { return ( @@ -24,7 +25,7 @@ export const HeroSection = ({ textContent }) => {

{textContent.description}

{textContent.cta} From a7c1cafbf802dc3fa101e706c3744688d3540f98 Mon Sep 17 00:00:00 2001 From: jaaaaavier Date: Mon, 9 Feb 2026 15:31:47 +0100 Subject: [PATCH 3/6] uodate sonar --- src/components/cloud-object-storage/HeroSection.tsx | 1 - src/components/temp-email/HeroSection.tsx | 4 +--- src/components/temp-email/InfoSection.tsx | 9 +++------ src/pages/temporary-email.tsx | 6 ++++-- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/components/cloud-object-storage/HeroSection.tsx b/src/components/cloud-object-storage/HeroSection.tsx index a87737e4a..6c3567a20 100644 --- a/src/components/cloud-object-storage/HeroSection.tsx +++ b/src/components/cloud-object-storage/HeroSection.tsx @@ -2,7 +2,6 @@ import Image from 'next/image'; import Link from 'next/link'; import { HighlightText } from '../components/HighlightText'; import { getImage } from '@/lib/getImage'; -import router from 'next/router'; export const HeroSection = ({ textContent }) => { return ( diff --git a/src/components/temp-email/HeroSection.tsx b/src/components/temp-email/HeroSection.tsx index ce73f79a6..c7cf0619c 100644 --- a/src/components/temp-email/HeroSection.tsx +++ b/src/components/temp-email/HeroSection.tsx @@ -26,7 +26,7 @@ import DOMPurify from 'dompurify'; import Image from 'next/image'; import { getImage } from '@/lib/getImage'; -export const HeroSection = ({ textContent, lang }) => { +export const HeroSection = ({ textContent }) => { const isFocused = useWindowFocus(); const { state, setUser, setBorderColor, setIsChangeEmailIconAnimated, setMessages, setSelectedMessage } = @@ -222,8 +222,6 @@ export const HeroSection = ({ textContent, lang }) => { await getNewEmail(); }; - const languageForImage = ['zh', 'zh-tw', 'ru', 'en'].includes(lang) ? 'en' : lang; - return (
diff --git a/src/components/temp-email/InfoSection.tsx b/src/components/temp-email/InfoSection.tsx index db75aeec6..5d8b83214 100644 --- a/src/components/temp-email/InfoSection.tsx +++ b/src/components/temp-email/InfoSection.tsx @@ -2,10 +2,9 @@ import Image from 'next/image'; import SignUpBanner from '@/components/banners/SignUpBanner'; import { Bug, Detective, EyeSlash, Gift, Tray, UserPlus } from '@phosphor-icons/react'; import { getImage } from '@/lib/getImage'; -import { SIGNUP_DRIVE_WEB } from '@/constants'; export const InfoSection = ({ textContent, bannerText, lang }) => { - const infoCards = (lang) => { + const infoCards = () => { return [ { icon: Bug, @@ -40,8 +39,6 @@ export const InfoSection = ({ textContent, bannerText, lang }) => { ]; }; - const languageForImage = ['zh', 'zh-tw', 'ru', 'en'].includes(lang) ? 'en' : lang; - return (
@@ -85,7 +82,7 @@ export const InfoSection = ({ textContent, bannerText, lang }) => {
- {infoCards(lang).map((card) => ( + {infoCards().map((card) => (
{

{textContent.whenUseTempMail.title}

{textContent.whenUseTempMail.description}

    - {textContent.whenUseTempMail.bulletedList.map((item, index) => ( + {textContent.whenUseTempMail.bulletedList.map((item) => (
  • {item}
  • ))}
diff --git a/src/pages/temporary-email.tsx b/src/pages/temporary-email.tsx index b5dbb8483..987dd7244 100644 --- a/src/pages/temporary-email.tsx +++ b/src/pages/temporary-email.tsx @@ -13,6 +13,7 @@ import { sm_faq, sm_breadcrumb } from '@/components/utils/schema-markup-generato import { ActionBanner } from '@/components/temp-email/components/ActionBanner'; import { GlobalDialog, useGlobalDialog } from '@/contexts/GlobalUIManager'; import { setup } from '@/lib/csrf'; +import { GetServerSidePropsContext } from 'next'; const TempEmail = ({ lang, metatags, textContent, footerLang, navbarLang, toolsContent, bannerLang }: any) => { const dialogAction = useGlobalDialog(); @@ -32,7 +33,7 @@ const TempEmail = ({ lang, metatags, textContent, footerLang, navbarLang, toolsC - + @@ -50,7 +51,7 @@ const TempEmail = ({ lang, metatags, textContent, footerLang, navbarLang, toolsC ); }; -export const getServerSideProps = setup(async (ctx: any) => { +export const getServerSideProps = setup(async (ctx: GetServerSidePropsContext) => { const lang = ctx.locale || 'en'; const metatagsDescriptions = require(`@/assets/lang/${lang}/metatags-descriptions.json`); @@ -60,6 +61,7 @@ export const getServerSideProps = setup(async (ctx: any) => { const toolsContent = require(`@/assets/lang/${lang}/components/tools/ToolSection.json`); const bannerLang = require(`@/assets/lang/${lang}/banners.json`); + // eslint-disable-next-line @typescript-eslint/no-explicit-any const metatags = metatagsDescriptions.filter((desc: any) => desc.id === 'temporary-email'); return { From 85e79c670ede4bec6cb1cc8e063e440c10d7bfa5 Mon Sep 17 00:00:00 2001 From: jaaaaavier Date: Wed, 11 Feb 2026 09:24:10 +0100 Subject: [PATCH 4/6] updates after revision --- next-env.d.ts | 2 +- src/components/temp-email/HeroSection.tsx | 8 ++++---- src/components/temp-email/InfoSection.tsx | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/next-env.d.ts b/next-env.d.ts index 0c7fad710..c05d9f7d6 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,7 +1,7 @@ /// /// /// -import "./.next/dev/types/routes.d.ts"; +import './.next/types/routes.d.ts'; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/src/components/temp-email/HeroSection.tsx b/src/components/temp-email/HeroSection.tsx index c7cf0619c..bb2f099ae 100644 --- a/src/components/temp-email/HeroSection.tsx +++ b/src/components/temp-email/HeroSection.tsx @@ -226,8 +226,8 @@ export const HeroSection = ({ textContent }) => {
 Vertical Banner {
Vertical Banner {
File Arrow Up icon {
File Arrow Up icon Date: Wed, 11 Feb 2026 09:29:24 +0100 Subject: [PATCH 5/6] Update slack-notifiaction.yml --- .github/workflows/slack-notifiaction.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/slack-notifiaction.yml b/.github/workflows/slack-notifiaction.yml index c6573daa0..b10f7765a 100644 --- a/.github/workflows/slack-notifiaction.yml +++ b/.github/workflows/slack-notifiaction.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x] + node-version: [22.x] steps: - name: Checkout From 57a3b44170f19d42bdea1c83241e2ea5d17d9b1b Mon Sep 17 00:00:00 2001 From: jaaaaavier Date: Wed, 11 Feb 2026 09:33:44 +0100 Subject: [PATCH 6/6] Update next-env.d.ts --- next-env.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next-env.d.ts b/next-env.d.ts index 2d5420eba..c05d9f7d6 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,7 +1,7 @@ /// /// /// -import "./.next/types/routes.d.ts"; +import './.next/types/routes.d.ts'; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.