@openneuro/app 4.2.1 → 4.2.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.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "React JS web frontend for the OpenNeuro platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "public/client.js",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@elastic/apm-rum": "5.9.1",
|
|
20
20
|
"@emotion/react": "11.6.0",
|
|
21
21
|
"@emotion/styled": "11.6.0",
|
|
22
|
-
"@openneuro/client": "^4.2.
|
|
23
|
-
"@openneuro/components": "^4.2.
|
|
22
|
+
"@openneuro/client": "^4.2.2",
|
|
23
|
+
"@openneuro/components": "^4.2.2",
|
|
24
24
|
"babel-runtime": "^6.26.0",
|
|
25
25
|
"bids-validator": "1.8.5",
|
|
26
26
|
"bytes": "^3.0.0",
|
|
@@ -121,5 +121,5 @@
|
|
|
121
121
|
"publishConfig": {
|
|
122
122
|
"access": "public"
|
|
123
123
|
},
|
|
124
|
-
"gitHead": "
|
|
124
|
+
"gitHead": "01f040e1d24d05b35ee769fd41593a9d2ebd6346"
|
|
125
125
|
}
|
|
@@ -112,8 +112,7 @@ const DraftContainer: React.FC<DraftContainerProps> = ({ dataset }) => {
|
|
|
112
112
|
field="Name"
|
|
113
113
|
rows={2}
|
|
114
114
|
description={description.Name}
|
|
115
|
-
editMode={hasEdit}
|
|
116
|
-
>
|
|
115
|
+
editMode={hasEdit}>
|
|
117
116
|
{description.Name}
|
|
118
117
|
</EditDescriptionField>
|
|
119
118
|
)}
|
|
@@ -195,21 +194,14 @@ const DraftContainer: React.FC<DraftContainerProps> = ({ dataset }) => {
|
|
|
195
194
|
/>
|
|
196
195
|
)}
|
|
197
196
|
renderFiles={() => (
|
|
198
|
-
<
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
snapshotTag={null}
|
|
207
|
-
datasetName={dataset.draft.description.Name}
|
|
208
|
-
files={dataset.draft.files}
|
|
209
|
-
editMode={hasEdit}
|
|
210
|
-
datasetPermissions={dataset.permissions}
|
|
211
|
-
/>
|
|
212
|
-
</ReadMore>
|
|
197
|
+
<Files
|
|
198
|
+
datasetId={datasetId}
|
|
199
|
+
snapshotTag={null}
|
|
200
|
+
datasetName={dataset.draft.description.Name}
|
|
201
|
+
files={dataset.draft.files}
|
|
202
|
+
editMode={hasEdit}
|
|
203
|
+
datasetPermissions={dataset.permissions}
|
|
204
|
+
/>
|
|
213
205
|
)}
|
|
214
206
|
renderReadMe={() => (
|
|
215
207
|
<MetaDataBlock
|
|
@@ -222,13 +214,11 @@ const DraftContainer: React.FC<DraftContainerProps> = ({ dataset }) => {
|
|
|
222
214
|
field="readme"
|
|
223
215
|
rows={12}
|
|
224
216
|
description={dataset.draft.readme}
|
|
225
|
-
editMode={hasEdit}
|
|
226
|
-
>
|
|
217
|
+
editMode={hasEdit}>
|
|
227
218
|
<ReadMore
|
|
228
219
|
id="readme"
|
|
229
220
|
expandLabel="Read More"
|
|
230
|
-
collapseabel="Collapse"
|
|
231
|
-
>
|
|
221
|
+
collapseabel="Collapse">
|
|
232
222
|
<Markdown>{dataset.draft.readme || 'N/A'}</Markdown>
|
|
233
223
|
</ReadMore>
|
|
234
224
|
</EditDescriptionField>
|
|
@@ -243,8 +233,7 @@ const DraftContainer: React.FC<DraftContainerProps> = ({ dataset }) => {
|
|
|
243
233
|
field="Authors"
|
|
244
234
|
heading="Authors"
|
|
245
235
|
description={description.Authors}
|
|
246
|
-
editMode={hasEdit}
|
|
247
|
-
>
|
|
236
|
+
editMode={hasEdit}>
|
|
248
237
|
{description.Authors?.length ? description.Authors : ['N/A']}
|
|
249
238
|
</EditDescriptionList>
|
|
250
239
|
|
|
@@ -376,8 +365,7 @@ const DraftContainer: React.FC<DraftContainerProps> = ({ dataset }) => {
|
|
|
376
365
|
field="Acknowledgements"
|
|
377
366
|
rows={2}
|
|
378
367
|
description={description.Acknowledgements}
|
|
379
|
-
editMode={hasEdit}
|
|
380
|
-
>
|
|
368
|
+
editMode={hasEdit}>
|
|
381
369
|
<Markdown>{description.Acknowledgements || 'N/A'}</Markdown>
|
|
382
370
|
</EditDescriptionField>
|
|
383
371
|
)}
|
|
@@ -392,8 +380,7 @@ const DraftContainer: React.FC<DraftContainerProps> = ({ dataset }) => {
|
|
|
392
380
|
field="HowToAcknowledge"
|
|
393
381
|
rows={2}
|
|
394
382
|
description={description.HowToAcknowledge}
|
|
395
|
-
editMode={hasEdit}
|
|
396
|
-
>
|
|
383
|
+
editMode={hasEdit}>
|
|
397
384
|
<Markdown>{description.HowToAcknowledge || 'N/A'}</Markdown>
|
|
398
385
|
</EditDescriptionField>
|
|
399
386
|
)}
|
|
@@ -405,8 +392,7 @@ const DraftContainer: React.FC<DraftContainerProps> = ({ dataset }) => {
|
|
|
405
392
|
field="Funding"
|
|
406
393
|
heading="Funding"
|
|
407
394
|
description={description.Funding}
|
|
408
|
-
editMode={hasEdit}
|
|
409
|
-
>
|
|
395
|
+
editMode={hasEdit}>
|
|
410
396
|
{description.Funding?.length ? description.Funding : ['N/A']}
|
|
411
397
|
</EditDescriptionList>
|
|
412
398
|
|
|
@@ -416,8 +402,7 @@ const DraftContainer: React.FC<DraftContainerProps> = ({ dataset }) => {
|
|
|
416
402
|
field="ReferencesAndLinks"
|
|
417
403
|
heading="References and Links"
|
|
418
404
|
description={description.ReferencesAndLinks}
|
|
419
|
-
editMode={hasEdit}
|
|
420
|
-
>
|
|
405
|
+
editMode={hasEdit}>
|
|
421
406
|
{description.ReferencesAndLinks?.length
|
|
422
407
|
? description.ReferencesAndLinks
|
|
423
408
|
: ['N/A']}
|
|
@@ -429,8 +414,7 @@ const DraftContainer: React.FC<DraftContainerProps> = ({ dataset }) => {
|
|
|
429
414
|
field="EthicsApprovals"
|
|
430
415
|
heading="Ethics Approvals"
|
|
431
416
|
description={description.EthicsApprovals}
|
|
432
|
-
editMode={hasEdit}
|
|
433
|
-
>
|
|
417
|
+
editMode={hasEdit}>
|
|
434
418
|
{description.EthicsApprovals?.length
|
|
435
419
|
? description.EthicsApprovals
|
|
436
420
|
: ['N/A']}
|
|
@@ -442,8 +426,7 @@ const DraftContainer: React.FC<DraftContainerProps> = ({ dataset }) => {
|
|
|
442
426
|
isOpen={deprecatedmodalIsOpen}
|
|
443
427
|
toggle={() => setDeprecatedModalIsOpen(prevIsOpen => !prevIsOpen)}
|
|
444
428
|
closeText={'close'}
|
|
445
|
-
className="deprecated-modal"
|
|
446
|
-
>
|
|
429
|
+
className="deprecated-modal">
|
|
447
430
|
<p>
|
|
448
431
|
You have selected a deprecated version. The author of the dataset
|
|
449
432
|
does not recommend this specific version.
|