From 143bae3d8d81a5ea31a9e13239ae2b61518d44e0 Mon Sep 17 00:00:00 2001 From: anime Date: Mon, 7 Jul 2025 17:45:39 +0800 Subject: [PATCH] feat(email encrypt): implement base64 encoding for contact email config --- themes/commerce/components/Footer.js | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/themes/commerce/components/Footer.js b/themes/commerce/components/Footer.js index 3411773c..aff2cec4 100644 --- a/themes/commerce/components/Footer.js +++ b/themes/commerce/components/Footer.js @@ -4,6 +4,8 @@ import CopyRightDate from '@/components/CopyRightDate' import { siteConfig } from '@/lib/config' import Link from 'next/link' import CONFIG from '../config' +import { decryptEmail, handleEmailClick } from '@/lib/plugins/mailEncrypt' +import { useRef } from 'react' /** * 页脚 @@ -18,6 +20,10 @@ const Footer = props => { parseInt(since) < currentYear ? since + '-' + currentYear : currentYear const { categoryOptions, customMenu } = props + const CONTACT_EMAIL = siteConfig('CONTACT_EMAIL') + + const emailIcon = useRef(null) + return (