[Dashboard] Add the new dashboard code and prompt users to try it (#11667)

This commit is contained in:
Dominic Ming
2021-01-29 15:22:26 +08:00
committed by GitHub
parent 42d501d747
commit 752da83bb7
52 changed files with 4650 additions and 33 deletions
+10
View File
@@ -0,0 +1,10 @@
import axios from "axios";
import { NodeDetailRsp, NodeListRsp } from "../type/node";
export const getNodeList = async () => {
return await axios.get<NodeListRsp>("nodes?view=summary");
};
export const getNodeDetail = async (id: string) => {
return await axios.get<NodeDetailRsp>(`nodes/${id}`);
};