File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ import {
2121} from "./artifacts" ;
2222import { useChatStore } from "../store" ;
2323import { IconButton } from "./button" ;
24- import { SAAS_CHAT_URL } from "@/app/constant" ;
25- import { trackConversationGuideToCPaymentClick } from "../utils/auth-settings-events" ;
2624export function Mermaid ( props : { code : string } ) {
2725 const ref = useRef < HTMLDivElement > ( null ) ;
2826 const [ hasError , setHasError ] = useState ( false ) ;
@@ -281,13 +279,7 @@ function _MarkDownContent(props: { content: string }) {
281279 const href = aProps . href || "" ;
282280 const isInternal = / ^ \/ # / i. test ( href ) ;
283281 const target = isInternal ? "_self" : aProps . target ?? "_blank" ;
284- const handleClick = ( ) => {
285- if ( href === SAAS_CHAT_URL ) {
286- trackConversationGuideToCPaymentClick ( ) ;
287- }
288- } ;
289-
290- return < a { ...aProps } target = { target } onClick = { handleClick } /> ;
282+ return < a { ...aProps } target = { target } /> ;
291283 } ,
292284 } }
293285 >
Original file line number Diff line number Diff line change @@ -2,17 +2,18 @@ import { getClientConfig } from "../config/client";
22import { SubmitKey } from "../store/config" ;
33import { SAAS_CHAT_URL } from "@/app/constant" ;
44
5+ const SAAS_CHAT_URL_WITH_PARAM = `${ SAAS_CHAT_URL } ?data=title` ;
56const isApp = ! ! getClientConfig ( ) ?. isApp ;
67
78const cn = {
89 WIP : "该功能仍在开发中……" ,
910 Error : {
1011 Unauthorized : isApp
1112 ? `😆 对话遇到了一些问题,不用慌:
12- \\ 1️⃣ 想要零配置开箱即用,[点击这里立刻开启对话 🚀](${ SAAS_CHAT_URL } )
13+ \\ 1️⃣ 想要零配置开箱即用,[点击这里立刻开启对话 🚀](${ SAAS_CHAT_URL_WITH_PARAM } )
1314 \\ 2️⃣ 如果你想消耗自己的 OpenAI 资源,点击[这里](/#/settings)修改设置 ⚙️`
1415 : `😆 对话遇到了一些问题,不用慌:
15- \ 1️⃣ 想要零配置开箱即用,[点击这里立刻开启对话 🚀](${ SAAS_CHAT_URL } )
16+ \ 1️⃣ 想要零配置开箱即用,[点击这里立刻开启对话 🚀](${ SAAS_CHAT_URL_WITH_PARAM } )
1617 \ 2️⃣ 如果你正在使用私有部署版本,点击[这里](/#/auth)输入访问秘钥 🔑
1718 \ 3️⃣ 如果你想消耗自己的 OpenAI 资源,点击[这里](/#/settings)修改设置 ⚙️
1819 ` ,
You can’t perform that action at this time.
0 commit comments