mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-13 17:19: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:
@@ -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
9
webui/types/dts/html.d.ts
vendored
Normal 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 {}
|
||||
}
|
||||
Reference in New Issue
Block a user