Skip to content

Commit bc58187

Browse files
authored
add Terms of Service (#37)
1 parent a193709 commit bc58187

File tree

6 files changed

+21
-20
lines changed

6 files changed

+21
-20
lines changed

projects/fastgpt/components/footer/Footer.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import FooterLinks from "@/components/footer/FooterLinks";
2-
import FooterProducts from "@/components/footer/FooterProducts";
3-
import LangLinks from "@/components/footer/LangLinks";
4-
import { siteConfig } from "@/config/site";
5-
import Link from "next/link";
1+
import FooterLinks from '@/components/footer/FooterLinks';
2+
import FooterProducts from '@/components/footer/FooterProducts';
3+
import LangLinks from '@/components/footer/LangLinks';
4+
import { siteConfig } from '@/config/site';
5+
import Link from 'next/link';
66

77
const Footer = () => {
88
const d = new Date();
@@ -16,10 +16,10 @@ const Footer = () => {
1616
<FooterProducts />
1717
<LangLinks />
1818
<div className="flex space-x-2">
19-
<div>{${currentYear}`}</div>{" "}
19+
<div>{${currentYear}`}</div>
2020
<Link href={authors[0].twitter || authors[0].url} target="_blank">
2121
{authors[0].name}
22-
</Link>{" "}
22+
</Link>
2323
<div>All rights reserved.</div>
2424
</div>
2525
</div>

projects/fastgpt/components/footer/FooterLinks.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { siteConfig } from "@/config/site";
2-
import Link from "next/link";
3-
import React from "react";
1+
import { siteConfig } from '@/config/site';
2+
import Link from 'next/link';
3+
import React from 'react';
44

55
const FooterLinks = () => {
66
const links = siteConfig.footerLinks;
@@ -15,8 +15,7 @@ const FooterLinks = () => {
1515
rel="noopener noreferrer nofollow"
1616
className="mx-3 flex max-w-[24px] flex-col items-center justify-center"
1717
>
18-
{link.icon &&
19-
React.createElement(link.icon, { className: "text-lg" })}
18+
{link.icon && React.createElement(link.icon, { className: 'text-lg' })}
2019
</Link>
2120
))}
2221
</div>

projects/fastgpt/components/footer/FooterProducts.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { siteConfig } from "@/config/site";
2-
import Link from "next/link";
1+
import { siteConfig } from '@/config/site';
2+
import Link from 'next/link';
33

44
const FooterProducts = () => {
55
const footerProducts = siteConfig.footerProducts;
@@ -14,7 +14,7 @@ const FooterProducts = () => {
1414
</Link>
1515
{index !== footerProducts.length - 1 ? (
1616
<>
17-
<span>{""}</span>
17+
<span>{''}</span>
1818
</>
1919
) : (
2020
<></>

projects/fastgpt/components/footer/LangLinks.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defaultLocale, localeNames } from "@/lib/i18n";
2-
import Link from "next/link";
1+
import { defaultLocale, localeNames } from '@/lib/i18n';
2+
import Link from 'next/link';
33

44
const LangLinks = () => {
55
return (
@@ -8,7 +8,7 @@ const LangLinks = () => {
88
const name = localeNames[key];
99
return (
1010
<span key={key}>
11-
<Link href={`/${key === defaultLocale ? "/" : key}`}>{name}</Link>
11+
<Link href={`/${key === defaultLocale ? '/' : key}`}>{name}</Link>
1212
</span>
1313
);
1414
})}

projects/fastgpt/config/site.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ const baseSiteConfig = {
5454
{ url: 'https://sealos.io', name: 'Sealos' },
5555
{ url: 'https://doc.fastgpt.in', name: 'Docs' },
5656
{ url: 'https://doc.fastgpt.in/docs/community/', name: 'Forum' },
57-
{ url: 'https://uuhyahynnudq.hzh.sealos.run/status/in', name: 'Status' }
57+
{ url: 'https://uuhyahynnudq.hzh.sealos.run/status/in', name: 'Status' },
58+
{ url: 'https://doc.fastgpt.in/docs/agreement/terms', name: 'Terms of Service' },
59+
{ url: 'https://doc.fastgpt.in/docs/agreement/privacy', name: 'Privacy Policy' }
5860
]
5961
};
6062

projects/fastgpt/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"description1": "Create",
5454
"description2": "your own AI-powered customer support,",
5555
"description3": "integrate it with",
56-
"description4": "your products, and",
56+
"description4": "your products, and ",
5757
"description5": "accelerate",
5858
"description6": " your growth today!"
5959
},

0 commit comments

Comments
 (0)