-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CELE-32 feat: Connect start from template
- Loading branch information
1 parent
6aa9126
commit c8aa148
Showing
8 changed files
with
271 additions
and
73 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
applications/visualizer/frontend/settings/templateWorkspaceSettings.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const TEMPLATE_ACTIVE_DATASETS = new Set(["white_1986_whole"]) | ||
export const TEMPLATE_ACTIVE_NEURONS = new Set(["ASEL", "AIYL", "AIYR"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
applications/visualizer/frontend/src/components/viewers/TwoD/TwoDViewer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
applications/visualizer/frontend/src/hooks/useSelectedWorkspace.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {Workspace} from "../models/workspace.ts"; | ||
import { useSelector } from "react-redux"; | ||
import {useGlobalContext} from "../contexts/GlobalContext.tsx"; | ||
import {RootState} from "../layout-manager/layoutManagerFactory.ts"; | ||
|
||
export function useSelectedWorkspace(): Workspace | undefined { | ||
const { workspaces } = useGlobalContext(); | ||
const workspaceId = useSelector((state: RootState) => state.workspaceId); | ||
|
||
return workspaces[workspaceId] as Workspace; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.