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

Function getPageLayoutConfig

frontend/src/stores/useLayoutConfig.ts:12–16  ·  view source on GitHub ↗
(pageName: string)

Source from the content-addressed store, hash-verified

10 const globalLayoutConfig = ref<LayoutWithRouter[]>(getAllLayoutConfig());
11
12 const getPageLayoutConfig = (pageName: string) => {
13 if (!pageName) pageName = currentRoutePath.value;
14 const res = globalLayoutConfig.value.find((item) => item.page === pageName)?.items;
15 return res ? res : [];
16 };
17
18 const deleteLayoutItem = (pageName: string, id: string) => {
19 if (!pageName) pageName = currentRoutePath.value;

Callers 5

deleteLayoutItemFunction · 0.85
insertLayoutItemFunction · 0.85
moveCardItemFunction · 0.85
getIndexByIdFunction · 0.85
getCardByIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected