@openneuro/app 4.33.3 → 4.34.0-alpha.0
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 +5 -4
- package/src/client.jsx +2 -1
- package/src/scripts/authentication/signOut.ts +1 -1
- package/src/scripts/common/containers/footer.tsx +1 -1
- package/src/scripts/common/containers/header.tsx +3 -2
- package/src/scripts/common/content/affiliate-content.jsx +72 -0
- package/src/scripts/common/content/assets/affiliates/bids.jpg +0 -0
- package/src/scripts/common/content/assets/affiliates/datalad.jpg +0 -0
- package/src/scripts/common/content/assets/affiliates/nih-bi-logo.png +0 -0
- package/src/scripts/common/content/assets/front-page/brand_mark.png +0 -0
- package/src/scripts/common/content/assets/front-page/cube-get.png +0 -0
- package/src/scripts/common/content/assets/front-page/cube-share.png +0 -0
- package/src/scripts/common/content/assets/front-page/cube-use.png +0 -0
- package/src/scripts/common/content/assets/front-page/ljaf.png +0 -0
- package/src/scripts/common/content/assets/front-page/logo_app.png +0 -0
- package/src/scripts/common/content/assets/front-page/logo_cube.png +0 -0
- package/src/scripts/common/content/assets/front-page/logo_data.png +0 -0
- package/src/scripts/common/content/assets/front-page/logo_users.png +0 -0
- package/src/scripts/common/content/assets/front-page/novo-logo.png +0 -0
- package/src/scripts/common/content/assets/front-page/nru-logo.png +0 -0
- package/src/scripts/common/content/assets/front-page/nsf.png +0 -0
- package/src/scripts/common/content/assets/front-page/sqm-logo.png +0 -0
- package/src/scripts/common/content/assets/front-page/squishymedia.png +0 -0
- package/src/scripts/common/content/assets/front-page/stanford.png +0 -0
- package/src/scripts/common/content/assets/modality-cubes/brain-initiative.jpg +0 -0
- package/src/scripts/common/content/assets/modality-cubes/eeg.jpg +0 -0
- package/src/scripts/common/content/assets/modality-cubes/ieeg.jpg +0 -0
- package/src/scripts/common/content/assets/modality-cubes/meg.jpg +0 -0
- package/src/scripts/common/content/assets/modality-cubes/mri.jpg +0 -0
- package/src/scripts/common/content/assets/modality-cubes/nih_cube.jpg +0 -0
- package/src/scripts/common/content/assets/modality-cubes/nirs.jpg +0 -0
- package/src/scripts/common/content/assets/modality-cubes/pet-scan.jpg +0 -0
- package/src/scripts/common/content/assets/portal-content/nih-bi-brand.png +0 -0
- package/src/scripts/common/content/facet-content.jsx +186 -0
- package/src/scripts/common/content/front-page-content.jsx +177 -0
- package/src/scripts/common/content/image-attribution.tsx +3 -3
- package/src/scripts/common/content/modality-cube-content.jsx +92 -0
- package/src/scripts/common/content/portal-content.jsx +149 -0
- package/src/scripts/common/content/portal-grant-content.jsx +30 -0
- package/src/scripts/common/content/sortby-list.jsx +18 -0
- package/src/scripts/common/forms/warn-button.jsx +1 -1
- package/src/scripts/components/accordion/AccordionTab.tsx +68 -0
- package/src/scripts/components/accordion/AccordionWrap.tsx +22 -0
- package/src/scripts/components/accordion/__tests__/AccordionTab.spec.tsx +35 -0
- package/src/scripts/components/accordion/accordion.scss +68 -0
- package/src/scripts/components/activity-slider/ActivitySlider.tsx +121 -0
- package/src/scripts/components/activity-slider/slider.scss +130 -0
- package/src/scripts/components/affiliate-article/AffiliateArticle.tsx +26 -0
- package/src/scripts/components/affiliate-article/affiliate.scss +32 -0
- package/src/scripts/components/aggregate-count/AggregateCount.tsx +20 -0
- package/src/scripts/components/assets/activity-icon.png +0 -0
- package/src/scripts/components/assets/close-button.png +0 -0
- package/src/scripts/components/assets/favicon copy.ico +0 -0
- package/src/scripts/components/assets/favicon.ico +0 -0
- package/src/scripts/components/assets/get_data_browse.png +0 -0
- package/src/scripts/components/assets/get_data_download.png +0 -0
- package/src/scripts/components/assets/ljaf copy.png +0 -0
- package/src/scripts/components/assets/logo_app copy.png +0 -0
- package/src/scripts/components/assets/logo_cube copy.png +0 -0
- package/src/scripts/components/assets/logo_data copy.png +0 -0
- package/src/scripts/components/assets/logo_users copy.png +0 -0
- package/src/scripts/components/assets/mri-scan.jpg +0 -0
- package/src/scripts/components/assets/nih copy.png +0 -0
- package/src/scripts/components/assets/nih-bi-brand.jpg +0 -0
- package/src/scripts/components/assets/nih-stanford.jpg +0 -0
- package/src/scripts/components/assets/nih.png +0 -0
- package/src/scripts/components/assets/nimh.png +0 -0
- package/src/scripts/components/assets/nsf copy.png +0 -0
- package/src/scripts/components/assets/on-dark-horz.svg +1 -0
- package/src/scripts/components/assets/on-dark.svg +1 -0
- package/src/scripts/components/assets/on-light-horz.svg +1 -0
- package/src/scripts/components/assets/on-light.svg +1 -0
- package/src/scripts/components/assets/orcid_24x24 copy.png +0 -0
- package/src/scripts/components/assets/orcid_24x24.png +0 -0
- package/src/scripts/components/assets/share_data_collaborate.png +0 -0
- package/src/scripts/components/assets/share_data_publish.png +0 -0
- package/src/scripts/components/assets/share_data_validate.png +0 -0
- package/src/scripts/components/assets/squishymedia copy.png +0 -0
- package/src/scripts/components/assets/stanford copy.png +0 -0
- package/src/scripts/components/assets/tab-get_data.png +0 -0
- package/src/scripts/components/assets/tab-share_data.png +0 -0
- package/src/scripts/components/assets/tab-use_data.png +0 -0
- package/src/scripts/components/assets/use_data_analyze.png +0 -0
- package/src/scripts/components/assets/use_data_snapshot.png +0 -0
- package/src/scripts/components/button/Button.tsx +113 -0
- package/src/scripts/components/button/__tests__/Button.spec.tsx +21 -0
- package/src/scripts/components/button/button.scss +140 -0
- package/src/scripts/components/count-toggle/CountToggle.tsx +65 -0
- package/src/scripts/components/count-toggle/__tests__/CountToggle.spec.tsx +31 -0
- package/src/scripts/components/count-toggle/count-toggle.scss +34 -0
- package/src/scripts/components/dropdown/Dropdown.tsx +38 -0
- package/src/scripts/components/dropdown/dropdown.scss +29 -0
- package/src/scripts/components/facets/FacetRadio.tsx +43 -0
- package/src/scripts/components/facets/FacetRange.tsx +35 -0
- package/src/scripts/components/facets/FacetSearch.tsx +66 -0
- package/src/scripts/components/facets/FacetSelect.tsx +87 -0
- package/src/scripts/components/facets/SingleSelect.tsx +39 -0
- package/src/scripts/components/facets/__tests__/FacetSelect.spec.tsx +14 -0
- package/src/scripts/components/facets/__tests__/SingleSelect.spec.tsx +58 -0
- package/src/scripts/components/facets/facet.scss +244 -0
- package/src/scripts/components/footer/Footer.tsx +52 -0
- package/src/scripts/components/footer/footer.scss +20 -0
- package/src/scripts/components/formatting/__tests__/modality-label.spec.tsx +34 -0
- package/src/scripts/components/formatting/modality-label.tsx +34 -0
- package/src/scripts/components/front-page/ActivityHeader.tsx +12 -0
- package/src/scripts/components/front-page/AffiliateBlock.tsx +22 -0
- package/src/scripts/components/front-page/Contributors.tsx +28 -0
- package/src/scripts/components/front-page/GetUpdates.tsx +99 -0
- package/src/scripts/components/front-page/Infographic.tsx +36 -0
- package/src/scripts/components/front-page/front-page.scss +295 -0
- package/src/scripts/components/header/Header.tsx +151 -0
- package/src/scripts/components/header/LandingExpandedHeader.tsx +110 -0
- package/src/scripts/components/header/header.scss +409 -0
- package/src/scripts/components/icon/Icon.tsx +55 -0
- package/src/scripts/components/icon/__tests__/Icon.spec.tsx +10 -0
- package/src/scripts/components/icon/icon.scss +8 -0
- package/src/scripts/components/input/Input.tsx +137 -0
- package/src/scripts/components/input/TermSearch.tsx +101 -0
- package/src/scripts/components/input/input.scss +147 -0
- package/src/scripts/components/input/term-search.scss +68 -0
- package/src/scripts/components/json-tree/ExpandableProperty.tsx +35 -0
- package/src/scripts/components/json-tree/RecursiveProperty.tsx +67 -0
- package/src/scripts/components/json-tree/json-tree.scss +19 -0
- package/src/scripts/components/loading/Loading.tsx +19 -0
- package/src/scripts/components/loading/__tests__/Loading.spec.tsx +12 -0
- package/src/scripts/components/loading/loading.scss +141 -0
- package/src/scripts/components/logo/Logo.tsx +44 -0
- package/src/scripts/components/logo/__tests__/Logo.spec.tsx +22 -0
- package/src/scripts/components/modal/Modal.tsx +51 -0
- package/src/scripts/components/modal/ModalExample.tsx +25 -0
- package/src/scripts/components/modal/UserLoginModal.tsx +74 -0
- package/src/scripts/components/modal/__tests__/UserLoginModal.spec.tsx +37 -0
- package/src/scripts/components/modal/modal.scss +60 -0
- package/src/scripts/components/modality-cube/ModalityCube.tsx +60 -0
- package/src/scripts/components/modality-cube/modality-cube.scss +303 -0
- package/src/scripts/components/page/Page.tsx +61 -0
- package/src/scripts/components/page/page.scss +408 -0
- package/src/scripts/components/progress-bar/ProgressBar.tsx +16 -0
- package/src/scripts/components/progress-bar/progress-bar.scss +34 -0
- package/src/scripts/components/radio/Radio.tsx +33 -0
- package/src/scripts/components/radio/RadioGroup.tsx +45 -0
- package/src/scripts/components/radio/__tests__/RadioGroup.spec.tsx +31 -0
- package/src/scripts/components/radio/radio.scss +335 -0
- package/src/scripts/components/range/TwoHandleRange.scss +108 -0
- package/src/scripts/components/range/TwoHandleRange.tsx +128 -0
- package/src/scripts/components/range/__tests__/TwoHandleRange.spec.tsx +34 -0
- package/src/scripts/components/read-more/ReadMore.tsx +50 -0
- package/src/scripts/components/read-more/__tests__/ReadMore.spec.tsx +14 -0
- package/src/scripts/components/read-more/read-more.scss +79 -0
- package/src/scripts/components/scss/_flex-grid.scss +216 -0
- package/src/scripts/components/scss/_helper-classes.scss +162 -0
- package/src/scripts/components/scss/_normalize.scss +614 -0
- package/src/scripts/components/scss/_variables.scss +245 -0
- package/src/scripts/components/scss/global.scss +124 -0
- package/src/scripts/components/scss/toasts.scss +33 -0
- package/src/scripts/components/scss/upload-modal.scss +479 -0
- package/src/scripts/components/search-page/CommunityHeader.tsx +27 -0
- package/src/scripts/components/search-page/FacetBlockContainerExample.tsx +6 -0
- package/src/scripts/components/search-page/FilterDateItem.tsx +44 -0
- package/src/scripts/components/search-page/FilterListItem.tsx +62 -0
- package/src/scripts/components/search-page/FiltersBlock.tsx +277 -0
- package/src/scripts/components/search-page/ModalityHeader.tsx +64 -0
- package/src/scripts/components/search-page/NeurobagelSearch.tsx +59 -0
- package/src/scripts/components/search-page/SearchPage.tsx +114 -0
- package/src/scripts/components/search-page/SearchResultItem.tsx +417 -0
- package/src/scripts/components/search-page/SearchResultsList.tsx +48 -0
- package/src/scripts/components/search-page/SearchSort.tsx +52 -0
- package/src/scripts/components/search-page/SearchSortContainerExample.tsx +9 -0
- package/src/scripts/components/search-page/TermListItem.tsx +41 -0
- package/src/scripts/components/search-page/__tests__/NuerobagelSearch.spec.tsx +17 -0
- package/src/scripts/components/search-page/filters-block.scss +99 -0
- package/src/scripts/components/search-page/neurobagel_logo.svg +75 -0
- package/src/scripts/components/search-page/search-page.scss +505 -0
- package/src/scripts/components/search-page/search-result.scss +117 -0
- package/src/scripts/components/search-page/search-sort.scss +56 -0
- package/src/scripts/components/select/SelectGroup.tsx +41 -0
- package/src/scripts/components/select/__tests__/SelectGroup.spec.tsx +43 -0
- package/src/scripts/components/select/select.scss +40 -0
- package/src/scripts/components/textarea/Textarea.tsx +68 -0
- package/src/scripts/components/textarea/__tests__/Textarea.spec.tsx +53 -0
- package/src/scripts/components/tooltip/Tooltip.tsx +30 -0
- package/src/scripts/components/tooltip/__tests__/Tooltip.spec.tsx +14 -0
- package/src/scripts/components/tooltip/tooltip.scss +159 -0
- package/src/scripts/components/user/UserMenu.tsx +72 -0
- package/src/scripts/components/user/user-menu.scss +88 -0
- package/src/scripts/components/warn-button/WarnButton.tsx +97 -0
- package/src/scripts/components/warn-button/warn-button.scss +39 -0
- package/src/scripts/datalad/dataset/dataset-query-context.js +2 -0
- package/src/scripts/dataset/comments/comment.jsx +1 -1
- package/src/scripts/dataset/components/AnalyzeDropdown.tsx +2 -2
- package/src/scripts/dataset/components/CloneDropdown.tsx +2 -2
- package/src/scripts/dataset/components/DatasetEventItem.tsx +105 -0
- package/src/scripts/dataset/components/DatasetGitAccess.tsx +2 -2
- package/src/scripts/dataset/components/DatasetToolButton.tsx +2 -2
- package/src/scripts/dataset/components/ModalitiesMetaDataBlock.tsx +2 -10
- package/src/scripts/dataset/components/ValidationBlock.tsx +37 -2
- package/src/scripts/dataset/components/VersionList.tsx +1 -1
- package/src/scripts/dataset/components/scss/dataset-events.module.scss +41 -0
- package/src/scripts/dataset/dataset-query.jsx +12 -11
- package/src/scripts/dataset/download/__tests__/__snapshots__/download-command-line.spec.jsx.snap +7 -1
- package/src/scripts/dataset/download/__tests__/download-command-line.spec.jsx +2 -2
- package/src/scripts/dataset/download/download-command-line.jsx +17 -13
- package/src/scripts/dataset/download/download-datalad.jsx +6 -3
- package/src/scripts/dataset/download/download-link.jsx +1 -1
- package/src/scripts/dataset/download/download-s3.jsx +0 -4
- package/src/scripts/dataset/files/file-display.jsx +1 -1
- package/src/scripts/dataset/files/file-tree-unloaded-directory.jsx +1 -1
- package/src/scripts/dataset/files/file-tree.tsx +1 -1
- package/src/scripts/dataset/files/file-view.jsx +1 -1
- package/src/scripts/dataset/files/file-viewer-type.jsx +5 -1
- package/src/scripts/dataset/files/file.tsx +2 -2
- package/src/scripts/dataset/files/files.tsx +3 -3
- package/src/scripts/dataset/files/viewers/file-viewer-json.jsx +1 -1
- package/src/scripts/dataset/files/viewers/file-viewer-markdown.tsx +13 -0
- package/src/scripts/dataset/fragments/cancel-button.tsx +1 -1
- package/src/scripts/dataset/fragments/dataset-citation.jsx +2 -2
- package/src/scripts/dataset/fragments/edit-button.tsx +1 -1
- package/src/scripts/dataset/fragments/edit-list.jsx +1 -1
- package/src/scripts/dataset/fragments/save-button.tsx +1 -1
- package/src/scripts/dataset/mutations/admin-exports.jsx +1 -1
- package/src/scripts/dataset/mutations/cache-clear.jsx +1 -1
- package/src/scripts/dataset/mutations/create-anonymous-reviewer.tsx +2 -2
- package/src/scripts/dataset/mutations/dataset-events.tsx +187 -0
- package/src/scripts/dataset/mutations/dataset-relations.tsx +1 -1
- package/src/scripts/dataset/mutations/delete-anonymous-reviewer.tsx +1 -1
- package/src/scripts/dataset/mutations/delete-comment.jsx +1 -1
- package/src/scripts/dataset/mutations/delete-file.jsx +1 -1
- package/src/scripts/dataset/mutations/deprecate-version.tsx +1 -1
- package/src/scripts/dataset/mutations/flag-annex-object.jsx +2 -2
- package/src/scripts/dataset/mutations/follow.tsx +1 -1
- package/src/scripts/dataset/mutations/import-dataset.tsx +1 -1
- package/src/scripts/dataset/mutations/publish.jsx +1 -1
- package/src/scripts/dataset/mutations/remove-annex-object.jsx +2 -2
- package/src/scripts/dataset/mutations/remove-permissions.tsx +1 -1
- package/src/scripts/dataset/mutations/revalidate.jsx +2 -2
- package/src/scripts/dataset/mutations/snapshot.tsx +1 -1
- package/src/scripts/dataset/mutations/star.tsx +1 -1
- package/src/scripts/dataset/mutations/submit-metadata.jsx +1 -1
- package/src/scripts/dataset/mutations/undo-deprecate-version.tsx +2 -2
- package/src/scripts/dataset/mutations/update-permissions.tsx +1 -1
- package/src/scripts/dataset/routes/admin-datalad.jsx +4 -0
- package/src/scripts/dataset/routes/dataset-default.tsx +1 -1
- package/src/scripts/dataset/routes/delete-page.tsx +7 -3
- package/src/scripts/dataset/routes/deprecate-snapshot-page.tsx +1 -1
- package/src/scripts/dataset/routes/manage-permissions.jsx +1 -1
- package/src/scripts/dataset/routes/snapshot-default.tsx +1 -1
- package/src/scripts/dataset/routes/snapshot.tsx +1 -1
- package/src/scripts/dataset/snapshot-container.tsx +14 -8
- package/src/scripts/pages/admin/flagged-files.jsx +1 -1
- package/src/scripts/pages/admin/user-tools.tsx +1 -1
- package/src/scripts/pages/admin/users.tsx +2 -2
- package/src/scripts/pages/api.jsx +2 -2
- package/src/scripts/pages/front-page/aggregate-queries/aggregate-counts-container.tsx +6 -7
- package/src/scripts/pages/front-page/front-page.tsx +7 -9
- package/src/scripts/pages/metadata/dataset-metadata.tsx +1 -1
- package/src/scripts/search/__tests__/search-container.spec.tsx +7 -7
- package/src/scripts/search/filters-block-container.tsx +66 -9
- package/src/scripts/search/initial-search-params.tsx +7 -7
- package/src/scripts/search/inputs/__tests__/sort-by-select.spec.tsx +1 -1
- package/src/scripts/search/inputs/admin-allDatasets-toggle.tsx +1 -1
- package/src/scripts/search/inputs/age-range-input.tsx +3 -2
- package/src/scripts/search/inputs/author-input.tsx +3 -2
- package/src/scripts/search/inputs/dataset-type-select.tsx +3 -2
- package/src/scripts/search/inputs/date-radios.tsx +3 -2
- package/src/scripts/search/inputs/diagnosis-select.tsx +3 -2
- package/src/scripts/search/inputs/initiative-select.tsx +12 -6
- package/src/scripts/search/inputs/keyword-input.tsx +2 -2
- package/src/scripts/search/inputs/modality-select.tsx +28 -26
- package/src/scripts/search/inputs/pet/bodyParts_input.tsx +4 -3
- package/src/scripts/search/inputs/pet/scannerManufacturersModelNames_input.tsx +4 -3
- package/src/scripts/search/inputs/pet/scannerManufacturers_input.tsx +4 -3
- package/src/scripts/search/inputs/pet/tracerNames_input.tsx +4 -3
- package/src/scripts/search/inputs/pet/tracerRadionuclides_input.tsx +4 -3
- package/src/scripts/search/inputs/section-select.tsx +3 -2
- package/src/scripts/search/inputs/sex-radios.tsx +3 -2
- package/src/scripts/search/inputs/show-datasets-radios.tsx +4 -3
- package/src/scripts/search/inputs/sort-by-select.tsx +1 -1
- package/src/scripts/search/inputs/species-select.tsx +3 -2
- package/src/scripts/search/inputs/study-domain-input.tsx +4 -3
- package/src/scripts/search/inputs/subject-count-range-input.tsx +3 -2
- package/src/scripts/search/inputs/task-input.tsx +4 -3
- package/src/scripts/search/search-container.tsx +14 -17
- package/src/scripts/search/search-params-ctx.tsx +28 -5
- package/src/scripts/search/search-routes.tsx +2 -4
- package/src/scripts/search/use-search-results.tsx +14 -13
- package/src/scripts/uploader/upload-issues.tsx +1 -1
- package/src/scripts/uploader/upload-progress.jsx +1 -1
- package/src/scripts/uploader/uploader-modal.jsx +1 -1
- package/src/scripts/users/components/close-button.tsx +1 -1
- package/src/scripts/users/components/edit-button.tsx +1 -1
- package/src/scripts/users/components/edit-list.tsx +1 -1
- package/src/scripts/users/components/edit-string.tsx +1 -1
- package/src/scripts/users/dataset-card.tsx +2 -2
- package/src/scripts/users/user-notification-accordion.tsx +1 -1
- package/src/scripts/utils/user-login-modal-ctx.tsx +1 -1
- package/src/scripts/validation/validation-issues.tsx +2 -1
- package/src/scripts/validation/validation-panel.tsx +2 -1
- package/src/scripts/validation/validation-results.tsx +4 -3
- package/src/scripts/validation-legacy/validation-panel.jsx +2 -1
- package/src/scripts/validation-legacy/validation-results.issues.jsx +2 -3
- package/src/scripts/validation-legacy/validation-results.tsx +3 -4
- package/tsconfig.json +1 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openneuro/app",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.34.0-alpha.0",
|
|
4
4
|
"description": "React JS web frontend for the OpenNeuro platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "public/client.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@emotion/react": "11.11.1",
|
|
21
21
|
"@emotion/styled": "11.11.0",
|
|
22
22
|
"@niivue/niivue": "0.45.1",
|
|
23
|
-
"@openneuro/components": "^4.33.
|
|
23
|
+
"@openneuro/components": "^4.33.4",
|
|
24
24
|
"@sentry/react": "^8.25.0",
|
|
25
25
|
"@tanstack/react-table": "^8.9.3",
|
|
26
26
|
"buffer": "^6.0.3",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"react-dom": "^18.2.0",
|
|
41
41
|
"react-helmet": "6.1.0",
|
|
42
42
|
"react-markdown": "^9.0.1",
|
|
43
|
+
"react-multi-carousel": "^2.8.5",
|
|
43
44
|
"react-router-dom": "6.3.0",
|
|
44
45
|
"react-toastify": "6.0.9",
|
|
45
46
|
"react-usestateref": "^1.0.8",
|
|
@@ -68,11 +69,11 @@
|
|
|
68
69
|
"sass": "^1.32.8",
|
|
69
70
|
"stream-browserify": "^3.0.0",
|
|
70
71
|
"typescript": "5.6.3",
|
|
71
|
-
"vite": "5.4.
|
|
72
|
+
"vite": "5.4.18",
|
|
72
73
|
"vitest": "2.1.2"
|
|
73
74
|
},
|
|
74
75
|
"publishConfig": {
|
|
75
76
|
"access": "public"
|
|
76
77
|
},
|
|
77
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "7711b48292c2e7f40bb45759617def2bbd07c88b"
|
|
78
79
|
}
|
package/src/client.jsx
CHANGED
|
@@ -12,7 +12,8 @@ import Index from "./scripts/index"
|
|
|
12
12
|
import { config } from "./scripts/config"
|
|
13
13
|
import * as gtag from "./scripts/utils/gtag"
|
|
14
14
|
import { relayStylePagination } from "@apollo/client/utilities"
|
|
15
|
-
|
|
15
|
+
// TODO - This should be a global SCSS?
|
|
16
|
+
import "./scripts/components/page/page.scss"
|
|
16
17
|
|
|
17
18
|
gtag.initialize(config.analytics.trackingIds)
|
|
18
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { FC } from "react"
|
|
3
|
-
import { Footer } from "
|
|
3
|
+
import { Footer } from "../../components/footer/Footer"
|
|
4
4
|
import { version as openneuroVersion } from "../../../lerna.json"
|
|
5
5
|
|
|
6
6
|
const FooterContainer: FC = () => {
|
|
@@ -3,8 +3,9 @@ import type { FC } from "react"
|
|
|
3
3
|
import useState from "react-usestateref"
|
|
4
4
|
import UploaderContext from "../../uploader/uploader-context.js"
|
|
5
5
|
import UploadProgress from "../../uploader/upload-progress.jsx"
|
|
6
|
-
import { Header
|
|
7
|
-
import {
|
|
6
|
+
import { Header } from "../../components/header/Header"
|
|
7
|
+
import { LandingExpandedHeader } from "../../components/header/LandingExpandedHeader"
|
|
8
|
+
import { Input } from "../../components/input/Input"
|
|
8
9
|
import ModalitySelect from "../../search/inputs/modality-select"
|
|
9
10
|
import { UserModalOpenCtx } from "../../utils/user-login-modal-ctx"
|
|
10
11
|
import { useLocation, useNavigate } from "react-router-dom"
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import bidslogo from "./assets/affiliates/bids.jpg"
|
|
3
|
+
import dataladlogo from "./assets/affiliates/datalad.jpg"
|
|
4
|
+
import nihlogo from "./assets/affiliates/nih-bi-logo.png"
|
|
5
|
+
|
|
6
|
+
export const affiliateContent = [
|
|
7
|
+
{
|
|
8
|
+
logo: bidslogo,
|
|
9
|
+
header: "Validation Using BIDS",
|
|
10
|
+
contentOne: (
|
|
11
|
+
<>
|
|
12
|
+
The{" "}
|
|
13
|
+
<a href="https://bids.neuroimaging.io/">Brain Imaging Data Structure</a>
|
|
14
|
+
{" "}
|
|
15
|
+
(BIDS) is an emerging standard for the organization of neuroimaging
|
|
16
|
+
data.
|
|
17
|
+
</>
|
|
18
|
+
),
|
|
19
|
+
contentTwo: (
|
|
20
|
+
<>
|
|
21
|
+
Want to contribute to BIDS?
|
|
22
|
+
<br /> Visit the{" "}
|
|
23
|
+
<a href="https://groups.google.com/g/bids-discussion">
|
|
24
|
+
Google discussion group
|
|
25
|
+
</a>{" "}
|
|
26
|
+
to contribute.
|
|
27
|
+
</>
|
|
28
|
+
),
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
logo: dataladlogo,
|
|
32
|
+
header: "OpenNeuro Runs on DataLad",
|
|
33
|
+
contentOne: (
|
|
34
|
+
<>
|
|
35
|
+
Want to access OpenNeuro datasets with DataLad? Visit the{" "}
|
|
36
|
+
<a href="https://github.com/OpenNeuroDatasets/">
|
|
37
|
+
dataset collection on GitHub
|
|
38
|
+
</a>
|
|
39
|
+
.
|
|
40
|
+
</>
|
|
41
|
+
),
|
|
42
|
+
contentTwo: (
|
|
43
|
+
<>
|
|
44
|
+
A data management solution built on{" "}
|
|
45
|
+
<a href="https://github.com/">Git</a> and{" "}
|
|
46
|
+
<a href="https://git-annex.branchable.com/">Git-annex</a>. Read more
|
|
47
|
+
about <a href="https://www.datalad.org/">DataLad</a>.
|
|
48
|
+
</>
|
|
49
|
+
),
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
logo: nihlogo,
|
|
53
|
+
header: "OpenNeuro is a BRAIN Initiative designated data archive",
|
|
54
|
+
contentOne: (
|
|
55
|
+
<>
|
|
56
|
+
Data collected under{" "}
|
|
57
|
+
<a href="https://braininitiative.nih.gov/">
|
|
58
|
+
BRAIN Initiative
|
|
59
|
+
</a>
|
|
60
|
+
-funded grants may be uploaded to OpenNeuro.
|
|
61
|
+
</>
|
|
62
|
+
),
|
|
63
|
+
contentTwo: (
|
|
64
|
+
<>
|
|
65
|
+
View the collection of{" "}
|
|
66
|
+
<a href="http://localhost:9876/search/nih?query=%7B%22brain_initiative%22%3A%22true%22%7D">
|
|
67
|
+
BRAIN Initiative datasets
|
|
68
|
+
</a>
|
|
69
|
+
</>
|
|
70
|
+
),
|
|
71
|
+
},
|
|
72
|
+
]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
export const modalities = [
|
|
2
|
+
{
|
|
3
|
+
label: "MRI",
|
|
4
|
+
value: "mri",
|
|
5
|
+
count: null,
|
|
6
|
+
children: [
|
|
7
|
+
{
|
|
8
|
+
label: "Functional",
|
|
9
|
+
value: "Functional",
|
|
10
|
+
count: null,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
label: "Structural",
|
|
14
|
+
value: "Structural",
|
|
15
|
+
count: null,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
label: "Diffusion",
|
|
19
|
+
value: "Diffusion",
|
|
20
|
+
count: null,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: "ASL Perfusion",
|
|
24
|
+
value: "ASL Perfusion",
|
|
25
|
+
count: null,
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: "PET",
|
|
31
|
+
value: "pet",
|
|
32
|
+
count: null,
|
|
33
|
+
children: [
|
|
34
|
+
{
|
|
35
|
+
label: "Static",
|
|
36
|
+
value: "Static",
|
|
37
|
+
count: null,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: "Dynamic",
|
|
41
|
+
value: "Dynamic",
|
|
42
|
+
count: null,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: "EEG",
|
|
48
|
+
value: "eeg",
|
|
49
|
+
count: null,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: "iEEG",
|
|
53
|
+
value: "ieeg",
|
|
54
|
+
count: null,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
label: "MEG",
|
|
58
|
+
value: "meg",
|
|
59
|
+
count: null,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
label: "NIRS",
|
|
63
|
+
value: "nirs",
|
|
64
|
+
count: null,
|
|
65
|
+
},
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
export const datasetType_available = [
|
|
69
|
+
{ label: "All Public", value: "All Public" },
|
|
70
|
+
{ label: "Following", value: "Following" },
|
|
71
|
+
{ label: "My Datasets", value: "My Datasets" },
|
|
72
|
+
{ label: "My Bookmarks", value: "My Bookmarks" },
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
export const dataset_type = [
|
|
76
|
+
{ label: "Public", value: "Public" },
|
|
77
|
+
{ label: "Shared with Me", value: "Shared with Me" },
|
|
78
|
+
{ label: "Invalid", value: "Invalid" },
|
|
79
|
+
]
|
|
80
|
+
|
|
81
|
+
export const diagnosis_list = [
|
|
82
|
+
{
|
|
83
|
+
label: "Alzheimer's",
|
|
84
|
+
value: "Alzheimer's",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: "Another",
|
|
88
|
+
value: "Another",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: "Other",
|
|
92
|
+
value: "Other",
|
|
93
|
+
},
|
|
94
|
+
]
|
|
95
|
+
|
|
96
|
+
export const task_list = [
|
|
97
|
+
{
|
|
98
|
+
label: "Rest",
|
|
99
|
+
value: "Rest",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
label: "Another",
|
|
103
|
+
value: "Another",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
label: "Other",
|
|
107
|
+
value: "Other",
|
|
108
|
+
},
|
|
109
|
+
]
|
|
110
|
+
|
|
111
|
+
export const author_pi_list = [
|
|
112
|
+
{
|
|
113
|
+
label: "Author 1",
|
|
114
|
+
value: "Author 1",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
label: "Author 2",
|
|
118
|
+
value: "Author 2",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
label: "Author 3",
|
|
122
|
+
value: "Author 3",
|
|
123
|
+
},
|
|
124
|
+
]
|
|
125
|
+
|
|
126
|
+
export const sex_list = [
|
|
127
|
+
{ label: "All", value: "All" },
|
|
128
|
+
{ label: "Male", value: "Male" },
|
|
129
|
+
{ label: "Female", value: "Female" },
|
|
130
|
+
]
|
|
131
|
+
|
|
132
|
+
export const date_list = [
|
|
133
|
+
{ label: "All Time", value: "All Time" },
|
|
134
|
+
{ label: "Last 30 days", value: "Last 30 days" },
|
|
135
|
+
{ label: "Last 180 days", value: "Last 180 days" },
|
|
136
|
+
{ label: "Last 12 months", value: "Last 12 months" },
|
|
137
|
+
]
|
|
138
|
+
|
|
139
|
+
export const species_list = [
|
|
140
|
+
{
|
|
141
|
+
label: "Human",
|
|
142
|
+
value: "Human",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
label: "Rat",
|
|
146
|
+
value: "Rat",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
label: "Mouse",
|
|
150
|
+
value: "Mouse",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
label: "Other",
|
|
154
|
+
value: "Other",
|
|
155
|
+
},
|
|
156
|
+
]
|
|
157
|
+
|
|
158
|
+
export const section_list = [
|
|
159
|
+
{
|
|
160
|
+
label: "Cross",
|
|
161
|
+
value: "Cross",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
label: "Longitudinal",
|
|
165
|
+
value: "Longitudinal",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
label: "Other",
|
|
169
|
+
value: "Other",
|
|
170
|
+
},
|
|
171
|
+
]
|
|
172
|
+
|
|
173
|
+
export const domain_list = [
|
|
174
|
+
{
|
|
175
|
+
label: "Domain 1",
|
|
176
|
+
value: "Domain 1",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
label: "Domain 2",
|
|
180
|
+
value: "Domain 2",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
label: "Ontology",
|
|
184
|
+
value: "Ontology",
|
|
185
|
+
},
|
|
186
|
+
]
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import { Link } from "react-router-dom"
|
|
3
|
+
import ljaf from "./assets/front-page/ljaf.png"
|
|
4
|
+
import nihbi from "./assets/affiliates/nih-bi-logo.png"
|
|
5
|
+
import nsf from "./assets/front-page/nsf.png"
|
|
6
|
+
import squishymedia from "./assets/front-page/sqm-logo.png"
|
|
7
|
+
import novo from "./assets/front-page/novo-logo.png"
|
|
8
|
+
import nru from "./assets/front-page/nru-logo.png"
|
|
9
|
+
import stanford from "./assets/front-page/stanford.png"
|
|
10
|
+
import logo_app from "./assets/front-page/logo_app.png"
|
|
11
|
+
import logo_cube from "./assets/front-page/logo_cube.png"
|
|
12
|
+
import logo_data from "./assets/front-page/logo_data.png"
|
|
13
|
+
import logo_users from "./assets/front-page/logo_users.png"
|
|
14
|
+
import brand_mark from "./assets/front-page/brand_mark.png"
|
|
15
|
+
|
|
16
|
+
import getImage from "./assets/front-page/cube-get.png"
|
|
17
|
+
import shareImage from "./assets/front-page/cube-share.png"
|
|
18
|
+
import useImage from "./assets/front-page/cube-use.png"
|
|
19
|
+
|
|
20
|
+
export const frontPage = {
|
|
21
|
+
pageTitle: "OpenNeuro",
|
|
22
|
+
copyright: {
|
|
23
|
+
holder: "Stanford Center for Reproducible Neuroscience",
|
|
24
|
+
},
|
|
25
|
+
pageDescription: (
|
|
26
|
+
<h2>
|
|
27
|
+
A free and open platform for validating and sharing BIDS-compliant{" "}
|
|
28
|
+
<Link to="/search/modality/mri">MRI</Link>,{" "}
|
|
29
|
+
<Link to="/search/modality/pet">PET</Link>,{" "}
|
|
30
|
+
<Link to="/search/modality/meg">MEG</Link>,{" "}
|
|
31
|
+
<Link to="/search/modality/eeg">EEG</Link>, and{" "}
|
|
32
|
+
<Link to="/search/modality/ieeg">iEEG</Link> data
|
|
33
|
+
</h2>
|
|
34
|
+
),
|
|
35
|
+
titlePanel: {
|
|
36
|
+
logos: [
|
|
37
|
+
{
|
|
38
|
+
class: "logo-layer-users",
|
|
39
|
+
src: logo_users,
|
|
40
|
+
alt: "OpenNeuro Logo",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
class: "logo-layer-cube",
|
|
44
|
+
src: logo_cube,
|
|
45
|
+
alt: "OpenNeuro Logo",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
class: "logo-layer-app",
|
|
49
|
+
src: logo_app,
|
|
50
|
+
alt: "OpenNeuro Logo",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
class: "logo-layer-data",
|
|
54
|
+
src: logo_data,
|
|
55
|
+
alt: "OpenNeuro Logo",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
logoText: true,
|
|
59
|
+
privacyDetail: "",
|
|
60
|
+
privacyLink: "https://www.stanford.edu/site/privacy/",
|
|
61
|
+
},
|
|
62
|
+
navBar: {
|
|
63
|
+
brand: {
|
|
64
|
+
src: brand_mark,
|
|
65
|
+
alt: "OpenNeuro Logo",
|
|
66
|
+
title: "OpenNeuro Link to Home Page",
|
|
67
|
+
text: {
|
|
68
|
+
first: "Open",
|
|
69
|
+
second: "Neuro",
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
frontPageExtras: true,
|
|
74
|
+
collaborators: true,
|
|
75
|
+
infographic: [
|
|
76
|
+
{
|
|
77
|
+
name: "Get Data",
|
|
78
|
+
image: getImage,
|
|
79
|
+
htmlID: "get-data",
|
|
80
|
+
content: (
|
|
81
|
+
<>
|
|
82
|
+
<p>
|
|
83
|
+
Browse and explore public datasets and analyses from a wide range of
|
|
84
|
+
global contributors. Our collection of public datasets continues to
|
|
85
|
+
grow as more and more become BIDS compatible.
|
|
86
|
+
</p>
|
|
87
|
+
<p>
|
|
88
|
+
Download and use public data to create new datasets and run your own
|
|
89
|
+
analyses.
|
|
90
|
+
</p>
|
|
91
|
+
</>
|
|
92
|
+
),
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: "Share Data",
|
|
96
|
+
image: shareImage,
|
|
97
|
+
htmlID: "share-data",
|
|
98
|
+
content: (
|
|
99
|
+
<>
|
|
100
|
+
<p>
|
|
101
|
+
Privately share your data so your colleagues can view and edit your
|
|
102
|
+
work.
|
|
103
|
+
</p>
|
|
104
|
+
<p>
|
|
105
|
+
Publish your dataset where anyone can view, download, and run
|
|
106
|
+
analyses on it.
|
|
107
|
+
</p>
|
|
108
|
+
</>
|
|
109
|
+
),
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: "Use Data",
|
|
113
|
+
image: useImage,
|
|
114
|
+
htmlID: "use-data",
|
|
115
|
+
content: (
|
|
116
|
+
<>
|
|
117
|
+
<p>
|
|
118
|
+
Create snapshots of your datasets to ensure past analyses remain
|
|
119
|
+
reproducible as your datasets grow and change. Publish any of your
|
|
120
|
+
snapshots while you continue work on your original data behind the
|
|
121
|
+
scenes.
|
|
122
|
+
</p>
|
|
123
|
+
<p>
|
|
124
|
+
Explore your published OpenNeuro dataset using{" "}
|
|
125
|
+
<a href="https://brainlife.io/">BrainLife's</a>{" "}
|
|
126
|
+
computing network. Utilize their community driven apps to run a
|
|
127
|
+
variety of analysis and processing applications in the browser.
|
|
128
|
+
</p>
|
|
129
|
+
</>
|
|
130
|
+
),
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
support: [
|
|
134
|
+
{
|
|
135
|
+
title: "NIH Brain Initiative",
|
|
136
|
+
alt: "NIH Brain Initiative logo",
|
|
137
|
+
logo: nihbi,
|
|
138
|
+
link: "https://braininitiative.nih.gov/",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
title: "NSF",
|
|
142
|
+
alt: "National Science Foundation",
|
|
143
|
+
logo: nsf,
|
|
144
|
+
link: "https://www.nsf.gov/",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
title: "Stanford",
|
|
148
|
+
alt: "Stanford",
|
|
149
|
+
logo: stanford,
|
|
150
|
+
link: "https://www.stanford.edu",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
title: "Arnold Foundation",
|
|
154
|
+
alt: "Arnold Foundation",
|
|
155
|
+
logo: ljaf,
|
|
156
|
+
link: "http://www.arnoldfoundation.org/",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
title: "Squishymedia",
|
|
160
|
+
alt: "Squishymedia",
|
|
161
|
+
logo: squishymedia,
|
|
162
|
+
link: "https://squishymedia.com",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
title: "Novonor Disk Fonden",
|
|
166
|
+
alt: "Novonor Disk Fonden logo",
|
|
167
|
+
logo: novo,
|
|
168
|
+
link: "https://novonordiskfonden.dk/en/",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
title: "Neurobiology Research Unit",
|
|
172
|
+
alt: "Neurobiology Research Unit logo",
|
|
173
|
+
logo: nru,
|
|
174
|
+
link: "https://nru.dk/",
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
}
|
|
@@ -2,8 +2,8 @@ import React from "react"
|
|
|
2
2
|
import styled from "@emotion/styled"
|
|
3
3
|
import { Link } from "react-router-dom"
|
|
4
4
|
|
|
5
|
-
import nirs from "
|
|
6
|
-
import nih from "
|
|
5
|
+
import nirs from "./assets/modality-cubes/nirs.jpg"
|
|
6
|
+
import nih from "./assets/modality-cubes/nih_cube.jpg"
|
|
7
7
|
|
|
8
8
|
/** Image attribution content. */
|
|
9
9
|
export function Attribution(): React.ReactElement {
|
|
@@ -40,7 +40,7 @@ export function Attribution(): React.ReactElement {
|
|
|
40
40
|
OpenNeuro
|
|
41
41
|
</Link>
|
|
42
42
|
{", "}
|
|
43
|
-
<Link to="/search/modality/nirs?query=%7B%22modality_selected%22%3A%
|
|
43
|
+
<Link to="/search/modality/nirs?query=%7B%22modality_selected%22%3A%22nirs%22%7D">
|
|
44
44
|
NIRS Modality Search
|
|
45
45
|
</Link>
|
|
46
46
|
</div>
|