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

Function getIndexById

frontend/src/stores/useLayoutConfig.ts:51–55  ·  view source on GitHub ↗
(pageName: string, id: string)

Source from the content-addressed store, hash-verified

49 };
50
51 const getIndexById = (pageName: string, id: string) => {
52 if (!pageName) pageName = currentRoutePath.value;
53 const items = getPageLayoutConfig(pageName);
54 return items.findIndex((item) => item.id === id);
55 };
56
57 const getCardById = (pageName: string, id: string) => {
58 if (!pageName) pageName = currentRoutePath.value;

Callers 2

moveCardItemFunction · 0.85
moveCardItemFunction · 0.85

Calls 1

getPageLayoutConfigFunction · 0.85

Tested by

no test coverage detected