diff --git a/README.md b/README.md index caaba99..736d675 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ ## TODO +分离公共 api 接口 env 定义 + +统一前端基础库(类型,api) + 购买页固定套餐 优惠问题 diff --git a/src/app/(home)/docs/api-docs/page.mdx b/src/app/(home)/docs/api-docs/page.mdx new file mode 100644 index 0000000..e52b71b --- /dev/null +++ b/src/app/(home)/docs/api-docs/page.mdx @@ -0,0 +1,3 @@ +# IP提取接口文档 + +暂无内容,敬请期待。 \ No newline at end of file diff --git a/src/app/(home)/docs/choose-product/page.mdx b/src/app/(home)/docs/choose-product/page.mdx new file mode 100644 index 0000000..3697477 --- /dev/null +++ b/src/app/(home)/docs/choose-product/page.mdx @@ -0,0 +1,3 @@ +# 如何选择产品 + +暂无内容,敬请期待。 \ No newline at end of file diff --git a/src/app/(home)/docs/city-lines/page.mdx b/src/app/(home)/docs/city-lines/page.mdx new file mode 100644 index 0000000..d6cbd98 --- /dev/null +++ b/src/app/(home)/docs/city-lines/page.mdx @@ -0,0 +1,3 @@ +# 有哪些城市线路 + +暂无内容,敬请期待。 \ No newline at end of file diff --git a/src/app/(home)/docs/extract-link/page.mdx b/src/app/(home)/docs/extract-link/page.mdx new file mode 100644 index 0000000..dd76b63 --- /dev/null +++ b/src/app/(home)/docs/extract-link/page.mdx @@ -0,0 +1,3 @@ +# 如何生成提取链接 + +暂无内容,敬请期待。 \ No newline at end of file diff --git a/src/app/(home)/docs/payment-records/page.mdx b/src/app/(home)/docs/payment-records/page.mdx new file mode 100644 index 0000000..79ccb1a --- /dev/null +++ b/src/app/(home)/docs/payment-records/page.mdx @@ -0,0 +1,3 @@ +# 查看支付和使用记录 + +暂无内容,敬请期待。 \ No newline at end of file diff --git a/src/app/(home)/docs/profile-settings/page.mdx b/src/app/(home)/docs/profile-settings/page.mdx new file mode 100644 index 0000000..2823c78 --- /dev/null +++ b/src/app/(home)/docs/profile-settings/page.mdx @@ -0,0 +1,3 @@ +# 修改个人信息和重置密码 + +暂无内容,后期会补充,敬请期待。 \ No newline at end of file diff --git a/src/app/(home)/docs/sidebar.tsx b/src/app/(home)/docs/sidebar.tsx index 2af5e28..7b096f3 100644 --- a/src/app/(home)/docs/sidebar.tsx +++ b/src/app/(home)/docs/sidebar.tsx @@ -8,41 +8,36 @@ type Props = { collapsed?: boolean } -// 菜单配置 - 扁平结构,支持分组 +// 菜单配置 const MENU_ITEMS = [ { - group: '官网教程', + group: '产品文档', items: [ - {key: 'browser-proxy', label: '浏览器设置代理教程'}, - {key: 'package-operations', label: '套餐续费、合并、修改时效、补重操作'}, - {key: 'fixed-package', label: '长效固定套餐操作手册'}, - ], - }, - { - group: '客户端教程', - items: [ - {key: 'ios-proxy', label: 'iOS设置代理教程'}, - {key: 'windows10-proxy', label: 'Windows10电脑设置代理教程'}, - {key: 'android-proxy', label: '安卓手机设置代理教程'}, + {key: 'product-overview', label: '产品介绍'}, + {key: 'choose-product', label: '如何选择产品'}, + {key: 'why-verify', label: '为什么需要实名认证'}, + {key: 'city-lines', label: '有哪些城市线路'}, + {key: 'api-docs', label: 'ip提取接口文档'}, + // 服务条款 ], }, { group: '操作指南', items: [ - {key: 'win7-proxy', label: 'Windows7电脑设置代理教程'}, - {key: 'mac-proxy', label: 'MAC设置代理教程'}, - {key: 'firefox-proxy', label: '火狐浏览器设置代理'}, - {key: 'socks5-usage', label: 'Socks5代理使用教程'}, - {key: 'http-notes', label: '使用 HTTP 代理注意事项'}, - {key: 'official-tutorial', label: '浏览器设置代理教程'}, + {key: 'profile-settings', label: '修改个人信息和重置密码'}, + {key: 'whitelist-guide', label: '如何添加白名单'}, + {key: 'verify-guide', label: '如何进行实名认证'}, + {key: 'extract-link', label: '如何生成提取链接'}, + {key: 'payment-records', label: '查看支付和使用记录'}, ], }, { - group: '产品介绍', + group: '客户端教程', items: [ - {key: 'product-overview', label: '产品概述'}, - {key: 'product-features', label: '产品功能'}, - {key: 'product-cert', label: '实名认证与证书'}, + {key: 'browser-proxy', label: '浏览器设置代理教程'}, + {key: 'ios-proxy', label: 'iOS设置代理教程'}, + {key: 'android-proxy', label: '安卓手机设置代理教程'}, + {key: 'windows10-proxy', label: 'Windows10电脑设置代理教程'}, ], }, { @@ -50,19 +45,15 @@ const MENU_ITEMS = [ items: [ {key: 'faq-general', label: '常见问题总览'}, {key: 'faq-billing', label: '计费与套餐问题'}, + // 业务场景集成方案 + // 故障排查 ], }, { group: '新闻资讯', items: [ {key: 'news-latest', label: '了解代理服务器的工作原理'}, - {key: 'news-announce', label: '公告'}, - ], - }, - { - group: '其他', - items: [ - {key: 'online-ip-proxy', label: '在线 IP 代理地址'}, + {key: 'news-announce', label: '网站公告'}, ], }, ] diff --git a/src/app/(home)/docs/verify-guide/page.mdx b/src/app/(home)/docs/verify-guide/page.mdx new file mode 100644 index 0000000..1337ae0 --- /dev/null +++ b/src/app/(home)/docs/verify-guide/page.mdx @@ -0,0 +1,3 @@ +# 如何进行实名认证 + +暂无内容,敬请期待。 \ No newline at end of file diff --git a/src/app/(home)/docs/whitelist-guide/page.mdx b/src/app/(home)/docs/whitelist-guide/page.mdx new file mode 100644 index 0000000..afc7feb --- /dev/null +++ b/src/app/(home)/docs/whitelist-guide/page.mdx @@ -0,0 +1,3 @@ +# 如何添加白名单 + +暂未添加内容,敬请期待。 \ No newline at end of file diff --git a/src/app/(home)/docs/why-verify/page.mdx b/src/app/(home)/docs/why-verify/page.mdx new file mode 100644 index 0000000..b15d3ac --- /dev/null +++ b/src/app/(home)/docs/why-verify/page.mdx @@ -0,0 +1,3 @@ +# 为什么需要实名认证 + +暂无内容,后期会补充,敬请期待。 \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0eaa62f..1fc2242 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -7,6 +7,7 @@ import {ProfileStoreProvider} from '@/components/stores/profile' import {LayoutStoreProvider} from '@/components/stores/layout' import {ClientStoreProvider} from '@/components/stores/client' import {getProfile} from '@/actions/auth' +import Script from 'next/script' export async function generateMetadata(): Promise { return { @@ -24,6 +25,7 @@ export default async function RootLayout(props: Readonly<{ {props.children} + )