@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
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
@import '../scss/variables';
|
|
2
|
+
|
|
3
|
+
.upload-modal.modal-wrapper {
|
|
4
|
+
// display: block;
|
|
5
|
+
// position: absolute;
|
|
6
|
+
// top: 0;
|
|
7
|
+
// z-index: 10000;
|
|
8
|
+
// background: #fff;
|
|
9
|
+
// left: 0;
|
|
10
|
+
// right: 0;
|
|
11
|
+
// width: 100%;
|
|
12
|
+
// margin: 0 auto;
|
|
13
|
+
// padding: 20px 30px;
|
|
14
|
+
// max-width: 900px;
|
|
15
|
+
// overflow: scroll;
|
|
16
|
+
// max-height: 90vh;
|
|
17
|
+
// &:focus-visible {
|
|
18
|
+
// outline: none;
|
|
19
|
+
// box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
|
|
20
|
+
// }
|
|
21
|
+
|
|
22
|
+
.modal {
|
|
23
|
+
width: 720px;
|
|
24
|
+
}
|
|
25
|
+
.modal-title {
|
|
26
|
+
margin-top: 0px;
|
|
27
|
+
font-size: 22px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
button.close {
|
|
31
|
+
border: 0;
|
|
32
|
+
background: none;
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 5px;
|
|
35
|
+
right: 5px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.container:first-child {
|
|
39
|
+
max-width: 100%;
|
|
40
|
+
.row {
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
background-color: #f6f6f6;
|
|
44
|
+
border: 1px solid #eee;
|
|
45
|
+
border-radius: $border-radius-default;
|
|
46
|
+
}
|
|
47
|
+
label {
|
|
48
|
+
display: block;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.upload-step {
|
|
53
|
+
padding: 15px 10px;
|
|
54
|
+
width: 25%;
|
|
55
|
+
text-align: center;
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
line-height: 14px;
|
|
58
|
+
color: var(--current-theme-primary);
|
|
59
|
+
border-right: 1px solid var(--current-theme-primary);
|
|
60
|
+
|
|
61
|
+
&:first-child {
|
|
62
|
+
border-radius: 4px 0 0 4px;
|
|
63
|
+
}
|
|
64
|
+
&.upload-step-active {
|
|
65
|
+
background: var(--current-theme-primary);
|
|
66
|
+
color: #fff;
|
|
67
|
+
}
|
|
68
|
+
&:last-child {
|
|
69
|
+
border-radius: 0 4px 4px 0;
|
|
70
|
+
border-right: 0;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.css-s3zw34.css-s3zw34,
|
|
75
|
+
.css-aujfvh.css-aujfvh,
|
|
76
|
+
.css-1jmdji3.css-1jmdji3 {
|
|
77
|
+
height: 50px;
|
|
78
|
+
}
|
|
79
|
+
.css-11pxw2z.css-11pxw2z,
|
|
80
|
+
.css-108565n.css-108565n.message.fade-in {
|
|
81
|
+
padding: 0;
|
|
82
|
+
}
|
|
83
|
+
.message {
|
|
84
|
+
margin: 15px 0;
|
|
85
|
+
text-align: center;
|
|
86
|
+
button {
|
|
87
|
+
display: block;
|
|
88
|
+
margin: 20px auto;
|
|
89
|
+
font-family: $font-sans;
|
|
90
|
+
font-weight: 600;
|
|
91
|
+
border: 0;
|
|
92
|
+
border-radius: $border-radius-default;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
line-height: 1;
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
padding: 16px 20px;
|
|
97
|
+
color: #fff;
|
|
98
|
+
background-color: var(--current-theme-primary);
|
|
99
|
+
transition: background-color 0.3s;
|
|
100
|
+
&:hover {
|
|
101
|
+
background-color: var(--current-theme-primary-hover);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
button[disabled] {
|
|
105
|
+
cursor: default;
|
|
106
|
+
background-color: #aaa;
|
|
107
|
+
color: #777;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
button.btn-reset {
|
|
112
|
+
display: block;
|
|
113
|
+
margin: 20px auto;
|
|
114
|
+
font-family: $font-sans;
|
|
115
|
+
font-weight: 600;
|
|
116
|
+
border: 0;
|
|
117
|
+
border-radius: $border-radius-default;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
line-height: 1;
|
|
120
|
+
font-size: 14px;
|
|
121
|
+
padding: 16px 20px;
|
|
122
|
+
color: #fff;
|
|
123
|
+
background-color: var(--current-theme-primary);
|
|
124
|
+
transition: background-color 0.3s;
|
|
125
|
+
&:hover {
|
|
126
|
+
background-color: var(--current-theme-primary-hover);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.fileupload-btn {
|
|
131
|
+
display: block;
|
|
132
|
+
margin: 20px auto;
|
|
133
|
+
font-family: $font-sans;
|
|
134
|
+
font-weight: 600;
|
|
135
|
+
border: 0;
|
|
136
|
+
border-radius: $border-radius-default;
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
line-height: 1;
|
|
139
|
+
font-size: 14px;
|
|
140
|
+
padding: 16px 20px;
|
|
141
|
+
color: #fff;
|
|
142
|
+
background-color: var(--current-theme-primary);
|
|
143
|
+
transition: background-color 0.3s;
|
|
144
|
+
width: 140px;
|
|
145
|
+
position: relative;
|
|
146
|
+
&:hover {
|
|
147
|
+
background-color: var(--current-theme-primary-hover);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
.fileupload-btn .multifile-select-btn {
|
|
151
|
+
opacity: 0;
|
|
152
|
+
position: absolute;
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
left: 0;
|
|
155
|
+
right: 0;
|
|
156
|
+
bottom: 0;
|
|
157
|
+
top: 0;
|
|
158
|
+
width: 100%;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.bids-link {
|
|
162
|
+
margin-top: 20px;
|
|
163
|
+
width: 100%;
|
|
164
|
+
text-align: center;
|
|
165
|
+
display: block;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.modal-backdrop {
|
|
170
|
+
background: rgba(0, 0, 0, 0.6);
|
|
171
|
+
position: absolute;
|
|
172
|
+
top: 0;
|
|
173
|
+
bottom: 0;
|
|
174
|
+
left: 0;
|
|
175
|
+
right: 0;
|
|
176
|
+
z-index: 1200;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.upload-progress-block {
|
|
180
|
+
.progress {
|
|
181
|
+
overflow: hidden;
|
|
182
|
+
height: 20px;
|
|
183
|
+
margin-bottom: 20px;
|
|
184
|
+
background-color: #ddd;
|
|
185
|
+
border-radius: 4px;
|
|
186
|
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// Bar of progress
|
|
190
|
+
.progress-bar {
|
|
191
|
+
float: left;
|
|
192
|
+
width: 0%;
|
|
193
|
+
height: 100%;
|
|
194
|
+
font-size: 12px;
|
|
195
|
+
line-height: 20px;
|
|
196
|
+
color: #fff;
|
|
197
|
+
text-align: center;
|
|
198
|
+
background-color: var(--current-theme-primary);
|
|
199
|
+
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
|
200
|
+
transition: width 0.6s ease;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.header-progress-wrap {
|
|
205
|
+
.upload-progress-block {
|
|
206
|
+
.progress {
|
|
207
|
+
overflow: hidden;
|
|
208
|
+
height: 20px;
|
|
209
|
+
margin-bottom: 20px;
|
|
210
|
+
background-color: #ddd;
|
|
211
|
+
border-radius: 4px;
|
|
212
|
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
213
|
+
margin: 0;
|
|
214
|
+
border-radius: 0;
|
|
215
|
+
}
|
|
216
|
+
.progress-bar {
|
|
217
|
+
background-color: var(--current-theme-primary-hover);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.upload-modal {
|
|
223
|
+
.collapse {
|
|
224
|
+
display: none;
|
|
225
|
+
|
|
226
|
+
&.in {
|
|
227
|
+
display: block;
|
|
228
|
+
}
|
|
229
|
+
// [converter] extracted tr&.in to tr.collapse.in
|
|
230
|
+
// [converter] extracted tbody&.in to tbody.collapse.in
|
|
231
|
+
}
|
|
232
|
+
.validation-messages {
|
|
233
|
+
margin: 20px 0;
|
|
234
|
+
.pull-right {
|
|
235
|
+
float: right;
|
|
236
|
+
}
|
|
237
|
+
> .upload-panel > .accordion-title {
|
|
238
|
+
z-index: 1400;
|
|
239
|
+
margin-top: 0;
|
|
240
|
+
border: 0;
|
|
241
|
+
padding: 10px 0;
|
|
242
|
+
display: block;
|
|
243
|
+
background: #ffe291;
|
|
244
|
+
color: #b17300;
|
|
245
|
+
text-align: center;
|
|
246
|
+
text-transform: uppercase;
|
|
247
|
+
font-weight: 700;
|
|
248
|
+
margin: 0;
|
|
249
|
+
}
|
|
250
|
+
> .upload-panel.error-wrap {
|
|
251
|
+
> .accordion-title {
|
|
252
|
+
background: #fadbd6;
|
|
253
|
+
color: #c82424;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.panel-collapse {
|
|
258
|
+
background: #f4f4f4;
|
|
259
|
+
z-index: 1200;
|
|
260
|
+
position: relative;
|
|
261
|
+
|
|
262
|
+
.panel-body {
|
|
263
|
+
padding: 0;
|
|
264
|
+
border-top: 0;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.warning-wrap,
|
|
269
|
+
.error-wrap {
|
|
270
|
+
margin: 0;
|
|
271
|
+
position: relative;
|
|
272
|
+
box-shadow: none;
|
|
273
|
+
border: 0;
|
|
274
|
+
background: none;
|
|
275
|
+
border-radius: 0;
|
|
276
|
+
|
|
277
|
+
.panel-heading {
|
|
278
|
+
z-index: 1400;
|
|
279
|
+
margin-top: 0;
|
|
280
|
+
border: 0;
|
|
281
|
+
padding: 0;
|
|
282
|
+
|
|
283
|
+
a {
|
|
284
|
+
padding: 10px;
|
|
285
|
+
display: block;
|
|
286
|
+
background: lighten($salmon, 25%);
|
|
287
|
+
color: $danger;
|
|
288
|
+
text-align: center;
|
|
289
|
+
text-transform: uppercase;
|
|
290
|
+
font-weight: 700;
|
|
291
|
+
margin: 0;
|
|
292
|
+
|
|
293
|
+
&::after {
|
|
294
|
+
font-family: FontAwesome;
|
|
295
|
+
font-size: 10px;
|
|
296
|
+
margin-left: 10px;
|
|
297
|
+
content: '\f077';
|
|
298
|
+
position: relative;
|
|
299
|
+
top: -2px;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
&.collapsed::after {
|
|
303
|
+
content: '\f078';
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.panel-body {
|
|
309
|
+
border-top: 0;
|
|
310
|
+
}
|
|
311
|
+
.panel-group {
|
|
312
|
+
margin-bottom: 0;
|
|
313
|
+
}
|
|
314
|
+
.panel-collapse {
|
|
315
|
+
padding: 0;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
//Error body and meta
|
|
319
|
+
.validation-error.panel {
|
|
320
|
+
border-radius: 0;
|
|
321
|
+
margin: 0;
|
|
322
|
+
border: 0;
|
|
323
|
+
|
|
324
|
+
.panel-heading {
|
|
325
|
+
padding: 0;
|
|
326
|
+
|
|
327
|
+
a {
|
|
328
|
+
display: block;
|
|
329
|
+
padding: 10px;
|
|
330
|
+
font-size: 12px;
|
|
331
|
+
background-color: #eee;
|
|
332
|
+
color: #333;
|
|
333
|
+
border-bottom: 1px solid #bbb;
|
|
334
|
+
border-top: 1px solid transparent;
|
|
335
|
+
text-decoration: none;
|
|
336
|
+
text-align: left;
|
|
337
|
+
text-transform: initial;
|
|
338
|
+
|
|
339
|
+
&::after {
|
|
340
|
+
content: '';
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
h4 {
|
|
344
|
+
color: $coral;
|
|
345
|
+
margin-top: 0;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.pull-right {
|
|
349
|
+
font-size: 10px;
|
|
350
|
+
text-transform: uppercase;
|
|
351
|
+
margin-top: 3px;
|
|
352
|
+
color: #333;
|
|
353
|
+
|
|
354
|
+
&::before {
|
|
355
|
+
color: $coral;
|
|
356
|
+
content: 'Hide\00a0';
|
|
357
|
+
margin-right: 0;
|
|
358
|
+
position: relative;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
&.collapsed {
|
|
363
|
+
//color: $coral;
|
|
364
|
+
background-color: #f4f4f4;
|
|
365
|
+
|
|
366
|
+
.pull-right::before {
|
|
367
|
+
content: 'View\00a0';
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
&:hover {
|
|
372
|
+
text-decoration: none;
|
|
373
|
+
background-color: #eee;
|
|
374
|
+
|
|
375
|
+
h4 {
|
|
376
|
+
color: darken($coral, 10%);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.pull-right::before {
|
|
380
|
+
color: darken($coral, 10%);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
i::after {
|
|
384
|
+
color: $coral;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.panel-body {
|
|
391
|
+
border: 0;
|
|
392
|
+
border-top: 1px solid transparent;
|
|
393
|
+
border-bottom: 1px solid #bbb;
|
|
394
|
+
|
|
395
|
+
.em-head {
|
|
396
|
+
display: block;
|
|
397
|
+
margin: 0;
|
|
398
|
+
padding: 10px 10px 0;
|
|
399
|
+
|
|
400
|
+
.em-header {
|
|
401
|
+
font-size: 12px;
|
|
402
|
+
text-transform: uppercase;
|
|
403
|
+
font-weight: 700;
|
|
404
|
+
color: $rock;
|
|
405
|
+
margin-bottom: 2px;
|
|
406
|
+
|
|
407
|
+
&.pull-right {
|
|
408
|
+
font-size: 10px;
|
|
409
|
+
text-transform: normal;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.e-meta {
|
|
414
|
+
color: $rock;
|
|
415
|
+
font-size: 10px;
|
|
416
|
+
word-break: break-word;
|
|
417
|
+
display: block;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.file-path {
|
|
422
|
+
border-bottom: 1px solid #ddd;
|
|
423
|
+
margin: 0;
|
|
424
|
+
padding: 0 10px 10px;
|
|
425
|
+
color: $rock;
|
|
426
|
+
font-size: 10px;
|
|
427
|
+
word-break: break-word;
|
|
428
|
+
display: block;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.em-body {
|
|
432
|
+
border-bottom: 1px solid #ddd;
|
|
433
|
+
margin: 0;
|
|
434
|
+
padding: 10px;
|
|
435
|
+
|
|
436
|
+
.em-header {
|
|
437
|
+
color: #333;
|
|
438
|
+
margin: 0;
|
|
439
|
+
padding: 3px 0 5px;
|
|
440
|
+
font-size: 14px;
|
|
441
|
+
font-weight: 600;
|
|
442
|
+
|
|
443
|
+
.pull-right {
|
|
444
|
+
font-weight: 400;
|
|
445
|
+
font-size: 10px;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.e-meta {
|
|
450
|
+
label {
|
|
451
|
+
color: black;
|
|
452
|
+
font-size: 12px;
|
|
453
|
+
text-transform: uppercase;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
p {
|
|
457
|
+
color: #333;
|
|
458
|
+
font-size: 12px;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.em-body:last-child {
|
|
464
|
+
border: 0;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.warning-wrap {
|
|
471
|
+
.panel-heading {
|
|
472
|
+
a {
|
|
473
|
+
background: $warning-orange-cream;
|
|
474
|
+
color: $warning-orange;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
|
|
3
|
+
export interface CommunityHeaderProps {
|
|
4
|
+
communityHeader: string
|
|
5
|
+
communityPrimary: string
|
|
6
|
+
communitySecondary: React.ReactNode
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const CommunityHeader = ({
|
|
10
|
+
communityHeader,
|
|
11
|
+
communityPrimary,
|
|
12
|
+
communitySecondary,
|
|
13
|
+
}: CommunityHeaderProps) => {
|
|
14
|
+
return (
|
|
15
|
+
<section className="search-page-coms">
|
|
16
|
+
<div className="container">
|
|
17
|
+
<div className="grid grid-nogutter">
|
|
18
|
+
<div className="col col-7">
|
|
19
|
+
<h2>{communityHeader}</h2>
|
|
20
|
+
<div className="primary-content">{communityPrimary}</div>
|
|
21
|
+
<div className="secondary-content">{communitySecondary}</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</section>
|
|
26
|
+
)
|
|
27
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
|
|
3
|
+
type DateRange = [Date | null, Date | null]
|
|
4
|
+
type Item = {
|
|
5
|
+
param: string
|
|
6
|
+
value: DateRange
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface FilterDateItemProps {
|
|
10
|
+
item: Item
|
|
11
|
+
type?: string
|
|
12
|
+
removeFilterItem?(param, value): void
|
|
13
|
+
}
|
|
14
|
+
export const FilterDateItem = ({
|
|
15
|
+
item,
|
|
16
|
+
type,
|
|
17
|
+
removeFilterItem = () => {},
|
|
18
|
+
}: FilterDateItemProps) => {
|
|
19
|
+
const dateIsNull = JSON.stringify(item) === JSON.stringify([null, null])
|
|
20
|
+
const startDay = !dateIsNull && item[0].getDate()
|
|
21
|
+
const endDay = !dateIsNull && item[1].getDate()
|
|
22
|
+
const startMonth = !dateIsNull && item[0].getMonth() + 1
|
|
23
|
+
const endMonth = !dateIsNull && item[1].getMonth() + 1
|
|
24
|
+
const startYear = !dateIsNull && item[0].getFullYear()
|
|
25
|
+
const endYear = !dateIsNull && item[1].getFullYear()
|
|
26
|
+
|
|
27
|
+
if (dateIsNull) {
|
|
28
|
+
return null
|
|
29
|
+
} else {
|
|
30
|
+
return (
|
|
31
|
+
<>
|
|
32
|
+
<li className={type}>
|
|
33
|
+
<strong>{type}:</strong>
|
|
34
|
+
<span>
|
|
35
|
+
{startMonth}/{startDay}/{startYear} - {endMonth}/{endDay}/{endYear}
|
|
36
|
+
<span onClick={() => removeFilterItem(item.param, item.value)}>
|
|
37
|
+
×
|
|
38
|
+
</span>
|
|
39
|
+
</span>
|
|
40
|
+
</li>
|
|
41
|
+
</>
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import { ModalityLabel } from "../formatting/modality-label"
|
|
3
|
+
|
|
4
|
+
type TextList = string[]
|
|
5
|
+
type Text = string
|
|
6
|
+
type NumberCouple = [number, number]
|
|
7
|
+
type OptionObject = { label: string; value: string }
|
|
8
|
+
type Item = {
|
|
9
|
+
param: string
|
|
10
|
+
value: TextList | Text | OptionObject | NumberCouple
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const rangeDisplay = (range) => {
|
|
14
|
+
if (range[0] === null) {
|
|
15
|
+
return `<= ${range[1]}`
|
|
16
|
+
} else if (range[1] === null) {
|
|
17
|
+
return `>= ${range[0]}`
|
|
18
|
+
} else {
|
|
19
|
+
return `${range[0]} - ${range[1]}`
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface FilterListItemProps {
|
|
24
|
+
item: Item
|
|
25
|
+
type?: string
|
|
26
|
+
removeFilterItem?(param, value): void
|
|
27
|
+
}
|
|
28
|
+
export const FilterListItem = ({
|
|
29
|
+
item,
|
|
30
|
+
type,
|
|
31
|
+
removeFilterItem = () => {},
|
|
32
|
+
}: FilterListItemProps) => {
|
|
33
|
+
if (
|
|
34
|
+
item.value === "All" ||
|
|
35
|
+
item.value === "All Public" ||
|
|
36
|
+
item.value === "All Time" ||
|
|
37
|
+
JSON.stringify(item.value) === JSON.stringify([null, null])
|
|
38
|
+
) {
|
|
39
|
+
return null
|
|
40
|
+
} else {
|
|
41
|
+
let value: string | TextList | OptionObject | NumberCouple | JSX.Element =
|
|
42
|
+
item.value
|
|
43
|
+
if (type === "Modality" && typeof item.value === "string") {
|
|
44
|
+
value = <ModalityLabel modality={item.value} />
|
|
45
|
+
} else if (type === "Age" || type === "Participants") {
|
|
46
|
+
value = rangeDisplay(item.value)
|
|
47
|
+
}
|
|
48
|
+
return (
|
|
49
|
+
<>
|
|
50
|
+
<li className={type}>
|
|
51
|
+
<strong>{type}:</strong>
|
|
52
|
+
<span>
|
|
53
|
+
{value}
|
|
54
|
+
<span onClick={() => removeFilterItem(item.param, item.value)}>
|
|
55
|
+
×
|
|
56
|
+
</span>
|
|
57
|
+
</span>
|
|
58
|
+
</li>
|
|
59
|
+
</>
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
}
|