@openneuro/app 4.4.10 → 4.6.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.
Files changed (288) hide show
  1. package/package.json +5 -5
  2. package/src/scripts/app.tsx +1 -1
  3. package/src/scripts/{refactor_2021/authentication → authentication}/__tests__/profile.spec.js +0 -0
  4. package/src/scripts/{refactor_2021/authentication → authentication}/admin-user.jsx +0 -0
  5. package/src/scripts/{refactor_2021/authentication → authentication}/logged-in.jsx +0 -0
  6. package/src/scripts/{refactor_2021/authentication → authentication}/logged-out.jsx +0 -0
  7. package/src/scripts/{refactor_2021/authentication → authentication}/loginCheck.js +0 -0
  8. package/src/scripts/{refactor_2021/authentication → authentication}/loginUrls.ts +1 -1
  9. package/src/scripts/{refactor_2021/authentication → authentication}/profile.js +0 -0
  10. package/src/scripts/{refactor_2021/authentication → authentication}/signOut.ts +0 -0
  11. package/src/scripts/{refactor_2021/authentication → authentication}/withProfile.jsx +0 -0
  12. package/src/scripts/{refactor_2021/common → common}/block-navigation.jsx +0 -0
  13. package/src/scripts/{refactor_2021 → common}/containers/footer.tsx +0 -0
  14. package/src/scripts/{refactor_2021 → common}/containers/header.tsx +17 -15
  15. package/src/scripts/{datalad/fragments → common/partials}/freshdesk-widget.jsx +1 -1
  16. package/src/scripts/datalad/dataset/dataset-query-fragments.js +2 -0
  17. package/src/scripts/{refactor_2021/dataset → dataset}/comments/__tests__/__snapshots__/comment.spec.jsx.snap +0 -0
  18. package/src/scripts/{refactor_2021/dataset → dataset}/comments/__tests__/__snapshots__/comments.spec.jsx.snap +0 -0
  19. package/src/scripts/{refactor_2021/dataset → dataset}/comments/__tests__/comment.spec.jsx +0 -0
  20. package/src/scripts/{refactor_2021/dataset → dataset}/comments/__tests__/comments.spec.jsx +0 -0
  21. package/src/scripts/{refactor_2021/dataset → dataset}/comments/block-style-controls.jsx +0 -0
  22. package/src/scripts/{refactor_2021/dataset → dataset}/comments/comment-editor.jsx +0 -0
  23. package/src/scripts/{refactor_2021/dataset → dataset}/comments/comment.jsx +0 -0
  24. package/src/scripts/{refactor_2021/dataset → dataset}/comments/comments.jsx +1 -1
  25. package/src/scripts/{refactor_2021/dataset → dataset}/comments/inline-style-controls.jsx +0 -0
  26. package/src/scripts/{refactor_2021/dataset → dataset}/comments/style-button.jsx +0 -0
  27. package/src/scripts/{refactor_2021/dataset → dataset}/dataset-query-context.js +0 -0
  28. package/src/scripts/{refactor_2021/dataset → dataset}/dataset-query.jsx +15 -15
  29. package/src/scripts/dataset/dataset-routes.jsx +39 -0
  30. package/src/scripts/{refactor_2021/dataset → dataset}/download/__tests__/__snapshots__/download-command-line.spec.jsx.snap +0 -0
  31. package/src/scripts/{refactor_2021/dataset → dataset}/download/__tests__/__snapshots__/download-link.spec.jsx.snap +0 -0
  32. package/src/scripts/{refactor_2021/dataset → dataset}/download/__tests__/__snapshots__/shell-example.spec.jsx.snap +0 -0
  33. package/src/scripts/{refactor_2021/dataset → dataset}/download/__tests__/download-command-line.spec.jsx +0 -0
  34. package/src/scripts/{refactor_2021/dataset → dataset}/download/__tests__/download-link.spec.jsx +0 -0
  35. package/src/scripts/{refactor_2021/dataset → dataset}/download/__tests__/download-native.spec.js +0 -0
  36. package/src/scripts/{refactor_2021/dataset → dataset}/download/__tests__/shell-example.spec.jsx +0 -0
  37. package/src/scripts/{refactor_2021/dataset → dataset}/download/download-command-line.jsx +0 -0
  38. package/src/scripts/{refactor_2021/dataset → dataset}/download/download-datalad.jsx +1 -1
  39. package/src/scripts/{refactor_2021/dataset → dataset}/download/download-link.jsx +0 -0
  40. package/src/scripts/{refactor_2021/dataset → dataset}/download/download-native.js +1 -1
  41. package/src/scripts/{refactor_2021/dataset → dataset}/download/download-query.js +0 -0
  42. package/src/scripts/{refactor_2021/dataset → dataset}/download/download-s3.jsx +1 -1
  43. package/src/scripts/{refactor_2021/dataset → dataset}/download/native-file-toast.jsx +0 -0
  44. package/src/scripts/{refactor_2021/dataset → dataset}/download/shell-example.jsx +0 -0
  45. package/src/scripts/{refactor_2021/dataset → dataset}/download/track-download.js +0 -0
  46. package/src/scripts/dataset/draft-container.tsx +382 -0
  47. package/src/scripts/{refactor_2021/dataset → dataset}/draft-snapshot-routes.tsx +0 -0
  48. package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/__snapshots__/file-tree.spec.jsx.snap +0 -0
  49. package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/__snapshots__/file.spec.jsx.snap +2 -2
  50. package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/file-tree-loading.spec.jsx +0 -0
  51. package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/file-tree-unloaded-directory.spec.jsx +1 -1
  52. package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/file-tree.spec.jsx +0 -0
  53. package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/file-viewer-type.spec.jsx +0 -0
  54. package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/file.spec.jsx +11 -4
  55. package/src/scripts/{refactor_2021/dataset → dataset}/files/__tests__/flat-to-tree.spec.js +0 -0
  56. package/src/scripts/{refactor_2021/dataset → dataset}/files/file-display.jsx +2 -2
  57. package/src/scripts/{refactor_2021/dataset → dataset}/files/file-tree-loading.jsx +0 -0
  58. package/src/scripts/{refactor_2021/dataset → dataset}/files/file-tree-unloaded-directory.jsx +1 -1
  59. package/src/scripts/{refactor_2021/dataset → dataset}/files/file-tree.jsx +3 -2
  60. package/src/scripts/{refactor_2021/dataset → dataset}/files/file-view.jsx +1 -1
  61. package/src/scripts/{refactor_2021/dataset → dataset}/files/file-viewer-type.jsx +0 -0
  62. package/src/scripts/{refactor_2021/dataset/files/file.jsx → dataset/files/file.tsx} +30 -13
  63. package/src/scripts/{refactor_2021/dataset → dataset}/files/files.jsx +1 -1
  64. package/src/scripts/{refactor_2021/dataset → dataset}/files/flat-to-tree.js +0 -0
  65. package/src/scripts/{refactor_2021/dataset → dataset}/files/index.tsx +0 -0
  66. package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/__tests__/__snapshots__/file-viewer-json.spec.jsx.snap +0 -0
  67. package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/__tests__/file-viewer-json.spec.jsx +0 -0
  68. package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/__tests__/parse-tabular.spec.js +0 -0
  69. package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/file-viewer-csv.jsx +0 -0
  70. package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/file-viewer-html.jsx +0 -0
  71. package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/file-viewer-json.jsx +0 -0
  72. package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/file-viewer-nifti.jsx +1 -1
  73. package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/file-viewer-table.jsx +0 -0
  74. package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/file-viewer-text.jsx +0 -0
  75. package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/file-viewer-tsv.jsx +0 -0
  76. package/src/scripts/{refactor_2021/dataset → dataset}/files/viewers/parse-tabular.js +0 -0
  77. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/__snapshots__/cancel-button.spec.tsx.snap +0 -0
  78. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/__snapshots__/edit-button.spec.tsx.snap +0 -0
  79. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/__snapshots__/edit-list.spec.jsx.snap +0 -0
  80. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/__snapshots__/save-button.spec.tsx.snap +0 -0
  81. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/__snapshots__/select-input.spec.tsx.snap +0 -0
  82. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/cancel-button.spec.tsx +0 -0
  83. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/dataset-alert-draft.spec.tsx +0 -0
  84. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/dataset-citation.spec.jsx +0 -0
  85. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/doi-link.spec.tsx +38 -8
  86. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/edit-button.spec.tsx +0 -0
  87. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/edit-list.spec.jsx +0 -0
  88. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/save-button.spec.tsx +0 -0
  89. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/__tests__/select-input.spec.tsx +0 -0
  90. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/cancel-button.tsx +0 -0
  91. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/comments-fragments.js +0 -0
  92. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/copyable-tooltip.jsx +0 -0
  93. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/dataset-alert-draft.tsx +0 -0
  94. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/dataset-alert-version.tsx +0 -0
  95. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/dataset-citation.jsx +2 -4
  96. package/src/scripts/dataset/fragments/dataset-history.jsx +99 -0
  97. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/dataset-reviewers.ts +1 -1
  98. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/doi-link.tsx +9 -6
  99. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/edit-button.tsx +0 -0
  100. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/edit-description-field.jsx +0 -0
  101. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/edit-description-list.jsx +0 -0
  102. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/edit-list.jsx +0 -0
  103. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/number-input.tsx +0 -0
  104. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/save-button.tsx +0 -0
  105. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/select-input.tsx +0 -0
  106. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/text-array-input.tsx +0 -0
  107. package/src/scripts/{refactor_2021/dataset → dataset}/fragments/text-input.tsx +0 -0
  108. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/__snapshots__/delete.spec.jsx.snap +0 -0
  109. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/__snapshots__/deprecate-snapshot.spec.tsx.snap +0 -0
  110. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/__snapshots__/deprecate-version.spec.tsx.snap +0 -0
  111. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/__snapshots__/description.spec.jsx.snap +0 -0
  112. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/__snapshots__/update-permissions.spec.jsx.snap +0 -0
  113. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/cache-id.spec.js +0 -0
  114. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/delete.spec.jsx +0 -0
  115. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/deprecate-snapshot.spec.tsx +0 -0
  116. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/deprecate-version.spec.tsx +0 -0
  117. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/description.spec.jsx +0 -0
  118. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/remove-permissions.spec.tsx +0 -0
  119. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/__tests__/update-permissions.spec.jsx +0 -0
  120. package/src/scripts/dataset/mutations/admin-exports.jsx +70 -0
  121. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/cache-clear.jsx +0 -0
  122. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/cache-id.js +0 -0
  123. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/comment.jsx +0 -0
  124. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/create-anonymous-reviewer.tsx +0 -3
  125. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/dataset-relations.tsx +6 -18
  126. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/delete-anonymous-reviewer.tsx +0 -0
  127. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/delete-comment.jsx +2 -4
  128. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/delete-dataset-form.jsx +0 -0
  129. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/delete-dir.jsx +0 -0
  130. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/delete-file.jsx +0 -0
  131. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/delete.jsx +0 -0
  132. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/deprecate-version.tsx +0 -0
  133. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/description.jsx +1 -1
  134. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/flag-annex-object.jsx +1 -2
  135. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/follow.tsx +2 -2
  136. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/import-dataset.tsx +0 -0
  137. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/metadata-form.jsx +1 -1
  138. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/publish.jsx +0 -0
  139. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/readme.jsx +1 -1
  140. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/remove-annex-object.jsx +0 -1
  141. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/remove-permissions.tsx +0 -0
  142. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/revalidate.jsx +0 -0
  143. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/snapshot.tsx +17 -3
  144. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/star.tsx +2 -2
  145. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/submit-metadata.jsx +1 -1
  146. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/undo-deprecate-version.tsx +0 -0
  147. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/update-file.jsx +0 -0
  148. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/update-permissions.tsx +0 -0
  149. package/src/scripts/{refactor_2021/dataset → dataset}/mutations/update-ref.jsx +0 -0
  150. package/src/scripts/{refactor_2021/dataset → dataset}/routes/__tests__/__snapshots__/publish.spec.jsx.snap +0 -0
  151. package/src/scripts/{refactor_2021/dataset → dataset}/routes/__tests__/publish.spec.jsx +0 -0
  152. package/src/scripts/{refactor_2021/dataset → dataset}/routes/add-metadata.jsx +21 -25
  153. package/src/scripts/dataset/routes/admin-datalad.jsx +40 -0
  154. package/src/scripts/dataset/routes/dataset-default.tsx +54 -0
  155. package/src/scripts/{refactor_2021/dataset → dataset}/routes/delete-page.tsx +5 -9
  156. package/src/scripts/{refactor_2021/dataset → dataset}/routes/deprecate-snapshot-page.tsx +6 -7
  157. package/src/scripts/dataset/routes/download-dataset.tsx +53 -0
  158. package/src/scripts/{refactor_2021/dataset → dataset}/routes/manage-anonymous-reviewers.tsx +9 -3
  159. package/src/scripts/{refactor_2021/dataset → dataset}/routes/manage-permissions.jsx +7 -10
  160. package/src/scripts/{refactor_2021/dataset → dataset}/routes/publish.jsx +10 -12
  161. package/src/scripts/dataset/routes/snapshot-default.tsx +44 -0
  162. package/src/scripts/dataset/routes/snapshot.jsx +148 -0
  163. package/src/scripts/dataset/routes/styles/dataset-page-border.tsx +8 -0
  164. package/src/scripts/dataset/routes/styles/dataset-page-tab-container.tsx +8 -0
  165. package/src/scripts/dataset/routes/styles/draft-background.tsx +7 -0
  166. package/src/scripts/dataset/routes/styles/header-row.tsx +12 -0
  167. package/src/scripts/dataset/routes/tab-routes-draft.tsx +88 -0
  168. package/src/scripts/dataset/routes/tab-routes-snapshot.tsx +57 -0
  169. package/src/scripts/{refactor_2021/dataset → dataset}/snapshot-container.tsx +75 -122
  170. package/src/scripts/{refactor_2021 → errors}/freshdesk-widget.jsx +1 -1
  171. package/src/scripts/errors/freshdeskInterface.jsx +1 -1
  172. package/src/scripts/index.tsx +6 -6
  173. package/src/scripts/{refactor_2021 → pages}/admin/admin.jsx +1 -1
  174. package/src/scripts/{refactor_2021 → pages}/admin/flagged-files.jsx +0 -0
  175. package/src/scripts/{refactor_2021 → pages}/admin/user-fragment.ts +0 -0
  176. package/src/scripts/{refactor_2021 → pages}/admin/user-tools.tsx +1 -1
  177. package/src/scripts/{refactor_2021 → pages}/admin/users.jsx +0 -0
  178. package/src/scripts/{refactor_2021/user → pages}/api.jsx +2 -2
  179. package/src/scripts/pages/citation-page.tsx +1 -1
  180. package/src/scripts/{faq → pages/faq}/__tests__/__snapshots__/faq.spec.jsx.snap +1 -1
  181. package/src/scripts/{faq → pages/faq}/__tests__/faq.spec.jsx +0 -0
  182. package/src/scripts/{faq → pages/faq}/faq-content.js +3 -5
  183. package/src/scripts/{faq → pages/faq}/faq.jsx +1 -1
  184. package/src/scripts/{refactor_2021 → pages/front-page}/aggregate-queries/aggregate-counts-container.tsx +0 -0
  185. package/src/scripts/{refactor_2021 → pages/front-page}/aggregate-queries/use-participant-count.ts +0 -0
  186. package/src/scripts/{refactor_2021 → pages/front-page}/aggregate-queries/use-publicDatasets-count.ts +0 -0
  187. package/src/scripts/{front-page → pages/front-page}/front-page-content.ts +10 -10
  188. package/src/scripts/{refactor_2021/containers/front-page-container.tsx → pages/front-page/front-page.tsx} +53 -32
  189. package/src/scripts/pages/front-page-comp.tsx +57 -0
  190. package/src/scripts/pages/import-dataset.tsx +5 -5
  191. package/src/scripts/{pet/redirect.tsx → pages/pet-redirect.tsx} +0 -0
  192. package/src/scripts/{refactor_2021/routes.tsx → routes.tsx} +8 -8
  193. package/src/scripts/{refactor_2021/search → search}/__tests__/search-container.spec.tsx +0 -0
  194. package/src/scripts/{refactor_2021/search → search}/__tests__/search-params-ctx.spec.tsx +0 -0
  195. package/src/scripts/{refactor_2021/search → search}/es-query-builders.ts +0 -0
  196. package/src/scripts/{refactor_2021/search → search}/filters-block-container.tsx +0 -0
  197. package/src/scripts/{refactor_2021/search → search}/initial-search-params.tsx +0 -0
  198. package/src/scripts/{refactor_2021/search → search}/inputs/__tests__/sort-by-select.spec.tsx +0 -0
  199. package/src/scripts/{refactor_2021/search → search}/inputs/admin-allDatasets-toggle.tsx +0 -0
  200. package/src/scripts/{refactor_2021/search → search}/inputs/age-range-input.tsx +0 -0
  201. package/src/scripts/{refactor_2021/search → search}/inputs/author-input.tsx +0 -0
  202. package/src/scripts/{refactor_2021/search → search}/inputs/date-radios.tsx +0 -0
  203. package/src/scripts/{refactor_2021/search → search}/inputs/diagnosis-select.tsx +0 -0
  204. package/src/scripts/{refactor_2021/search → search}/inputs/index.ts +0 -0
  205. package/src/scripts/{refactor_2021/search → search}/inputs/keyword-input.tsx +0 -0
  206. package/src/scripts/{refactor_2021/search → search}/inputs/modality-select.tsx +0 -0
  207. package/src/scripts/{refactor_2021/search → search}/inputs/pet/bodyParts_input.tsx +0 -0
  208. package/src/scripts/{refactor_2021/search → search}/inputs/pet/scannerManufacturersModelNames_input.tsx +0 -0
  209. package/src/scripts/{refactor_2021/search → search}/inputs/pet/scannerManufacturers_input.tsx +0 -0
  210. package/src/scripts/{refactor_2021/search → search}/inputs/pet/tracerNames_input.tsx +0 -0
  211. package/src/scripts/{refactor_2021/search → search}/inputs/pet/tracerRadionuclides_input.tsx +0 -0
  212. package/src/scripts/{refactor_2021/search → search}/inputs/section-select.tsx +0 -0
  213. package/src/scripts/{refactor_2021/search → search}/inputs/sex-radios.tsx +0 -0
  214. package/src/scripts/{refactor_2021/search → search}/inputs/show-datasets-radios.tsx +2 -4
  215. package/src/scripts/{refactor_2021/search → search}/inputs/sort-by-select.tsx +0 -0
  216. package/src/scripts/{refactor_2021/search → search}/inputs/species-select.tsx +0 -0
  217. package/src/scripts/{refactor_2021/search → search}/inputs/study-domain-input.tsx +0 -0
  218. package/src/scripts/{refactor_2021/search → search}/inputs/subject-count-range-input.tsx +0 -0
  219. package/src/scripts/{refactor_2021/search → search}/inputs/task-input.tsx +0 -0
  220. package/src/scripts/{refactor_2021/search → search}/search-container.tsx +1 -1
  221. package/src/scripts/{refactor_2021/search → search}/search-params-ctx.tsx +0 -0
  222. package/src/scripts/{refactor_2021/search → search}/search-routes.tsx +0 -0
  223. package/src/scripts/{refactor_2021/search → search}/use-search-results.tsx +1 -0
  224. package/src/scripts/test-utils.js +1 -1
  225. package/src/scripts/{refactor_2021/uploader → uploader}/add-path-to-files.js +0 -0
  226. package/src/scripts/{refactor_2021/uploader → uploader}/file-select.tsx +0 -0
  227. package/src/scripts/{refactor_2021/uploader → uploader}/file-upload.js +1 -1
  228. package/src/scripts/{refactor_2021/uploader → uploader}/input.jsx +0 -0
  229. package/src/scripts/{refactor_2021/uploader → uploader}/upload-button.jsx +0 -0
  230. package/src/scripts/{refactor_2021/uploader → uploader}/upload-disclaimer-input.tsx +0 -0
  231. package/src/scripts/{refactor_2021/uploader → uploader}/upload-disclaimer.jsx +0 -0
  232. package/src/scripts/{refactor_2021/uploader → uploader}/upload-file-status.jsx +0 -0
  233. package/src/scripts/{refactor_2021/uploader → uploader}/upload-issues.jsx +1 -1
  234. package/src/scripts/{refactor_2021/uploader → uploader}/upload-metadata.jsx +0 -0
  235. package/src/scripts/{refactor_2021/uploader → uploader}/upload-mutation.js +0 -0
  236. package/src/scripts/{refactor_2021/uploader → uploader}/upload-progress-button.jsx +0 -0
  237. package/src/scripts/{refactor_2021/uploader → uploader}/upload-progress-class.js +0 -0
  238. package/src/scripts/{refactor_2021/uploader → uploader}/upload-progress.jsx +0 -0
  239. package/src/scripts/{refactor_2021/uploader → uploader}/upload-rename.jsx +0 -0
  240. package/src/scripts/{refactor_2021/uploader → uploader}/upload-resume.jsx +0 -0
  241. package/src/scripts/{refactor_2021/uploader → uploader}/upload-select.jsx +0 -0
  242. package/src/scripts/{refactor_2021/uploader → uploader}/upload-status.jsx +0 -0
  243. package/src/scripts/{refactor_2021/uploader → uploader}/upload-step.jsx +0 -0
  244. package/src/scripts/{refactor_2021/uploader → uploader}/uploader-context.js +0 -0
  245. package/src/scripts/{refactor_2021/uploader → uploader}/uploader-location.js +0 -0
  246. package/src/scripts/{refactor_2021/uploader → uploader}/uploader-modal.jsx +0 -0
  247. package/src/scripts/{refactor_2021/uploader → uploader}/uploader-setup-routes.jsx +0 -0
  248. package/src/scripts/{refactor_2021/uploader → uploader}/uploader-status-routes.jsx +0 -0
  249. package/src/scripts/{refactor_2021/uploader → uploader}/uploader-view.jsx +1 -1
  250. package/src/scripts/{refactor_2021/uploader → uploader}/uploader.jsx +1 -1
  251. package/src/scripts/{refactor_2021/utils → utils}/cookies.js +0 -0
  252. package/src/scripts/{refactor_2021 → utils}/user-login-modal-ctx.tsx +1 -2
  253. package/src/scripts/{refactor_2021/validation → validation}/validation-panel.jsx +0 -0
  254. package/src/scripts/{refactor_2021/validation → validation}/validation-results.issues.issue.jsx +0 -0
  255. package/src/scripts/{refactor_2021/validation → validation}/validation-results.issues.jsx +0 -0
  256. package/src/scripts/{refactor_2021/validation → validation}/validation-results.jsx +0 -0
  257. package/src/scripts/{refactor_2021/validation → validation}/validation-status.jsx +0 -0
  258. package/src/scripts/{refactor_2021/validation → validation}/validation.jsx +1 -1
  259. package/src/scripts/front-page/assets/get_data_browse.png +0 -0
  260. package/src/scripts/front-page/assets/get_data_download.png +0 -0
  261. package/src/scripts/front-page/assets/ljaf.png +0 -0
  262. package/src/scripts/front-page/assets/logo_app.png +0 -0
  263. package/src/scripts/front-page/assets/logo_cube.png +0 -0
  264. package/src/scripts/front-page/assets/logo_data.png +0 -0
  265. package/src/scripts/front-page/assets/logo_users.png +0 -0
  266. package/src/scripts/front-page/assets/nih.png +0 -0
  267. package/src/scripts/front-page/assets/nsf.png +0 -0
  268. package/src/scripts/front-page/assets/share_data_collaborate.png +0 -0
  269. package/src/scripts/front-page/assets/share_data_publish.png +0 -0
  270. package/src/scripts/front-page/assets/share_data_validate.png +0 -0
  271. package/src/scripts/front-page/assets/squishymedia.png +0 -0
  272. package/src/scripts/front-page/assets/stanford.png +0 -0
  273. package/src/scripts/front-page/assets/tab-get_data.png +0 -0
  274. package/src/scripts/front-page/assets/tab-share_data.png +0 -0
  275. package/src/scripts/front-page/assets/tab-use_data.png +0 -0
  276. package/src/scripts/front-page/assets/use_data_analyze.png +0 -0
  277. package/src/scripts/front-page/assets/use_data_snapshot.png +0 -0
  278. package/src/scripts/mobile/collapsible-wrapper.tsx +0 -93
  279. package/src/scripts/refactor_2021/common/partials/toast-content.jsx +0 -18
  280. package/src/scripts/refactor_2021/dataset/dataset-routes.jsx +0 -163
  281. package/src/scripts/refactor_2021/dataset/draft-container.tsx +0 -435
  282. package/src/scripts/refactor_2021/dataset/fragments/dataset-history.jsx +0 -103
  283. package/src/scripts/refactor_2021/dataset/routes/admin-datalad.jsx +0 -47
  284. package/src/scripts/refactor_2021/dataset/routes/admin-exports.jsx +0 -132
  285. package/src/scripts/refactor_2021/dataset/routes/download-dataset.tsx +0 -76
  286. package/src/scripts/refactor_2021/dataset/routes/snapshot.jsx +0 -139
  287. package/src/scripts/refactor_2021/utils/datalad.js +0 -13
  288. package/src/scripts/refactor_2021/utils/gtag.js +0 -22
