@openneuro/app 4.20.4 → 4.20.6-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/__mocks__/fileMock.js +1 -1
- package/package.json +5 -5
- package/pluralize-esm.js +204 -211
- package/src/@types/custom.d.ts +3 -3
- package/src/@types/react.d.ts +3 -4
- package/src/client.jsx +17 -16
- package/src/scripts/__mocks__/config.ts +6 -6
- package/src/scripts/__utils__/mock-app-shell.tsx +9 -8
- package/src/scripts/apm.js +6 -6
- package/src/scripts/app.tsx +7 -7
- package/src/scripts/authentication/__tests__/profile.spec.js +10 -10
- package/src/scripts/authentication/admin-user.jsx +2 -2
- package/src/scripts/authentication/logged-in.jsx +2 -2
- package/src/scripts/authentication/logged-out.jsx +2 -2
- package/src/scripts/authentication/loginCheck.js +2 -2
- package/src/scripts/authentication/loginUrls.ts +1 -1
- package/src/scripts/authentication/profile.ts +7 -7
- package/src/scripts/authentication/regular-user.tsx +3 -3
- package/src/scripts/authentication/signOut.ts +2 -2
- package/src/scripts/authentication/withProfile.jsx +6 -6
- package/src/scripts/common/block-navigation.jsx +3 -4
- package/src/scripts/common/containers/__tests__/header.spec.tsx +16 -16
- package/src/scripts/common/containers/footer.tsx +3 -3
- package/src/scripts/common/containers/header.tsx +30 -30
- package/src/scripts/common/forms/__tests__/warn-button.spec.jsx +6 -6
- package/src/scripts/common/forms/warn-button.jsx +21 -17
- package/src/scripts/common/partials/block-navigation.jsx +3 -4
- package/src/scripts/common/partials/freshdesk-widget.jsx +17 -20
- package/src/scripts/common/partials/toast-content.jsx +2 -2
- package/src/scripts/components/__tests__/data-table.spec.tsx +7 -7
- package/src/scripts/components/data-table.tsx +23 -22
- package/src/scripts/config.ts +2 -2
- package/src/scripts/datalad/dataset/comments-fragments.js +1 -1
- package/src/scripts/datalad/dataset/dataset-context.js +1 -1
- package/src/scripts/datalad/dataset/dataset-query-context.js +1 -1
- package/src/scripts/datalad/dataset/dataset-query-fragments.js +1 -1
- package/src/scripts/datalad/mutations/cache-clear.jsx +7 -6
- package/src/scripts/datalad/mutations/cache-id.js +2 -2
- package/src/scripts/datalad/mutations/delete-comment.jsx +13 -11
- package/src/scripts/datalad/mutations/delete.jsx +10 -9
- package/src/scripts/datalad/mutations/follow.jsx +12 -11
- package/src/scripts/datalad/mutations/publish.jsx +13 -12
- package/src/scripts/datalad/mutations/remove-permissions.jsx +8 -8
- package/src/scripts/datalad/mutations/revalidate.jsx +7 -6
- package/src/scripts/datalad/mutations/snapshot.tsx +7 -7
- package/src/scripts/datalad/mutations/star.jsx +12 -11
- package/src/scripts/datalad/mutations/submit-metadata.jsx +14 -12
- package/src/scripts/datalad/mutations/update-permissions.jsx +14 -13
- package/src/scripts/datalad/mutations/update-ref.jsx +7 -6
- package/src/scripts/datalad/routes/dataset-redirect.tsx +49 -49
- package/src/scripts/datalad/subscriptions/__tests__/files-subscription.spec.jsx +32 -32
- package/src/scripts/datalad/subscriptions/files-subscription.jsx +16 -16
- package/src/scripts/datalad/subscriptions/useDatasetDeletedSubscription.jsx +4 -4
- package/src/scripts/datalad/subscriptions/useDraftSubscription.js +4 -4
- package/src/scripts/datalad/subscriptions/usePermissionsSubscription.js +4 -4
- package/src/scripts/datalad/subscriptions/useSnapshotsUpdatedSubscriptions.js +3 -3
- package/src/scripts/dataset/__tests__/__snapshots__/snapshot-container.spec.tsx.snap +2 -2
- package/src/scripts/dataset/__tests__/snapshot-container.spec.tsx +12 -12
- package/src/scripts/dataset/comments/__tests__/comment.spec.jsx +21 -21
- package/src/scripts/dataset/comments/__tests__/comments.spec.jsx +10 -10
- package/src/scripts/dataset/comments/block-style-controls.jsx +15 -15
- package/src/scripts/dataset/comments/comment-editor.jsx +31 -31
- package/src/scripts/dataset/comments/comment.jsx +50 -50
- package/src/scripts/dataset/comments/comments.jsx +24 -22
- package/src/scripts/dataset/comments/inline-style-controls.jsx +9 -9
- package/src/scripts/dataset/comments/style-button.jsx +8 -9
- package/src/scripts/dataset/common/follow-toggles.tsx +3 -3
- package/src/scripts/dataset/dataset-query-context.js +1 -1
- package/src/scripts/dataset/dataset-query.jsx +34 -31
- package/src/scripts/dataset/dataset-routes.jsx +5 -5
- package/src/scripts/dataset/download/__tests__/download-command-line.spec.jsx +13 -13
- package/src/scripts/dataset/download/__tests__/download-link.spec.jsx +10 -10
- package/src/scripts/dataset/download/__tests__/download-native.spec.js +7 -7
- package/src/scripts/dataset/download/__tests__/shell-example.spec.jsx +5 -5
- package/src/scripts/dataset/download/download-command-line.jsx +9 -7
- package/src/scripts/dataset/download/download-datalad.jsx +22 -20
- package/src/scripts/dataset/download/download-derivative-datalad.tsx +2 -2
- package/src/scripts/dataset/download/download-derivative-s3.tsx +2 -2
- package/src/scripts/dataset/download/download-link.jsx +6 -6
- package/src/scripts/dataset/download/download-native.js +20 -19
- package/src/scripts/dataset/download/download-query.js +2 -3
- package/src/scripts/dataset/download/download-s3.jsx +8 -8
- package/src/scripts/dataset/download/download-script.tsx +23 -20
- package/src/scripts/dataset/download/native-file-toast.jsx +13 -11
- package/src/scripts/dataset/download/shell-example.jsx +1 -1
- package/src/scripts/dataset/download/track-download.js +5 -5
- package/src/scripts/dataset/draft-container.tsx +104 -102
- package/src/scripts/dataset/draft-snapshot-routes.tsx +3 -3
- package/src/scripts/dataset/files/__tests__/file-tree-unloaded-directory.spec.jsx +23 -23
- package/src/scripts/dataset/files/__tests__/file-tree.spec.jsx +57 -58
- package/src/scripts/dataset/files/__tests__/file-viewer-type.spec.jsx +6 -6
- package/src/scripts/dataset/files/__tests__/file.spec.jsx +15 -15
- package/src/scripts/dataset/files/file-display.jsx +11 -11
- package/src/scripts/dataset/files/file-tree-unloaded-directory.jsx +10 -10
- package/src/scripts/dataset/files/file-tree.tsx +27 -27
- package/src/scripts/dataset/files/file-view.jsx +4 -4
- package/src/scripts/dataset/files/file-viewer-type.jsx +21 -21
- package/src/scripts/dataset/files/file.tsx +85 -80
- package/src/scripts/dataset/files/files.tsx +41 -40
- package/src/scripts/dataset/files/index.tsx +2 -2
- package/src/scripts/dataset/files/viewers/__tests__/__snapshots__/file-viewer-json.spec.jsx.snap +0 -24
- package/src/scripts/dataset/files/viewers/__tests__/file-viewer-json.spec.jsx +9 -9
- package/src/scripts/dataset/files/viewers/__tests__/parse-tabular.spec.js +8 -8
- package/src/scripts/dataset/files/viewers/file-viewer-csv.jsx +5 -5
- package/src/scripts/dataset/files/viewers/file-viewer-html.jsx +3 -3
- package/src/scripts/dataset/files/viewers/file-viewer-json.jsx +4 -4
- package/src/scripts/dataset/files/viewers/file-viewer-nifti.tsx +4 -4
- package/src/scripts/dataset/files/viewers/file-viewer-table.tsx +3 -3
- package/src/scripts/dataset/files/viewers/file-viewer-text.jsx +3 -3
- package/src/scripts/dataset/files/viewers/file-viewer-tsv.jsx +5 -5
- package/src/scripts/dataset/files/viewers/parse-tabular.js +4 -4
- package/src/scripts/dataset/fragments/__tests__/cancel-button.spec.tsx +5 -5
- package/src/scripts/dataset/fragments/__tests__/dataset-alert-draft.spec.tsx +9 -9
- package/src/scripts/dataset/fragments/__tests__/dataset-citation.spec.jsx +10 -10
- package/src/scripts/dataset/fragments/__tests__/doi-link.spec.tsx +29 -29
- package/src/scripts/dataset/fragments/__tests__/edit-button.spec.tsx +5 -5
- package/src/scripts/dataset/fragments/__tests__/edit-list.spec.jsx +13 -13
- package/src/scripts/dataset/fragments/__tests__/save-button.spec.tsx +5 -5
- package/src/scripts/dataset/fragments/__tests__/select-input.spec.tsx +26 -26
- package/src/scripts/dataset/fragments/cancel-button.tsx +2 -2
- package/src/scripts/dataset/fragments/comments-fragments.js +1 -1
- package/src/scripts/dataset/fragments/copyable-tooltip.jsx +14 -13
- package/src/scripts/dataset/fragments/dataset-alert-draft.tsx +17 -13
- package/src/scripts/dataset/fragments/dataset-alert-version.tsx +5 -4
- package/src/scripts/dataset/fragments/dataset-citation.jsx +23 -21
- package/src/scripts/dataset/fragments/dataset-history.jsx +12 -12
- package/src/scripts/dataset/fragments/dataset-reviewers.ts +1 -1
- package/src/scripts/dataset/fragments/doi-link.tsx +6 -6
- package/src/scripts/dataset/fragments/edit-button.tsx +2 -2
- package/src/scripts/dataset/fragments/edit-description-field.jsx +23 -21
- package/src/scripts/dataset/fragments/edit-description-list.jsx +8 -8
- package/src/scripts/dataset/fragments/edit-list.jsx +8 -8
- package/src/scripts/dataset/fragments/number-input.tsx +36 -35
- package/src/scripts/dataset/fragments/save-button.tsx +2 -2
- package/src/scripts/dataset/fragments/select-input.tsx +87 -86
- package/src/scripts/dataset/fragments/text-array-input.tsx +38 -37
- package/src/scripts/dataset/fragments/text-input.tsx +79 -78
- package/src/scripts/dataset/mutations/__tests__/cache-id.spec.js +5 -5
- package/src/scripts/dataset/mutations/__tests__/delete-file.spec.jsx +85 -83
- package/src/scripts/dataset/mutations/__tests__/delete.spec.jsx +8 -8
- package/src/scripts/dataset/mutations/__tests__/deprecate-snapshot.spec.tsx +17 -17
- package/src/scripts/dataset/mutations/__tests__/deprecate-version.spec.tsx +19 -19
- package/src/scripts/dataset/mutations/__tests__/description.spec.jsx +51 -51
- package/src/scripts/dataset/mutations/__tests__/remove-permissions.spec.tsx +9 -9
- package/src/scripts/dataset/mutations/__tests__/update-permissions.spec.jsx +7 -7
- package/src/scripts/dataset/mutations/admin-exports.jsx +13 -12
- package/src/scripts/dataset/mutations/cache-clear.jsx +6 -6
- package/src/scripts/dataset/mutations/cache-id.js +2 -2
- package/src/scripts/dataset/mutations/comment.jsx +25 -23
- package/src/scripts/dataset/mutations/create-anonymous-reviewer.tsx +36 -30
- package/src/scripts/dataset/mutations/dataset-relations.tsx +28 -29
- package/src/scripts/dataset/mutations/delete-anonymous-reviewer.tsx +7 -8
- package/src/scripts/dataset/mutations/delete-comment.jsx +14 -12
- package/src/scripts/dataset/mutations/delete-dataset-form.jsx +20 -22
- package/src/scripts/dataset/mutations/delete-file.jsx +8 -8
- package/src/scripts/dataset/mutations/delete.jsx +10 -9
- package/src/scripts/dataset/mutations/deprecate-version.tsx +5 -6
- package/src/scripts/dataset/mutations/description.jsx +21 -20
- package/src/scripts/dataset/mutations/flag-annex-object.jsx +10 -9
- package/src/scripts/dataset/mutations/follow.tsx +15 -14
- package/src/scripts/dataset/mutations/import-dataset.tsx +5 -5
- package/src/scripts/dataset/mutations/metadata-form.jsx +94 -97
- package/src/scripts/dataset/mutations/publish.jsx +13 -13
- package/src/scripts/dataset/mutations/readme.jsx +12 -11
- package/src/scripts/dataset/mutations/remove-annex-object.jsx +10 -9
- package/src/scripts/dataset/mutations/remove-permissions.tsx +5 -6
- package/src/scripts/dataset/mutations/revalidate.jsx +7 -7
- package/src/scripts/dataset/mutations/snapshot.tsx +8 -8
- package/src/scripts/dataset/mutations/star.tsx +14 -13
- package/src/scripts/dataset/mutations/submit-metadata.jsx +12 -11
- package/src/scripts/dataset/mutations/undo-deprecate-version.tsx +5 -6
- package/src/scripts/dataset/mutations/update-file.jsx +6 -6
- package/src/scripts/dataset/mutations/update-permissions.tsx +9 -9
- package/src/scripts/dataset/mutations/update-ref.jsx +7 -7
- package/src/scripts/dataset/routes/__tests__/deprecate-snapshot-page.spec.tsx +5 -5
- package/src/scripts/dataset/routes/add-metadata.jsx +19 -20
- package/src/scripts/dataset/routes/admin-datalad.jsx +7 -7
- package/src/scripts/dataset/routes/dataset-default.tsx +12 -10
- package/src/scripts/dataset/routes/delete-page.tsx +12 -12
- package/src/scripts/dataset/routes/deprecate-snapshot-page.tsx +8 -8
- package/src/scripts/dataset/routes/derivatives.tsx +10 -10
- package/src/scripts/dataset/routes/download-dataset.tsx +20 -20
- package/src/scripts/dataset/routes/manage-anonymous-reviewers.tsx +37 -35
- package/src/scripts/dataset/routes/manage-permissions.jsx +22 -22
- package/src/scripts/dataset/routes/publish.jsx +32 -30
- package/src/scripts/dataset/routes/snapshot-default.tsx +7 -7
- package/src/scripts/dataset/routes/snapshot.tsx +44 -43
- package/src/scripts/dataset/routes/styles/dataset-page-border.tsx +3 -3
- package/src/scripts/dataset/routes/styles/dataset-page-tab-container.tsx +3 -3
- package/src/scripts/dataset/routes/styles/header-row.tsx +3 -3
- package/src/scripts/dataset/routes/tab-routes-draft.tsx +12 -12
- package/src/scripts/dataset/routes/tab-routes-snapshot.tsx +8 -8
- package/src/scripts/dataset/snapshot-container.tsx +78 -86
- package/src/scripts/errors/403page.tsx +11 -11
- package/src/scripts/errors/404page.tsx +12 -12
- package/src/scripts/errors/errorBoundary.jsx +13 -12
- package/src/scripts/errors/errorRoute.jsx +6 -6
- package/src/scripts/errors/freshdesk-widget.jsx +17 -20
- package/src/scripts/errors/freshdeskInterface.jsx +9 -9
- package/src/scripts/errors/orcid/email.jsx +3 -3
- package/src/scripts/errors/orcid/family.jsx +4 -4
- package/src/scripts/errors/orcid/general.jsx +1 -1
- package/src/scripts/errors/orcid/given.jsx +4 -4
- package/src/scripts/fixtures/dataset-query.ts +119 -119
- package/src/scripts/fixtures/mock-app-wrapper.tsx +4 -4
- package/src/scripts/index.tsx +9 -9
- package/src/scripts/pages/admin/admin.jsx +5 -5
- package/src/scripts/pages/admin/flagged-files.jsx +33 -31
- package/src/scripts/pages/admin/user-fragment.ts +1 -1
- package/src/scripts/pages/admin/user-tools.tsx +13 -11
- package/src/scripts/pages/admin/users.jsx +38 -39
- package/src/scripts/pages/api.jsx +20 -19
- package/src/scripts/pages/citation-page.tsx +4 -4
- package/src/scripts/pages/faq/faq.tsx +2 -2
- package/src/scripts/pages/front-page/aggregate-queries/aggregate-counts-container.tsx +6 -5
- package/src/scripts/pages/front-page/aggregate-queries/use-participant-count.ts +2 -2
- package/src/scripts/pages/front-page/aggregate-queries/use-publicDatasets-count.ts +2 -2
- package/src/scripts/pages/front-page/front-page-content.ts +42 -42
- package/src/scripts/pages/front-page/front-page.tsx +18 -14
- package/src/scripts/pages/front-page-comp.tsx +3 -3
- package/src/scripts/pages/import-dataset.tsx +10 -10
- package/src/scripts/pages/metadata/dataset-metadata.tsx +15 -14
- package/src/scripts/pages/pet-redirect.tsx +2 -2
- package/src/scripts/queries/dataset.ts +3 -3
- package/src/scripts/resources/__tests__/kibana.spec.js +9 -9
- package/src/scripts/resources/kibana.js +3 -3
- package/src/scripts/resources/strings.js +2 -2
- package/src/scripts/routes.tsx +14 -14
- package/src/scripts/search/__helpers__/search-render.tsx +3 -3
- package/src/scripts/search/__tests__/search-container.spec.tsx +22 -22
- package/src/scripts/search/__tests__/search-params-ctx.spec.tsx +20 -20
- package/src/scripts/search/es-query-builders.ts +21 -5
- package/src/scripts/search/filters-block-container.tsx +14 -16
- package/src/scripts/search/initial-search-params.tsx +45 -45
- package/src/scripts/search/inputs/__tests__/sort-by-select.spec.tsx +23 -23
- package/src/scripts/search/inputs/admin-allDatasets-toggle.tsx +12 -12
- package/src/scripts/search/inputs/age-range-input.tsx +9 -8
- package/src/scripts/search/inputs/author-input.tsx +14 -11
- package/src/scripts/search/inputs/date-radios.tsx +8 -7
- package/src/scripts/search/inputs/diagnosis-select.tsx +6 -6
- package/src/scripts/search/inputs/index.ts +33 -33
- package/src/scripts/search/inputs/keyword-input.tsx +13 -13
- package/src/scripts/search/inputs/modality-select.tsx +33 -30
- package/src/scripts/search/inputs/pet/bodyParts_input.tsx +18 -16
- package/src/scripts/search/inputs/pet/scannerManufacturersModelNames_input.tsx +18 -16
- package/src/scripts/search/inputs/pet/scannerManufacturers_input.tsx +18 -16
- package/src/scripts/search/inputs/pet/tracerNames_input.tsx +16 -15
- package/src/scripts/search/inputs/pet/tracerRadionuclides_input.tsx +18 -16
- package/src/scripts/search/inputs/section-select.tsx +6 -6
- package/src/scripts/search/inputs/sex-radios.tsx +6 -6
- package/src/scripts/search/inputs/show-datasets-radios.tsx +31 -29
- package/src/scripts/search/inputs/sort-by-select.tsx +10 -11
- package/src/scripts/search/inputs/species-select.tsx +6 -6
- package/src/scripts/search/inputs/study-domain-input.tsx +18 -16
- package/src/scripts/search/inputs/subject-count-range-input.tsx +8 -7
- package/src/scripts/search/inputs/task-input.tsx +18 -16
- package/src/scripts/search/search-container.tsx +83 -85
- package/src/scripts/search/search-params-ctx.tsx +40 -38
- package/src/scripts/search/search-routes.tsx +4 -4
- package/src/scripts/search/use-search-results.tsx +125 -99
- package/src/scripts/styles/media.tsx +3 -3
- package/src/scripts/styles/support-modal.jsx +2 -2
- package/src/scripts/sw.ts +12 -11
- package/src/scripts/test-utils.js +4 -4
- package/src/scripts/uploader/add-path-to-files.js +7 -7
- package/src/scripts/uploader/file-select.tsx +3 -3
- package/src/scripts/uploader/file-upload.js +13 -12
- package/src/scripts/uploader/input.jsx +8 -7
- package/src/scripts/uploader/upload-button.jsx +3 -3
- package/src/scripts/uploader/upload-disclaimer-input.tsx +66 -66
- package/src/scripts/uploader/upload-disclaimer.jsx +6 -5
- package/src/scripts/uploader/upload-file-status.jsx +4 -4
- package/src/scripts/uploader/upload-issues.jsx +32 -29
- package/src/scripts/uploader/upload-metadata.jsx +18 -17
- package/src/scripts/uploader/upload-mutation.js +17 -20
- package/src/scripts/uploader/upload-progress-button.jsx +5 -4
- package/src/scripts/uploader/upload-progress.jsx +3 -3
- package/src/scripts/uploader/upload-rename.jsx +6 -5
- package/src/scripts/uploader/upload-resume.jsx +26 -24
- package/src/scripts/uploader/upload-select.jsx +10 -9
- package/src/scripts/uploader/upload-status.jsx +5 -5
- package/src/scripts/uploader/upload-step.jsx +9 -9
- package/src/scripts/uploader/uploader-context.js +1 -1
- package/src/scripts/uploader/uploader-location.js +1 -1
- package/src/scripts/uploader/uploader-modal.jsx +8 -7
- package/src/scripts/uploader/uploader-setup-routes.jsx +10 -10
- package/src/scripts/uploader/uploader-status-routes.jsx +6 -6
- package/src/scripts/uploader/uploader-view.jsx +4 -4
- package/src/scripts/uploader/uploader.jsx +50 -48
- package/src/scripts/users/username.tsx +3 -3
- package/src/scripts/utils/__tests__/csv.spec.ts +16 -16
- package/src/scripts/utils/__tests__/date.spec.js +4 -4
- package/src/scripts/utils/__tests__/json-ld.spec.js +12 -12
- package/src/scripts/utils/__tests__/newid.spec.js +9 -9
- package/src/scripts/utils/__tests__/userNotify.spec.js +10 -10
- package/src/scripts/utils/analytics.tsx +3 -3
- package/src/scripts/utils/cookies.js +1 -1
- package/src/scripts/utils/csv.ts +13 -15
- package/src/scripts/utils/datalad.js +1 -1
- package/src/scripts/utils/dataset-url.js +2 -2
- package/src/scripts/utils/date.js +2 -2
- package/src/scripts/utils/global-polyfill.ts +2 -2
- package/src/scripts/utils/gtag.js +6 -6
- package/src/scripts/utils/json-ld.js +13 -13
- package/src/scripts/utils/newid.js +1 -1
- package/src/scripts/utils/user-login-modal-ctx.tsx +4 -4
- package/src/scripts/utils/userNotify.js +2 -2
- package/src/scripts/validation/validation-panel.jsx +3 -3
- package/src/scripts/validation/validation-results.issues.issue.jsx +9 -9
- package/src/scripts/validation/validation-results.issues.jsx +19 -17
- package/src/scripts/validation/validation-results.jsx +10 -10
- package/src/scripts/validation/validation-status.jsx +19 -17
- package/src/scripts/validation/validation.jsx +5 -5
- package/src/scripts/workers/schema.ts +2 -2
- package/src/scripts/workers/schema.worker.ts +4 -4
- package/src/scripts/workers/validate.ts +2 -2
- package/src/scripts/workers/validate.worker.ts +7 -5
- package/vite.config.js +17 -17
- package/src/dist/assets/activity-icon.9ab0c828.png +0 -0
- package/src/dist/assets/bids.da8810b3.jpg +0 -0
- package/src/dist/assets/brand_mark.28e7645d.png +0 -0
- package/src/dist/assets/close-button.21e700a6.png +0 -0
- package/src/dist/assets/cube-get.39ed5636.png +0 -0
- package/src/dist/assets/cube-share.9b558c29.png +0 -0
- package/src/dist/assets/cube-use.ccf2ddc5.png +0 -0
- package/src/dist/assets/datalad.a35b15b8.jpg +0 -0
- package/src/dist/assets/eeg.1dc1dc54.jpg +0 -0
- package/src/dist/assets/email-header.1cb8bf76.png +0 -0
- package/src/dist/assets/ieeg.f91deb0a.jpg +0 -0
- package/src/dist/assets/index.3db805fb.js +0 -23127
- package/src/dist/assets/index.3db805fb.js.map +0 -1
- package/src/dist/assets/index.5eb79d2c.css +0 -1
- package/src/dist/assets/ljaf.567e9566.png +0 -0
- package/src/dist/assets/logo_app.8c986cf9.png +0 -0
- package/src/dist/assets/logo_cube.5224b745.png +0 -0
- package/src/dist/assets/logo_data.3e1d5743.png +0 -0
- package/src/dist/assets/logo_users.a84a265a.png +0 -0
- package/src/dist/assets/meg.1e1928f8.jpg +0 -0
- package/src/dist/assets/mri.b01e4f42.jpg +0 -0
- package/src/dist/assets/nih-bi-logo.80d76e1d.png +0 -0
- package/src/dist/assets/nih-stanford.2a7c496e.jpg +0 -0
- package/src/dist/assets/nih.78a64d38.png +0 -0
- package/src/dist/assets/nimh.0ec775d8.png +0 -0
- package/src/dist/assets/nru-logo.f3097dc5.png +0 -0
- package/src/dist/assets/nsf.eee1d3f7.png +0 -0
- package/src/dist/assets/nsf.f87e96e7.png +0 -0
- package/src/dist/assets/on-dark-horz.e1f213d0.svg +0 -1
- package/src/dist/assets/on-dark.12f4e2ce.svg +0 -1
- package/src/dist/assets/on-light-horz.23ff22c3.svg +0 -1
- package/src/dist/assets/on-light.50592f7f.svg +0 -1
- package/src/dist/assets/pet-scan.21d98a3d.jpg +0 -0
- package/src/dist/assets/revicons.4ca02b8a.ttf +0 -0
- package/src/dist/assets/revicons.9e4d4c68.eot +0 -0
- package/src/dist/assets/revicons.f7b9c306.woff +0 -0
- package/src/dist/assets/sqm-logo.9cd0cca5.png +0 -0
- package/src/dist/assets/squishymedia.fa3c5919.png +0 -0
- package/src/dist/assets/stanford.5f245936.png +0 -0
- package/src/dist/index.html +0 -25
package/__mocks__/fileMock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports =
|
|
1
|
+
module.exports = "test-file-stub"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openneuro/app",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.6-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.11.1",
|
|
21
21
|
"@emotion/styled": "11.11.0",
|
|
22
22
|
"@niivue/niivue": "0.34.0",
|
|
23
|
-
"@openneuro/client": "^4.20.
|
|
24
|
-
"@openneuro/components": "^4.20.
|
|
23
|
+
"@openneuro/client": "^4.20.6-alpha.2",
|
|
24
|
+
"@openneuro/components": "^4.20.6-alpha.2",
|
|
25
25
|
"@tanstack/react-table": "^8.9.3",
|
|
26
26
|
"bids-validator": "1.13.0",
|
|
27
27
|
"bytes": "^3.0.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"date-fns": "^2.16.1",
|
|
30
30
|
"draft-js": "^0.11.7",
|
|
31
31
|
"email-validator": "^2.0.4",
|
|
32
|
-
"graphql": "16.
|
|
32
|
+
"graphql": "16.8.1",
|
|
33
33
|
"jwt-decode": "^2.2.0",
|
|
34
34
|
"markdown-to-jsx": "^7.1.2",
|
|
35
35
|
"pluralize": "8.0.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "9daa873f9afe2c3a314dcae0780b637feed1fcf7"
|
|
74
74
|
}
|
package/pluralize-esm.js
CHANGED
|
@@ -16,8 +16,8 @@ var irregularSingles = {}
|
|
|
16
16
|
* @return {RegExp}
|
|
17
17
|
*/
|
|
18
18
|
function sanitizeRule(rule) {
|
|
19
|
-
if (typeof rule ===
|
|
20
|
-
return new RegExp(
|
|
19
|
+
if (typeof rule === "string") {
|
|
20
|
+
return new RegExp("^" + rule + "$", "i")
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
return rule
|
|
@@ -59,7 +59,7 @@ function restoreCase(word, token) {
|
|
|
59
59
|
*/
|
|
60
60
|
function interpolate(str, args) {
|
|
61
61
|
return str.replace(/\$(\d{1,2})/g, function (match, index) {
|
|
62
|
-
return args[index] ||
|
|
62
|
+
return args[index] || ""
|
|
63
63
|
})
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -74,7 +74,7 @@ function replace(word, rule) {
|
|
|
74
74
|
return word.replace(rule[0], function (match, index) {
|
|
75
75
|
var result = interpolate(rule[1], arguments)
|
|
76
76
|
|
|
77
|
-
if (match ===
|
|
77
|
+
if (match === "") {
|
|
78
78
|
return restoreCase(word[index - 1], result)
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -159,10 +159,11 @@ function checkWord(replaceMap, keepMap, rules, bool) {
|
|
|
159
159
|
* @return {string}
|
|
160
160
|
*/
|
|
161
161
|
function pluralize(word, count, inclusive) {
|
|
162
|
-
var pluralized =
|
|
163
|
-
|
|
162
|
+
var pluralized = count === 1
|
|
163
|
+
? pluralize.singular(word)
|
|
164
|
+
: pluralize.plural(word)
|
|
164
165
|
|
|
165
|
-
return (inclusive ? count +
|
|
166
|
+
return (inclusive ? count + " " : "") + pluralized
|
|
166
167
|
}
|
|
167
168
|
|
|
168
169
|
/**
|
|
@@ -227,14 +228,14 @@ pluralize.addSingularRule = function (rule, replacement) {
|
|
|
227
228
|
* @param {(string|RegExp)} word
|
|
228
229
|
*/
|
|
229
230
|
pluralize.addUncountableRule = function (word) {
|
|
230
|
-
if (typeof word ===
|
|
231
|
+
if (typeof word === "string") {
|
|
231
232
|
uncountables[word.toLowerCase()] = true
|
|
232
233
|
return
|
|
233
234
|
}
|
|
234
235
|
|
|
235
236
|
// Set singular and plural references for the word.
|
|
236
|
-
pluralize.addPluralRule(word,
|
|
237
|
-
pluralize.addSingularRule(word,
|
|
237
|
+
pluralize.addPluralRule(word, "$0")
|
|
238
|
+
pluralize.addSingularRule(word, "$0")
|
|
238
239
|
}
|
|
239
240
|
|
|
240
241
|
/**
|
|
@@ -249,258 +250,250 @@ pluralize.addIrregularRule = function (single, plural) {
|
|
|
249
250
|
|
|
250
251
|
irregularSingles[single] = plural
|
|
251
252
|
irregularPlurals[plural] = single
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/**
|
|
253
|
+
} /**
|
|
255
254
|
* Irregular rules.
|
|
256
255
|
*/
|
|
257
256
|
;[
|
|
258
257
|
// Pronouns.
|
|
259
|
-
[
|
|
260
|
-
[
|
|
261
|
-
[
|
|
262
|
-
[
|
|
263
|
-
[
|
|
264
|
-
[
|
|
265
|
-
[
|
|
266
|
-
[
|
|
267
|
-
[
|
|
268
|
-
[
|
|
269
|
-
[
|
|
270
|
-
[
|
|
271
|
-
[
|
|
272
|
-
[
|
|
273
|
-
[
|
|
274
|
-
[
|
|
258
|
+
["I", "we"],
|
|
259
|
+
["me", "us"],
|
|
260
|
+
["he", "they"],
|
|
261
|
+
["she", "they"],
|
|
262
|
+
["them", "them"],
|
|
263
|
+
["myself", "ourselves"],
|
|
264
|
+
["yourself", "yourselves"],
|
|
265
|
+
["itself", "themselves"],
|
|
266
|
+
["herself", "themselves"],
|
|
267
|
+
["himself", "themselves"],
|
|
268
|
+
["themself", "themselves"],
|
|
269
|
+
["is", "are"],
|
|
270
|
+
["was", "were"],
|
|
271
|
+
["has", "have"],
|
|
272
|
+
["this", "these"],
|
|
273
|
+
["that", "those"],
|
|
275
274
|
// Words ending in with a consonant and `o`.
|
|
276
|
-
[
|
|
277
|
-
[
|
|
278
|
-
[
|
|
279
|
-
[
|
|
280
|
-
[
|
|
275
|
+
["echo", "echoes"],
|
|
276
|
+
["dingo", "dingoes"],
|
|
277
|
+
["volcano", "volcanoes"],
|
|
278
|
+
["tornado", "tornadoes"],
|
|
279
|
+
["torpedo", "torpedoes"],
|
|
281
280
|
// Ends with `us`.
|
|
282
|
-
[
|
|
283
|
-
[
|
|
281
|
+
["genus", "genera"],
|
|
282
|
+
["viscus", "viscera"],
|
|
284
283
|
// Ends with `ma`.
|
|
285
|
-
[
|
|
286
|
-
[
|
|
287
|
-
[
|
|
288
|
-
[
|
|
289
|
-
[
|
|
290
|
-
[
|
|
284
|
+
["stigma", "stigmata"],
|
|
285
|
+
["stoma", "stomata"],
|
|
286
|
+
["dogma", "dogmata"],
|
|
287
|
+
["lemma", "lemmata"],
|
|
288
|
+
["schema", "schemata"],
|
|
289
|
+
["anathema", "anathemata"],
|
|
291
290
|
// Other irregular rules.
|
|
292
|
-
[
|
|
293
|
-
[
|
|
294
|
-
[
|
|
295
|
-
[
|
|
296
|
-
[
|
|
297
|
-
[
|
|
298
|
-
[
|
|
299
|
-
[
|
|
300
|
-
[
|
|
301
|
-
[
|
|
302
|
-
[
|
|
303
|
-
[
|
|
304
|
-
[
|
|
305
|
-
[
|
|
306
|
-
[
|
|
307
|
-
[
|
|
308
|
-
[
|
|
309
|
-
[
|
|
291
|
+
["ox", "oxen"],
|
|
292
|
+
["axe", "axes"],
|
|
293
|
+
["die", "dice"],
|
|
294
|
+
["yes", "yeses"],
|
|
295
|
+
["foot", "feet"],
|
|
296
|
+
["eave", "eaves"],
|
|
297
|
+
["goose", "geese"],
|
|
298
|
+
["tooth", "teeth"],
|
|
299
|
+
["quiz", "quizzes"],
|
|
300
|
+
["human", "humans"],
|
|
301
|
+
["proof", "proofs"],
|
|
302
|
+
["carve", "carves"],
|
|
303
|
+
["valve", "valves"],
|
|
304
|
+
["looey", "looies"],
|
|
305
|
+
["thief", "thieves"],
|
|
306
|
+
["groove", "grooves"],
|
|
307
|
+
["pickaxe", "pickaxes"],
|
|
308
|
+
["passerby", "passersby"],
|
|
310
309
|
].forEach(function (rule) {
|
|
311
310
|
return pluralize.addIrregularRule(rule[0], rule[1])
|
|
312
|
-
})
|
|
313
|
-
|
|
314
|
-
/**
|
|
311
|
+
}) /**
|
|
315
312
|
* Pluralization rules.
|
|
316
313
|
*/
|
|
317
314
|
;[
|
|
318
|
-
[/s?$/i,
|
|
319
|
-
[/[^\u0000-\u007F]$/i,
|
|
320
|
-
[/([^aeiou]ese)$/i,
|
|
321
|
-
[/(ax|test)is$/i,
|
|
322
|
-
[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,
|
|
323
|
-
[/(e[mn]u)s?$/i,
|
|
324
|
-
[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,
|
|
315
|
+
[/s?$/i, "s"],
|
|
316
|
+
[/[^\u0000-\u007F]$/i, "$0"],
|
|
317
|
+
[/([^aeiou]ese)$/i, "$1"],
|
|
318
|
+
[/(ax|test)is$/i, "$1es"],
|
|
319
|
+
[/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
|
|
320
|
+
[/(e[mn]u)s?$/i, "$1s"],
|
|
321
|
+
[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
|
|
325
322
|
[
|
|
326
323
|
/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,
|
|
327
|
-
|
|
324
|
+
"$1i",
|
|
328
325
|
],
|
|
329
|
-
[/(alumn|alg|vertebr)(?:a|ae)$/i,
|
|
330
|
-
[/(seraph|cherub)(?:im)?$/i,
|
|
331
|
-
[/(her|at|gr)o$/i,
|
|
326
|
+
[/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
|
|
327
|
+
[/(seraph|cherub)(?:im)?$/i, "$1im"],
|
|
328
|
+
[/(her|at|gr)o$/i, "$1oes"],
|
|
332
329
|
[
|
|
333
330
|
/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,
|
|
334
|
-
|
|
331
|
+
"$1a",
|
|
335
332
|
],
|
|
336
333
|
[
|
|
337
334
|
/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,
|
|
338
|
-
|
|
335
|
+
"$1a",
|
|
339
336
|
],
|
|
340
|
-
[/sis$/i,
|
|
341
|
-
[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,
|
|
342
|
-
[/([^aeiouy]|qu)y$/i,
|
|
343
|
-
[/([^ch][ieo][ln])ey$/i,
|
|
344
|
-
[/(x|ch|ss|sh|zz)$/i,
|
|
345
|
-
[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,
|
|
346
|
-
[/\b((?:tit)?m|l)(?:ice|ouse)$/i,
|
|
347
|
-
[/(pe)(?:rson|ople)$/i,
|
|
348
|
-
[/(child)(?:ren)?$/i,
|
|
349
|
-
[/eaux$/i,
|
|
350
|
-
[/m[ae]n$/i,
|
|
351
|
-
[
|
|
337
|
+
[/sis$/i, "ses"],
|
|
338
|
+
[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
|
|
339
|
+
[/([^aeiouy]|qu)y$/i, "$1ies"],
|
|
340
|
+
[/([^ch][ieo][ln])ey$/i, "$1ies"],
|
|
341
|
+
[/(x|ch|ss|sh|zz)$/i, "$1es"],
|
|
342
|
+
[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
|
|
343
|
+
[/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
|
|
344
|
+
[/(pe)(?:rson|ople)$/i, "$1ople"],
|
|
345
|
+
[/(child)(?:ren)?$/i, "$1ren"],
|
|
346
|
+
[/eaux$/i, "$0"],
|
|
347
|
+
[/m[ae]n$/i, "men"],
|
|
348
|
+
["thou", "you"],
|
|
352
349
|
].forEach(function (rule) {
|
|
353
350
|
return pluralize.addPluralRule(rule[0], rule[1])
|
|
354
|
-
})
|
|
355
|
-
|
|
356
|
-
/**
|
|
351
|
+
}) /**
|
|
357
352
|
* Singularization rules.
|
|
358
353
|
*/
|
|
359
354
|
;[
|
|
360
|
-
[/s$/i,
|
|
361
|
-
[/(ss)$/i,
|
|
362
|
-
[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,
|
|
363
|
-
[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,
|
|
364
|
-
[/ies$/i,
|
|
365
|
-
[/(dg|ss|ois|lk|ok|wn|mb|th|ch|ec|oal|is|ck|ix|sser|ts|wb)ies$/i,
|
|
355
|
+
[/s$/i, ""],
|
|
356
|
+
[/(ss)$/i, "$1"],
|
|
357
|
+
[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
|
|
358
|
+
[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
|
|
359
|
+
[/ies$/i, "y"],
|
|
360
|
+
[/(dg|ss|ois|lk|ok|wn|mb|th|ch|ec|oal|is|ck|ix|sser|ts|wb)ies$/i, "$1ie"],
|
|
366
361
|
[
|
|
367
362
|
/\b(l|(?:neck|cross|hog|aun)?t|coll|faer|food|gen|goon|group|hipp|junk|vegg|(?:pork)?p|charl|calor|cut)ies$/i,
|
|
368
|
-
|
|
363
|
+
"$1ie",
|
|
369
364
|
],
|
|
370
|
-
[/\b(mon|smil)ies$/i,
|
|
371
|
-
[/\b((?:tit)?m|l)ice$/i,
|
|
372
|
-
[/(seraph|cherub)im$/i,
|
|
365
|
+
[/\b(mon|smil)ies$/i, "$1ey"],
|
|
366
|
+
[/\b((?:tit)?m|l)ice$/i, "$1ouse"],
|
|
367
|
+
[/(seraph|cherub)im$/i, "$1"],
|
|
373
368
|
[
|
|
374
369
|
/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,
|
|
375
|
-
|
|
370
|
+
"$1",
|
|
376
371
|
],
|
|
377
372
|
[
|
|
378
373
|
/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,
|
|
379
|
-
|
|
374
|
+
"$1sis",
|
|
380
375
|
],
|
|
381
|
-
[/(movie|twelve|abuse|e[mn]u)s$/i,
|
|
382
|
-
[/(test)(?:is|es)$/i,
|
|
376
|
+
[/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
|
|
377
|
+
[/(test)(?:is|es)$/i, "$1is"],
|
|
383
378
|
[
|
|
384
379
|
/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,
|
|
385
|
-
|
|
380
|
+
"$1us",
|
|
386
381
|
],
|
|
387
382
|
[
|
|
388
383
|
/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,
|
|
389
|
-
|
|
384
|
+
"$1um",
|
|
390
385
|
],
|
|
391
386
|
[
|
|
392
387
|
/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,
|
|
393
|
-
|
|
388
|
+
"$1on",
|
|
394
389
|
],
|
|
395
|
-
[/(alumn|alg|vertebr)ae$/i,
|
|
396
|
-
[/(cod|mur|sil|vert|ind)ices$/i,
|
|
397
|
-
[/(matr|append)ices$/i,
|
|
398
|
-
[/(pe)(rson|ople)$/i,
|
|
399
|
-
[/(child)ren$/i,
|
|
400
|
-
[/(eau)x?$/i,
|
|
401
|
-
[/men$/i,
|
|
390
|
+
[/(alumn|alg|vertebr)ae$/i, "$1a"],
|
|
391
|
+
[/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
|
|
392
|
+
[/(matr|append)ices$/i, "$1ix"],
|
|
393
|
+
[/(pe)(rson|ople)$/i, "$1rson"],
|
|
394
|
+
[/(child)ren$/i, "$1"],
|
|
395
|
+
[/(eau)x?$/i, "$1"],
|
|
396
|
+
[/men$/i, "man"],
|
|
402
397
|
].forEach(function (rule) {
|
|
403
398
|
return pluralize.addSingularRule(rule[0], rule[1])
|
|
404
|
-
})
|
|
405
|
-
|
|
406
|
-
/**
|
|
399
|
+
}) /**
|
|
407
400
|
* Uncountable rules.
|
|
408
401
|
*/
|
|
409
402
|
;[
|
|
410
403
|
// Singular words with no plurals.
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
404
|
+
"adulthood",
|
|
405
|
+
"advice",
|
|
406
|
+
"agenda",
|
|
407
|
+
"aid",
|
|
408
|
+
"aircraft",
|
|
409
|
+
"alcohol",
|
|
410
|
+
"ammo",
|
|
411
|
+
"analytics",
|
|
412
|
+
"anime",
|
|
413
|
+
"athletics",
|
|
414
|
+
"audio",
|
|
415
|
+
"bison",
|
|
416
|
+
"blood",
|
|
417
|
+
"bream",
|
|
418
|
+
"buffalo",
|
|
419
|
+
"butter",
|
|
420
|
+
"carp",
|
|
421
|
+
"cash",
|
|
422
|
+
"chassis",
|
|
423
|
+
"chess",
|
|
424
|
+
"clothing",
|
|
425
|
+
"cod",
|
|
426
|
+
"commerce",
|
|
427
|
+
"cooperation",
|
|
428
|
+
"corps",
|
|
429
|
+
"debris",
|
|
430
|
+
"diabetes",
|
|
431
|
+
"digestion",
|
|
432
|
+
"elk",
|
|
433
|
+
"energy",
|
|
434
|
+
"equipment",
|
|
435
|
+
"excretion",
|
|
436
|
+
"expertise",
|
|
437
|
+
"firmware",
|
|
438
|
+
"flounder",
|
|
439
|
+
"fun",
|
|
440
|
+
"gallows",
|
|
441
|
+
"garbage",
|
|
442
|
+
"graffiti",
|
|
443
|
+
"hardware",
|
|
444
|
+
"headquarters",
|
|
445
|
+
"health",
|
|
446
|
+
"herpes",
|
|
447
|
+
"highjinks",
|
|
448
|
+
"homework",
|
|
449
|
+
"housework",
|
|
450
|
+
"information",
|
|
451
|
+
"jeans",
|
|
452
|
+
"justice",
|
|
453
|
+
"kudos",
|
|
454
|
+
"labour",
|
|
455
|
+
"literature",
|
|
456
|
+
"machinery",
|
|
457
|
+
"mackerel",
|
|
458
|
+
"mail",
|
|
459
|
+
"media",
|
|
460
|
+
"mews",
|
|
461
|
+
"moose",
|
|
462
|
+
"music",
|
|
463
|
+
"mud",
|
|
464
|
+
"manga",
|
|
465
|
+
"news",
|
|
466
|
+
"only",
|
|
467
|
+
"personnel",
|
|
468
|
+
"pike",
|
|
469
|
+
"plankton",
|
|
470
|
+
"pliers",
|
|
471
|
+
"police",
|
|
472
|
+
"pollution",
|
|
473
|
+
"premises",
|
|
474
|
+
"rain",
|
|
475
|
+
"research",
|
|
476
|
+
"rice",
|
|
477
|
+
"salmon",
|
|
478
|
+
"scissors",
|
|
479
|
+
"series",
|
|
480
|
+
"sewage",
|
|
481
|
+
"shambles",
|
|
482
|
+
"shrimp",
|
|
483
|
+
"software",
|
|
484
|
+
"staff",
|
|
485
|
+
"swine",
|
|
486
|
+
"tennis",
|
|
487
|
+
"traffic",
|
|
488
|
+
"transportation",
|
|
489
|
+
"trout",
|
|
490
|
+
"tuna",
|
|
491
|
+
"wealth",
|
|
492
|
+
"welfare",
|
|
493
|
+
"whiting",
|
|
494
|
+
"wildebeest",
|
|
495
|
+
"wildlife",
|
|
496
|
+
"you",
|
|
504
497
|
/pok[eé]mon$/i,
|
|
505
498
|
// Regexes.
|
|
506
499
|
/[^aeiou]ese$/i, // "chinese", "japanese"
|
package/src/@types/custom.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
// Allow .png imports
|
|
3
|
-
declare module
|
|
3
|
+
declare module "*.png" {
|
|
4
4
|
const value: string
|
|
5
5
|
export = value
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
// Allow .svg imports
|
|
9
|
-
declare module
|
|
9
|
+
declare module "*.svg" {
|
|
10
10
|
const value: string
|
|
11
11
|
export = value
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
// Allow .scss imports
|
|
15
|
-
declare module
|
|
15
|
+
declare module "*.scss" {
|
|
16
16
|
const value: string
|
|
17
17
|
export = value
|
|
18
18
|
}
|
package/src/@types/react.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react"
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Required to use the webkitdirectory attribute on <input>
|
|
5
5
|
*/
|
|
6
|
-
declare module
|
|
6
|
+
declare module "react" {
|
|
7
7
|
interface InputHTMLAttributes<InputHTMLElement>
|
|
8
|
-
extends AriaAttributes,
|
|
9
|
-
DOMAttributes<InputHTMLElement> {
|
|
8
|
+
extends AriaAttributes, DOMAttributes<InputHTMLElement> {
|
|
10
9
|
directory?: string
|
|
11
10
|
webkitdirectory?: string
|
|
12
11
|
}
|
package/src/client.jsx
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Browser client entrypoint - see server.tsx for SSR entrypoint
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { ApolloProvider, InMemoryCache } from
|
|
7
|
-
import { createClient } from
|
|
8
|
-
import React from
|
|
9
|
-
import ReactDOM from
|
|
10
|
-
import { BrowserRouter, Route, Routes } from
|
|
11
|
-
import App from
|
|
12
|
-
import Index from
|
|
13
|
-
import { version } from
|
|
14
|
-
import { config } from
|
|
15
|
-
import * as gtag from
|
|
16
|
-
import { relayStylePagination } from
|
|
17
|
-
import
|
|
4
|
+
import "./scripts/utils/global-polyfill"
|
|
5
|
+
import "./scripts/apm.js"
|
|
6
|
+
import { ApolloProvider, InMemoryCache } from "@apollo/client"
|
|
7
|
+
import { createClient } from "@openneuro/client"
|
|
8
|
+
import React from "react"
|
|
9
|
+
import ReactDOM from "react-dom"
|
|
10
|
+
import { BrowserRouter, Route, Routes } from "react-router-dom"
|
|
11
|
+
import App from "./scripts/app"
|
|
12
|
+
import Index from "./scripts/index"
|
|
13
|
+
import { version } from "./lerna.json"
|
|
14
|
+
import { config } from "./scripts/config"
|
|
15
|
+
import * as gtag from "./scripts/utils/gtag"
|
|
16
|
+
import { relayStylePagination } from "@apollo/client/utilities"
|
|
17
|
+
import "@openneuro/components/page/page.scss"
|
|
18
18
|
|
|
19
19
|
gtag.initialize(config.analytics.trackingIds)
|
|
20
20
|
|
|
@@ -32,7 +32,8 @@ ReactDOM.render(
|
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
34
|
}),
|
|
35
|
-
})}
|
|
35
|
+
})}
|
|
36
|
+
>
|
|
36
37
|
<BrowserRouter>
|
|
37
38
|
<Routes>
|
|
38
39
|
<Route path="*" element={<Index />} />
|
|
@@ -40,5 +41,5 @@ ReactDOM.render(
|
|
|
40
41
|
</BrowserRouter>
|
|
41
42
|
</ApolloProvider>
|
|
42
43
|
</App>,
|
|
43
|
-
document.getElementById(
|
|
44
|
+
document.getElementById("main"),
|
|
44
45
|
)
|