From bc58187ed567a7b2911c5a4878472c4164c1f535 Mon Sep 17 00:00:00 2001 From: jingyang <72259332+zjy365@users.noreply.github.com> Date: Fri, 24 May 2024 11:02:51 +0800 Subject: [PATCH] add Terms of Service (#37) --- projects/fastgpt/components/footer/Footer.tsx | 14 +++++++------- projects/fastgpt/components/footer/FooterLinks.tsx | 9 ++++----- .../fastgpt/components/footer/FooterProducts.tsx | 6 +++--- projects/fastgpt/components/footer/LangLinks.tsx | 6 +++--- projects/fastgpt/config/site.ts | 4 +++- projects/fastgpt/locales/en.json | 2 +- 6 files changed, 21 insertions(+), 20 deletions(-) diff --git a/projects/fastgpt/components/footer/Footer.tsx b/projects/fastgpt/components/footer/Footer.tsx index 4543f7f..82e7164 100644 --- a/projects/fastgpt/components/footer/Footer.tsx +++ b/projects/fastgpt/components/footer/Footer.tsx @@ -1,8 +1,8 @@ -import FooterLinks from "@/components/footer/FooterLinks"; -import FooterProducts from "@/components/footer/FooterProducts"; -import LangLinks from "@/components/footer/LangLinks"; -import { siteConfig } from "@/config/site"; -import Link from "next/link"; +import FooterLinks from '@/components/footer/FooterLinks'; +import FooterProducts from '@/components/footer/FooterProducts'; +import LangLinks from '@/components/footer/LangLinks'; +import { siteConfig } from '@/config/site'; +import Link from 'next/link'; const Footer = () => { const d = new Date(); @@ -16,10 +16,10 @@ const Footer = () => {
-
{`©${currentYear}`}
{" "} +
{`©${currentYear}`}
{authors[0].name} - {" "} +
All rights reserved.
diff --git a/projects/fastgpt/components/footer/FooterLinks.tsx b/projects/fastgpt/components/footer/FooterLinks.tsx index 19e8b96..04d84b9 100644 --- a/projects/fastgpt/components/footer/FooterLinks.tsx +++ b/projects/fastgpt/components/footer/FooterLinks.tsx @@ -1,6 +1,6 @@ -import { siteConfig } from "@/config/site"; -import Link from "next/link"; -import React from "react"; +import { siteConfig } from '@/config/site'; +import Link from 'next/link'; +import React from 'react'; const FooterLinks = () => { const links = siteConfig.footerLinks; @@ -15,8 +15,7 @@ const FooterLinks = () => { rel="noopener noreferrer nofollow" className="mx-3 flex max-w-[24px] flex-col items-center justify-center" > - {link.icon && - React.createElement(link.icon, { className: "text-lg" })} + {link.icon && React.createElement(link.icon, { className: 'text-lg' })} ))} diff --git a/projects/fastgpt/components/footer/FooterProducts.tsx b/projects/fastgpt/components/footer/FooterProducts.tsx index 4a73ea0..ec12ffc 100644 --- a/projects/fastgpt/components/footer/FooterProducts.tsx +++ b/projects/fastgpt/components/footer/FooterProducts.tsx @@ -1,5 +1,5 @@ -import { siteConfig } from "@/config/site"; -import Link from "next/link"; +import { siteConfig } from '@/config/site'; +import Link from 'next/link'; const FooterProducts = () => { const footerProducts = siteConfig.footerProducts; @@ -14,7 +14,7 @@ const FooterProducts = () => { {index !== footerProducts.length - 1 ? ( <> - {" • "} + {' • '} ) : ( <> diff --git a/projects/fastgpt/components/footer/LangLinks.tsx b/projects/fastgpt/components/footer/LangLinks.tsx index e884274..d8ead97 100644 --- a/projects/fastgpt/components/footer/LangLinks.tsx +++ b/projects/fastgpt/components/footer/LangLinks.tsx @@ -1,5 +1,5 @@ -import { defaultLocale, localeNames } from "@/lib/i18n"; -import Link from "next/link"; +import { defaultLocale, localeNames } from '@/lib/i18n'; +import Link from 'next/link'; const LangLinks = () => { return ( @@ -8,7 +8,7 @@ const LangLinks = () => { const name = localeNames[key]; return ( - {name} + {name} ); })} diff --git a/projects/fastgpt/config/site.ts b/projects/fastgpt/config/site.ts index edfae94..0daf080 100644 --- a/projects/fastgpt/config/site.ts +++ b/projects/fastgpt/config/site.ts @@ -54,7 +54,9 @@ const baseSiteConfig = { { url: 'https://sealos.io', name: 'Sealos' }, { url: 'https://doc.fastgpt.in', name: 'Docs' }, { url: 'https://doc.fastgpt.in/docs/community/', name: 'Forum' }, - { url: 'https://uuhyahynnudq.hzh.sealos.run/status/in', name: 'Status' } + { url: 'https://uuhyahynnudq.hzh.sealos.run/status/in', name: 'Status' }, + { url: 'https://doc.fastgpt.in/docs/agreement/terms', name: 'Terms of Service' }, + { url: 'https://doc.fastgpt.in/docs/agreement/privacy', name: 'Privacy Policy' } ] }; diff --git a/projects/fastgpt/locales/en.json b/projects/fastgpt/locales/en.json index b4ef788..5edb538 100644 --- a/projects/fastgpt/locales/en.json +++ b/projects/fastgpt/locales/en.json @@ -53,7 +53,7 @@ "description1": "Create", "description2": "your own AI-powered customer support,", "description3": "integrate it with", - "description4": "your products, and", + "description4": "your products, and ", "description5": "accelerate", "description6": " your growth today!" },