# React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
## Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level `parserOptions` property like this:
```js
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
}
```
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
没有合适的资源?快使用搜索试试~ 我知道了~
.NET AI代理中转站,支持将国产AI模型的接口格式转换成OpenAi通用的格式
共89个文件
cs:43个
tsx:13个
json:8个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 2 浏览量
2024-03-16
12:24:11
上传
评论
收藏 132KB ZIP 举报
温馨提示
.NET AI代理中转站,支持将国产AI模型的接口格式转换成OpenAi通用的格式。
资源推荐
资源详情
资源评论
收起资源包目录
token-api-master.zip (89个子文件)
token-api-master
Directory.Build.props 223B
src
TokenApi.Service
DataAccess
TokenApiDbContext.cs 3KB
Dto
UserDto.cs 199B
ChatChannelInput.cs 594B
ChatCompletionDto.cs 2KB
TokenInput.cs 492B
TokenDto.cs 1KB
PagingDto.cs 254B
appsettings.Development.json 119B
TokenApi.Service.csproj 2KB
token.db 4KB
Model
ResultDto.cs 1KB
Infrastructure
IUserContext.cs 1KB
TokenHttpClient.cs 2KB
Helper
StringHelper.cs 1KB
TokenHelper.cs 603B
JwtHelper.cs 3KB
Domain
ChatChannel.cs 754B
Core
ISoftDeletion.cs 168B
Entity.cs 553B
User.cs 784B
Token.cs 1KB
Logger.cs 694B
prompt-rate.json 2KB
ServiceCollectionExtensions.cs 1KB
Dockerfile 899B
Properties
launchSettings.json 1KB
Options
JwtOptions.cs 304B
OpenAIOptions.cs 326B
JsonDateTimeConverter.cs 543B
Program.cs 6KB
Service
ApplicationService.cs 753B
ChannelService.cs 2KB
TokenService.cs 2KB
AliyunFCService.cs 3KB
ChatService.cs 8KB
SparkDeskService.cs 3KB
AuthorizeService.cs 814B
OpenAIService.cs 2KB
Migrations
20240312075853_addChannel.Designer.cs 8KB
TokenApiDbContextModelSnapshot.cs 8KB
20240312075853_addChannel.cs 3KB
20240307092829_Initial.Designer.cs 6KB
20240307092829_Initial.cs 6KB
TokenApi.Service.http 139B
appsettings.json 389B
Contract
IChatService.cs 244B
OpenAIResult.cs 1KB
CompletionResult.cs 88B
OpenAIError.cs 228B
Exceptions
NotModelException.cs 206B
NotSupportedException.cs 221B
LICENSE 11KB
web
yarn.lock 85KB
tsconfig.node.json 233B
src
pages
current
index.tsx 112B
token
features
CreateToken.tsx 2KB
index.tsx 4KB
home
index.tsx 2KB
user
index.tsx 112B
channel
index.tsx 114B
panel
index.tsx 110B
logger
index.tsx 112B
setting
index.tsx 112B
login
index.tsx 5KB
assets
react.svg 2KB
main.tsx 165B
services
ChannelService.ts 587B
AuthorizeService.ts 249B
TokenService.ts 529B
App.tsx 1KB
config.ts 254B
App.css 392B
uitls
fetch.ts 3KB
vite-env.d.ts 38B
layouts
MainLayout.tsx 7KB
index.css 144B
package.json 844B
public
vite.svg 2KB
package-lock.json 120KB
.eslintrc.cjs 436B
vite.config.ts 163B
index.html 340B
.gitignore 253B
tsconfig.json 605B
README.md 1KB
TokenApi.sln 1KB
.gitignore 8KB
.dockerignore 393B
共 89 条
- 1
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 6723
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功