dify/web/context
yyh 6285a59508
refactor(web): extract isServer/isClient utility for consistent environment detection
Centralize server/client environment detection by introducing a dedicated utility
file instead of repeating `typeof window === 'undefined'` checks across the codebase.

This improves code maintainability and consistency across 8 files with 15 occurrences.

Closes #30802
2026-01-10 12:51:39 +08:00
..
hooks refactor(web): extract isServer/isClient utility for consistent environment detection 2026-01-10 12:51:39 +08:00
access-control-store.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
app-context.tsx feat: model total credits (#30727) 2026-01-08 14:11:44 +08:00
dataset-detail.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
datasets-context.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
debug-configuration.ts feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
event-emitter.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
explore-context.ts feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
external-api-panel-context.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
external-knowledge-api-context.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
global-public-context.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
i18n.ts refactor(web): remove useMixedTranslation, better resource loading (#30630) 2026-01-07 13:20:09 +08:00
mitt-context.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
modal-context.test.tsx chore: remove useless __esModule (#30366) 2025-12-30 15:37:16 +08:00
modal-context.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
provider-context-mock.spec.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
provider-context-mock.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
provider-context.tsx fix: correct useEducationStatus query cache configuration (#30416) 2025-12-31 13:51:05 +08:00
query-client-server.ts refactor: marketplace state management (#30702) 2026-01-09 14:31:24 +08:00
query-client.tsx refactor(web): extract isServer/isClient utility for consistent environment detection 2026-01-10 12:51:39 +08:00
web-app-context.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
workspace-context.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00