Skip to content

Commit 2b30cc1

Browse files
Junjiequannitrosx
andauthored
chore: update dynamic dataset detail component configuration (#1799)
Co-authored-by: Max Novelli <[email protected]>
1 parent 2ca7417 commit 2b30cc1

File tree

1 file changed

+30
-33
lines changed

1 file changed

+30
-33
lines changed

src/config/frontend.config.json

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,15 @@
234234
}
235235
},
236236
"dateFormat": "yyyy-MM-dd HH:mm",
237-
238237
"datasetDetailComponent": {
239-
"enableCustomizedComponent": true,
238+
"enableCustomizedComponent": false,
240239
"customization": [
241240
{
242241
"type": "regular",
243242
"label": "General Information",
244243
"order": 0,
244+
"row": 1,
245+
"col": 8,
245246
"fields": [
246247
{
247248
"element": "text",
@@ -250,22 +251,22 @@
250251
},
251252
{
252253
"element": "copy",
253-
"source": "scientificMetadata",
254+
"source": "description",
254255
"order": 1
255256
},
256257
{
257258
"element": "text",
258-
"source": "startTime",
259+
"source": "creationTime",
259260
"order": 2
260261
},
261262
{
262263
"element": "text",
263-
"source": "principalInvestigator",
264+
"source": "type",
264265
"order": 3
265266
},
266267
{
267268
"element": "text",
268-
"source": "proposalId",
269+
"source": "datasetName",
269270
"order": 4
270271
},
271272
{
@@ -276,36 +277,22 @@
276277
]
277278
},
278279
{
279-
"type": "regular",
280-
"label": "Dataset Information",
280+
"type": "attachments",
281+
"label": "Gallery",
281282
"order": 1,
282-
"fields": [
283-
{
284-
"element": "text",
285-
"source": "datasetName",
286-
"order": 0
287-
},
288-
{
289-
"element": "copy",
290-
"source": "pid",
291-
"order": 1
292-
},
293-
{
294-
"element": "text",
295-
"source": "type",
296-
"order": 2
297-
},
298-
{
299-
"element": "date",
300-
"source": "creationTime",
301-
"order": 3
302-
}
303-
]
283+
"col": 2,
284+
"row": 1,
285+
"options": {
286+
"limit": 5,
287+
"size": "medium"
288+
}
304289
},
305290
{
306291
"type": "regular",
307292
"label": "Contact Information",
308293
"order": 2,
294+
"col": 3,
295+
"row": 1,
309296
"fields": [
310297
{
311298
"element": "text",
@@ -323,6 +310,8 @@
323310
"type": "regular",
324311
"label": "Files Information",
325312
"order": 3,
313+
"col": 3,
314+
"row": 1,
326315
"fields": [
327316
{
328317
"element": "text",
@@ -360,6 +349,8 @@
360349
"type": "regular",
361350
"label": "Related Documents",
362351
"order": 4,
352+
"col": 4,
353+
"row": 1,
363354
"fields": [
364355
{
365356
"element": "tag",
@@ -392,21 +383,27 @@
392383
"type": "attachments",
393384
"label": "Gallery",
394385
"order": 5,
386+
"col": 1,
387+
"row": 1,
395388
"options": {
396-
"limit": 10,
389+
"limit": 2,
397390
"size": "small"
398391
}
399392
},
400393
{
401394
"type": "scientificMetadata",
402395
"label": "Scientific Metadata Table",
403396
"viewMode": "table",
404-
"order": 6
397+
"order": 6,
398+
"col": 9,
399+
"row": 1
405400
},
406401
{
407402
"type": "datasetJsonView",
408403
"label": "Dataset JsonView",
409-
"order": 7
404+
"order": 7,
405+
"col": 10,
406+
"row": 2
410407
}
411408
]
412409
}

0 commit comments

Comments
 (0)