@@ -13,7 +13,7 @@ import { BottomResTypeEnum } from "types/bottomRes";
13
13
import { LargeBottomResIconWrapper } from "util/bottomResUtils" ;
14
14
import type { PageType } from "../constants/pageConstants" ;
15
15
import type { SizeType } from "antd/es/config-provider/SizeContext" ;
16
- import { Datasource } from "constants/datasourceConstants" ;
16
+ import { Datasource , QUICK_SSE_HTTP_API_ID } from "constants/datasourceConstants" ;
17
17
import {
18
18
QUICK_GRAPHQL_ID ,
19
19
QUICK_REST_API_ID ,
@@ -172,13 +172,22 @@ const ResButton = (props: {
172
172
compType : "streamApi" ,
173
173
} ,
174
174
} ,
175
+
175
176
alasql : {
176
177
label : trans ( "query.quickAlasql" ) ,
177
178
type : BottomResTypeEnum . Query ,
178
179
extra : {
179
180
compType : "alasql" ,
180
181
} ,
181
182
} ,
183
+ sseHttpApi : {
184
+ label : trans ( "query.quickSseHttpAPI" ) ,
185
+ type : BottomResTypeEnum . Query ,
186
+ extra : {
187
+ compType : "sseHttpApi" ,
188
+ dataSourceId : QUICK_SSE_HTTP_API_ID ,
189
+ } ,
190
+ } ,
182
191
graphql : {
183
192
label : trans ( "query.quickGraphql" ) ,
184
193
type : BottomResTypeEnum . Query ,
@@ -339,6 +348,7 @@ export function ResCreatePanel(props: ResCreateModalProps) {
339
348
< DataSourceListWrapper $placement = { placement } >
340
349
< ResButton size = { buttonSize } identifier = { "restApi" } onSelect = { onSelect } />
341
350
< ResButton size = { buttonSize } identifier = { "streamApi" } onSelect = { onSelect } />
351
+ < ResButton size = { buttonSize } identifier = { "sseHttpApi" } onSelect = { onSelect } />
342
352
< ResButton size = { buttonSize } identifier = { "alasql" } onSelect = { onSelect } />
343
353
< ResButton size = { buttonSize } identifier = { "graphql" } onSelect = { onSelect } />
344
354
< DataSourceButton size = { buttonSize } onClick = { ( ) => setCurlModalVisible ( true ) } >
0 commit comments