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:
zthxxx
2023-08-31 23:48:07 +08:00
parent 16bbf6f866
commit 7d50e360ed
12 changed files with 177 additions and 23 deletions

View File

@@ -1,3 +1,6 @@
/**
* @type `Bangumi` in backend/src/module/models/bangumi.py
*/
export interface BangumiRule {
added: boolean;
deleted: boolean;

9
webui/types/dts/html.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
/**
* https://unocss.dev/presets/attributify#vue-3
*/
import type { AttributifyAttributes } from '@unocss/preset-attributify'
declare module '@vue/runtime-dom' {
interface HTMLAttributes extends AttributifyAttributes {}
}