@openneuro/app 4.5.0 → 4.6.0-alpha.1
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 -5
- package/src/scripts/{refactor_2021/authentication → authentication}/__tests__/profile.spec.js +0 -0
- package/src/scripts/{refactor_2021/authentication → authentication}/admin-user.jsx +0 -0
- package/src/scripts/{refactor_2021/authentication → authentication}/logged-in.jsx +0 -0
- package/src/scripts/{refactor_2021/authentication → authentication}/logged-out.jsx +0 -0
- package/src/scripts/{refactor_2021/authentication → authentication}/loginCheck.js +0 -0
- package/src/scripts/{refactor_2021/authentication → authentication}/loginUrls.ts +1 -1
- package/src/scripts/{refactor_2021/authentication → authentication}/profile.js +0 -0
- package/src/scripts/{refactor_2021/authentication → authentication}/signOut.ts +0 -0
- package/src/scripts/{refactor_2021/authentication → authentication}/withProfile.jsx +0 -0
- package/src/scripts/{refactor_2021/common → common}/block-navigation.jsx +0 -0
- package/src/scripts/{refactor_2021 → common}/containers/footer.tsx +0 -0
- package/src/scripts/{refactor_2021 → common}/containers/header.tsx +17 -15
- package/src/scripts/{datalad/fragments → common/partials}/freshdesk-widget.jsx +1 -1
- package/src/scripts/datalad/dataset/dataset-query-fragments.js +2 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/comments/__tests__/__snapshots__/comment.spec.jsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/comments/__tests__/__snapshots__/comments.spec.jsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/comments/__tests__/comment.spec.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/comments/__tests__/comments.spec.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/comments/block-style-controls.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/comments/comment-editor.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/comments/comment.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/comments/comments.jsx +1 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/comments/inline-style-controls.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/comments/style-button.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/dataset-query-context.js +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/dataset-query.jsx +15 -15
- package/src/scripts/dataset/dataset-routes.jsx +39 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/download/__tests__/__snapshots__/download-command-line.spec.jsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/download/__tests__/__snapshots__/download-link.spec.jsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/download/__tests__/__snapshots__/shell-example.spec.jsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/download/__tests__/download-command-line.spec.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/download/__tests__/download-link.spec.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/download/__tests__/download-native.spec.js +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/download/__tests__/shell-example.spec.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/download/download-command-line.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/download/download-datalad.jsx +1 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/download/download-link.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/download/download-native.js +1 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/download/download-query.js +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/download/download-s3.jsx +1 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/download/native-file-toast.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/download/shell-example.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/download/track-download.js +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/draft-container.tsx +15 -53
- package/src/scripts/{refactor_2021/dataset → dataset}/draft-snapshot-routes.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/__snapshots__/file-tree.spec.jsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/__snapshots__/file.spec.jsx.snap +2 -2
- package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/file-tree-loading.spec.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/file-tree-unloaded-directory.spec.jsx +1 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/file-tree.spec.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/file-viewer-type.spec.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/file.spec.jsx +11 -4
- package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/flat-to-tree.spec.js +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/file-display.jsx +2 -2
- package/src/scripts/{refactor_2021/dataset → dataset}/files/file-tree-loading.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/file-tree-unloaded-directory.jsx +1 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/files/file-tree.jsx +3 -2
- package/src/scripts/{refactor_2021/dataset → dataset}/files/file-view.jsx +1 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/files/file-viewer-type.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset/files/file.jsx → dataset/files/file.tsx} +30 -13
- package/src/scripts/{refactor_2021/dataset → dataset}/files/files.jsx +1 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/files/flat-to-tree.js +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/index.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/__tests__/__snapshots__/file-viewer-json.spec.jsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/__tests__/file-viewer-json.spec.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/__tests__/parse-tabular.spec.js +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/file-viewer-csv.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/file-viewer-html.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/file-viewer-json.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/file-viewer-nifti.jsx +1 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/file-viewer-table.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/file-viewer-text.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/file-viewer-tsv.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/parse-tabular.js +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/__snapshots__/cancel-button.spec.tsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/__snapshots__/edit-button.spec.tsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/__snapshots__/edit-list.spec.jsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/__snapshots__/save-button.spec.tsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/__snapshots__/select-input.spec.tsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/cancel-button.spec.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/dataset-alert-draft.spec.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/dataset-citation.spec.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/doi-link.spec.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/edit-button.spec.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/edit-list.spec.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/save-button.spec.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/select-input.spec.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/cancel-button.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/comments-fragments.js +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/copyable-tooltip.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/dataset-alert-draft.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/dataset-alert-version.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/dataset-citation.jsx +2 -4
- package/src/scripts/dataset/fragments/dataset-history.jsx +99 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/dataset-reviewers.ts +1 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/doi-link.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/edit-button.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/edit-description-field.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/edit-description-list.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/edit-list.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/number-input.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/save-button.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/select-input.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/text-array-input.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/fragments/text-input.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/__snapshots__/delete.spec.jsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/__snapshots__/deprecate-snapshot.spec.tsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/__snapshots__/deprecate-version.spec.tsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/__snapshots__/description.spec.jsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/__snapshots__/update-permissions.spec.jsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/cache-id.spec.js +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/delete.spec.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/deprecate-snapshot.spec.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/deprecate-version.spec.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/description.spec.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/remove-permissions.spec.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/update-permissions.spec.jsx +0 -0
- package/src/scripts/dataset/mutations/admin-exports.jsx +70 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/cache-clear.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/cache-id.js +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/comment.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/create-anonymous-reviewer.tsx +0 -3
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/dataset-relations.tsx +4 -15
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/delete-anonymous-reviewer.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/delete-comment.jsx +2 -4
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/delete-dataset-form.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/delete-dir.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/delete-file.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/delete.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/deprecate-version.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/description.jsx +1 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/flag-annex-object.jsx +1 -2
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/follow.tsx +2 -2
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/import-dataset.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/metadata-form.jsx +1 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/publish.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/readme.jsx +1 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/remove-annex-object.jsx +0 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/remove-permissions.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/revalidate.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/snapshot.tsx +17 -3
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/star.tsx +2 -2
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/submit-metadata.jsx +1 -1
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/undo-deprecate-version.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/update-file.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/update-permissions.tsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/mutations/update-ref.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/routes/__tests__/__snapshots__/publish.spec.jsx.snap +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/routes/__tests__/publish.spec.jsx +0 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/routes/add-metadata.jsx +21 -25
- package/src/scripts/dataset/routes/admin-datalad.jsx +40 -0
- package/src/scripts/dataset/routes/dataset-default.tsx +54 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/routes/delete-page.tsx +5 -9
- package/src/scripts/{refactor_2021/dataset → dataset}/routes/deprecate-snapshot-page.tsx +6 -7
- package/src/scripts/dataset/routes/download-dataset.tsx +53 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/routes/manage-anonymous-reviewers.tsx +9 -3
- package/src/scripts/{refactor_2021/dataset → dataset}/routes/manage-permissions.jsx +7 -10
- package/src/scripts/{refactor_2021/dataset → dataset}/routes/publish.jsx +10 -12
- package/src/scripts/dataset/routes/snapshot-default.tsx +44 -0
- package/src/scripts/dataset/routes/snapshot.jsx +148 -0
- package/src/scripts/dataset/routes/styles/dataset-page-border.tsx +8 -0
- package/src/scripts/dataset/routes/styles/dataset-page-tab-container.tsx +8 -0
- package/src/scripts/dataset/routes/styles/draft-background.tsx +7 -0
- package/src/scripts/dataset/routes/styles/header-row.tsx +12 -0
- package/src/scripts/dataset/routes/tab-routes-draft.tsx +88 -0
- package/src/scripts/dataset/routes/tab-routes-snapshot.tsx +57 -0
- package/src/scripts/{refactor_2021/dataset → dataset}/snapshot-container.tsx +9 -42
- package/src/scripts/{refactor_2021 → errors}/freshdesk-widget.jsx +1 -1
- package/src/scripts/errors/freshdeskInterface.jsx +1 -1
- package/src/scripts/index.tsx +5 -5
- package/src/scripts/pages/admin/admin.jsx +1 -1
- package/src/scripts/pages/admin/user-tools.tsx +1 -1
- package/src/scripts/{refactor_2021/user → pages}/api.jsx +2 -2
- package/src/scripts/{faq → pages/faq}/__tests__/__snapshots__/faq.spec.jsx.snap +1 -1
- package/src/scripts/{faq → pages/faq}/__tests__/faq.spec.jsx +0 -0
- package/src/scripts/{faq → pages/faq}/faq-content.js +3 -5
- package/src/scripts/{faq → pages/faq}/faq.jsx +1 -1
- package/src/scripts/{refactor_2021 → pages/front-page}/aggregate-queries/aggregate-counts-container.tsx +0 -0
- package/src/scripts/{refactor_2021 → pages/front-page}/aggregate-queries/use-participant-count.ts +0 -0
- package/src/scripts/{refactor_2021 → pages/front-page}/aggregate-queries/use-publicDatasets-count.ts +0 -0
- package/src/scripts/pages/import-dataset.tsx +5 -5
- package/src/scripts/routes.tsx +3 -3
- package/src/scripts/{refactor_2021/search → search}/__tests__/search-container.spec.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/__tests__/search-params-ctx.spec.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/es-query-builders.ts +0 -0
- package/src/scripts/{refactor_2021/search → search}/filters-block-container.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/initial-search-params.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/__tests__/sort-by-select.spec.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/admin-allDatasets-toggle.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/age-range-input.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/author-input.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/date-radios.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/diagnosis-select.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/index.ts +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/keyword-input.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/modality-select.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/pet/bodyParts_input.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/pet/scannerManufacturersModelNames_input.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/pet/scannerManufacturers_input.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/pet/tracerNames_input.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/pet/tracerRadionuclides_input.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/section-select.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/sex-radios.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/show-datasets-radios.tsx +2 -4
- package/src/scripts/{refactor_2021/search → search}/inputs/sort-by-select.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/species-select.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/study-domain-input.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/subject-count-range-input.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/inputs/task-input.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/search-container.tsx +1 -1
- package/src/scripts/{refactor_2021/search → search}/search-params-ctx.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/search-routes.tsx +0 -0
- package/src/scripts/{refactor_2021/search → search}/use-search-results.tsx +1 -0
- package/src/scripts/test-utils.js +1 -1
- package/src/scripts/{refactor_2021/uploader → uploader}/add-path-to-files.js +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/file-select.tsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/file-upload.js +1 -1
- package/src/scripts/{refactor_2021/uploader → uploader}/input.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-button.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-disclaimer-input.tsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-disclaimer.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-file-status.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-issues.jsx +1 -1
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-metadata.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-mutation.js +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-progress-button.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-progress-class.js +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-progress.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-rename.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-resume.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-select.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-status.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/upload-step.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/uploader-context.js +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/uploader-location.js +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/uploader-modal.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/uploader-setup-routes.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/uploader-status-routes.jsx +0 -0
- package/src/scripts/{refactor_2021/uploader → uploader}/uploader-view.jsx +1 -1
- package/src/scripts/{refactor_2021/uploader → uploader}/uploader.jsx +1 -1
- package/src/scripts/{refactor_2021/utils → utils}/cookies.js +0 -0
- package/src/scripts/{refactor_2021 → utils}/user-login-modal-ctx.tsx +1 -2
- package/src/scripts/{refactor_2021/validation → validation}/validation-panel.jsx +0 -0
- package/src/scripts/{refactor_2021/validation → validation}/validation-results.issues.issue.jsx +0 -0
- package/src/scripts/{refactor_2021/validation → validation}/validation-results.issues.jsx +0 -0
- package/src/scripts/{refactor_2021/validation → validation}/validation-results.jsx +0 -0
- package/src/scripts/{refactor_2021/validation → validation}/validation-status.jsx +0 -0
- package/src/scripts/{refactor_2021/validation → validation}/validation.jsx +1 -1
- package/src/scripts/refactor_2021/common/partials/toast-content.jsx +0 -18
- package/src/scripts/refactor_2021/dataset/dataset-routes.jsx +0 -163
- package/src/scripts/refactor_2021/dataset/fragments/dataset-history.jsx +0 -103
- package/src/scripts/refactor_2021/dataset/routes/admin-datalad.jsx +0 -47
- package/src/scripts/refactor_2021/dataset/routes/admin-exports.jsx +0 -132
- package/src/scripts/refactor_2021/dataset/routes/download-dataset.tsx +0 -76
- package/src/scripts/refactor_2021/dataset/routes/snapshot.jsx +0 -139
- package/src/scripts/refactor_2021/utils/datalad.js +0 -13
- package/src/scripts/refactor_2021/utils/gtag.js +0 -22
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import
|
|
2
|
+
import bytes from 'bytes'
|
|
3
3
|
import { Link } from 'react-router-dom'
|
|
4
4
|
import UpdateFile from '../mutations/update-file.jsx'
|
|
5
5
|
import DeleteFile from '../mutations/delete-file.jsx'
|
|
6
|
-
import { Media } from '
|
|
6
|
+
import { Media } from '../../styles/media'
|
|
7
7
|
import RemoveAnnexObject from '../mutations/remove-annex-object.jsx'
|
|
8
8
|
import FlagAnnexObject from '../mutations/flag-annex-object.jsx'
|
|
9
9
|
import { isAdmin } from '../../authentication/admin-user.jsx'
|
|
@@ -79,8 +79,33 @@ export const apiPath = (datasetId, snapshotTag, filePath) => {
|
|
|
79
79
|
return `/crn/datasets/${datasetId}${snapshotPath}/files/${filePath}`
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
interface FileProps {
|
|
83
|
+
id: string
|
|
84
|
+
size: number
|
|
85
|
+
datasetId: string
|
|
86
|
+
path: string
|
|
87
|
+
filename: string
|
|
88
|
+
snapshotTag: string
|
|
89
|
+
editMode: boolean
|
|
90
|
+
isMobile: boolean
|
|
91
|
+
annexed: boolean
|
|
92
|
+
annexKey: string
|
|
93
|
+
datasetPermissions: string[]
|
|
94
|
+
toggleFileToDelete: ({
|
|
95
|
+
id,
|
|
96
|
+
path,
|
|
97
|
+
filename,
|
|
98
|
+
}: {
|
|
99
|
+
id: string
|
|
100
|
+
path: string
|
|
101
|
+
filename: string
|
|
102
|
+
}) => boolean
|
|
103
|
+
isFileToBeDeleted: (id: string) => boolean
|
|
104
|
+
}
|
|
105
|
+
|
|
82
106
|
const File = ({
|
|
83
107
|
id,
|
|
108
|
+
size,
|
|
84
109
|
datasetId,
|
|
85
110
|
path,
|
|
86
111
|
filename,
|
|
@@ -92,7 +117,7 @@ const File = ({
|
|
|
92
117
|
datasetPermissions,
|
|
93
118
|
toggleFileToDelete,
|
|
94
119
|
isFileToBeDeleted,
|
|
95
|
-
}) => {
|
|
120
|
+
}: FileProps) => {
|
|
96
121
|
const { icon, color } = getFileIcon(filename)
|
|
97
122
|
const snapshotVersionPath = snapshotTag ? `/versions/${snapshotTag}` : ''
|
|
98
123
|
// React route to display the file
|
|
@@ -109,7 +134,7 @@ const File = ({
|
|
|
109
134
|
{filename}
|
|
110
135
|
<span className="filetree-editfile">
|
|
111
136
|
<Media greaterThanOrEqual="medium">
|
|
112
|
-
<Tooltip tooltip=
|
|
137
|
+
<Tooltip tooltip={`Download: ${bytes.format(size) as string}`}>
|
|
113
138
|
<span className="edit-file download-file">
|
|
114
139
|
<a
|
|
115
140
|
href={apiPath(datasetId, snapshotTag, filePath(path, filename))}
|
|
@@ -131,7 +156,7 @@ const File = ({
|
|
|
131
156
|
<Media greaterThanOrEqual="medium">
|
|
132
157
|
<Tooltip tooltip="Update">
|
|
133
158
|
<UpdateFile datasetId={datasetId} path={path}>
|
|
134
|
-
<i className="fa fa-
|
|
159
|
+
<i className="fa fa-cloud-upload" />
|
|
135
160
|
</UpdateFile>
|
|
136
161
|
</Tooltip>
|
|
137
162
|
</Media>
|
|
@@ -205,12 +230,4 @@ const File = ({
|
|
|
205
230
|
)
|
|
206
231
|
}
|
|
207
232
|
|
|
208
|
-
File.propTypes = {
|
|
209
|
-
datasetId: PropTypes.string,
|
|
210
|
-
path: PropTypes.string,
|
|
211
|
-
filename: PropTypes.string,
|
|
212
|
-
snapshotTag: PropTypes.string,
|
|
213
|
-
editMode: PropTypes.bool,
|
|
214
|
-
}
|
|
215
|
-
|
|
216
233
|
export default File
|
|
@@ -2,7 +2,7 @@ import React, { useState } from 'react'
|
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import { flatToTree } from './flat-to-tree.js'
|
|
4
4
|
import FileTree from './file-tree.jsx'
|
|
5
|
-
import { Media } from '
|
|
5
|
+
import { Media } from '../../styles/media'
|
|
6
6
|
import { useMutation, gql } from '@apollo/client'
|
|
7
7
|
import { WarnButton } from '@openneuro/components/warn-button'
|
|
8
8
|
import { AccordionWrap } from '@openneuro/components/accordion'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/__tests__/parse-tabular.spec.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/cancel-button.spec.tsx
RENAMED
|
File without changes
|
|
File without changes
|
package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/dataset-citation.spec.jsx
RENAMED
|
File without changes
|
|
File without changes
|
package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/edit-button.spec.tsx
RENAMED
|
File without changes
|
package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/edit-list.spec.jsx
RENAMED
|
File without changes
|
package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/save-button.spec.tsx
RENAMED
|
File without changes
|
package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/select-input.spec.tsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -61,13 +61,11 @@ const DatasetCitation = ({ snapshot }) => {
|
|
|
61
61
|
/>
|
|
62
62
|
<Tooltip
|
|
63
63
|
tooltip={'Copy ' + style + ' to clipboard'}
|
|
64
|
-
className="tooltip"
|
|
65
|
-
>
|
|
64
|
+
className="tooltip">
|
|
66
65
|
<CopyToClipboard
|
|
67
66
|
text={citation}
|
|
68
67
|
onCopy={() => copiedTimeout()}
|
|
69
|
-
className="on-button on-button--small on-button--nobg "
|
|
70
|
-
>
|
|
68
|
+
className="on-button on-button--small on-button--nobg ">
|
|
71
69
|
<span className="copy-key">
|
|
72
70
|
<i className="fa fa-link" aria-hidden="true" />{' '}
|
|
73
71
|
{copied ? <span>Copied to clipboard</span> : <span>Copy</span>}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styled from '@emotion/styled'
|
|
4
|
+
import { gql, useQuery } from '@apollo/client'
|
|
5
|
+
|
|
6
|
+
import Revalidate from '../mutations/revalidate.jsx'
|
|
7
|
+
import UpdateRef from '../mutations/update-ref.jsx'
|
|
8
|
+
|
|
9
|
+
const GET_HISTORY = gql`
|
|
10
|
+
query getHistory($datasetId: ID!) {
|
|
11
|
+
dataset(id: $datasetId) {
|
|
12
|
+
id
|
|
13
|
+
history {
|
|
14
|
+
id
|
|
15
|
+
authorName
|
|
16
|
+
authorEmail
|
|
17
|
+
date
|
|
18
|
+
references
|
|
19
|
+
message
|
|
20
|
+
}
|
|
21
|
+
worker
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`
|
|
25
|
+
|
|
26
|
+
const DatasetHistoryTable = styled.div`
|
|
27
|
+
.row {
|
|
28
|
+
line-height: 1.2em;
|
|
29
|
+
}
|
|
30
|
+
.row:nth-of-type(2n) {
|
|
31
|
+
padding-top: 1em;
|
|
32
|
+
}
|
|
33
|
+
.row:nth-of-type(2n + 1) {
|
|
34
|
+
padding-bottom: 1em;
|
|
35
|
+
}
|
|
36
|
+
.row:nth-of-type(4n),
|
|
37
|
+
.row:nth-of-type(4n + 1) {
|
|
38
|
+
background: #f4f4f4;
|
|
39
|
+
}
|
|
40
|
+
`
|
|
41
|
+
|
|
42
|
+
const DatasetHistory = ({ datasetId }) => {
|
|
43
|
+
const { loading, data } = useQuery(GET_HISTORY, {
|
|
44
|
+
variables: { datasetId },
|
|
45
|
+
errorPolicy: 'all',
|
|
46
|
+
})
|
|
47
|
+
if (loading) {
|
|
48
|
+
return <div className="dataset-history">Loading...</div>
|
|
49
|
+
} else {
|
|
50
|
+
return (
|
|
51
|
+
<div className="dataset-history">
|
|
52
|
+
<h4>Worker Assignment</h4> {data.dataset.worker}
|
|
53
|
+
<h4>Git History</h4>
|
|
54
|
+
<DatasetHistoryTable>
|
|
55
|
+
<div className="grid faux-table-header">
|
|
56
|
+
<h4 className="col-lg col col-2">Commit</h4>
|
|
57
|
+
<h4 className="col-lg col col-3">Date</h4>
|
|
58
|
+
<h4 className="col-lg col col-3">Author</h4>
|
|
59
|
+
<h4 className="col-lg col col-2">References</h4>
|
|
60
|
+
<h4 className="col-lg col col-2 text--right">Action</h4>
|
|
61
|
+
</div>
|
|
62
|
+
{data.dataset.history.map(commit => (
|
|
63
|
+
<React.Fragment key={commit.id}>
|
|
64
|
+
<div className="grid faux-table">
|
|
65
|
+
<div className="commit col-lg col col-2">
|
|
66
|
+
<label>Commit: </label>
|
|
67
|
+
{commit.id.slice(0, 8)}
|
|
68
|
+
</div>
|
|
69
|
+
<div className="col-lg col col-3">
|
|
70
|
+
<label>Date: </label>
|
|
71
|
+
{commit.date}
|
|
72
|
+
</div>
|
|
73
|
+
<div className="col-lg col col-3">
|
|
74
|
+
<label>Author: </label>
|
|
75
|
+
{commit.authorName} <{commit.authorEmail}>
|
|
76
|
+
</div>
|
|
77
|
+
<div className="col-lg col col-2">
|
|
78
|
+
<label>References: </label>
|
|
79
|
+
{commit.references}
|
|
80
|
+
</div>
|
|
81
|
+
<div className="col-lg col col-2 grid actions">
|
|
82
|
+
<Revalidate datasetId={datasetId} revision={commit.id} />
|
|
83
|
+
<UpdateRef datasetId={datasetId} revision={commit.id} />
|
|
84
|
+
</div>
|
|
85
|
+
<div className="col-lg col col-12">{commit.message}</div>
|
|
86
|
+
</div>
|
|
87
|
+
</React.Fragment>
|
|
88
|
+
))}
|
|
89
|
+
</DatasetHistoryTable>
|
|
90
|
+
</div>
|
|
91
|
+
)
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
DatasetHistory.propTypes = {
|
|
96
|
+
datasetId: PropTypes.string,
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export default DatasetHistory
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/deprecate-version.spec.tsx
RENAMED
|
File without changes
|
package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/description.spec.jsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { gql, useMutation } from '@apollo/client'
|
|
3
|
+
import PropTypes from 'prop-types'
|
|
4
|
+
import { reexporterLogsURL } from '../../resources/kibana'
|
|
5
|
+
import { Button } from '@openneuro/components/button'
|
|
6
|
+
import styled from '@emotion/styled'
|
|
7
|
+
|
|
8
|
+
const ButtonRow = styled.div`
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
11
|
+
grid-gap: 1.3em;
|
|
12
|
+
place-items: start;
|
|
13
|
+
`
|
|
14
|
+
|
|
15
|
+
const SuccessMessage = styled.p({
|
|
16
|
+
color: 'rgb(92, 184, 92)',
|
|
17
|
+
})
|
|
18
|
+
const InProgressMessage = styled.p({
|
|
19
|
+
color: 'orange',
|
|
20
|
+
})
|
|
21
|
+
const ErrorMessage = styled.p({
|
|
22
|
+
color: 'red',
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
const REEXPORT_REMOTES = gql`
|
|
26
|
+
mutation reexportRemotes($datasetId: ID!) {
|
|
27
|
+
reexportRemotes(datasetId: $datasetId)
|
|
28
|
+
}
|
|
29
|
+
`
|
|
30
|
+
|
|
31
|
+
const AdminExports = ({ dataset }) => {
|
|
32
|
+
const [reexportRemotes, { data, loading, error }] =
|
|
33
|
+
useMutation(REEXPORT_REMOTES)
|
|
34
|
+
const success = data && data.reexportRemotes
|
|
35
|
+
return (
|
|
36
|
+
<div className="dataset-form">
|
|
37
|
+
{loading && (
|
|
38
|
+
<InProgressMessage>Your export is starting.</InProgressMessage>
|
|
39
|
+
)}
|
|
40
|
+
{error && <ErrorMessage>An error has occurred.</ErrorMessage>}
|
|
41
|
+
{success && <SuccessMessage>Your export has begun.</SuccessMessage>}
|
|
42
|
+
<ButtonRow>
|
|
43
|
+
<Button
|
|
44
|
+
icon="fa fa-rocket"
|
|
45
|
+
label="Run Export"
|
|
46
|
+
primary={true}
|
|
47
|
+
size="small"
|
|
48
|
+
onClick={() => {
|
|
49
|
+
reexportRemotes({ variables: { datasetId: dataset.id } })
|
|
50
|
+
}}
|
|
51
|
+
/>
|
|
52
|
+
<Button
|
|
53
|
+
icon="fa fa-file-text"
|
|
54
|
+
label="View Export Logs"
|
|
55
|
+
secondary={true}
|
|
56
|
+
size="small"
|
|
57
|
+
onClick={() => {
|
|
58
|
+
window.open(reexporterLogsURL, '_blank')
|
|
59
|
+
}}
|
|
60
|
+
/>
|
|
61
|
+
</ButtonRow>
|
|
62
|
+
</div>
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
AdminExports.propTypes = {
|
|
67
|
+
dataset: PropTypes.object,
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export default AdminExports
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/scripts/{refactor_2021/dataset → dataset}/mutations/create-anonymous-reviewer.tsx
RENAMED
|
@@ -61,9 +61,6 @@ export const CreateReviewLink: FC<CreateReviewLinkProps> = ({ datasetId }) => {
|
|
|
61
61
|
size="small"
|
|
62
62
|
onClick={() => CreateReviewLink({ variables: { datasetId } })}
|
|
63
63
|
/>
|
|
64
|
-
<Link className="return-link" to={`/datasets/${datasetId}`}>
|
|
65
|
-
Return to Dataset
|
|
66
|
-
</Link>
|
|
67
64
|
</div>
|
|
68
65
|
</>
|
|
69
66
|
)
|
|
@@ -50,20 +50,9 @@ const deleteDatasetRelation = gql`
|
|
|
50
50
|
}
|
|
51
51
|
`
|
|
52
52
|
|
|
53
|
-
const RightColumn = styled.div({
|
|
54
|
-
maxWidth: '700px',
|
|
55
|
-
float: 'right',
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
const InfoText = styled.p({
|
|
59
|
-
fontWeight: 100,
|
|
60
|
-
textAlign: 'right',
|
|
61
|
-
})
|
|
62
|
-
|
|
63
53
|
const TableContainer = styled.div({
|
|
64
54
|
display: 'grid',
|
|
65
55
|
gridTemplateColumns: '2fr 3fr 1fr',
|
|
66
|
-
textAlign: 'right',
|
|
67
56
|
})
|
|
68
57
|
|
|
69
58
|
const GridItem = styled.div({
|
|
@@ -120,15 +109,15 @@ export const DatasetRelations = ({ datasetId, hasEdit }) => {
|
|
|
120
109
|
loadedData = <p>No related DOIs have been added.</p>
|
|
121
110
|
}
|
|
122
111
|
return (
|
|
123
|
-
|
|
124
|
-
<
|
|
112
|
+
<>
|
|
113
|
+
<p>
|
|
125
114
|
Add a related DOI such as other repositories where this dataset can be
|
|
126
115
|
found. DOI values should be formatted according to the{' '}
|
|
127
116
|
<a href="https://bids-specification.readthedocs.io/en/stable/02-common-principles.html#uniform-resource-indicator">
|
|
128
117
|
BIDS recommended URI format
|
|
129
118
|
</a>
|
|
130
119
|
.
|
|
131
|
-
</
|
|
120
|
+
</p>
|
|
132
121
|
{loadedData}
|
|
133
122
|
{hasEdit && (
|
|
134
123
|
<div>
|
|
@@ -195,7 +184,7 @@ export const DatasetRelations = ({ datasetId, hasEdit }) => {
|
|
|
195
184
|
/>
|
|
196
185
|
</div>
|
|
197
186
|
)}
|
|
198
|
-
|
|
187
|
+
</>
|
|
199
188
|
)
|
|
200
189
|
} else {
|
|
201
190
|
return null
|
package/src/scripts/{refactor_2021/dataset → dataset}/mutations/delete-anonymous-reviewer.tsx
RENAMED
|
File without changes
|
|
@@ -49,8 +49,7 @@ const DeleteComment = ({ datasetId, commentId }) => {
|
|
|
49
49
|
comments: nextCommentsState,
|
|
50
50
|
},
|
|
51
51
|
})
|
|
52
|
-
}}
|
|
53
|
-
>
|
|
52
|
+
}}>
|
|
54
53
|
{deleteComment => (
|
|
55
54
|
<div className="col col-fixed">
|
|
56
55
|
<a
|
|
@@ -62,8 +61,7 @@ const DeleteComment = ({ datasetId, commentId }) => {
|
|
|
62
61
|
deleteChildren: true,
|
|
63
62
|
},
|
|
64
63
|
})
|
|
65
|
-
}}
|
|
66
|
-
>
|
|
64
|
+
}}>
|
|
67
65
|
<Icon icon="fa fa-trash" label="Delete" />
|
|
68
66
|
</a>
|
|
69
67
|
</div>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import { gql } from '@apollo/client'
|
|
4
4
|
import { Mutation } from '@apollo/client/react/components'
|
|
5
5
|
import { SaveButton } from '../fragments/save-button'
|
|
6
|
-
import { DRAFT_FRAGMENT } from '
|
|
6
|
+
import { DRAFT_FRAGMENT } from '../../datalad/dataset/dataset-query-fragments'
|
|
7
7
|
import { datasetCacheId } from './cache-id.js'
|
|
8
8
|
|
|
9
9
|
export const UPDATE_DESCRIPTION = gql`
|
|
@@ -27,8 +27,7 @@ const FlagAnnexObject = ({ datasetId, snapshot, filepath, annexKey }) => (
|
|
|
27
27
|
// fa-exclamation-triangle might be better
|
|
28
28
|
<Tooltip
|
|
29
29
|
className="flag-annex-object"
|
|
30
|
-
tooltip="Flag: use this to alert site admins if this file has been found to contain subject sensitive data."
|
|
31
|
-
>
|
|
30
|
+
tooltip="Flag: use this to alert site admins if this file has been found to contain subject sensitive data.">
|
|
32
31
|
<WarnButton
|
|
33
32
|
message=""
|
|
34
33
|
icon="fa-exclamation-triangle"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { FC, useContext } from 'react'
|
|
2
2
|
import { gql } from '@apollo/client'
|
|
3
3
|
import { Mutation } from '@apollo/client/react/components'
|
|
4
|
-
import { datasetCacheId } from '
|
|
4
|
+
import { datasetCacheId } from '../../datalad/mutations/cache-id.js'
|
|
5
5
|
import { CountToggle } from '@openneuro/components/count-toggle'
|
|
6
|
-
import { UserModalOpenCtx } from '../../user-login-modal-ctx'
|
|
6
|
+
import { UserModalOpenCtx } from '../../utils/user-login-modal-ctx'
|
|
7
7
|
|
|
8
8
|
const FOLLOW_DATASET = gql`
|
|
9
9
|
mutation followDataset($datasetId: ID!) {
|
|
File without changes
|
|
@@ -321,7 +321,7 @@ const MetadataForm = ({
|
|
|
321
321
|
hasEdit,
|
|
322
322
|
validationErrors = [],
|
|
323
323
|
}) => (
|
|
324
|
-
<Form id="metadata-form"
|
|
324
|
+
<Form id="metadata-form">
|
|
325
325
|
<InfoText>
|
|
326
326
|
Incomplete fields in this form will make it more difficult for users to
|
|
327
327
|
search for your dataset.
|
|
File without changes
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import { gql } from '@apollo/client'
|
|
4
4
|
import { Mutation } from '@apollo/client/react/components'
|
|
5
5
|
import { SaveButton } from '../fragments/save-button'
|
|
6
|
-
import { DRAFT_FRAGMENT } from '
|
|
6
|
+
import { DRAFT_FRAGMENT } from '../../datalad/dataset/dataset-query-fragments'
|
|
7
7
|
import { datasetCacheId } from './cache-id.js'
|
|
8
8
|
|
|
9
9
|
const UPDATE_README = gql`
|
|
File without changes
|
|
File without changes
|