Download frontend/src/teamNavigation.mjs from Wizzas/DefectRAG: direct link, hf CLI and curl.
- Browser
- Download file 683 Bytes
-
https://huggingface.co/Wizzas/DefectRAG/resolve/ecb2a3f4a67e1aec2e445efe43c0f241176875ff/frontend/src/teamNavigation.mjs
- Command line
-
hf download hf://Wizzas/DefectRAG@ecb2a3f4a67e1aec2e445efe43c0f241176875ff/frontend/src/teamNavigation.mjs
-
curl -L -o teamNavigation.mjs https://huggingface.co/Wizzas/DefectRAG/resolve/ecb2a3f4a67e1aec2e445efe43c0f241176875ff/frontend/src/teamNavigation.mjs
683 Bytes
| // Navigation/visibility only. Native Staff/AAL2/RLS checks remain authoritative. | |
| // An explicit false still disables the interface; older configs may omit it. | |
| export const caseInterfaceEnabled=(config={})=>config?.correctiveActionsEnabled!==false; | |
| export const sharedAssistantAvailable=(health,showcase=false)=>!showcase&& | |
| Boolean(health?.mode==='cloud_session_workspace'||health?.local_sync_enabled); | |
| export function focusInspectionDetails(element){ | |
| if(!element)return; | |
| element.focus({preventScroll:true}); | |
| const reduced=globalThis.window?.matchMedia?.('(prefers-reduced-motion: reduce)').matches; | |
| element.scrollIntoView({block:'start',behavior:reduced?'auto':'smooth'}); | |
| } | |