├── .env.exmaple ├── .eslintrc.js ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .prettierignore ├── .prettierrc.js ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── commitlint.config.js ├── docs ├── banner.png └── qrcode.png ├── index.html ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── public └── favicon.svg ├── src ├── api │ ├── app.ts │ ├── billing.ts │ ├── chat.ts │ ├── salesman.ts │ ├── task.ts │ └── user.ts ├── assets │ └── poster.png ├── components │ ├── Icon.tsx │ ├── Markdown.tsx │ ├── SvgIcon.tsx │ └── ui │ │ ├── alert-dialog.tsx │ │ ├── avatar.tsx │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── checkbox.tsx │ │ ├── dialog.tsx │ │ ├── dropdown-menu.tsx │ │ ├── form.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── radio-group.tsx │ │ ├── scroll-area.tsx │ │ ├── separator.tsx │ │ ├── sheet.tsx │ │ ├── table.tsx │ │ ├── tabs.tsx │ │ ├── textarea.tsx │ │ └── tooltip.tsx ├── constants.ts ├── hooks │ ├── use-app-config.ts │ ├── use-auth.ts │ ├── use-mobile-code.ts │ ├── use-mobile-screen.ts │ ├── use-share-openid.ts │ ├── use-task.tsx │ └── use-wechat.ts ├── layout │ ├── Header.tsx │ ├── TabBar.tsx │ ├── TitleHeader.tsx │ └── index.tsx ├── locales │ ├── en.json │ ├── index.ts │ └── zh.json ├── main.tsx ├── pages │ ├── billing │ │ ├── BillingRecords.tsx │ │ ├── OfflinePayDialog.tsx │ │ ├── PayDialog.tsx │ │ └── index.tsx │ ├── chat │ │ ├── Chat.tsx │ │ ├── ChatItem.tsx │ │ ├── Conversation.tsx │ │ ├── MessageExporter.tsx │ │ ├── RoleListDialog.tsx │ │ └── index.tsx │ ├── error-page.tsx │ ├── login │ │ ├── LoginForm.tsx │ │ ├── Protocol.tsx │ │ ├── QrCodeDialog.tsx │ │ └── index.tsx │ ├── salesman │ │ ├── ListScroll.tsx │ │ ├── WithdrawalDialog.tsx │ │ ├── WithdrawalListDialog.tsx │ │ └── index.tsx │ └── user │ │ ├── ShareDialog.tsx │ │ └── index.tsx ├── router │ └── index.tsx ├── store │ ├── app.ts │ ├── billing.ts │ ├── chat.ts │ ├── index.ts │ ├── salesman.ts │ └── user.ts ├── styles │ └── tailwind.less └── utils │ ├── index.ts │ ├── request.ts │ └── stream-api.ts ├── tailwind.config.js ├── tsconfig.json ├── tsconfig.node.json ├── vercel.json └── vite.config.ts /.env.exmaple: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/.env.exmaple -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx --no-install commitlint -e $GIT_PARAMS -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | npx lint-staged -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/README.md -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { extends: ['@commitlint/config-conventional'] }; 2 | -------------------------------------------------------------------------------- /docs/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/docs/banner.png -------------------------------------------------------------------------------- /docs/qrcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/docs/qrcode.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/favicon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/public/favicon.svg -------------------------------------------------------------------------------- /src/api/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/api/app.ts -------------------------------------------------------------------------------- /src/api/billing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/api/billing.ts -------------------------------------------------------------------------------- /src/api/chat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/api/chat.ts -------------------------------------------------------------------------------- /src/api/salesman.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/api/salesman.ts -------------------------------------------------------------------------------- /src/api/task.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/api/task.ts -------------------------------------------------------------------------------- /src/api/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/api/user.ts -------------------------------------------------------------------------------- /src/assets/poster.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/assets/poster.png -------------------------------------------------------------------------------- /src/components/Icon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/Icon.tsx -------------------------------------------------------------------------------- /src/components/Markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/Markdown.tsx -------------------------------------------------------------------------------- /src/components/SvgIcon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/SvgIcon.tsx -------------------------------------------------------------------------------- /src/components/ui/alert-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/alert-dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/avatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/avatar.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/card.tsx -------------------------------------------------------------------------------- /src/components/ui/checkbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/checkbox.tsx -------------------------------------------------------------------------------- /src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /src/components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/form.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/radio-group.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/radio-group.tsx -------------------------------------------------------------------------------- /src/components/ui/scroll-area.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/scroll-area.tsx -------------------------------------------------------------------------------- /src/components/ui/separator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/separator.tsx -------------------------------------------------------------------------------- /src/components/ui/sheet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/sheet.tsx -------------------------------------------------------------------------------- /src/components/ui/table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/table.tsx -------------------------------------------------------------------------------- /src/components/ui/tabs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/tabs.tsx -------------------------------------------------------------------------------- /src/components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/textarea.tsx -------------------------------------------------------------------------------- /src/components/ui/tooltip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/components/ui/tooltip.tsx -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/hooks/use-app-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/hooks/use-app-config.ts -------------------------------------------------------------------------------- /src/hooks/use-auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/hooks/use-auth.ts -------------------------------------------------------------------------------- /src/hooks/use-mobile-code.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/hooks/use-mobile-code.ts -------------------------------------------------------------------------------- /src/hooks/use-mobile-screen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/hooks/use-mobile-screen.ts -------------------------------------------------------------------------------- /src/hooks/use-share-openid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/hooks/use-share-openid.ts -------------------------------------------------------------------------------- /src/hooks/use-task.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/hooks/use-task.tsx -------------------------------------------------------------------------------- /src/hooks/use-wechat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/hooks/use-wechat.ts -------------------------------------------------------------------------------- /src/layout/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/layout/Header.tsx -------------------------------------------------------------------------------- /src/layout/TabBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/layout/TabBar.tsx -------------------------------------------------------------------------------- /src/layout/TitleHeader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/layout/TitleHeader.tsx -------------------------------------------------------------------------------- /src/layout/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/layout/index.tsx -------------------------------------------------------------------------------- /src/locales/en.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/locales/en.json -------------------------------------------------------------------------------- /src/locales/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/locales/index.ts -------------------------------------------------------------------------------- /src/locales/zh.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/locales/zh.json -------------------------------------------------------------------------------- /src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/main.tsx -------------------------------------------------------------------------------- /src/pages/billing/BillingRecords.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/billing/BillingRecords.tsx -------------------------------------------------------------------------------- /src/pages/billing/OfflinePayDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/billing/OfflinePayDialog.tsx -------------------------------------------------------------------------------- /src/pages/billing/PayDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/billing/PayDialog.tsx -------------------------------------------------------------------------------- /src/pages/billing/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/billing/index.tsx -------------------------------------------------------------------------------- /src/pages/chat/Chat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/chat/Chat.tsx -------------------------------------------------------------------------------- /src/pages/chat/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/chat/ChatItem.tsx -------------------------------------------------------------------------------- /src/pages/chat/Conversation.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/chat/Conversation.tsx -------------------------------------------------------------------------------- /src/pages/chat/MessageExporter.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/chat/MessageExporter.tsx -------------------------------------------------------------------------------- /src/pages/chat/RoleListDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/chat/RoleListDialog.tsx -------------------------------------------------------------------------------- /src/pages/chat/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/chat/index.tsx -------------------------------------------------------------------------------- /src/pages/error-page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/error-page.tsx -------------------------------------------------------------------------------- /src/pages/login/LoginForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/login/LoginForm.tsx -------------------------------------------------------------------------------- /src/pages/login/Protocol.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/login/Protocol.tsx -------------------------------------------------------------------------------- /src/pages/login/QrCodeDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/login/QrCodeDialog.tsx -------------------------------------------------------------------------------- /src/pages/login/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/login/index.tsx -------------------------------------------------------------------------------- /src/pages/salesman/ListScroll.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/salesman/ListScroll.tsx -------------------------------------------------------------------------------- /src/pages/salesman/WithdrawalDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/salesman/WithdrawalDialog.tsx -------------------------------------------------------------------------------- /src/pages/salesman/WithdrawalListDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/salesman/WithdrawalListDialog.tsx -------------------------------------------------------------------------------- /src/pages/salesman/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/salesman/index.tsx -------------------------------------------------------------------------------- /src/pages/user/ShareDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/user/ShareDialog.tsx -------------------------------------------------------------------------------- /src/pages/user/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/pages/user/index.tsx -------------------------------------------------------------------------------- /src/router/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/router/index.tsx -------------------------------------------------------------------------------- /src/store/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/store/app.ts -------------------------------------------------------------------------------- /src/store/billing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/store/billing.ts -------------------------------------------------------------------------------- /src/store/chat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/store/chat.ts -------------------------------------------------------------------------------- /src/store/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/store/index.ts -------------------------------------------------------------------------------- /src/store/salesman.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/store/salesman.ts -------------------------------------------------------------------------------- /src/store/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/store/user.ts -------------------------------------------------------------------------------- /src/styles/tailwind.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/styles/tailwind.less -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /src/utils/request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/utils/request.ts -------------------------------------------------------------------------------- /src/utils/stream-api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/src/utils/stream-api.ts -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/tsconfig.node.json -------------------------------------------------------------------------------- /vercel.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/vercel.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gptlink/gptlink-web/HEAD/vite.config.ts --------------------------------------------------------------------------------