Skip to content

Commit 0d3f94a

Browse files
authored
Merge pull request #1373 from chhsiao1981/selectable-niivue-viewer
Selectable niivue viewer
2 parents d982081 + 0da9c22 commit 0d3f94a

File tree

12 files changed

+283
-73
lines changed

12 files changed

+283
-73
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@cornerstonejs/tools": "^1.86.0",
4646
"@fnndsc/chrisapi": "^1.23.0",
4747
"@microlink/react-json-view": "^1.26.2",
48-
"@niivue/niivue": "0.58.0",
48+
"@niivue/niivue": "0.62.1",
4949
"@patternfly/react-charts": "^7.4.0",
5050
"@patternfly/react-core": "^5.4.0",
5151
"@patternfly/react-icons": "^5.4.0",

pnpm-lock.yaml

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const queryToString = (query: Query | Params) =>
5757

5858
let _COOKIE: any = null;
5959

60-
const getToken = () => {
60+
export const getToken = () => {
6161
const cookie = new Cookies(_COOKIE);
6262
console.info("api.getToken: cookie is _COOKIE:", cookie === _COOKIE);
6363
_COOKIE = cookie;

src/components/Feeds/FeedView.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,25 @@ import {
1313
getSelectedPlugin,
1414
resetSelectedPlugin,
1515
} from "../../store/pluginInstance/pluginInstanceSlice";
16-
import usePaginatedTreeQuery from "./usePaginatedTreeQuery";
1716
import FeedOutputBrowser from "../FeedOutputBrowser/FeedOutputBrowser";
1817
import FeedGraph from "../FeedTree/FeedGraph";
1918
import ParentComponent from "../FeedTree/ParentComponent";
2019
import { AnalysisIcon } from "../Icons";
2120
import NodeDetails from "../NodeDetails/NodeDetails";
2221
import WrapperConnect from "../Wrapper";
2322
import { DrawerActionButton } from "./DrawerUtils";
23+
import usePaginatedTreeQuery from "./usePaginatedTreeQuery";
2424
import "./Feeds.css"; // Import your CSS file
25-
import { useFetchFeed } from "./useFetchFeed";
26-
import { useSearchQueryParams } from "./usePaginate";
27-
import { usePollAllPluginStatuses } from "./usePolledStatuses";
28-
import { handleMaximize, handleMinimize } from "./utilties";
29-
import { Role } from "../../store/user/userSlice";
3025
import { collectionJsonToJson } from "../../api/api";
3126
import {
3227
PluginInstanceStatus,
3328
type PluginInstance as PluginInstanceType,
3429
} from "../../api/types";
30+
import { Role } from "../../store/user/userSlice";
31+
import { useFetchFeed } from "./useFetchFeed";
32+
import { useSearchQueryParams } from "./usePaginate";
33+
import { usePollAllPluginStatuses } from "./usePolledStatuses";
34+
import { handleMaximize, handleMinimize } from "./utilties";
3535

3636
// Custom title component to replace Typography.Title
3737
const CustomTitle = ({

src/components/Preview/displays/CatchallDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { memo } from "react";
2-
import { Alert } from "../../Antd";
32
import { getFileExtension, type IFileBlob } from "../../../api/model";
3+
import { Alert } from "../../Antd";
44

55
type AllProps = {
66
selectedFile?: IFileBlob;

src/components/Preview/displays/NiiVueDisplay.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
}
55

66
.controlBar {
7-
position: absolute;
87
top: 1.5em;
98
right: 1.5em;
109
height: 8px;

0 commit comments

Comments
 (0)