@@ -0,0 +1,12 @@
1
+ import styled from '@emotion/styled'
2
+
3
+ const headerRowStyle = `
4
+ margin-top: 0;
5
+ margin-bottom: 1.3em;
6
+ `
7
+
8
+ export const HeaderRow2 = styled.h2(headerRowStyle)
9
+
10
+ export const HeaderRow3 = styled.h3(headerRowStyle)
11
+
12
+ export const HeaderRow4 = styled.h4(headerRowStyle)
@@ -0,0 +1,88 @@
1
+ import React from 'react'
2
+ import { Route, Switch } from 'react-router-dom'
3
+ import { DatasetDefault } from './dataset-default'
4
+ import AdminDataset from './admin-datalad'
5
+ import DeletePage from './delete-page'
6
+ import DownloadDataset from './download-dataset'
7
+ import Publish from './publish'
8
+ import Share from './manage-permissions'
9
+ import Snapshot from './snapshot'
10
+ import AddMetadata from './add-metadata'
11
+ import FileDisplay from '../files/file-display'
12
+
13
+ export const TabRoutesDraft = ({ dataset, hasEdit }) => {
14
+ return (
15
+ <Switch>
16
+ <Route
17
+ exact
18
+ path="/datasets/:datasetId"
19
+ component={() => <DatasetDefault dataset={dataset} hasEdit={hasEdit} />}
20
+ />
21
+ <Route
22
+ exact
23
+ path="/datasets/:datasetId/download"
24
+ component={() => (
25
+ <DownloadDataset
26
+ worker={dataset.worker}
27
+ datasetPermissions={dataset.permissions}
28
+ />
29
+ )}
30
+ />
31
+ <Route
32
+ exact
33
+ path="/datasets/:datasetId/delete"
34
+ component={() => <DeletePage dataset={dataset} />}
35
+ />
36
+ <Route
37
+ exact
38
+ path="/datasets/:datasetId/admin"
39
+ component={() => <AdminDataset dataset={dataset} />}
40
+ />
41
+ <Route
42
+ exact
43
+ path="/datasets/:datasetId/publish"
44
+ component={() => (
45
+ <Publish datasetId={dataset.id} metadata={dataset.metadata} />
46
+ )}
47
+ />
48
+ <Route
49
+ exact
50
+ path="/datasets/:datasetId/snapshot"
51
+ component={() => (
52
+ <Snapshot
53
+ datasetId={dataset.id}
54
+ snapshots={dataset.snapshots}
55
+ issues={dataset.draft.issues}
56
+ description={dataset.draft.description}
57
+ />
58
+ )}
59
+ />
60
+ <Route
61
+ exact
62
+ path="/datasets/:datasetId/share"
63
+ component={() => (
64
+ <Share
65
+ datasetId={dataset.id}
66
+ permissions={dataset.permissions}
67
+ reviewers={dataset.reviewers}
68
+ />
69
+ )}
70
+ />
71
+ <Route
72
+ path="/datasets/:datasetId/file-display/:filePath"
73
+ render={({
74
+ match: {
75
+ params: { datasetId, filePath },
76
+ },
77
+ }) => {
78
+ return <FileDisplay datasetId={datasetId} filePath={filePath} />
79
+ }}
80
+ />
81
+ <Route
82
+ exact
83
+ path="/datasets/:datasetId/metadata"
84
+ component={() => <AddMetadata dataset={dataset} />}
85
+ />
86
+ </Switch>
87
+ )
88
+ }
@@ -0,0 +1,57 @@
1
+ import React from 'react'
2
+ import { Route, Switch } from 'react-router-dom'
3
+ import { SnapshotDefault } from './snapshot-default'
4
+ import DownloadDataset from './download-dataset'
5
+ import { DeprecateSnapshotPage } from './deprecate-snapshot-page'
6
+ import FileDisplay from '../files/file-display'
7
+ import AddMetadata from './add-metadata'
8
+
9
+ export const TabRoutesSnapshot = ({ dataset, snapshot }) => {
10
+ return (
11
+ <Switch>
12
+ <Route
13
+ exact
14
+ path="/datasets/:datasetId/versions/:snapshotId"
15
+ component={() => (
16
+ <SnapshotDefault dataset={dataset} snapshot={snapshot} />
17
+ )}
18
+ />
19
+ <Route
20
+ exact
21
+ path="/datasets/:datasetId/versions/:snapshotId/download"
22
+ component={() => (
23
+ <DownloadDataset
24
+ worker={dataset.worker}
25
+ datasetPermissions={dataset.permissions}
26
+ />
27
+ )}
28
+ />
29
+ <Route
30
+ exact
31
+ path="/datasets/:datasetId/versions/:snapshotTag/deprecate"
32
+ component={() => <DeprecateSnapshotPage />}
33
+ />
34
+ <Route
35
+ path="/datasets/:datasetId/versions/:snapshotTag/file-display/:filePath"
36
+ render={({
37
+ match: {
38
+ params: { datasetId, filePath, snapshotTag },
39
+ },
40
+ }) => {
41
+ return (
42
+ <FileDisplay
43
+ datasetId={datasetId}
44
+ snapshotTag={snapshotTag}
45
+ filePath={filePath}
46
+ />
47
+ )
48
+ }}
49
+ />
50
+ <Route
51
+ exact
52
+ path="/datasets/:datasetId/versions/:snapshotTag/metadata"
53
+ component={() => <AddMetadata dataset={dataset} />}
54
+ />
55
+ </Switch>
56
+ )
57
+ }
@@ -1,16 +1,14 @@
1
1
  import React from 'react'
