MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / useSelectInstances

Function useSelectInstances

frontend/src/components/fc/index.ts:66–89  ·  view source on GitHub ↗
(data: UserInstance[] = [])

Source from the content-addressed store, hash-verified

64}
65
66export async function useSelectInstances(data: UserInstance[] = []) {
67 return await useMountComponent({
68 data,
69 title: t("TXT_CODE_8145d25a"),
70 columns: [
71 {
72 align: "center",
73 title: t("TXT_CODE_f70badb9"),
74 dataIndex: "nickname",
75 key: "instanceUuid"
76 },
77 {
78 align: "center",
79 title: t("TXT_CODE_5def0cbe"),
80 key: "safe"
81 },
82 {
83 align: "center",
84 title: t("TXT_CODE_fe731dfc"),
85 key: "operation"
86 }
87 ]
88 }).mount<UserInstance[]>(SelectInstances);
89}
90
91export async function useCmdAssistantDialog() {
92 return await useMountComponent().mount<string>(CmdAssistantDialog);

Callers

nothing calls this directly

Calls 1

useMountComponentFunction · 0.90

Tested by

no test coverage detected