@openneuro/app 4.36.0-alpha.0 → 4.36.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 +2 -2
- package/src/scripts/components/page/page.scss +2 -70
- package/src/scripts/pages/admin/__tests__/users.spec.tsx +51 -18
- package/src/scripts/pages/admin/admin.jsx +2 -2
- package/src/scripts/pages/admin/user-fragment.ts +10 -3
- package/src/scripts/pages/admin/user-summary.tsx +100 -0
- package/src/scripts/pages/admin/user-tools.tsx +81 -58
- package/src/scripts/pages/admin/users.module.scss +277 -0
- package/src/scripts/pages/admin/users.tsx +351 -152
- package/src/scripts/queries/users.ts +247 -0
- package/src/scripts/routes.tsx +7 -15
- package/src/scripts/types/user-types.ts +5 -4
- package/src/scripts/users/__tests__/user-account-view.spec.tsx +2 -2
- package/src/scripts/users/user-card.tsx +12 -6
- package/src/scripts/users/user-query.tsx +0 -3
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
.searchInputWrapper {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
position: relative;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.clearSearchButton {
|
|
8
|
+
position: absolute;
|
|
9
|
+
right: 5px;
|
|
10
|
+
top: 50%;
|
|
11
|
+
transform: translateY(-50%);
|
|
12
|
+
background: none;
|
|
13
|
+
border: none;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
font-size: 0.8em;
|
|
16
|
+
color: #888;
|
|
17
|
+
|
|
18
|
+
&:hover {
|
|
19
|
+
color: #333;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.searchControl {
|
|
24
|
+
display: flex;
|
|
25
|
+
input[type='text'] {
|
|
26
|
+
padding-right: 25px;
|
|
27
|
+
}
|
|
28
|
+
.searchSubmitButton {
|
|
29
|
+
background-color: var(--current-theme-secondary);
|
|
30
|
+
color: #fff;
|
|
31
|
+
border-radius: var(--border-radius-default);
|
|
32
|
+
font-weight: bold;
|
|
33
|
+
margin: 0 0 0 5px;
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
padding: 10px 15px;
|
|
36
|
+
&:hover {
|
|
37
|
+
background-color: var(--current-theme-primary);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.gridContainer {
|
|
43
|
+
width: 100%;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.gridHead,
|
|
50
|
+
.gridRow {
|
|
51
|
+
display: flex;
|
|
52
|
+
margin: 0;
|
|
53
|
+
width: 100%;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.sortButton {
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
.gridHead {
|
|
61
|
+
border-top: 1px solid #ddd;
|
|
62
|
+
border-left: 1px solid #ddd;
|
|
63
|
+
.sortButton,
|
|
64
|
+
.headingCol {
|
|
65
|
+
min-height: 50px;
|
|
66
|
+
padding: 10px;
|
|
67
|
+
background-color: #f0f0f0;
|
|
68
|
+
border: 0;
|
|
69
|
+
border-right: 1px solid #ddd;
|
|
70
|
+
border-bottom: 1px solid #ddd;
|
|
71
|
+
box-sizing: border-box;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: flex-start;
|
|
75
|
+
text-align: left;
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
text-overflow: ellipsis;
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
|
|
80
|
+
&.colSmall {
|
|
81
|
+
flex: 0 0 180px;
|
|
82
|
+
}
|
|
83
|
+
&.colLarge {
|
|
84
|
+
flex: 0 0 300px;
|
|
85
|
+
}
|
|
86
|
+
&.colXLarge {
|
|
87
|
+
flex: 0 0 360px;
|
|
88
|
+
}
|
|
89
|
+
&.colFlex {
|
|
90
|
+
flex: 1;
|
|
91
|
+
min-width: 100px;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
.sortButton {
|
|
95
|
+
&:hover {
|
|
96
|
+
background-color: #cbe4e9;
|
|
97
|
+
}
|
|
98
|
+
&.active {
|
|
99
|
+
background-color: var(--current-theme-primary-light);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.gridRow {
|
|
105
|
+
border-left: 1px solid #ddd;
|
|
106
|
+
.gtCell {
|
|
107
|
+
min-height: 50px;
|
|
108
|
+
padding: 10px;
|
|
109
|
+
background-color: #fff;
|
|
110
|
+
border: 0;
|
|
111
|
+
border-bottom: 1px solid #ddd;
|
|
112
|
+
box-sizing: border-box;
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
align-items: flex-start;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
text-align: left;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
text-overflow: ellipsis;
|
|
120
|
+
white-space: nowrap;
|
|
121
|
+
&:last-child {
|
|
122
|
+
border-right: 1px solid #ddd;
|
|
123
|
+
}
|
|
124
|
+
&.colSmall {
|
|
125
|
+
flex: 0 0 180px;
|
|
126
|
+
}
|
|
127
|
+
&.colLarge {
|
|
128
|
+
flex: 0 0 300px;
|
|
129
|
+
}
|
|
130
|
+
&.colXLarge {
|
|
131
|
+
flex: 0 0 360px;
|
|
132
|
+
}
|
|
133
|
+
&.colFlex {
|
|
134
|
+
flex: 1;
|
|
135
|
+
min-width: 100px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.gridRow:hover {
|
|
141
|
+
background-color: #f9f9f9;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.gridContainer .gridRow:last-child .gtCell {
|
|
145
|
+
border-bottom: 1px solid #ddd;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.user-panel-inner {
|
|
149
|
+
display: flex;
|
|
150
|
+
justify-content: space-between;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.usersWrap {
|
|
154
|
+
margin: 0;
|
|
155
|
+
padding: 0;
|
|
156
|
+
font-size: 14px;
|
|
157
|
+
.userPanel {
|
|
158
|
+
margin: 0;
|
|
159
|
+
border-bottom: 0;
|
|
160
|
+
list-style: none;
|
|
161
|
+
h3 {
|
|
162
|
+
margin: 0;
|
|
163
|
+
font-size: 14px;
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
.badge {
|
|
167
|
+
font-size: 10px;
|
|
168
|
+
width: 25px;
|
|
169
|
+
height: 25px;
|
|
170
|
+
background: blue;
|
|
171
|
+
color: #fff;
|
|
172
|
+
border-radius: 50%;
|
|
173
|
+
line-height: 10px;
|
|
174
|
+
display: flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
justify-content: center;
|
|
177
|
+
margin-left: 5px;
|
|
178
|
+
&.admin {
|
|
179
|
+
background: #127d00;
|
|
180
|
+
}
|
|
181
|
+
&.blocked {
|
|
182
|
+
background: rgb(192, 3, 66);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
[data-tooltip] {
|
|
186
|
+
display: inline;
|
|
187
|
+
font-size: 10px;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.tools {
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-direction: column;
|
|
194
|
+
button {
|
|
195
|
+
background-color: transparent;
|
|
196
|
+
border: 0;
|
|
197
|
+
outline: 0;
|
|
198
|
+
font-size: 12px;
|
|
199
|
+
line-height: 14px;
|
|
200
|
+
width: auto;
|
|
201
|
+
height: auto;
|
|
202
|
+
i {
|
|
203
|
+
font-size: 14px;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.summaryFooter {
|
|
211
|
+
display: flex;
|
|
212
|
+
justify-content: space-between;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.loadMoreButton {
|
|
216
|
+
cursor: pointer;
|
|
217
|
+
display: block;
|
|
218
|
+
margin: 20px 0;
|
|
219
|
+
padding: 10px;
|
|
220
|
+
border: 1px solid var(--current-theme-primary);
|
|
221
|
+
width: 100%;
|
|
222
|
+
background-color: #fff;
|
|
223
|
+
transition: background-color 0.3s;
|
|
224
|
+
&:hover {
|
|
225
|
+
text-decoration: none;
|
|
226
|
+
background-color: #eee;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.filterControls {
|
|
231
|
+
display: flex;
|
|
232
|
+
align-items: center;
|
|
233
|
+
flex-wrap: wrap;
|
|
234
|
+
margin-left: auto;
|
|
235
|
+
> div {
|
|
236
|
+
flex-basis: 100%;
|
|
237
|
+
font-size: 12px;
|
|
238
|
+
}
|
|
239
|
+
label {
|
|
240
|
+
display: flex;
|
|
241
|
+
align-items: center;
|
|
242
|
+
cursor: pointer;
|
|
243
|
+
font-size: 1rem;
|
|
244
|
+
position: relative;
|
|
245
|
+
font-weight: bold;
|
|
246
|
+
margin: 0 10px 0 0;
|
|
247
|
+
|
|
248
|
+
input[type='checkbox'] {
|
|
249
|
+
-webkit-appearance: none;
|
|
250
|
+
-moz-appearance: none;
|
|
251
|
+
appearance: none;
|
|
252
|
+
border: 0;
|
|
253
|
+
clip: rect(0 0 0 0);
|
|
254
|
+
height: 1px;
|
|
255
|
+
margin: -1px;
|
|
256
|
+
overflow: hidden;
|
|
257
|
+
padding: 0;
|
|
258
|
+
position: absolute;
|
|
259
|
+
white-space: nowrap;
|
|
260
|
+
width: 1px;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
i {
|
|
265
|
+
margin-left: 8px;
|
|
266
|
+
font-size: 1.2em;
|
|
267
|
+
color: var(--current-theme-primary);
|
|
268
|
+
transition: color 0.2s ease-in-out;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
input[type='checkbox']:focus + i {
|
|
273
|
+
box-shadow: 0 0 0 3px blue;
|
|
274
|
+
outline: none;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|