Spaces:
Configuration error
Configuration error
Download frontend/src/store.ts from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/store.ts
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/store.ts
-
curl -L -o store.ts https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/store.ts
1.25 kB
| import { combineReducers, configureStore } from "@reduxjs/toolkit"; | |
| import agentReducer from "./state/agent-slice"; | |
| import browserReducer from "./state/browser-slice"; | |
| import chatReducer from "./state/chat-slice"; | |
| import codeReducer from "./state/code-slice"; | |
| import fileStateReducer from "./state/file-state-slice"; | |
| import initialQueryReducer from "./state/initial-query-slice"; | |
| import commandReducer from "./state/command-slice"; | |
| import { jupyterReducer } from "./state/jupyter-slice"; | |
| import securityAnalyzerReducer from "./state/security-analyzer-slice"; | |
| import statusReducer from "./state/status-slice"; | |
| import metricsReducer from "./state/metrics-slice"; | |
| export const rootReducer = combineReducers({ | |
| fileState: fileStateReducer, | |
| initialQuery: initialQueryReducer, | |
| browser: browserReducer, | |
| chat: chatReducer, | |
| code: codeReducer, | |
| cmd: commandReducer, | |
| agent: agentReducer, | |
| jupyter: jupyterReducer, | |
| securityAnalyzer: securityAnalyzerReducer, | |
| status: statusReducer, | |
| metrics: metricsReducer, | |
| }); | |
| const store = configureStore({ | |
| reducer: rootReducer, | |
| }); | |
| export type RootState = ReturnType<typeof store.getState>; | |
| export type AppStore = typeof store; | |
| export type AppDispatch = typeof store.dispatch; | |
| export default store; | |