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

Function useGlobalStore

frontend/src/composables/useGlobalStore.ts:20–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18type GlobalGetterRefs = Record<GlobalGetterKey, ComputedRef<any>>;
19
20export const useGlobalStore = () => {
21 const globalStore = GlobalStore();
22 const storeRefs = storeToRefs(globalStore) as ReturnType<typeof storeToRefs> &
23 ToRefs<GlobalState> &
24 GlobalGetterRefs;
25
26 return {
27 globalStore,
28 ...storeRefs,
29 };
30};

Callers 10

useResize.tsFile · 0.90
checkStreamAuthFunction · 0.90
redirectToEntranceFunction · 0.90
checkStatusFunction · 0.90
useLogoFunction · 0.90
useThemeFunction · 0.90
useMenuManagePermissionFunction · 0.90
clearLicenseStatusFunction · 0.90
clearLoginStatusFunction · 0.90
index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected