MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / listNodes

Function listNodes

frontend/src/utils/node.ts:25–32  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

23};
24
25export async function listNodes(type: string): Promise<Array<Setting.NodeItem>> {
26 try {
27 const res = await listNodeOptions(type);
28 return res.data || [];
29 } catch (error) {
30 return [];
31 }
32}
33
34export const setDefaultNodeInfo = () => {
35 const globalStore = GlobalStore();

Callers 1

changeToLocalFunction · 0.85

Calls 1

listNodeOptionsFunction · 0.90

Tested by

no test coverage detected