Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions projects/fastgpt/components/footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -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();
Expand All @@ -16,10 +16,10 @@ const Footer = () => {
<FooterProducts />
<LangLinks />
<div className="flex space-x-2">
<div>{`©${currentYear}`}</div>{" "}
<div>{`©${currentYear}`}</div>
<Link href={authors[0].twitter || authors[0].url} target="_blank">
{authors[0].name}
</Link>{" "}
</Link>
<div>All rights reserved.</div>
</div>
</div>
Expand Down
9 changes: 4 additions & 5 deletions projects/fastgpt/components/footer/FooterLinks.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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' })}
</Link>
))}
</div>
Expand Down
6 changes: 3 additions & 3 deletions projects/fastgpt/components/footer/FooterProducts.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -14,7 +14,7 @@ const FooterProducts = () => {
</Link>
{index !== footerProducts.length - 1 ? (
<>
<span>{""}</span>
<span>{''}</span>
</>
) : (
<></>
Expand Down
6 changes: 3 additions & 3 deletions projects/fastgpt/components/footer/LangLinks.tsx
Original file line number Diff line number Diff line change
@@ -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 (
Expand All @@ -8,7 +8,7 @@ const LangLinks = () => {
const name = localeNames[key];
return (
<span key={key}>
<Link href={`/${key === defaultLocale ? "/" : key}`}>{name}</Link>
<Link href={`/${key === defaultLocale ? '/' : key}`}>{name}</Link>
</span>
);
})}
Expand Down
4 changes: 3 additions & 1 deletion projects/fastgpt/config/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
]
};

Expand Down
2 changes: 1 addition & 1 deletion projects/fastgpt/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
},
Expand Down