mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-11-05 23:18:56 +08:00
fix: 修复 bangumi search API 中的流式接口,webui 对应接口定义方法改造
- StreamingResponse 换成 EventSourceResponse,即 Server Send Event Source 方式发送数据 - webui 中 search 接口改成 rxjs Observable 方式, 这次来不及改到 vue 里,但是写了接口 usage example; - 顺手补了一些 vscode 通用的开发配置, 补了之前配置文件解析漏了一个可用环境变量的 host 字段
This commit is contained in:
18
.vscode/extensions.json
vendored
Normal file
18
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"recommendations": [
|
||||
// https://marketplace.visualstudio.com/items?itemName=antfu.unocss
|
||||
"antfu.unocss",
|
||||
// https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag
|
||||
"formulahendry.auto-rename-tag",
|
||||
// https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker
|
||||
"streetsidesoftware.code-spell-checker",
|
||||
// https://marketplace.visualstudio.com/items?itemName=naumovs.color-highlight
|
||||
"naumovs.color-highlight",
|
||||
// https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance
|
||||
"ms-python.vscode-pylance",
|
||||
// https://marketplace.visualstudio.com/items?itemName=ms-python.python
|
||||
"ms-python.python",
|
||||
// https://marketplace.visualstudio.com/items?itemName=vue.volar
|
||||
"vue.volar"
|
||||
]
|
||||
}
|
||||
17
.vscode/launch.json
vendored
Normal file
17
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Dev Backend",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"cwd": "${workspaceFolder}/backend/src",
|
||||
"program": "main.py",
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": true
|
||||
}
|
||||
]
|
||||
}
|
||||
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
@@ -10,4 +10,10 @@
|
||||
"editor.wordWrap": "off",
|
||||
},
|
||||
"python.venvPath": "./backend/venv",
|
||||
"cSpell.words": [
|
||||
"Bangumi",
|
||||
"fastapi",
|
||||
"mikan",
|
||||
"starlette"
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user