diff --git a/app/components/artifacts.tsx b/app/components/artifacts.tsx index ce187fbcb..df3abcce5 100644 --- a/app/components/artifacts.tsx +++ b/app/components/artifacts.tsx @@ -239,7 +239,9 @@ export function Artifacts() { shadow onClick={() => previewRef.current?.reload()} /> -
NextChat Artifacts
+
+ Agree AI Design Artifacts +
code} diff --git a/app/components/auth.tsx b/app/components/auth.tsx index 5375bda3f..fc74973f8 100644 --- a/app/components/auth.tsx +++ b/app/components/auth.tsx @@ -1,23 +1,16 @@ import styles from "./auth.module.scss"; import { IconButton } from "./button"; -import { useState, useEffect } from "react"; +import { useEffect } from "react"; import { useNavigate } from "react-router-dom"; -import { Path, SAAS_CHAT_URL } from "../constant"; +import { Path } from "../constant"; import { useAccessStore } from "../store"; import Locale from "../locales"; -import Delete from "../icons/close.svg"; -import Arrow from "../icons/arrow.svg"; -import Logo from "../icons/logo.svg"; -import { useMobileScreen } from "@/app/utils"; import BotIcon from "../icons/bot.svg"; import { getClientConfig } from "../config/client"; import { PasswordInput } from "./ui-lib"; import LeftIcon from "@/app/icons/left.svg"; import { safeLocalStorage } from "@/app/utils"; -import { - trackSettingsPageGuideToCPaymentClick, - trackAuthorizationPageButtonToCPaymentClick, -} from "../utils/auth-settings-events"; + import clsx from "clsx"; const storage = safeLocalStorage(); @@ -27,10 +20,7 @@ export function AuthPage() { const accessStore = useAccessStore(); const goHome = () => navigate(Path.Home); const goChat = () => navigate(Path.Chat); - const goSaas = () => { - trackAuthorizationPageButtonToCPaymentClick(); - window.location.href = SAAS_CHAT_URL; - }; + // SaasStart function removed const resetAccessCode = () => { accessStore.update((access) => { @@ -48,7 +38,7 @@ export function AuthPage() { return (
- + {/* TopBanner removed */}
} @@ -115,75 +105,10 @@ export function AuthPage() { type="primary" onClick={goChat} /> - { - goSaas(); - }} - /> + {/* SaasTips button removed */}
); } -function TopBanner() { - const [isHovered, setIsHovered] = useState(false); - const [isVisible, setIsVisible] = useState(true); - const isMobile = useMobileScreen(); - useEffect(() => { - // 检查 localStorage 中是否有标记 - const bannerDismissed = storage.getItem("bannerDismissed"); - // 如果标记不存在,存储默认值并显示横幅 - if (!bannerDismissed) { - storage.setItem("bannerDismissed", "false"); - setIsVisible(true); // 显示横幅 - } else if (bannerDismissed === "true") { - // 如果标记为 "true",则隐藏横幅 - setIsVisible(false); - } - }, []); - - const handleMouseEnter = () => { - setIsHovered(true); - }; - - const handleMouseLeave = () => { - setIsHovered(false); - }; - - const handleClose = () => { - setIsVisible(false); - storage.setItem("bannerDismissed", "true"); - }; - - if (!isVisible) { - return null; - } - return ( -
-
- - - {Locale.Auth.TopTips} - { - trackSettingsPageGuideToCPaymentClick(); - }} - > - {Locale.Settings.Access.SaasStart.ChatNow} - - - -
- {(isHovered || isMobile) && ( - - )} -
- ); -} +// TopBanner component removed diff --git a/app/components/exporter.tsx b/app/components/exporter.tsx index 69a73062a..2ffff10ee 100644 --- a/app/components/exporter.tsx +++ b/app/components/exporter.tsx @@ -524,10 +524,8 @@ export function ImagePreviewer(props: {
-
NextChat
-
- github.com/ChatGPTNextWeb/ChatGPT-Next-Web -
+
Agree AI Design
+
blog.agree.host/ai
& diff --git a/app/components/settings.tsx b/app/components/settings.tsx index 68ebcf084..67446b48a 100644 --- a/app/components/settings.tsx +++ b/app/components/settings.tsx @@ -9,7 +9,6 @@ import CopyIcon from "../icons/copy.svg"; import ClearIcon from "../icons/clear.svg"; import LoadingIcon from "../icons/three-dots.svg"; import EditIcon from "../icons/edit.svg"; -import FireIcon from "../icons/fire.svg"; import EyeIcon from "../icons/eye.svg"; import DownloadIcon from "../icons/download.svg"; import UploadIcon from "../icons/upload.svg"; @@ -19,7 +18,6 @@ import ConfirmIcon from "../icons/confirm.svg"; import ConnectionIcon from "../icons/connection.svg"; import CloudSuccessIcon from "../icons/cloud-success.svg"; import CloudFailIcon from "../icons/cloud-fail.svg"; -import { trackSettingsPageGuideToCPaymentClick } from "../utils/auth-settings-events"; import { Input, List, @@ -49,8 +47,7 @@ import Locale, { changeLang, getLang, } from "../locales"; -import { copyToClipboard, clientUpdate, semverCompare } from "../utils"; -import Link from "next/link"; +import { copyToClipboard, semverCompare } from "../utils"; import { Anthropic, Azure, @@ -71,7 +68,7 @@ import { UPDATE_URL, Stability, Iflytek, - SAAS_CHAT_URL, + // SAAS_CHAT_URL removed ChatGLM, DeepSeek, SiliconFlow, @@ -693,30 +690,7 @@ export function Settings() { ); - const saasStartComponent = ( - - } - type={"primary"} - text={Locale.Settings.Access.SaasStart.ChatNow} - onClick={() => { - trackSettingsPageGuideToCPaymentClick(); - window.location.href = SAAS_CHAT_URL; - }} - /> - - ); + // SaasStart component removed const useCustomConfigComponent = // Conditionally render the following ListItem based on clientConfig.isApp !clientConfig?.isApp && ( // only show if isApp is false @@ -1510,6 +1484,7 @@ export function Settings() { + {/* 检查更新功能已隐藏 )} + */}