@openneuro/app 4.13.0 → 4.13.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openneuro/app",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.1-alpha.2",
|
|
4
4
|
"description": "React JS web frontend for the OpenNeuro platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "public/client.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@emotion/react": "11.6.0",
|
|
21
21
|
"@emotion/styled": "11.6.0",
|
|
22
22
|
"@niivue/niivue": "0.23.1",
|
|
23
|
-
"@openneuro/client": "^4.13.
|
|
24
|
-
"@openneuro/components": "^4.13.
|
|
23
|
+
"@openneuro/client": "^4.13.1-alpha.2",
|
|
24
|
+
"@openneuro/components": "^4.13.1-alpha.2",
|
|
25
25
|
"bids-validator": "1.9.9",
|
|
26
26
|
"bytes": "^3.0.0",
|
|
27
27
|
"comlink": "^4.0.5",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "7aeefaecb962665a9dfba58cac9060fdc4f096b9"
|
|
85
85
|
}
|
|
@@ -82,8 +82,19 @@ FileDisplay.propTypes = {
|
|
|
82
82
|
snapshotTag: PropTypes.string,
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export const FileDisplayRoute = () => {
|
|
86
|
-
return
|
|
85
|
+
export const FileDisplayRoute = ({ datasetId, snapshotTag }) => {
|
|
86
|
+
return (
|
|
87
|
+
<FileDisplay
|
|
88
|
+
datasetId={datasetId}
|
|
89
|
+
snapshotTag={snapshotTag}
|
|
90
|
+
{...useParams()}
|
|
91
|
+
/>
|
|
92
|
+
)
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
FileDisplayRoute.propTypes = {
|
|
96
|
+
datasetId: PropTypes.string,
|
|
97
|
+
snapshotTag: PropTypes.string,
|
|
87
98
|
}
|
|
88
99
|
|
|
89
100
|
export default FileDisplay
|
|
@@ -58,7 +58,10 @@ export const TabRoutesDraft = ({ dataset, hasEdit }) => {
|
|
|
58
58
|
/>
|
|
59
59
|
}
|
|
60
60
|
/>
|
|
61
|
-
<Route
|
|
61
|
+
<Route
|
|
62
|
+
path="file-display/:filePath"
|
|
63
|
+
element={<FileDisplayRoute datasetId={dataset.id} />}
|
|
64
|
+
/>
|
|
62
65
|
<Route path="metadata" element={<AddMetadata dataset={dataset} />} />
|
|
63
66
|
</Routes>
|
|
64
67
|
)
|
|
@@ -36,7 +36,12 @@ export const TabRoutesSnapshot = ({ dataset, snapshot }) => {
|
|
|
36
36
|
/>
|
|
37
37
|
}
|
|
38
38
|
/>
|
|
39
|
-
<Route
|
|
39
|
+
<Route
|
|
40
|
+
path="file-display/:filePath"
|
|
41
|
+
element={
|
|
42
|
+
<FileDisplayRoute datasetId={dataset.id} snapshotTag={snapshot.tag} />
|
|
43
|
+
}
|
|
44
|
+
/>
|
|
40
45
|
<Route path="metadata" element={<AddMetadata dataset={dataset} />} />
|
|
41
46
|
</Routes>
|
|
42
47
|
)
|