2
2
  import { gql, useQuery } from '@apollo/client'
3
- import DatasetQueryContext from '../../datalad/dataset/dataset-query-context.js'
4
- import Markdown from 'markdown-to-jsx'
3
+ import { DatasetPageTabContainer } from './routes/styles/dataset-page-tab-container'
4
+ import DatasetQueryContext from '../datalad/dataset/dataset-query-context.js'
5
5
  import { Link, useLocation } from 'react-router-dom'
6
6
  import pluralize from 'pluralize'
7
7
  import formatDistanceToNow from 'date-fns/formatDistanceToNow'
8
8
  import parseISO from 'date-fns/parseISO'
9
9
 
10
- import Files from './files'
11
10
  import Validation from '../validation/validation.jsx'
12
- import { config } from '../../config'
13
- import Comments from './comments/comments.jsx'
11
+ import { config } from '../config'
14
12
  import DatasetCitation from './fragments/dataset-citation.jsx'
15
13
  import { DatasetAlertVersion } from './fragments/dataset-alert-version'
16
14
 
@@ -22,7 +20,6 @@ import {
22
20
  CloneDropdown,
23
21
  DatasetHeader,
24
22
  DatasetHeaderMeta,
25
- DatasetPage,
26
23
  DatasetGitAccess,
27
24
  VersionList,
28
25
  DatasetTools,
@@ -36,13 +33,12 @@ import {
36
33
  } from '../authentication/profile'
37
34
  import { useCookies } from 'react-cookie'
38
35
 
39
- import { ReadMore } from '@openneuro/components/read-more'
40
-
41
36
  import { FollowDataset } from './mutations/follow'
42
37
  import { StarDataset } from './mutations/star'
43
38
 
44
- import { SNAPSHOT_FIELDS } from '../../datalad/dataset/dataset-query-fragments.js'
39
+ import { SNAPSHOT_FIELDS } from '../datalad/dataset/dataset-query-fragments.js'
45
40
  import { DOILink } from './fragments/doi-link'
41
+ import { TabRoutesSnapshot } from './routes/tab-routes-snapshot'
46
42
 
47
43
  const formatDate = dateObject =>
48
44
  new Date(dateObject).toISOString().split('T')[0]
@@ -88,46 +84,37 @@ const SnapshotContainer: React.FC<SnapshotContainerProps> = ({
88
84
  hasEditPermissions(dataset.permissions, profile?.sub) || isAdmin
89
85
  const isDatasetAdmin =
90
86
  hasDatasetAdminPermissions(dataset.permissions, profile?.sub) || isAdmin
87
+ const modality: string = summary?.modalities[0] || ''
91
88
 
92
89
  return (
93
- <>
94
- <DatasetPage
95
- modality={summary?.modalities[0]}
96
- renderHeader={() => (
97
- <>
98
- {summary && (
99
- <DatasetHeader
100
- pageHeading={description.Name}
101
- modality={summary?.modalities[0]}
102
- />
103
- )}
104
- </>
105
- )}
106
- renderAlert={() => (
107
- <>
108
- {snapshot?.deprecated && (
109
- <DatasetAlertVersion
110
- datasetId={dataset.id}
111
- tag={snapshot.tag}
112
- reason={snapshot.deprecated.reason}
113
- hasEdit={hasEdit}
114
- />
115
- )}
116
- </>
117
- )}
118
- renderHeaderMeta={() => (
119
- <>
90
+ <div
91
+ className={`dataset dataset-draft dataset-page dataset-page-${modality?.toLowerCase()}`}>
92
+ {summary && (
93
+ <DatasetHeader
94
+ pageHeading={description.Name}
95
+ modality={summary?.modalities[0]}
96
+ />
97
+ )}
98
+ {snapshot?.deprecated && (
99
+ <DatasetAlertVersion
100
+ datasetId={dataset.id}
101
+ tag={snapshot.tag}
102
+ reason={snapshot.deprecated.reason}
103
+ hasEdit={hasEdit}
104
+ />
105
+ )}
106
+ <div className="container">
107
+ <div className="grid grid-between dataset-header-meta">
108
+ <div className="col col-8 col-lg">
120
109
  {summary && (
121
110
  <DatasetHeaderMeta
122
- size={summary.size}
111
+ size={snapshot.size}
123
112
  totalFiles={summary.totalFiles}
124
113
  datasetId={datasetId}
125
114
  />
126
115
  )}
127
- </>
128
- )}
129
- renderFollowBookmark={() => (
130
- <>
116
+ </div>
117
+ <div className="col follow-bookmark">
131
118
  <FollowDataset
132
119
  profile={profile}
133
120
  datasetId={dataset.id}
@@ -140,78 +127,49 @@ const SnapshotContainer: React.FC<SnapshotContainerProps> = ({
140
127
  starred={dataset.starred}
141
128
  stars={dataset.stars.length}
142
129
  />
143
- </>
144
- )}
145
- renderBrainLifeButton={() => (
146
- <BrainLifeButton
147
- datasetId={datasetId}
148
- onBrainlife={snapshot.onBrainlife}
149
- snapshotVersion={snapshot.tag}
150
- />
151
- )}
152
- renderValidationBlock={() => (
153
- <ValidationBlock>
154
- <Validation datasetId={dataset.id} issues={snapshot.issues} />
155
- </ValidationBlock>
156
- )}
157
- renderCloneDropdown={() => (
158
- <CloneDropdown
159
- gitAccess={
160
- <DatasetGitAccess
130
+ </div>
131
+ </div>
132
+ </div>
133
+ <div className="container">
134
+ <div className="grid grid-between">
135
+ <div className="col col-lg col-8">
136
+ <div className="dataset-validation">
137
+ <ValidationBlock>
138
+ <Validation datasetId={dataset.id} issues={snapshot.issues} />
139
+ </ValidationBlock>
140
+ <BrainLifeButton
141
+ datasetId={datasetId}
142
+ onBrainlife={snapshot.onBrainlife}
143
+ snapshotVersion={snapshot.tag}
144
+ />
145
+ <CloneDropdown
146
+ gitAccess={
147
+ <DatasetGitAccess
148
+ hasEdit={hasEdit}
149
+ configGithub={config.github}
150
+ configUrl={config.url}
151
+ worker={dataset.worker}
152
+ datasetId={datasetId}
153
+ gitHash={snapshot.hexsha}
154
+ />
155
+ }
156
+ />
157
+ </div>
158
+ <div className="dataset-tool-buttons">
159
+ <DatasetTools
161
160
  hasEdit={hasEdit}
162
- configGithub={config.github}
163
- configUrl={config.url}
164
- worker={dataset.worker}
161
+ isPublic={dataset.public}
165
162
  datasetId={datasetId}
166
- gitHash={snapshot.hexsha}
163
+ snapshotId={snapshot.tag}
164
+ isAdmin={isAdmin}
165
+ isDatasetAdmin={isDatasetAdmin}
167
166
  />
168
- }
169
- />
170
- )}
171
- renderToolButtons={() => (
172
- <DatasetTools
173
- hasEdit={hasEdit}
174
- isPublic={dataset.public}
175
- datasetId={datasetId}
176
- snapshotId={snapshot.tag}
177
- isAdmin={isAdmin}
178
- isDatasetAdmin={isDatasetAdmin}
179
- />
180
- )}
181
- renderFiles={() => (
182
- <ReadMore
183
- fileTree={true}
184
- id="collapse-tree"
185
- expandLabel="Read More"
186
- collapseLabel="Collapse">
187
- <Files
188
- datasetId={datasetId}
189
- snapshotTag={snapshot.tag}
190
- datasetName={description.Name}
191
- files={snapshot.files}
192
- editMode={false}
193
- datasetPermissions={dataset.permissions}
194
- />
195
- </ReadMore>
196
- )}
197
- renderReadMe={() => (
198
- <MetaDataBlock
199
- heading="README"
200
- item={
201
- <ReadMore
202
- id="readme"
203
- expandLabel="Read More"
204
- collapseLabel="Collapse">
205
- <Markdown>
206
- {snapshot.readme == null ? 'N/A' : snapshot.readme}
207
- </Markdown>
208
- </ReadMore>
209
- }
210
- className="dataset-readme markdown-body"
211
- />
212
- )}
213
- renderSidebar={() => (
214
- <>
167
+ </div>
168
+ <DatasetPageTabContainer>
169
+ <TabRoutesSnapshot dataset={dataset} snapshot={snapshot} />
170
+ </DatasetPageTabContainer>
171
+ </div>
172
+ <div className="col sidebar">
215
173
  <MetaDataBlock
216
174
  heading="Authors"
217
175
  item={
@@ -337,7 +295,9 @@ const SnapshotContainer: React.FC<SnapshotContainerProps> = ({
337
295
 
338
296
  <MetaDataBlock
339
297
  heading="Dataset DOI"
340
- item={<DOILink DOI={description.DatasetDOI} />}
298
+ item={
299
+ <DOILink DOI={description.DatasetDOI} datasetId={datasetId} />
300
+ }
341
301
  />
342
302
  <MetaDataBlock heading="License" item={description.License} />
343
303
 
@@ -378,17 +338,10 @@ const SnapshotContainer: React.FC<SnapshotContainerProps> = ({
378
338
  item={description.EthicsApprovals}
379
339
  className="dmb-list"
380
340
  />
381
- </>
382
- )}
383
- renderComments={() => (
384
- <Comments
385
- datasetId={dataset.id}
386
- uploader={dataset.uploader}
387
- comments={dataset.comments}
388
- />
389
- )}
390
- />
391
- </>
341
+ </div>
342
+ </div>
343
+ </div>
344
+ </div>
392
345
  )
393
346
  }
394
347
 
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import { useCookies } from 'react-cookie'
4
- import { getProfile } from './authentication/profile'
4
+ import { getProfile } from '../authentication/profile'
5
5
  import { config } from '../config'
6
6
 
7
7
  const buildCustomQuery = (customText, prepopulatedFields) => {
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from 'react'
2
- import FreshdeskWidget from '../datalad/fragments/freshdesk-widget.jsx'
2
+ import FreshdeskWidget from './freshdesk-widget.jsx'
3
3
  import {
4
4
  Overlay,
5
5
  ModalContainer,
@@ -1,10 +1,10 @@
1
1
  import React from 'react'
2
- import Uploader from './refactor_2021/uploader/uploader.jsx'
3
- import Routes from './refactor_2021/routes'
4
- import HeaderContainer from './refactor_2021/containers/header'
5
- import FooterContainer from './refactor_2021/containers/footer'
6
- import { SearchParamsProvider } from './refactor_2021/search/search-params-ctx'
7
- import { UserModalOpenProvider } from './refactor_2021/user-login-modal-ctx'
2
+ import Uploader from './uploader/uploader.jsx'
3
+ import Routes from './routes'
4
+ import HeaderContainer from './common/containers/header'
5
+ import FooterContainer from './common/containers/footer'
6
+ import { SearchParamsProvider } from './search/search-params-ctx'
7
+ import { UserModalOpenProvider } from './utils/user-login-modal-ctx'
8
8
 
9
9
  import '../assets/email-header.png'
10
10
 
@@ -4,7 +4,7 @@ import React from 'react'
4
4
  import { Redirect, Switch, Route, NavLink } from 'react-router-dom'
5
5
  import Users from './users.jsx'
6
6
  import FlaggedFiles from './flagged-files.jsx'
7
- import AdminUser from '../authentication/admin-user.jsx'
7
+ import AdminUser from '../../authentication/admin-user.jsx'
8
8
 
9
9
  class Dashboard extends React.Component {
10
10
  // life cycle events --------------------------------------------------
@@ -2,7 +2,7 @@ import React, { FC, ReactElement } from 'react'
2
2
  import { gql } from '@apollo/client'
3
3
  import { Mutation } from '@apollo/client/react/components'
4
4
  import { WarnButton } from '@openneuro/components/warn-button'
5
- import { getProfile } from '../authentication/profile.js'
5
+ import { getProfile } from '../../authentication/profile.js'
6
6
  import { useCookies } from 'react-cookie'
7
7
  import { USER_FRAGMENT } from './user-fragment'
8
8
 
@@ -2,9 +2,9 @@ import React from 'react'
2
2
  import { Loading } from '@openneuro/components/loading'
3
3
  import { CopyToClipboard } from 'react-copy-to-clipboard'
4
4
  import Helmet from 'react-helmet'
5
- import { pageTitle } from '../../resources/strings.js'
5
+ import { pageTitle } from '../resources/strings.js'
6
6
  import { Button } from '@openneuro/components/button'
7
- import { config } from '../../config'
7
+ import { config } from '../config'
8
8
 
9
9
  /**
10
10
  * Create API Key
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { frontPage } from '../front-page/front-page-content'
2
+ import { frontPage } from './front-page/front-page-content'
3
3
  import styled from '@emotion/styled'
4
4
 
5
5
  const CitationPageStyle = styled.div`
@@ -221,7 +221,7 @@ exports[`faq/faq/Faq renders successfully 1`] = `
221
221
  <span>
222
222
  We offer two options for uploading data onto OpenNeuro. The first is to upload via the web interface. The second is to upload via our
223
223
  <a
224
- href="https://docs.openneuro.org/packages-openneuro-cli-readme"
224
+ href="https://docs.openneuro.org/openneuro-packages-openneuro-cli-readme"
225
225
  >
226
226
  command-line utility tool
227
227
  </a>
@@ -48,8 +48,7 @@ export const faq = [
48
48
  '[Ultimate consent form GDPR edition](https://open-brain-consent.readthedocs.io/en/stable/gdpr/ultimate_gdpr.html).',
49
49
  },
50
50
  {
51
- faq:
52
- 'Do I need to format my data in some special way before uploading it to OpenNeuro?',
51
+ faq: 'Do I need to format my data in some special way before uploading it to OpenNeuro?',
53
52
  answer:
54
53
  'Yes! OpenNeuro only accepts data in the Brain Imaging Data Structure ' +
55
54
  '(BIDS) format. You can read about it more at ' +
@@ -58,8 +57,7 @@ export const faq = [
58
57
  'post them at [neurostars.org](https://neurostars.org/tags/bids).',
59
58
  },
60
59
  {
61
- faq:
62
- 'Do I need to remove facial features from structural images before uploading the data?',
60
+ faq: 'Do I need to remove facial features from structural images before uploading the data?',
63
61
  answer:
64
62
  'OpenNeuro does not accept datasets that have not been defaced for ' +
65
63
  'privacy considerations. Datasets found to not have been defaced will ' +
@@ -80,7 +78,7 @@ export const faq = [
80
78
  answer:
81
79
  'We offer two options for uploading data onto OpenNeuro. ' +
82
80
  'The first is to upload via the web interface. ' +
83
- 'The second is to upload via our [command-line utility tool](https://docs.openneuro.org/packages-openneuro-cli-readme)',
81
+ 'The second is to upload via our [command-line utility tool](https://docs.openneuro.org/openneuro-packages-openneuro-cli-readme)',
84
82
  },
85
83
  {
86
84
  faq: 'Why can I not use CC-BY (or other CC license)?',
@@ -4,7 +4,7 @@ import React from 'react'
4
4
  import Markdown from 'markdown-to-jsx'
5
5
  import { faq } from './faq-content'
6
6
  import Helmet from 'react-helmet'
7
- import { pageTitle } from '../resources/strings.js'
7
+ import { pageTitle } from '../../resources/strings.js'
8
8
 
9
9
  class Faq extends React.Component {
10
10
  render() {
@@ -1,13 +1,13 @@
1
- import ljaf from '../../assets/ljaf.png'
2
- import nsf from '../../assets/nsf.png'
3
- import nih from '../../assets/nih.png'
4
- import squishymedia from '../../assets/squishymedia.png'
5
- import stanford from '../../assets/stanford.png'
6
- import logo_app from '../../assets/logo_app.png'
7
- import logo_cube from '../../assets/logo_cube.png'
8
- import logo_data from '../../assets/logo_data.png'
9
- import logo_users from '../../assets/logo_users.png'
10
- import brand_mark from '../../assets/brand_mark.png'
1
+ import ljaf from '../../../assets/ljaf.png'
2
+ import nsf from '../../../assets/nsf.png'
3
+ import nih from '../../../assets/nih.png'
4
+ import squishymedia from '../../../assets/squishymedia.png'
5
+ import stanford from '../../../assets/stanford.png'
6
+ import logo_app from '../../../assets/logo_app.png'
7
+ import logo_cube from '../../../assets/logo_cube.png'
8
+ import logo_data from '../../../assets/logo_data.png'
9
+ import logo_users from '../../../assets/logo_users.png'
10
+ import brand_mark from '../../../assets/brand_mark.png'
11
11
 
12
12
  export const frontPage = {
13
13
  pageTitle: 'OpenNeuro',