@strapi/admin 4.7.0 → 4.7.2-exp.24dd7d95972fa822bf43e9b095b51027402c229e
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/admin/src/components/AutoReloadOverlayBlockerProvider/Blocker.js +4 -4
- package/admin/src/components/AutoReloadOverlayBlockerProvider/Overlay.js +2 -2
- package/admin/src/components/GuidedTour/Homepage/index.js +3 -3
- package/admin/src/components/GuidedTour/Modal/components/Content.js +35 -23
- package/admin/src/components/GuidedTour/Modal/components/Modal.js +6 -4
- package/admin/src/components/LeftMenu/index.js +3 -3
- package/admin/src/components/Notifications/index.js +6 -4
- package/admin/src/components/UpgradePlanModal/index.js +6 -7
- package/admin/src/content-manager/components/ComponentInitializer/index.js +3 -3
- package/admin/src/content-manager/components/DragLayer/RelationDragPreview.js +3 -3
- package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDelete/index.js +3 -11
- package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDeleteAll/index.js +3 -11
- package/admin/src/content-manager/components/DynamicZone/components/ComponentCard.js +4 -4
- package/admin/src/content-manager/components/DynamicZone/components/DynamicComponent.js +3 -4
- package/admin/src/content-manager/components/DynamicZone/index.js +3 -3
- package/admin/src/content-manager/components/FieldComponent/index.js +3 -3
- package/admin/src/content-manager/components/NonRepeatableComponent/index.js +3 -3
- package/admin/src/content-manager/components/RelationInput/components/Relation.js +9 -3
- package/admin/src/content-manager/components/RelationInput/components/RelationItem.js +4 -4
- package/admin/src/content-manager/components/RepeatableComponent/components/Component.js +12 -6
- package/admin/src/content-manager/components/Wysiwyg/Editor.js +2 -2
- package/admin/src/content-manager/components/Wysiwyg/index.js +5 -5
- package/admin/src/content-manager/components/Wysiwyg/utils/continueList.js +3 -3
- package/admin/src/content-manager/pages/EditSettingsView/components/DisplayedFields.js +5 -5
- package/admin/src/content-manager/pages/EditSettingsView/components/DynamicZoneList.js +3 -3
- package/admin/src/content-manager/pages/EditSettingsView/index.js +3 -3
- package/admin/src/content-manager/pages/EditView/Header/index.js +6 -7
- package/admin/src/content-manager/pages/EditView/Information/index.js +9 -9
- package/admin/src/content-manager/pages/EditView/index.js +9 -9
- package/admin/src/content-manager/pages/ListSettingsView/components/CardPreview.js +3 -3
- package/admin/src/content-manager/pages/ListSettingsView/components/DraggableCard.js +3 -3
- package/admin/src/content-manager/pages/ListSettingsView/components/Settings.js +5 -5
- package/admin/src/content-manager/pages/ListSettingsView/components/SortDisplayedFields.js +3 -11
- package/admin/src/pages/Admin/Onboarding/index.js +11 -5
- package/admin/src/pages/AuthPage/components/ForgotPassword/index.js +3 -3
- package/admin/src/pages/AuthPage/components/Login/BaseLogin.js +3 -12
- package/admin/src/pages/AuthPage/components/Register/index.js +2 -3
- package/admin/src/pages/AuthPage/components/ResetPassword/index.js +3 -3
- package/admin/src/pages/HomePage/ContentBlocks.js +3 -3
- package/admin/src/pages/HomePage/HomeHeader.js +3 -7
- package/admin/src/pages/HomePage/SocialLinks.js +5 -5
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/PackageStats.js +3 -3
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/index.js +3 -3
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/FiltersPopover.js +3 -3
- package/admin/src/pages/ProfilePage/index.js +11 -11
- package/admin/src/pages/SettingsPage/components/Tokens/FormHead/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/ActionBoundRoutes/index.js +5 -5
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/BoundRoute/index.js +5 -5
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormApiTokenContainer/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/Permissions/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/FromComputerForm.js +2 -3
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js +7 -6
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/GlobalActions/index.js +4 -6
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/RoleForm/index.js +2 -3
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/index.js +5 -5
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/components/FormTransferTokenContainer/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +7 -7
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js +5 -5
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventInput/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/index.js +2 -3
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/TriggerContainer/index.js +9 -9
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js +7 -7
- package/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js +158 -165
- package/admin/src/pages/UseCasePage/index.js +2 -3
- package/admin/src/translations/zh-Hans.json +31 -1
- package/build/{4849.7abafe52.chunk.js → 3094.1cac9087.chunk.js} +2 -2
- package/build/{4049.16583eee.chunk.js → 4049.64715f20.chunk.js} +1 -1
- package/build/4649.daa290f6.chunk.js +30 -0
- package/build/{6487.83e219bf.chunk.js → 6891.ef7464be.chunk.js} +6 -6
- package/build/7259.63e91b59.chunk.js +1 -0
- package/build/Admin-authenticatedApp.884faefa.chunk.js +79 -0
- package/build/Admin_homePage.1411fb7c.chunk.js +68 -0
- package/build/{Admin_marketplace.a8ea585f.chunk.js → Admin_marketplace.0f6c8ee2.chunk.js} +4 -4
- package/build/Admin_profilePage.d2a8f9ab.chunk.js +15 -0
- package/build/{Admin_settingsPage.f6d02df6.chunk.js → Admin_settingsPage.6814a96e.chunk.js} +17 -18
- package/build/admin-app.d9d96db4.chunk.js +112 -0
- package/build/admin-edit-roles-page.bf130aaf.chunk.js +1 -0
- package/build/{admin-edit-users.f06c4a53.chunk.js → admin-edit-users.48031e30.chunk.js} +2 -2
- package/build/admin-users.77b4188a.chunk.js +11 -0
- package/build/{content-manager.6ed87531.chunk.js → content-manager.d792c194.chunk.js} +40 -40
- package/build/{content-type-builder-list-view.c2f917b6.chunk.js → content-type-builder-list-view.cf38fe2f.chunk.js} +9 -9
- package/build/content-type-builder-translation-zh-Hans-json.415577fb.chunk.js +1 -0
- package/build/content-type-builder.cdd117c3.chunk.js +126 -0
- package/build/email-settings-page.4bdbef9a.chunk.js +3 -0
- package/build/{i18n-settings-page.c7bc29fc.chunk.js → i18n-settings-page.2bb5be96.chunk.js} +1 -1
- package/build/index.html +1 -1
- package/build/main.64fe0c37.js +3928 -0
- package/build/{runtime~main.bc7de2d8.js → runtime~main.684b5fed.js} +1 -1
- package/build/sso-settings-page.5a8588ef.chunk.js +1 -0
- package/build/upload-settings.0200561d.chunk.js +1 -0
- package/build/upload-translation-zh-Hans-json.db163b6b.chunk.js +1 -0
- package/build/upload.c7da1611.chunk.js +13 -0
- package/build/{users-advanced-settings-page.677e1973.chunk.js → users-advanced-settings-page.c0cae03a.chunk.js} +1 -1
- package/build/users-providers-settings-page.5f86e45c.chunk.js +1 -0
- package/build/users-roles-settings-page.b02986df.chunk.js +30 -0
- package/build/webhook-edit-page.a2a2b7bb.chunk.js +23 -0
- package/build/webhook-list-page.029957a4.chunk.js +1 -0
- package/build/zh-Hans-json.993d085f.chunk.js +1 -0
- package/ee/admin/hooks/useLicenseLimitNotification/index.js +2 -1
- package/ee/admin/pages/AuthPage/components/Login/index.js +3 -3
- package/ee/admin/pages/AuthPage/components/Providers/index.js +3 -3
- package/ee/admin/pages/SettingsPage/pages/ApplicationInfosPage/components/AdminSeatInfo/index.js +3 -3
- package/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js +6 -7
- package/ee/admin/pages/SettingsPage/pages/SingleSignOn/index.js +11 -3
- package/ee/admin/pages/SettingsPage/pages/Users/ListPage/CreateAction/index.js +5 -4
- package/ee/server/controllers/admin.js +4 -3
- package/ee/server/controllers/user.js +2 -2
- package/ee/server/services/seat-enforcement.js +2 -2
- package/package.json +13 -12
- package/server/content-types/User.js +4 -0
- package/server/content-types/api-token.js +1 -0
- package/server/controllers/user.js +7 -1
- package/server/services/permission/permissions-manager/index.js +9 -5
- package/server/services/permission/permissions-manager/sanitize.js +101 -4
- package/build/4649.ffa2f59a.chunk.js +0 -30
- package/build/7259.cd2f7bad.chunk.js +0 -1
- package/build/Admin-authenticatedApp.bce108cd.chunk.js +0 -79
- package/build/Admin_homePage.cec3f510.chunk.js +0 -70
- package/build/Admin_profilePage.b27e40f6.chunk.js +0 -15
- package/build/admin-app.d3b3237b.chunk.js +0 -112
- package/build/admin-edit-roles-page.fd041d89.chunk.js +0 -1
- package/build/admin-users.8c9bfda4.chunk.js +0 -11
- package/build/content-type-builder-translation-zh-Hans-json.52a30266.chunk.js +0 -1
- package/build/content-type-builder.b7fb1e65.chunk.js +0 -126
- package/build/email-settings-page.884cfb8b.chunk.js +0 -3
- package/build/main.8009bfe8.js +0 -3930
- package/build/sso-settings-page.82d84043.chunk.js +0 -1
- package/build/upload-settings.c18b010f.chunk.js +0 -1
- package/build/upload-translation-zh-Hans-json.3da5cf56.chunk.js +0 -1
- package/build/upload.0876ab69.chunk.js +0 -13
- package/build/users-providers-settings-page.87a9c77d.chunk.js +0 -1
- package/build/users-roles-settings-page.79c19845.chunk.js +0 -30
- package/build/webhook-edit-page.cfbdd3fd.chunk.js +0 -23
- package/build/webhook-list-page.3daa4fe2.chunk.js +0 -1
- package/build/zh-Hans-json.6e26e359.chunk.js +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable no-nested-ternary */
|
|
1
2
|
/**
|
|
2
3
|
*
|
|
3
4
|
* ListView
|
|
@@ -26,7 +27,6 @@ import {
|
|
|
26
27
|
ActionLayout,
|
|
27
28
|
EmptyStateLayout,
|
|
28
29
|
Flex,
|
|
29
|
-
Stack,
|
|
30
30
|
IconButton,
|
|
31
31
|
BaseCheckbox,
|
|
32
32
|
Table,
|
|
@@ -303,178 +303,171 @@ const ListView = () => {
|
|
|
303
303
|
<Box background="neutral0" padding={6} shadow="filterShadow" hasRadius>
|
|
304
304
|
<LoadingIndicatorPage />
|
|
305
305
|
</Box>
|
|
306
|
-
) : (
|
|
307
|
-
|
|
308
|
-
{
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
306
|
+
) : rowsCount > 0 ? (
|
|
307
|
+
<Table
|
|
308
|
+
colCount={5}
|
|
309
|
+
rowCount={rowsCount + 1}
|
|
310
|
+
footer={
|
|
311
|
+
<TFooter onClick={() => (canCreate ? handleGoTo('create') : {})} icon={<Plus />}>
|
|
312
|
+
{formatMessage({
|
|
313
|
+
id: 'Settings.webhooks.list.button.add',
|
|
314
|
+
defaultMessage: 'Create new webhook',
|
|
315
|
+
})}
|
|
316
|
+
</TFooter>
|
|
317
|
+
}
|
|
318
|
+
>
|
|
319
|
+
<Thead>
|
|
320
|
+
<Tr>
|
|
321
|
+
<Th>
|
|
322
|
+
<BaseCheckbox
|
|
323
|
+
aria-label={formatMessage({
|
|
324
|
+
id: 'global.select-all-entries',
|
|
325
|
+
defaultMessage: 'Select all entries',
|
|
326
|
+
})}
|
|
327
|
+
indeterminate={
|
|
328
|
+
webhooksToDeleteLength > 0 && webhooksToDeleteLength < rowsCount
|
|
329
|
+
}
|
|
330
|
+
value={webhooksToDeleteLength === rowsCount}
|
|
331
|
+
onValueChange={handleSelectAllCheckbox}
|
|
332
|
+
/>
|
|
333
|
+
</Th>
|
|
334
|
+
<Th width="20%">
|
|
335
|
+
<Typography variant="sigma" textColor="neutral600">
|
|
317
336
|
{formatMessage({
|
|
318
|
-
id: '
|
|
319
|
-
defaultMessage: '
|
|
337
|
+
id: 'global.name',
|
|
338
|
+
defaultMessage: 'Name',
|
|
320
339
|
})}
|
|
321
|
-
</
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
340
|
+
</Typography>
|
|
341
|
+
</Th>
|
|
342
|
+
<Th width="60%">
|
|
343
|
+
<Typography variant="sigma" textColor="neutral600">
|
|
344
|
+
{formatMessage({
|
|
345
|
+
id: 'Settings.webhooks.form.url',
|
|
346
|
+
defaultMessage: 'URL',
|
|
347
|
+
})}
|
|
348
|
+
</Typography>
|
|
349
|
+
</Th>
|
|
350
|
+
<Th width="20%">
|
|
351
|
+
<Typography variant="sigma" textColor="neutral600">
|
|
352
|
+
{formatMessage({
|
|
353
|
+
id: 'Settings.webhooks.list.th.status',
|
|
354
|
+
defaultMessage: 'Status',
|
|
355
|
+
})}
|
|
356
|
+
</Typography>
|
|
357
|
+
</Th>
|
|
358
|
+
<Th>
|
|
359
|
+
<VisuallyHidden>
|
|
360
|
+
{formatMessage({
|
|
361
|
+
id: 'Settings.webhooks.list.th.actions',
|
|
362
|
+
defaultMessage: 'Actions',
|
|
363
|
+
})}
|
|
364
|
+
</VisuallyHidden>
|
|
365
|
+
</Th>
|
|
366
|
+
</Tr>
|
|
367
|
+
</Thead>
|
|
368
|
+
<Tbody>
|
|
369
|
+
{webhooks.map((webhook) => (
|
|
370
|
+
<Tr
|
|
371
|
+
key={webhook.id}
|
|
372
|
+
{...onRowClick({
|
|
373
|
+
fn: () => handleGoTo(webhook.id),
|
|
374
|
+
condition: canUpdate,
|
|
375
|
+
})}
|
|
376
|
+
>
|
|
377
|
+
<Td {...stopPropagation}>
|
|
378
|
+
<BaseCheckbox
|
|
379
|
+
aria-label={`${formatMessage({
|
|
380
|
+
id: 'global.select',
|
|
381
|
+
defaultMessage: 'Select',
|
|
382
|
+
})} ${webhook.name}`}
|
|
383
|
+
value={webhooksToDelete?.includes(webhook.id)}
|
|
384
|
+
onValueChange={(value) => handleSelectOneCheckbox(value, webhook.id)}
|
|
385
|
+
id="select"
|
|
386
|
+
name="select"
|
|
387
|
+
/>
|
|
388
|
+
</Td>
|
|
389
|
+
<Td>
|
|
390
|
+
<Typography fontWeight="semiBold" textColor="neutral800">
|
|
391
|
+
{webhook.name}
|
|
392
|
+
</Typography>
|
|
393
|
+
</Td>
|
|
394
|
+
<Td>
|
|
395
|
+
<Typography textColor="neutral800">{webhook.url}</Typography>
|
|
396
|
+
</Td>
|
|
397
|
+
<Td>
|
|
398
|
+
<Flex {...stopPropagation}>
|
|
399
|
+
<Switch
|
|
400
|
+
onLabel={formatMessage({
|
|
401
|
+
id: 'global.enabled',
|
|
402
|
+
defaultMessage: 'Enabled',
|
|
344
403
|
})}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
<Typography variant="sigma" textColor="neutral600">
|
|
349
|
-
{formatMessage({
|
|
350
|
-
id: 'Settings.webhooks.form.url',
|
|
351
|
-
defaultMessage: 'URL',
|
|
404
|
+
offLabel={formatMessage({
|
|
405
|
+
id: 'global.disabled',
|
|
406
|
+
defaultMessage: 'Disabled',
|
|
352
407
|
})}
|
|
353
|
-
|
|
354
|
-
</Th>
|
|
355
|
-
<Th width="20%">
|
|
356
|
-
<Typography variant="sigma" textColor="neutral600">
|
|
357
|
-
{formatMessage({
|
|
408
|
+
label={`${webhook.name} ${formatMessage({
|
|
358
409
|
id: 'Settings.webhooks.list.th.status',
|
|
359
410
|
defaultMessage: 'Status',
|
|
360
|
-
})}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
<
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
411
|
+
})}`}
|
|
412
|
+
selected={webhook.isEnabled}
|
|
413
|
+
onChange={() => handleEnabledChange(!webhook.isEnabled, webhook.id)}
|
|
414
|
+
visibleLabels
|
|
415
|
+
/>
|
|
416
|
+
</Flex>
|
|
417
|
+
</Td>
|
|
418
|
+
<Td>
|
|
419
|
+
<Flex gap={1} {...stopPropagation}>
|
|
420
|
+
{canUpdate && (
|
|
421
|
+
<IconButton
|
|
422
|
+
onClick={() => {
|
|
423
|
+
handleGoTo(webhook.id);
|
|
424
|
+
}}
|
|
425
|
+
label={formatMessage({
|
|
426
|
+
id: 'Settings.webhooks.events.update',
|
|
427
|
+
defaultMessage: 'Update',
|
|
428
|
+
})}
|
|
429
|
+
icon={<Pencil />}
|
|
430
|
+
noBorder
|
|
431
|
+
/>
|
|
432
|
+
)}
|
|
433
|
+
{canDelete && (
|
|
434
|
+
<IconButton
|
|
435
|
+
onClick={() => handleDeleteClick(webhook.id)}
|
|
436
|
+
label={formatMessage({
|
|
437
|
+
id: 'global.delete',
|
|
438
|
+
defaultMessage: 'Delete',
|
|
439
|
+
})}
|
|
440
|
+
icon={<Trash />}
|
|
441
|
+
noBorder
|
|
442
|
+
id={`delete-${webhook.id}`}
|
|
392
443
|
/>
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
})}`}
|
|
417
|
-
selected={webhook.isEnabled}
|
|
418
|
-
onChange={() => handleEnabledChange(!webhook.isEnabled, webhook.id)}
|
|
419
|
-
visibleLabels
|
|
420
|
-
/>
|
|
421
|
-
</Flex>
|
|
422
|
-
</Td>
|
|
423
|
-
<Td>
|
|
424
|
-
<Stack horizontal spacing={1} {...stopPropagation}>
|
|
425
|
-
{canUpdate && (
|
|
426
|
-
<IconButton
|
|
427
|
-
onClick={() => {
|
|
428
|
-
handleGoTo(webhook.id);
|
|
429
|
-
}}
|
|
430
|
-
label={formatMessage({
|
|
431
|
-
id: 'Settings.webhooks.events.update',
|
|
432
|
-
defaultMessage: 'Update',
|
|
433
|
-
})}
|
|
434
|
-
icon={<Pencil />}
|
|
435
|
-
noBorder
|
|
436
|
-
/>
|
|
437
|
-
)}
|
|
438
|
-
{canDelete && (
|
|
439
|
-
<IconButton
|
|
440
|
-
onClick={() => handleDeleteClick(webhook.id)}
|
|
441
|
-
label={formatMessage({
|
|
442
|
-
id: 'global.delete',
|
|
443
|
-
defaultMessage: 'Delete',
|
|
444
|
-
})}
|
|
445
|
-
icon={<Trash />}
|
|
446
|
-
noBorder
|
|
447
|
-
id={`delete-${webhook.id}`}
|
|
448
|
-
/>
|
|
449
|
-
)}
|
|
450
|
-
</Stack>
|
|
451
|
-
</Td>
|
|
452
|
-
</Tr>
|
|
453
|
-
))}
|
|
454
|
-
</Tbody>
|
|
455
|
-
</Table>
|
|
456
|
-
) : (
|
|
457
|
-
<EmptyStateLayout
|
|
458
|
-
icon={<EmptyDocuments width="160px" />}
|
|
459
|
-
content={formatMessage({
|
|
460
|
-
id: 'Settings.webhooks.list.empty.description',
|
|
461
|
-
defaultMessage: 'No webhooks found',
|
|
444
|
+
)}
|
|
445
|
+
</Flex>
|
|
446
|
+
</Td>
|
|
447
|
+
</Tr>
|
|
448
|
+
))}
|
|
449
|
+
</Tbody>
|
|
450
|
+
</Table>
|
|
451
|
+
) : (
|
|
452
|
+
<EmptyStateLayout
|
|
453
|
+
icon={<EmptyDocuments width="160px" />}
|
|
454
|
+
content={formatMessage({
|
|
455
|
+
id: 'Settings.webhooks.list.empty.description',
|
|
456
|
+
defaultMessage: 'No webhooks found',
|
|
457
|
+
})}
|
|
458
|
+
action={
|
|
459
|
+
<Button
|
|
460
|
+
variant="secondary"
|
|
461
|
+
startIcon={<Plus />}
|
|
462
|
+
onClick={() => (canCreate ? handleGoTo('create') : {})}
|
|
463
|
+
>
|
|
464
|
+
{formatMessage({
|
|
465
|
+
id: 'Settings.webhooks.list.button.add',
|
|
466
|
+
defaultMessage: 'Create new webhook',
|
|
462
467
|
})}
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
startIcon={<Plus />}
|
|
467
|
-
onClick={() => (canCreate ? handleGoTo('create') : {})}
|
|
468
|
-
>
|
|
469
|
-
{formatMessage({
|
|
470
|
-
id: 'Settings.webhooks.list.button.add',
|
|
471
|
-
defaultMessage: 'Create new webhook',
|
|
472
|
-
})}
|
|
473
|
-
</Button>
|
|
474
|
-
}
|
|
475
|
-
/>
|
|
476
|
-
)}
|
|
477
|
-
</>
|
|
468
|
+
</Button>
|
|
469
|
+
}
|
|
470
|
+
/>
|
|
478
471
|
)}
|
|
479
472
|
</ContentLayout>
|
|
480
473
|
</Main>
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
Main,
|
|
10
10
|
Flex,
|
|
11
11
|
Box,
|
|
12
|
-
Stack,
|
|
13
12
|
Typography,
|
|
14
13
|
Select,
|
|
15
14
|
Option,
|
|
@@ -124,7 +123,7 @@ const UseCasePage = () => {
|
|
|
124
123
|
</TypographyCenter>
|
|
125
124
|
</Box>
|
|
126
125
|
</Flex>
|
|
127
|
-
<
|
|
126
|
+
<Flex direction="column" alignItems="stretch" gap={6}>
|
|
128
127
|
<Select
|
|
129
128
|
id="usecase"
|
|
130
129
|
data-testid="usecase"
|
|
@@ -155,7 +154,7 @@ const UseCasePage = () => {
|
|
|
155
154
|
<Button type="submit" size="L" fullWidth disabled={!role}>
|
|
156
155
|
{formatMessage({ id: 'global.finish', defaultMessage: 'Finish' })}
|
|
157
156
|
</Button>
|
|
158
|
-
</
|
|
157
|
+
</Flex>
|
|
159
158
|
</form>
|
|
160
159
|
</LayoutContent>
|
|
161
160
|
<Flex justifyContent="center">
|
|
@@ -139,6 +139,34 @@
|
|
|
139
139
|
"Settings.profile.form.section.experience.mode.label": "界面风格",
|
|
140
140
|
"Settings.profile.form.section.experience.mode.hint": "将会用所选择的风格显示你的界面",
|
|
141
141
|
"Settings.profile.form.section.experience.mode.option-label": "{name}界面",
|
|
142
|
+
"Settings.application.customization": "自定义",
|
|
143
|
+
"Settings.application.customization.size-details": "最大尺寸:{dimension}×{dimension},最大文件大小:{size}KB",
|
|
144
|
+
"Settings.application.customization.carousel.menu-logo.title": "菜单 Logo",
|
|
145
|
+
"Settings.application.customization.carousel.auth-logo.title": "认证 Logo",
|
|
146
|
+
"Settings.application.customization.carousel.change-action": "更换 Logo",
|
|
147
|
+
"Settings.application.customization.carousel.reset-action": "重置 Logo",
|
|
148
|
+
"Settings.application.customization.carousel-slide.label": "Logo 幻灯片",
|
|
149
|
+
"Settings.application.customization.menu-logo.carousel-hint": "更换主导航栏中的 Logo",
|
|
150
|
+
"Settings.application.customization.auth-logo.carousel-hint": "更换身份验证页面中的 Logo",
|
|
151
|
+
"Settings.application.customization.modal.cancel": "取消",
|
|
152
|
+
"Settings.application.customization.modal.upload": "上传 Logo",
|
|
153
|
+
"Settings.application.customization.modal.tab.label": "您想如何上传您的资产?",
|
|
154
|
+
"Settings.application.customization.modal.upload.from-computer": "从本地上传",
|
|
155
|
+
"Settings.application.customization.modal.upload.file-validation": "最大尺寸:{dimension}×{dimension},最大文件大小:{size}KB",
|
|
156
|
+
"Settings.application.customization.modal.upload.error-format": "上传格式不正确(仅支持格式:jpeg、jpg、png、svg)。",
|
|
157
|
+
"Settings.application.customization.modal.upload.error-size": "上传的文件过大(最大尺寸:{dimension}×{dimension},最大文件大小:{size}KB)",
|
|
158
|
+
"Settings.application.customization.modal.upload.error-network": "网络错误",
|
|
159
|
+
"Settings.application.customization.modal.upload.cta.browse": "浏览文件",
|
|
160
|
+
"Settings.application.customization.modal.upload.drag-drop": "拖放到此处或",
|
|
161
|
+
"Settings.application.customization.modal.upload.from-url": "从 URL 上传",
|
|
162
|
+
"Settings.application.customization.modal.upload.from-url.input-label": "URL",
|
|
163
|
+
"Settings.application.customization.modal.upload.next": "下一步",
|
|
164
|
+
"Settings.application.customization.modal.pending": "待定 Logo",
|
|
165
|
+
"Settings.application.customization.modal.pending.choose-another": "选择另一个",
|
|
166
|
+
"Settings.application.customization.modal.pending.title": "准备上传的 Logo",
|
|
167
|
+
"Settings.application.customization.modal.pending.subtitle": "在上传前管理选择的 Logo",
|
|
168
|
+
"Settings.application.customization.modal.pending.upload": "上传",
|
|
169
|
+
"Settings.application.customization.modal.pending.card-badge": "图像",
|
|
142
170
|
"light": "浅色",
|
|
143
171
|
"dark": "深色",
|
|
144
172
|
"Settings.profile.form.section.experience.title": "体验",
|
|
@@ -602,7 +630,7 @@
|
|
|
602
630
|
"content-manager.popUpwarning.warning.has-draft-relations.message": "<b>{count, plural, =0 { 个关联的内容} one { 个关联的内容} other { 个关联的内容}}</b> 尚未发布。<br></br>它可能会在你的项目上产生关联失效和错误。",
|
|
603
631
|
"content-type-builder.button.component.create": "创建一个新的组件",
|
|
604
632
|
"content-type-builder.button.model.create": "创建一个新的集合类型",
|
|
605
|
-
"content-type-builder.button.single-types.create": "
|
|
633
|
+
"content-type-builder.button.single-types.create": "创建一个新的单一类型",
|
|
606
634
|
"content-type-builder.form.button.add.field.to.collectionType": "为这个集合类型添加另一个字段",
|
|
607
635
|
"content-type-builder.form.button.add.field.to.singleType": "为这个单一类型添加另一个字段",
|
|
608
636
|
"content-type-builder.listView.headerLayout.description": "定义内容的数据结构",
|
|
@@ -611,9 +639,11 @@
|
|
|
611
639
|
"content-type-builder.menu.section.single-types.name": "单一类型",
|
|
612
640
|
"content-type-builder.plugin.name": "模型构建器",
|
|
613
641
|
"form.button.done": "完成",
|
|
642
|
+
"form.button.continue": "继续",
|
|
614
643
|
"global.search": "搜索",
|
|
615
644
|
"global.back": "返回",
|
|
616
645
|
"global.cancel": "取消",
|
|
646
|
+
"global.continue": "继续",
|
|
617
647
|
"global.change-password": "修改密码",
|
|
618
648
|
"global.content-manager": "内容管理",
|
|
619
649
|
"global.delete": "删除",
|