@openneuro/app 4.2.4 → 4.2.5-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jestsetup.ts +0 -5
- package/package.json +6 -12
- package/src/scripts/common/forms/__tests__/__snapshots__/warn-button.spec.jsx.snap +26 -26
- package/src/scripts/common/forms/__tests__/warn-button.spec.jsx +7 -5
- package/src/scripts/datalad/subscriptions/__tests__/__snapshots__/files-subscription.spec.jsx.snap +1 -159
- package/src/scripts/datalad/subscriptions/__tests__/files-subscription.spec.jsx +6 -3
- package/src/scripts/errors/errorRoute.jsx +4 -23
- package/src/scripts/faq/__tests__/__snapshots__/faq.spec.jsx.snap +183 -154
- package/src/scripts/faq/__tests__/faq.spec.jsx +3 -3
- package/src/scripts/refactor_2021/admin/admin.jsx +1 -7
- package/src/scripts/refactor_2021/dataset/comments/__tests__/__snapshots__/comments.spec.jsx.snap +12 -110
- package/src/scripts/refactor_2021/dataset/comments/__tests__/comments.spec.jsx +7 -5
- package/src/scripts/refactor_2021/dataset/dataset-routes.jsx +0 -11
- package/src/scripts/refactor_2021/dataset/download/__tests__/__snapshots__/download-command-line.spec.jsx.snap +8 -9
- package/src/scripts/refactor_2021/dataset/download/__tests__/__snapshots__/download-link.spec.jsx.snap +46 -1255
- package/src/scripts/refactor_2021/dataset/download/__tests__/__snapshots__/shell-example.spec.jsx.snap +3 -4
- package/src/scripts/refactor_2021/dataset/download/__tests__/download-command-line.spec.jsx +10 -11
- package/src/scripts/refactor_2021/dataset/download/__tests__/download-link.spec.jsx +3 -3
- package/src/scripts/refactor_2021/dataset/download/__tests__/shell-example.spec.jsx +3 -3
- package/src/scripts/refactor_2021/dataset/download/download-command-line.jsx +1 -1
- package/src/scripts/refactor_2021/dataset/draft-snapshot-routes.tsx +1 -6
- package/src/scripts/refactor_2021/dataset/files/__tests__/__snapshots__/file-tree.spec.jsx.snap +24 -49
- package/src/scripts/refactor_2021/dataset/files/__tests__/__snapshots__/file.spec.jsx.snap +74 -54
- package/src/scripts/refactor_2021/dataset/files/__tests__/file-tree-unloaded-directory.spec.jsx +4 -3
- package/src/scripts/refactor_2021/dataset/files/__tests__/file-tree.spec.jsx +23 -19
- package/src/scripts/refactor_2021/dataset/files/__tests__/file-viewer-type.spec.jsx +5 -3
- package/src/scripts/refactor_2021/dataset/files/__tests__/file.spec.jsx +21 -21
- package/src/scripts/refactor_2021/dataset/files/file.jsx +3 -2
- package/src/scripts/refactor_2021/dataset/files/viewers/__tests__/__snapshots__/file-viewer-json.spec.jsx.snap +85 -60
- package/src/scripts/refactor_2021/dataset/files/viewers/__tests__/file-viewer-json.spec.jsx +5 -5
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/__snapshots__/cancel-button.spec.tsx.snap +14 -6
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/__snapshots__/edit-button.spec.tsx.snap +14 -6
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/__snapshots__/save-button.spec.tsx.snap +14 -6
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/__snapshots__/select-input.spec.tsx.snap +178 -105
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/cancel-button.spec.tsx +3 -3
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/edit-button.spec.tsx +3 -3
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/edit-list.spec.jsx +0 -1
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/save-button.spec.tsx +3 -3
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/select-input.spec.tsx +9 -9
- package/src/scripts/refactor_2021/dataset/fragments/select-input.tsx +1 -1
- package/src/scripts/refactor_2021/dataset/mutations/__tests__/__snapshots__/description.spec.jsx.snap +3 -277
- package/src/scripts/refactor_2021/dataset/mutations/__tests__/description.spec.jsx +22 -9
- package/src/scripts/refactor_2021/dataset/mutations/update-file.jsx +15 -19
- package/src/scripts/refactor_2021/dataset/routes/__tests__/__snapshots__/publish.spec.jsx.snap +3 -0
- package/src/scripts/refactor_2021/dataset/routes/__tests__/publish.spec.jsx +13 -0
- package/src/scripts/refactor_2021/routes.tsx +9 -9
- package/src/scripts/refactor_2021/uploader/uploader-setup-routes.jsx +4 -24
- package/src/scripts/refactor_2021/uploader/uploader-status-routes.jsx +1 -6
- package/src/scripts/common/forms/__tests__/__snapshots__/input.spec.jsx.snap +0 -13
- package/src/scripts/common/forms/__tests__/input.spec.jsx +0 -25
- package/src/scripts/common/forms/input.jsx +0 -98
- package/src/scripts/datalad/routes/__tests__/__snapshots__/publish.spec.jsx.snap +0 -14
- package/src/scripts/datalad/routes/__tests__/publish.spec.jsx +0 -10
- package/src/scripts/datalad/routes/mobile-class.tsx +0 -16
- package/src/scripts/datalad/routes/publish.jsx +0 -50
|
@@ -28,13 +28,11 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
28
28
|
return (
|
|
29
29
|
<Switch>
|
|
30
30
|
<Route
|
|
31
|
-
name="dataset"
|
|
32
31
|
exact
|
|
33
32
|
path="/datasets/:datasetId"
|
|
34
33
|
render={() => <DraftContainer dataset={dataset} />}
|
|
35
34
|
/>
|
|
36
35
|
<Route
|
|
37
|
-
name="download"
|
|
38
36
|
exact
|
|
39
37
|
path="/datasets/:datasetId/download"
|
|
40
38
|
component={() => (
|
|
@@ -45,19 +43,16 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
45
43
|
)}
|
|
46
44
|
/>
|
|
47
45
|
<Route
|
|
48
|
-
name="admin"
|
|
49
46
|
exact
|
|
50
47
|
path="/datasets/:datasetId/admin-datalad"
|
|
51
48
|
component={() => <AdminDataset dataset={dataset} />}
|
|
52
49
|
/>
|
|
53
50
|
<Route
|
|
54
|
-
name="admin"
|
|
55
51
|
exact
|
|
56
52
|
path="/datasets/:datasetId/admin-exports"
|
|
57
53
|
component={() => <AdminExports dataset={dataset} />}
|
|
58
54
|
/>
|
|
59
55
|
<Route
|
|
60
|
-
name="publish"
|
|
61
56
|
exact
|
|
62
57
|
path="/datasets/:datasetId/publish"
|
|
63
58
|
component={() => (
|
|
@@ -65,7 +60,6 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
65
60
|
)}
|
|
66
61
|
/>
|
|
67
62
|
<Route
|
|
68
|
-
name="snapshot-create"
|
|
69
63
|
exact
|
|
70
64
|
path="/datasets/:datasetId/snapshot"
|
|
71
65
|
component={() => (
|
|
@@ -78,7 +72,6 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
78
72
|
)}
|
|
79
73
|
/>
|
|
80
74
|
<Route
|
|
81
|
-
name="share"
|
|
82
75
|
exact
|
|
83
76
|
path="/datasets/:datasetId/share"
|
|
84
77
|
component={() => (
|
|
@@ -90,7 +83,6 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
90
83
|
)}
|
|
91
84
|
/>
|
|
92
85
|
<Route
|
|
93
|
-
name="fileEdit"
|
|
94
86
|
exact
|
|
95
87
|
path="/datasets/:datasetId/file-edit"
|
|
96
88
|
component={stubComponent}
|
|
@@ -118,7 +110,6 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
118
110
|
}}
|
|
119
111
|
/>
|
|
120
112
|
<Route
|
|
121
|
-
name="snapshot-download"
|
|
122
113
|
exact
|
|
123
114
|
path="/datasets/:datasetId/versions/:snapshotId/download"
|
|
124
115
|
component={() => (
|
|
@@ -145,13 +136,11 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
145
136
|
}}
|
|
146
137
|
/>
|
|
147
138
|
<Route
|
|
148
|
-
name="metadata"
|
|
149
139
|
exact
|
|
150
140
|
path="/datasets/:datasetId/metadata"
|
|
151
141
|
component={() => <AddMetadata dataset={dataset} />}
|
|
152
142
|
/>
|
|
153
143
|
<Route
|
|
154
|
-
name="delete"
|
|
155
144
|
exact
|
|
156
145
|
path="/datasets/:datasetId/delete"
|
|
157
146
|
component={() => <DeletePage dataset={dataset} />}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`dataset/download DownloadSampleCommand component renders successfully 1`] = `
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</Styled(pre)>
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<pre
|
|
6
|
+
class="css-xak41w"
|
|
7
|
+
role="figure"
|
|
8
|
+
>
|
|
9
|
+
openneuro download --draft ds000001 ds000001-download/
|
|
10
|
+
</pre>
|
|
11
|
+
</DocumentFragment>
|
|
13
12
|
`;
|