Commit a1fc9cb 1 parent 2dd6dc9 commit a1fc9cb Copy full SHA for a1fc9cb
File tree 2 files changed +18
-20
lines changed
2 files changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,24 @@ import { PageRSE as PageRSEStory } from "@/component-library/Pages/RSE/PageRSE";
4
4
import { RSEBlockState } from "@/lib/core/entity/rucio" ;
5
5
import { RSEAttributeViewModel , RSEProtocolViewModel , RSEViewModel } from "@/lib/infrastructure/data/view-model/rse" ;
6
6
import { useEffect , useState } from "react" ;
7
- import { getAttributes , getProtocols , getRSE } from "../../queries" ;
7
+
8
+ async function getRSE ( rseName : string ) : Promise < RSEViewModel > {
9
+ const url = `${ process . env . NEXT_PUBLIC_WEBUI_HOST } /api/feature/get-rse?` + new URLSearchParams ( { rseName} )
10
+ const res = await fetch ( url )
11
+ return await res . json ( )
12
+ }
13
+
14
+ async function getProtocols ( rseName : string ) : Promise < RSEProtocolViewModel > {
15
+ const url = `${ process . env . NEXT_PUBLIC_WEBUI_HOST } /api/feature/get-rse-protocols?` + new URLSearchParams ( { rseName} )
16
+ const res = await fetch ( url )
17
+ return await res . json ( )
18
+ }
19
+
20
+ async function getAttributes ( rseName :string ) : Promise < RSEAttributeViewModel > {
21
+ const url = `${ process . env . NEXT_PUBLIC_WEBUI_HOST } /api/feature/get-rse-attributes?` + new URLSearchParams ( { rseName} )
22
+ const res = await fetch ( url )
23
+ return await res . json ( )
24
+ }
8
25
9
26
export default function Page ( { params } : { params : { name : string } } ) {
10
27
const [ rse , setRSE ] = useState < RSEViewModel > ( { status : "pending" } as RSEViewModel )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments