Skip to content

Commit

Permalink
feat: add the user agreement model (#516)
Browse files Browse the repository at this point in the history
* chore: release @petercatai/[email protected]

* feat: add the agreement model

* feat: add the agreement model

* feat: add the accept agreement api

* style: tweak the agreement

* chore: fix ci
  • Loading branch information
xingwanying authored Nov 26, 2024
1 parent e9188dd commit dbd4708
Show file tree
Hide file tree
Showing 25 changed files with 416 additions and 191 deletions.
2 changes: 1 addition & 1 deletion assistant/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@petercatai/assistant",
"version": "1.0.15",
"version": "1.0.16",
"description": "PeterCat Assistant Application",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion assistant/src/Chat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ const Chat: FC<ChatProps> = memo(
<div className="h-full w-full flex flex-col relative">
{!hideLogo && <SignatureIcon className="mx-auto my-2 flex-none" />}
{disabled && (
<div className="absolute top-[24px] left-0 w-full h-[50%] bg-[#FCFCFC] z-[999]" />
<div className="absolute top-[24px] left-0 w-full h-[50%] bg-[#FCFCFC] z-[9]" />
)}
<ProChat
className="flex-1"
Expand Down
4 changes: 4 additions & 0 deletions assistant/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,10 @@ video:where(.petercat-lui,.petercat-lui *) {
z-index: 999;
}

.z-\[9\] {
z-index: 9;
}

.m-1 {
margin: 0.25rem;
}
Expand Down
3 changes: 2 additions & 1 deletion client/.kiwi/en/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export default {
xiangMuXiangXiXin: 'Please check the documentation for more details',
chaKanGengDuo: 'Learn more',
maYiKaiYuan: 'Ant Open Source',
service: 'Terms of Service',
agreement: 'User Agreement',
agreementLabel: 'I have read and agree to the User Agreement',
policy: 'Privacy Policy',
pETER: 'PeterCat Community',
liaoJieGengDuo: 'Learn more',
Expand Down
3 changes: 2 additions & 1 deletion client/.kiwi/ja/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export default {
xiangMuXiangXiXin: 'プロジェクトの詳細情報はドキュメントでご確認ください',
chaKanGengDuo: 'もっと見る',
maYiKaiYuan: 'アントオープンソース',
service: '利用規約',
agreement: 'ユーザー契約',
agreementLabel: '私は利用規約を読み、同意しました',
policy: 'プライバシーポリシー',
pETER: 'PeterCat コミュニティ',
liaoJieGengDuo: '詳細を知る',
Expand Down
3 changes: 2 additions & 1 deletion client/.kiwi/ko/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export default {
xiangMuXiangXiXin: '프로젝트의 자세한 정보는 문서를 참조하십시오.',
chaKanGengDuo: '더 보기',
maYiKaiYuan: '앤트 오픈소스',
service: '이용약관',
agreement: '사용자 약관',
agreementLabel: '저는 이용 약관을 읽고 동의합니다',
policy: '개인정보 처리방침',
pETER: 'PeterCat 커뮤니티',
liaoJieGengDuo: '더 알아보기',
Expand Down
3 changes: 2 additions & 1 deletion client/.kiwi/zh-CN/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export default {
xiangMuXiangXiXin: '项目详细信息请进文档查阅',
chaKanGengDuo: '查看更多',
maYiKaiYuan: '蚂蚁开源',
service: '服务条款',
agreement: '用户协议',
agreementLabel: '我已阅读并同意用户协议',
policy: '隐私政策',
pETER: 'PeterCat 社区',
liaoJieGengDuo: '了解更多',
Expand Down
3 changes: 2 additions & 1 deletion client/.kiwi/zh-TW/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export default {
xiangMuXiangXiXin: '項目詳細信息請進文檔查閱',
chaKanGengDuo: '查看更多',
maYiKaiYuan: '螞蟻開源',
service: '服務條款',
agreement: '用户协议',
agreementLabel: '我已閱讀並同意用戶協議',
policy: '隱私政策',
pETER: 'PeterCat 社區',
liaoJieGengDuo: '了解更多',
Expand Down
7 changes: 1 addition & 6 deletions client/app/agreement/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import React, { useMemo } from 'react';
import HomeHeader from '@/components/HomeHeader';
import Markdown from '@/components/Markdown';
import { useGlobal } from '@/app/contexts/GlobalContext';

import { ThemeProvider } from 'antd-style';

import AgreementZhCN from '../../.kiwi/zh-CN/agreement.md';
import AgreementEN from '../../.kiwi/en/agreement.md';

Expand All @@ -27,9 +24,7 @@ export default function Agreement() {
<div className="section bg-black">
<HomeHeader />
<div className="max-w-3xl mx-auto px-6 lg:px-10 py-20">
<ThemeProvider appearance="dark">
<Markdown markdownContent={markdownContent} />
</ThemeProvider>
<Markdown markdownContent={markdownContent} />
</div>
</div>
);
Expand Down
Loading

0 comments on commit dbd4708

Please sign in to comment.