Skip to content

Commit

Permalink
Merge pull request #171 from juzibot/removeUselessPage
Browse files Browse the repository at this point in the history
remove useless page
  • Loading branch information
menglin-eb authored Nov 18, 2024
2 parents dc172b1 + bd0e6a4 commit 9943037
Show file tree
Hide file tree
Showing 13 changed files with 2,466 additions and 2,629 deletions.
4,860 changes: 2,318 additions & 2,542 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/HeaderBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ const HeaderBar: NextPage = () => {
</HeaderMenu>
) :
<HeaderMenu href="/features/customer" linkTarget="_self">
{t('solutions')}
{t('solutions')}123
</HeaderMenu>
}
{isZh && (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class JuziSiteDocument extends Document<{
<meta name="keywords" content={keywords} />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
</Head>
<body>
<body style={{ height: '100vh', overflowY: 'auto' }}>
<Main />
<NextScript />
</body>
Expand Down
29 changes: 18 additions & 11 deletions src/pages/chatbot/practice-guide copy.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-unreachable */
import { isBrowserChrome } from '@src/utils/isBrowserChrome';
import { GetStaticProps, NextPage } from 'next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { GetServerSideProps, NextPage } from 'next';
// import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { useEffect, useState } from 'react';
import Seo from '@src/components/common/Seo';
import { useMediaQuery } from '@react-hookz/web';
Expand Down Expand Up @@ -142,18 +142,25 @@ const PracticeGuidePage: NextPage = () => {
)
};

export const getStaticProps: GetStaticProps = async ({ locale }) => {
export const getServerSideProps: GetServerSideProps = async ({ locale }) => {
locale;
return {
props: {
...(await serverSideTranslations(locale || 'zh', [
'common',
'homepage',
'seos',
'features',
])),
locale: locale?.toLowerCase() ?? 'zh',
redirect: {
destination: "/",
permanent: false,
},
};
// return {
// props: {
// ...(await serverSideTranslations(locale || 'zh', [
// 'common',
// 'homepage',
// 'seos',
// 'features',
// ])),
// locale: locale?.toLowerCase() ?? 'zh',
// },
// };
};

export default PracticeGuidePage;
11 changes: 9 additions & 2 deletions src/pages/features/about-us.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-unreachable */
import { isBrowserChrome } from '@src/utils/isBrowserChrome';
import { GetStaticProps, NextPage } from 'next';
import { GetServerSideProps, NextPage } from 'next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { useEffect, useState } from 'react';
import { FeatureHeroPage } from '@src/components/features/FeatureHeroPage';
Expand Down Expand Up @@ -141,7 +141,14 @@ const CustomerAcquisitionPage: NextPage = () => {
);
};

export const getStaticProps: GetStaticProps = async ({ locale }) => {
export const getServerSideProps: GetServerSideProps = async ({ locale }) => {
locale;
return {
redirect: {
destination: "/",
permanent: false,
},
};
return {
props: {
...(await serverSideTranslations(locale || 'zh', [
Expand Down
7 changes: 2 additions & 5 deletions src/pages/features/case.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ import { useMediaQuery } from '@react-hookz/web';
import ContactUsModal from '@src/components/ContactUsModal';
import { useShowModal } from '@src/utils/showModal';
import FooterBarWithButton from '@src/components/FooterBarWithButton';
import { useTranslation } from 'react-i18next';
import { HIDE_CONTACT_US } from '@src/config';

const CustomerAcquisitionPage: NextPage = () => {
const { t } = useTranslation('common');
const isSmallDevice = useMediaQuery('only screen and (max-width : 600px)');
const [, toggleChrome] = useState(true);
const [showModal, setShowModal] = useState(false);
Expand Down Expand Up @@ -52,10 +50,9 @@ const CustomerAcquisitionPage: NextPage = () => {
{!HIDE_CONTACT_US ? (
<div
onClick={() => showPcModal({ qrCode: 'sf-04' })}
className='w-[162px] bg-[#0555FF] h-[60px] rounded-[100px] flex justify-center items-center text-[18px] font-semibold text-white absolute top-[17.45%] left-[50%] cursor-pointer'
style={{ transform: 'translate(-50%)', boxShadow: ' 0px 35px 50px -15px rgba(52, 128, 239, 0.3)' }}
className='w-[162px] h-[90px] rounded-[100px] flex justify-center items-center text-[18px] font-semibold text-white absolute top-[16.45%] left-[50%] cursor-pointer'
style={{ transform: 'translate(-50%)', }}
>
{t('lets-talk')}
</div>
) : (
<div
Expand Down
29 changes: 18 additions & 11 deletions src/pages/features/contact-platform.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isBrowserChrome } from '@src/utils/isBrowserChrome';
import { GetStaticProps, NextPage } from 'next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { GetServerSideProps, NextPage } from 'next';
// import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { useEffect, useState } from 'react';
import { FeatureHeroPage } from '@src/components/features/FeatureHeroPage';
import { FeatureDescription } from '@src/components/features/FeatureDescription';
Expand Down Expand Up @@ -124,18 +124,25 @@ const ContactPlatformPage: NextPage = () => {
);
};

export const getStaticProps: GetStaticProps = async ({ locale }) => {
export const getServerSideProps: GetServerSideProps = async ({ locale }) => {
locale;
return {
props: {
...(await serverSideTranslations(locale || 'zh', [
'common',
'homepage',
'seos',
'features',
])),
locale: locale?.toLowerCase() ?? 'zh',
redirect: {
destination: "/",
permanent: false,
},
};
// return {
// props: {
// ...(await serverSideTranslations(locale || 'zh', [
// 'common',
// 'homepage',
// 'seos',
// 'features',
// ])),
// locale: locale?.toLowerCase() ?? 'zh',
// },
// };
};

export default ContactPlatformPage;
30 changes: 19 additions & 11 deletions src/pages/features/customer-acquisition.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isBrowserChrome } from '@src/utils/isBrowserChrome';
import { GetStaticProps, NextPage } from 'next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { GetServerSideProps, NextPage } from 'next';
// import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { useEffect, useState } from 'react';
import { FeatureHeroPage } from '@src/components/features/FeatureHeroPage';
import { FeatureDescription } from '@src/components/features/FeatureDescription';
Expand Down Expand Up @@ -124,18 +124,26 @@ const CustomerAcquisitionPage: NextPage = () => {
);
};

export const getStaticProps: GetStaticProps = async ({ locale }) => {
export const getServerSideProps: GetServerSideProps = async ({ locale }) => {
locale;
return {
props: {
...(await serverSideTranslations(locale || 'zh', [
'common',
'homepage',
'seos',
'features',
])),
locale: locale?.toLowerCase() ?? 'zh',
redirect: {
destination: "/",
permanent: false,
},
};
// return {
// props: {
// ...(await serverSideTranslations(locale || 'zh', [
// 'common',
// 'homepage',
// 'seos',
// 'features',
// ])),
// locale: locale?.toLowerCase() ?? 'zh',
// },
// };
};


export default CustomerAcquisitionPage;
29 changes: 18 additions & 11 deletions src/pages/features/data-center.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isBrowserChrome } from '@src/utils/isBrowserChrome';
import { GetStaticProps, NextPage } from 'next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { GetServerSideProps, NextPage } from 'next';
// import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { useEffect, useState } from 'react';
import { FeatureHeroPage } from '@src/components/features/FeatureHeroPage';
import { FeatureDescription } from '@src/components/features/FeatureDescription';
Expand Down Expand Up @@ -124,18 +124,25 @@ const DataCenterPage: NextPage = () => {
);
};

export const getStaticProps: GetStaticProps = async ({ locale }) => {
export const getServerSideProps: GetServerSideProps = async ({ locale }) => {
locale;
return {
props: {
...(await serverSideTranslations(locale || 'zh', [
'common',
'homepage',
'seos',
'features',
])),
locale: locale?.toLowerCase() ?? 'zh',
redirect: {
destination: "/",
permanent: false,
},
};
// return {
// props: {
// ...(await serverSideTranslations(locale || 'zh', [
// 'common',
// 'homepage',
// 'seos',
// 'features',
// ])),
// locale: locale?.toLowerCase() ?? 'zh',
// },
// };
};

export default DataCenterPage;
29 changes: 18 additions & 11 deletions src/pages/features/management.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isBrowserChrome } from '@src/utils/isBrowserChrome';
import { GetStaticProps, NextPage } from 'next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { GetServerSideProps, NextPage } from 'next';
// import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { useEffect, useState } from 'react';
import { FeatureHeroPage } from '@src/components/features/FeatureHeroPage';
import { FeatureDescription } from '@src/components/features/FeatureDescription';
Expand Down Expand Up @@ -124,18 +124,25 @@ const ManagementPage: NextPage = () => {
);
};

export const getStaticProps: GetStaticProps = async ({ locale }) => {
export const getServerSideProps: GetServerSideProps = async ({ locale }) => {
locale;
return {
props: {
...(await serverSideTranslations(locale || 'zh', [
'common',
'homepage',
'seos',
'features',
])),
locale: locale?.toLowerCase() ?? 'zh',
redirect: {
destination: "/",
permanent: false,
},
};
// return {
// props: {
// ...(await serverSideTranslations(locale || 'zh', [
// 'common',
// 'homepage',
// 'seos',
// 'features',
// ])),
// locale: locale?.toLowerCase() ?? 'zh',
// },
// };
};

export default ManagementPage;
11 changes: 9 additions & 2 deletions src/pages/features/rpa.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-unreachable */
import { isBrowserChrome } from '@src/utils/isBrowserChrome';
import { GetStaticProps, NextPage } from 'next';
import { GetServerSideProps, NextPage } from 'next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { useEffect, useState } from 'react';
import Seo from '@src/components/common/Seo';
Expand Down Expand Up @@ -177,7 +177,14 @@ const CustomerAcquisitionPage: NextPage = () => {
);
};

export const getStaticProps: GetStaticProps = async ({ locale }) => {
export const getServerSideProps: GetServerSideProps = async ({ locale }) => {
locale;
return {
redirect: {
destination: "/",
permanent: false,
},
};
return {
props: {
...(await serverSideTranslations(locale || 'zh', [
Expand Down
27 changes: 17 additions & 10 deletions src/pages/features/security.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isBrowserChrome } from '@src/utils/isBrowserChrome';
import { GetStaticProps, NextPage } from 'next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { GetServerSideProps, NextPage } from 'next';
// import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { useEffect, useState } from 'react';
import AppealBar from '@src/components/index/AppealBar';
import Seo from '@src/components/common/Seo';
Expand Down Expand Up @@ -122,17 +122,24 @@ const ContactPlatformPage: NextPage = () => {
);
};

export const getStaticProps: GetStaticProps = async ({ locale }) => {
export const getServerSideProps: GetServerSideProps = async ({ locale }) => {
locale;
return {
props: {
...(await serverSideTranslations(locale || 'zh', [
'common',
'homepage',
'seos',
])),
locale: locale?.toLowerCase() ?? 'zh',
redirect: {
destination: "/",
permanent: false,
},
};
// return {
// props: {
// ...(await serverSideTranslations(locale || 'zh', [
// 'common',
// 'homepage',
// 'seos',
// ])),
// locale: locale?.toLowerCase() ?? 'zh',
// },
// };
};

export default ContactPlatformPage;
29 changes: 18 additions & 11 deletions src/pages/features/sop.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isBrowserChrome } from '@src/utils/isBrowserChrome';
import { GetStaticProps, NextPage } from 'next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { GetServerSideProps, NextPage } from 'next';
// import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { useEffect, useState } from 'react';
import { FeatureHeroPage } from '@src/components/features/FeatureHeroPage';
import { FeatureDescription } from '@src/components/features/FeatureDescription';
Expand Down Expand Up @@ -124,18 +124,25 @@ const SopPage: NextPage = () => {
);
};

export const getStaticProps: GetStaticProps = async ({ locale }) => {
export const getServerSideProps: GetServerSideProps = async ({ locale }) => {
locale;
return {
props: {
...(await serverSideTranslations(locale || 'zh', [
'common',
'homepage',
'seos',
'features',
])),
locale: locale?.toLowerCase() ?? 'zh',
redirect: {
destination: "/",
permanent: false,
},
};
// return {
// props: {
// ...(await serverSideTranslations(locale || 'zh', [
// 'common',
// 'homepage',
// 'seos',
// 'features',
// ])),
// locale: locale?.toLowerCase() ?? 'zh',
// },
// };
};

export default SopPage;

0 comments on commit 9943037

Please sign in to comment.