@openpeepshq/react 0.10.0 → 0.11.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/dist/components/RelationCapabilitiesEditor.js +3 -3
- package/dist/components/RoleCapabilityMatrix.js +2 -2
- package/dist/components/accounts/SignUpLoginModal.js +1 -1
- package/dist/components/configuration/ConfigurationList.js +2 -2
- package/dist/components/conversations/ConversationMessageBubble.js +8 -1
- package/dist/components/conversations/CreateNewConversation.js +34 -17
- package/dist/components/form/ImageEditModal.js +2 -2
- package/dist/components/groups/ChangeGroupRolesModal.js +1 -1
- package/dist/components/groups/ConfirmGroupExitModal.js +1 -1
- package/dist/components/groups/ConfirmMemberRemovalModal.js +1 -1
- package/dist/components/groups/DeleteGroupModal.js +1 -1
- package/dist/components/groups/GroupForm.js +2 -2
- package/dist/components/groups/GroupNotificationSettingsModal.js +2 -2
- package/dist/components/jams/JamCallParticipant.js +4 -3
- package/dist/components/jams/JamGuestForm.js +1 -1
- package/dist/components/jams/jamEventActions.d.ts +10 -0
- package/dist/components/jams/jamEventActions.js +13 -0
- package/dist/components/navigation/ContentHeader.js +1 -1
- package/dist/components/navigation/FooterMobile.js +1 -1
- package/dist/components/navigation/SideBar.js +1 -1
- package/dist/components/post/FullPostLayout.js +1 -1
- package/dist/components/post/index.d.ts +1 -0
- package/dist/components/post/index.js +1 -0
- package/dist/components/post/pieces/EventRsvpList.js +1 -1
- package/dist/components/post/pieces/EventRsvpScopeDialog.js +2 -2
- package/dist/components/post/pieces/EventWaitlistJoinDialog.js +1 -1
- package/dist/components/post/pieces/GalleryModal.js +1 -1
- package/dist/components/post/pieces/modals/DeletePostModal.js +2 -2
- package/dist/components/post/post-form/ComposeAttachments.d.ts +2 -0
- package/dist/components/post/post-form/ComposeAttachments.js +8 -0
- package/dist/components/post/post-form/DescriptionEditModal.js +1 -1
- package/dist/components/post/post-form/EditPostModal.js +2 -2
- package/dist/components/post/post-form/EventForm.js +4 -26
- package/dist/components/post/post-form/PostAudienceSelector.js +2 -2
- package/dist/components/post/post-form/ReplyModal.js +1 -1
- package/dist/components/post/types/event/FullEvent.js +3 -3
- package/dist/components/post/types/resource/FullResource.js +2 -1
- package/dist/components/preview-link/RemotePreviewLink.js +32 -4
- package/dist/components/preview-link/RemotePreviewLink.test.d.ts +1 -0
- package/dist/components/preview-link/RemotePreviewLink.test.js +118 -0
- package/dist/components/profile/ProfileActivitySummary.js +4 -4
- package/dist/components/profile/ProfileBadge.js +1 -1
- package/dist/components/profile/ProfilePageAction.js +1 -1
- package/dist/components/profile/ProfilePostsAndReplies.js +1 -1
- package/dist/components/profile/ProfileSelector.js +1 -1
- package/dist/components/profile/ReportProfileOrPostModal.js +4 -2
- package/dist/components/resources/CategoryPathPicker.js +1 -1
- package/dist/components/resources/ResourceCard.js +5 -3
- package/dist/components/resources/ResourceLibrary.js +61 -8
- package/dist/components/resources/ResourceLibrary.test.d.ts +1 -0
- package/dist/components/resources/ResourceLibrary.test.js +122 -0
- package/dist/components/server-data/context.d.ts +24 -16
- package/dist/contexts/openpeeps/hooks/admin.d.ts +2 -2
- package/dist/contexts/openpeeps/hooks/auth.d.ts +1 -1
- package/dist/contexts/router/index.d.ts +8 -0
- package/dist/contexts/router/index.js +27 -2
- package/dist/hooks/conversations/dmMessage.d.ts +15 -0
- package/dist/hooks/conversations/dmMessage.js +12 -0
- package/dist/hooks/conversations/useCreateConversation.d.ts +40 -0
- package/dist/hooks/conversations/useCreateConversation.js +6 -0
- package/dist/hooks/events/useEventForm.d.ts +3 -0
- package/dist/hooks/events/useEventForm.js +31 -2
- package/dist/hooks/events/useEventForm.test.d.ts +1 -0
- package/dist/hooks/events/useEventForm.test.js +107 -0
- package/dist/hooks/index.d.ts +3 -1
- package/dist/hooks/index.js +3 -1
- package/dist/hooks/posts/useFeedPostActions.js +4 -15
- package/dist/hooks/posts/usePostReactionToggle.d.ts +14 -0
- package/dist/hooks/posts/usePostReactionToggle.js +46 -0
- package/dist/hooks/resources/useResourceLibrary.d.ts +8 -1
- package/dist/hooks/resources/useResourceLibrary.js +5 -5
- package/dist/hooks/settings/useAccessTokens.d.ts +3 -3
- package/dist/hooks/settings/useAccessTokens.js +1 -0
- package/dist/hooks/settings/useNotificationPreferences.d.ts +1 -0
- package/dist/hooks/settings/useNotificationPreferences.js +7 -2
- package/dist/lib/downloadUrl.d.ts +6 -0
- package/dist/lib/downloadUrl.js +6 -0
- package/dist/navigation/menuItems.js +4 -4
- package/dist/pages/Explore.js +1 -1
- package/dist/pages/admin/ApiKeys.js +17 -9
- package/dist/pages/admin/ConfigEditor.js +1 -1
- package/dist/pages/admin/ConfigurationCommunityFeed.js +2 -2
- package/dist/pages/admin/ConfigurationCommunityLanguage.js +2 -2
- package/dist/pages/admin/ConfigurationCommunityTimezone.js +2 -2
- package/dist/pages/admin/ConfigurationEmail.js +4 -4
- package/dist/pages/admin/ConfigurationI18n.js +1 -1
- package/dist/pages/admin/ConfigurationSso.js +2 -2
- package/dist/pages/admin/ConfigurationSsoNew.js +1 -1
- package/dist/pages/admin/Dashboard.js +1 -1
- package/dist/pages/admin/Db.js +4 -4
- package/dist/pages/admin/DiagnosticsEmail.js +3 -3
- package/dist/pages/admin/DiagnosticsJob.js +2 -2
- package/dist/pages/admin/DiagnosticsLivekit.js +1 -1
- package/dist/pages/admin/DiagnosticsLogs.js +2 -2
- package/dist/pages/admin/DiagnosticsPerformance.js +1 -1
- package/dist/pages/admin/GroupMembers.js +5 -5
- package/dist/pages/admin/Groups.js +2 -2
- package/dist/pages/admin/Invites.js +3 -3
- package/dist/pages/admin/Media.js +2 -2
- package/dist/pages/admin/MemberDetail.js +7 -7
- package/dist/pages/admin/Members.js +2 -2
- package/dist/pages/admin/analytics/AnalyticsLayout.js +3 -1
- package/dist/pages/admin/analytics/Content.js +1 -1
- package/dist/pages/admin/analytics/Engagement.js +1 -1
- package/dist/pages/admin/analytics/Groups.js +1 -1
- package/dist/pages/admin/analytics/ReportSettings.js +1 -1
- package/dist/pages/admin/community/CommunityAccess.js +1 -1
- package/dist/pages/admin/community/CommunityFavicons.js +1 -1
- package/dist/pages/admin/community/CommunityForbiddenUsernames.js +2 -2
- package/dist/pages/admin/community/CommunityInfo.js +1 -1
- package/dist/pages/admin/community/CommunityLinks.js +1 -1
- package/dist/pages/admin/community/CommunityMarkdownPage.js +1 -1
- package/dist/pages/admin/community/CommunityProfileFields.js +2 -2
- package/dist/pages/admin/community/CommunityRoles.js +7 -7
- package/dist/pages/admin/community/CommunityTheme.js +3 -2
- package/dist/pages/admin/community/ThemeColorPreview.d.ts +8 -0
- package/dist/pages/admin/community/ThemeColorPreview.js +46 -0
- package/dist/pages/admin/community/ThemeColorPreview.test.d.ts +1 -0
- package/dist/pages/admin/community/ThemeColorPreview.test.js +49 -0
- package/dist/pages/admin/components/AdminGroupCard.js +1 -1
- package/dist/pages/admin/components/EditInviteLinkModal.js +1 -1
- package/dist/pages/admin/components/InviteWithEmailModal.js +2 -2
- package/dist/pages/admin/components/InviteWithLinkModal.js +3 -3
- package/dist/pages/admin/components/ProfileRowActions.js +4 -4
- package/dist/pages/admin/components/RestoreBackupModal.js +2 -2
- package/dist/pages/admin/components/RestoreTestBackupModal.js +1 -1
- package/dist/pages/auth/Login.js +1 -1
- package/dist/pages/auth/Register.js +3 -3
- package/dist/pages/auth/RequestResetPassword.js +2 -2
- package/dist/pages/conversations/Info.js +1 -1
- package/dist/pages/conversations/Show.js +45 -15
- package/dist/pages/events/Index.js +1 -1
- package/dist/pages/feeds/Bookmarks.js +1 -1
- package/dist/pages/groups/EditInfo.js +1 -1
- package/dist/pages/groups/EditRoles.js +1 -1
- package/dist/pages/groups/Index.js +1 -1
- package/dist/pages/groups/Members.js +2 -2
- package/dist/pages/groups/New.js +1 -1
- package/dist/pages/groups/Show.js +2 -2
- package/dist/pages/settings/AccessTokens.js +4 -4
- package/dist/pages/settings/Account.js +1 -1
- package/dist/pages/settings/Feed.js +1 -1
- package/dist/pages/settings/Language.js +1 -1
- package/dist/pages/settings/NotificationPreferences.js +7 -3
- package/dist/pages/settings/NotificationPreferences.test.d.ts +1 -0
- package/dist/pages/settings/NotificationPreferences.test.js +119 -0
- package/dist/pages/settings/PublicProfile.js +3 -3
- package/dist/pages/settings/PushEnabledDevices.js +1 -1
- package/dist/pages/settings/Theme.js +1 -1
- package/dist/pages/settings/Timezone.js +1 -1
- package/dist/react-native.d.ts +1 -1
- package/dist/react-native.js +1 -1
- package/package.json +9 -9
- package/src/components/RelationCapabilitiesEditor.tsx +3 -3
- package/src/components/RoleCapabilityMatrix.tsx +2 -2
- package/src/components/accounts/SignUpLoginModal.tsx +1 -1
- package/src/components/configuration/ConfigurationList.tsx +2 -2
- package/src/components/conversations/ConversationMessageBubble.tsx +24 -0
- package/src/components/conversations/CreateNewConversation.tsx +114 -78
- package/src/components/form/ImageEditModal.tsx +2 -2
- package/src/components/groups/ChangeGroupRolesModal.tsx +1 -1
- package/src/components/groups/ConfirmGroupExitModal.tsx +1 -1
- package/src/components/groups/ConfirmMemberRemovalModal.tsx +2 -2
- package/src/components/groups/DeleteGroupModal.tsx +2 -2
- package/src/components/groups/GroupForm.tsx +2 -2
- package/src/components/groups/GroupNotificationSettingsModal.tsx +2 -2
- package/src/components/jams/JamCallParticipant.tsx +4 -3
- package/src/components/jams/JamGuestForm.tsx +1 -1
- package/src/components/jams/jamEventActions.ts +21 -0
- package/src/components/navigation/ContentHeader.tsx +3 -3
- package/src/components/navigation/FooterMobile.tsx +1 -1
- package/src/components/navigation/SideBar.tsx +3 -3
- package/src/components/post/FullPostLayout.tsx +1 -1
- package/src/components/post/index.ts +1 -0
- package/src/components/post/pieces/EventRsvpList.tsx +1 -1
- package/src/components/post/pieces/EventRsvpScopeDialog.tsx +2 -2
- package/src/components/post/pieces/EventWaitlistJoinDialog.tsx +1 -1
- package/src/components/post/pieces/GalleryModal.tsx +1 -1
- package/src/components/post/pieces/modals/DeletePostModal.tsx +2 -2
- package/src/components/post/post-form/ComposeAttachments.tsx +10 -0
- package/src/components/post/post-form/DescriptionEditModal.tsx +1 -1
- package/src/components/post/post-form/EditPostModal.tsx +2 -2
- package/src/components/post/post-form/EventForm.tsx +10 -28
- package/src/components/post/post-form/PostAudienceSelector.tsx +2 -2
- package/src/components/post/post-form/ReplyModal.tsx +1 -1
- package/src/components/post/types/event/FullEvent.tsx +3 -3
- package/src/components/post/types/resource/FullResource.tsx +2 -1
- package/src/components/preview-link/RemotePreviewLink.tsx +92 -25
- package/src/components/profile/ProfileActivitySummary.tsx +4 -4
- package/src/components/profile/ProfileBadge.tsx +1 -1
- package/src/components/profile/ProfilePageAction.tsx +1 -1
- package/src/components/profile/ProfilePostsAndReplies.tsx +2 -2
- package/src/components/profile/ProfileSelector.tsx +1 -1
- package/src/components/profile/ReportProfileOrPostModal.tsx +4 -2
- package/src/components/resources/CategoryPathPicker.tsx +1 -1
- package/src/components/resources/ResourceCard.tsx +5 -3
- package/src/components/resources/ResourceLibrary.tsx +79 -4
- package/src/contexts/router/index.tsx +40 -1
- package/src/hooks/conversations/dmMessage.ts +26 -0
- package/src/hooks/conversations/useCreateConversation.ts +7 -0
- package/src/hooks/events/useEventForm.ts +32 -1
- package/src/hooks/index.ts +10 -1
- package/src/hooks/posts/useFeedPostActions.ts +4 -18
- package/src/hooks/posts/usePostReactionToggle.ts +60 -0
- package/src/hooks/resources/useResourceLibrary.ts +20 -5
- package/src/hooks/settings/useAccessTokens.ts +1 -0
- package/src/hooks/settings/useNotificationPreferences.ts +12 -1
- package/src/lib/downloadUrl.ts +7 -0
- package/src/navigation/menuItems.ts +4 -4
- package/src/pages/Explore.tsx +4 -4
- package/src/pages/admin/ApiKeys.tsx +24 -13
- package/src/pages/admin/ConfigEditor.tsx +1 -1
- package/src/pages/admin/ConfigurationCommunityFeed.tsx +2 -2
- package/src/pages/admin/ConfigurationCommunityLanguage.tsx +2 -2
- package/src/pages/admin/ConfigurationCommunityTimezone.tsx +2 -2
- package/src/pages/admin/ConfigurationEmail.tsx +4 -4
- package/src/pages/admin/ConfigurationI18n.tsx +1 -1
- package/src/pages/admin/ConfigurationSso.tsx +3 -2
- package/src/pages/admin/ConfigurationSsoNew.tsx +1 -1
- package/src/pages/admin/Dashboard.tsx +1 -1
- package/src/pages/admin/Db.tsx +6 -6
- package/src/pages/admin/DiagnosticsEmail.tsx +5 -5
- package/src/pages/admin/DiagnosticsJob.tsx +2 -2
- package/src/pages/admin/DiagnosticsLivekit.tsx +3 -3
- package/src/pages/admin/DiagnosticsLogs.tsx +4 -4
- package/src/pages/admin/DiagnosticsPerformance.tsx +1 -1
- package/src/pages/admin/GroupMembers.tsx +6 -6
- package/src/pages/admin/Groups.tsx +2 -2
- package/src/pages/admin/Invites.tsx +4 -4
- package/src/pages/admin/Media.tsx +2 -2
- package/src/pages/admin/MemberDetail.tsx +7 -7
- package/src/pages/admin/Members.tsx +2 -2
- package/src/pages/admin/analytics/AnalyticsLayout.tsx +5 -1
- package/src/pages/admin/analytics/Content.tsx +1 -1
- package/src/pages/admin/analytics/Engagement.tsx +1 -1
- package/src/pages/admin/analytics/Groups.tsx +1 -1
- package/src/pages/admin/analytics/ReportSettings.tsx +1 -1
- package/src/pages/admin/community/CommunityAccess.tsx +1 -1
- package/src/pages/admin/community/CommunityFavicons.tsx +1 -1
- package/src/pages/admin/community/CommunityForbiddenUsernames.tsx +2 -2
- package/src/pages/admin/community/CommunityInfo.tsx +1 -1
- package/src/pages/admin/community/CommunityLinks.tsx +1 -1
- package/src/pages/admin/community/CommunityMarkdownPage.tsx +1 -1
- package/src/pages/admin/community/CommunityProfileFields.tsx +5 -5
- package/src/pages/admin/community/CommunityRoles.tsx +9 -9
- package/src/pages/admin/community/CommunityTheme.tsx +26 -23
- package/src/pages/admin/community/ThemeColorPreview.tsx +141 -0
- package/src/pages/admin/components/AdminGroupCard.tsx +2 -2
- package/src/pages/admin/components/EditInviteLinkModal.tsx +2 -2
- package/src/pages/admin/components/InviteWithEmailModal.tsx +2 -2
- package/src/pages/admin/components/InviteWithLinkModal.tsx +3 -3
- package/src/pages/admin/components/ProfileRowActions.tsx +6 -6
- package/src/pages/admin/components/RestoreBackupModal.tsx +2 -2
- package/src/pages/admin/components/RestoreTestBackupModal.tsx +1 -1
- package/src/pages/auth/Login.tsx +1 -1
- package/src/pages/auth/Register.tsx +3 -3
- package/src/pages/auth/RequestResetPassword.tsx +2 -2
- package/src/pages/conversations/Info.tsx +1 -1
- package/src/pages/conversations/Show.tsx +94 -33
- package/src/pages/events/Index.tsx +1 -1
- package/src/pages/feeds/Bookmarks.tsx +3 -1
- package/src/pages/groups/EditInfo.tsx +1 -1
- package/src/pages/groups/EditRoles.tsx +1 -1
- package/src/pages/groups/Index.tsx +1 -1
- package/src/pages/groups/Members.tsx +2 -2
- package/src/pages/groups/New.tsx +1 -1
- package/src/pages/groups/Show.tsx +4 -4
- package/src/pages/settings/AccessTokens.tsx +4 -4
- package/src/pages/settings/Account.tsx +1 -1
- package/src/pages/settings/Feed.tsx +1 -1
- package/src/pages/settings/Language.tsx +1 -1
- package/src/pages/settings/NotificationPreferences.tsx +38 -12
- package/src/pages/settings/PublicProfile.tsx +3 -3
- package/src/pages/settings/PushEnabledDevices.tsx +3 -6
- package/src/pages/settings/Theme.tsx +1 -1
- package/src/pages/settings/Timezone.tsx +1 -1
- package/src/react-native.ts +1 -0
|
@@ -52,14 +52,14 @@ export const buildMainNavItems = (caps: MainMenuCapabilities): NavItemDef[] => {
|
|
|
52
52
|
{
|
|
53
53
|
id: 'groups',
|
|
54
54
|
target: { type: 'groups' },
|
|
55
|
-
labelKey: '
|
|
55
|
+
labelKey: 'common.entities.groups',
|
|
56
56
|
tooltipKey: navTooltip('groups'),
|
|
57
57
|
icon: 'Users',
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
id: 'events',
|
|
61
61
|
target: { type: 'events' },
|
|
62
|
-
labelKey: '
|
|
62
|
+
labelKey: 'common.entities.events',
|
|
63
63
|
tooltipKey: navTooltip('events'),
|
|
64
64
|
icon: 'CalendarDays',
|
|
65
65
|
},
|
|
@@ -87,14 +87,14 @@ export const buildMainNavItems = (caps: MainMenuCapabilities): NavItemDef[] => {
|
|
|
87
87
|
{
|
|
88
88
|
id: 'members',
|
|
89
89
|
target: { type: 'members' },
|
|
90
|
-
labelKey: '
|
|
90
|
+
labelKey: 'common.entities.members',
|
|
91
91
|
tooltipKey: navTooltip('members'),
|
|
92
92
|
icon: 'BookUser',
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
id: 'bookmarks',
|
|
96
96
|
target: { type: 'feed', feed: 'bookmarks' },
|
|
97
|
-
labelKey: '
|
|
97
|
+
labelKey: 'common.entities.bookmarks',
|
|
98
98
|
tooltipKey: navTooltip('bookmarks'),
|
|
99
99
|
icon: 'Bookmark',
|
|
100
100
|
},
|
package/src/pages/Explore.tsx
CHANGED
|
@@ -181,7 +181,7 @@ export function Explore() {
|
|
|
181
181
|
count={counts?.profiles}
|
|
182
182
|
countLoading={countsLoading}
|
|
183
183
|
>
|
|
184
|
-
{t('
|
|
184
|
+
{t('common.entities.members', { defaultValue: 'Members' })}
|
|
185
185
|
</TabButton>
|
|
186
186
|
<TabButton
|
|
187
187
|
active={tab === 'posts'}
|
|
@@ -189,7 +189,7 @@ export function Explore() {
|
|
|
189
189
|
count={counts?.posts}
|
|
190
190
|
countLoading={countsLoading}
|
|
191
191
|
>
|
|
192
|
-
{t('
|
|
192
|
+
{t('common.entities.posts', { defaultValue: 'Posts' })}
|
|
193
193
|
</TabButton>
|
|
194
194
|
<TabButton
|
|
195
195
|
active={tab === 'jams'}
|
|
@@ -205,7 +205,7 @@ export function Explore() {
|
|
|
205
205
|
count={counts?.events}
|
|
206
206
|
countLoading={countsLoading}
|
|
207
207
|
>
|
|
208
|
-
{t('
|
|
208
|
+
{t('common.entities.events', { defaultValue: 'Events' })}
|
|
209
209
|
</TabButton>
|
|
210
210
|
<TabButton
|
|
211
211
|
active={tab === 'groups'}
|
|
@@ -213,7 +213,7 @@ export function Explore() {
|
|
|
213
213
|
count={counts?.groups}
|
|
214
214
|
countLoading={countsLoading}
|
|
215
215
|
>
|
|
216
|
-
{t('
|
|
216
|
+
{t('common.entities.groups', { defaultValue: 'Groups' })}
|
|
217
217
|
</TabButton>
|
|
218
218
|
</nav>
|
|
219
219
|
|
|
@@ -168,9 +168,11 @@ export const AdminApiKeys = () => {
|
|
|
168
168
|
|
|
169
169
|
const cardLabels = {
|
|
170
170
|
expiresLabel: t('admin.apiKeys.expiresAt', { defaultValue: 'Expires at' }),
|
|
171
|
-
neverLabel: t('
|
|
172
|
-
revokeLabel: t('
|
|
173
|
-
revokedLabel: t('
|
|
171
|
+
neverLabel: t('common.states.never', { defaultValue: 'Never' }),
|
|
172
|
+
revokeLabel: t('settings.accessTokens.revoke', { defaultValue: 'Revoke' }),
|
|
173
|
+
revokedLabel: t('settings.accessTokens.revoked', {
|
|
174
|
+
defaultValue: 'Revoked',
|
|
175
|
+
}),
|
|
174
176
|
noScopesLabel: t('admin.apiKeys.noScopes', { defaultValue: 'No scopes' }),
|
|
175
177
|
};
|
|
176
178
|
|
|
@@ -190,7 +192,7 @@ export const AdminApiKeys = () => {
|
|
|
190
192
|
</p>
|
|
191
193
|
<div className="space-y-2">
|
|
192
194
|
<Label htmlFor="svc-name">
|
|
193
|
-
{t('
|
|
195
|
+
{t('common.labels.name', { defaultValue: 'Name' })}
|
|
194
196
|
</Label>
|
|
195
197
|
<Input
|
|
196
198
|
id="svc-name"
|
|
@@ -200,7 +202,7 @@ export const AdminApiKeys = () => {
|
|
|
200
202
|
</div>
|
|
201
203
|
<div className="space-y-2">
|
|
202
204
|
<Label htmlFor="svc-description">
|
|
203
|
-
{t('
|
|
205
|
+
{t('common.labels.description', {
|
|
204
206
|
defaultValue: 'Description',
|
|
205
207
|
})}
|
|
206
208
|
</Label>
|
|
@@ -214,7 +216,9 @@ export const AdminApiKeys = () => {
|
|
|
214
216
|
</div>
|
|
215
217
|
<div className="space-y-2">
|
|
216
218
|
<Label htmlFor="svc-expiration">
|
|
217
|
-
{t('
|
|
219
|
+
{t('settings.accessTokens.expiration', {
|
|
220
|
+
defaultValue: 'Expiration',
|
|
221
|
+
})}
|
|
218
222
|
</Label>
|
|
219
223
|
<select
|
|
220
224
|
id="svc-expiration"
|
|
@@ -226,9 +230,12 @@ export const AdminApiKeys = () => {
|
|
|
226
230
|
>
|
|
227
231
|
{EXPIRATION_OPTIONS.map((option) => (
|
|
228
232
|
<option key={option.value} value={option.value}>
|
|
229
|
-
{t(
|
|
230
|
-
|
|
231
|
-
|
|
233
|
+
{t(
|
|
234
|
+
`settings.accessTokens.expirationOptions.${option.labelKey}`,
|
|
235
|
+
{
|
|
236
|
+
defaultValue: EXPIRATION_OPTION_DEFAULTS[option.labelKey],
|
|
237
|
+
},
|
|
238
|
+
)}
|
|
232
239
|
</option>
|
|
233
240
|
))}
|
|
234
241
|
</select>
|
|
@@ -296,7 +303,7 @@ export const AdminApiKeys = () => {
|
|
|
296
303
|
}))
|
|
297
304
|
}
|
|
298
305
|
>
|
|
299
|
-
{t('
|
|
306
|
+
{t('common.actions.remove', { defaultValue: 'Remove' })}
|
|
300
307
|
</Button>
|
|
301
308
|
</div>
|
|
302
309
|
))}
|
|
@@ -324,7 +331,9 @@ export const AdminApiKeys = () => {
|
|
|
324
331
|
|
|
325
332
|
<Button variant="default" disabled={creating} action={create}>
|
|
326
333
|
{creating
|
|
327
|
-
? t('
|
|
334
|
+
? t('settings.accessTokens.creating', {
|
|
335
|
+
defaultValue: 'Creating...',
|
|
336
|
+
})
|
|
328
337
|
: t('admin.apiKeys.create', {
|
|
329
338
|
defaultValue: 'Create Service Token',
|
|
330
339
|
})}
|
|
@@ -333,7 +342,7 @@ export const AdminApiKeys = () => {
|
|
|
333
342
|
{createdToken ? (
|
|
334
343
|
<div className="rounded-md border p-3">
|
|
335
344
|
<p className="text-sm font-semibold">
|
|
336
|
-
{t('
|
|
345
|
+
{t('settings.accessTokens.copyWarning', {
|
|
337
346
|
defaultValue:
|
|
338
347
|
'Copy this token now. It will not be shown again.',
|
|
339
348
|
})}
|
|
@@ -342,7 +351,9 @@ export const AdminApiKeys = () => {
|
|
|
342
351
|
<code className="break-all text-sm">{createdToken}</code>
|
|
343
352
|
<button
|
|
344
353
|
type="button"
|
|
345
|
-
title={t('
|
|
354
|
+
title={t('settings.accessTokens.copy', {
|
|
355
|
+
defaultValue: 'Copy',
|
|
356
|
+
})}
|
|
346
357
|
onClick={() => void navigator.clipboard.writeText(createdToken)}
|
|
347
358
|
>
|
|
348
359
|
<Copy className="size-4" />
|
|
@@ -186,7 +186,7 @@ export function AdminConfigEditor({
|
|
|
186
186
|
disabled={saving}
|
|
187
187
|
loadingContent={t('common.saving', { defaultValue: 'Saving…' })}
|
|
188
188
|
>
|
|
189
|
-
{t('common.save', { defaultValue: 'Save' })}
|
|
189
|
+
{t('common.actions.save', { defaultValue: 'Save' })}
|
|
190
190
|
</Button>
|
|
191
191
|
</div>
|
|
192
192
|
);
|
|
@@ -77,7 +77,7 @@ export function AdminConfigurationCommunityFeed() {
|
|
|
77
77
|
if (configQuery.isLoading) {
|
|
78
78
|
return (
|
|
79
79
|
<div className="text-muted-foreground flex h-32 items-center justify-center text-sm">
|
|
80
|
-
{t('common.
|
|
80
|
+
{t('common.states.loading', { defaultValue: 'Loading…' })}
|
|
81
81
|
</div>
|
|
82
82
|
);
|
|
83
83
|
}
|
|
@@ -127,7 +127,7 @@ export function AdminConfigurationCommunityFeed() {
|
|
|
127
127
|
</Toast>
|
|
128
128
|
) : null}
|
|
129
129
|
<Button variant="default" action={save} disabled={!hasChanges || saving}>
|
|
130
|
-
{t('common.
|
|
130
|
+
{t('common.actions.save', { defaultValue: 'Save' })}
|
|
131
131
|
</Button>
|
|
132
132
|
</div>
|
|
133
133
|
);
|
|
@@ -78,7 +78,7 @@ export function AdminConfigurationCommunityLanguage() {
|
|
|
78
78
|
if (configQuery.isLoading) {
|
|
79
79
|
return (
|
|
80
80
|
<div className="text-muted-foreground flex h-32 items-center justify-center text-sm">
|
|
81
|
-
{t('common.
|
|
81
|
+
{t('common.states.loading', { defaultValue: 'Loading…' })}
|
|
82
82
|
</div>
|
|
83
83
|
);
|
|
84
84
|
}
|
|
@@ -125,7 +125,7 @@ export function AdminConfigurationCommunityLanguage() {
|
|
|
125
125
|
</Toast>
|
|
126
126
|
) : null}
|
|
127
127
|
<Button variant="default" action={save} disabled={!hasChanges || saving}>
|
|
128
|
-
{t('common.
|
|
128
|
+
{t('common.actions.save', { defaultValue: 'Save' })}
|
|
129
129
|
</Button>
|
|
130
130
|
</div>
|
|
131
131
|
);
|
|
@@ -72,7 +72,7 @@ export function AdminConfigurationCommunityTimezone() {
|
|
|
72
72
|
if (configQuery.isLoading) {
|
|
73
73
|
return (
|
|
74
74
|
<div className="text-muted-foreground flex h-32 items-center justify-center text-sm">
|
|
75
|
-
{t('common.
|
|
75
|
+
{t('common.states.loading', { defaultValue: 'Loading…' })}
|
|
76
76
|
</div>
|
|
77
77
|
);
|
|
78
78
|
}
|
|
@@ -112,7 +112,7 @@ export function AdminConfigurationCommunityTimezone() {
|
|
|
112
112
|
</Toast>
|
|
113
113
|
) : null}
|
|
114
114
|
<Button variant="default" action={save} disabled={!hasChanges || saving}>
|
|
115
|
-
{t('common.
|
|
115
|
+
{t('common.actions.save', { defaultValue: 'Save' })}
|
|
116
116
|
</Button>
|
|
117
117
|
</div>
|
|
118
118
|
);
|
|
@@ -127,7 +127,7 @@ export function AdminConfigurationEmail() {
|
|
|
127
127
|
if (configQuery.isLoading || !draft || !baseEmail) {
|
|
128
128
|
return (
|
|
129
129
|
<div className="text-muted-foreground flex h-32 items-center justify-center text-sm">
|
|
130
|
-
{t('common.
|
|
130
|
+
{t('common.states.loading', { defaultValue: 'Loading…' })}
|
|
131
131
|
</div>
|
|
132
132
|
);
|
|
133
133
|
}
|
|
@@ -328,14 +328,14 @@ export function AdminConfigurationEmail() {
|
|
|
328
328
|
</label>
|
|
329
329
|
<Button
|
|
330
330
|
variant="secondary"
|
|
331
|
-
title={t('configuration.email.
|
|
331
|
+
title={t('configuration.email.testTitle')}
|
|
332
332
|
action={handleSendTest}
|
|
333
333
|
disabled={sending}
|
|
334
334
|
data-testid="admin-email-send-test"
|
|
335
335
|
>
|
|
336
336
|
{sending
|
|
337
|
-
? t('common.
|
|
338
|
-
: t('configuration.email.
|
|
337
|
+
? t('common.states.loading')
|
|
338
|
+
: t('configuration.email.testTitle')}
|
|
339
339
|
</Button>
|
|
340
340
|
</div>
|
|
341
341
|
<p className="mt-3 text-xs opacity-70">
|
|
@@ -157,7 +157,7 @@ export function AdminConfigurationI18n() {
|
|
|
157
157
|
if (i18nQuery.isLoading || !data || !working) {
|
|
158
158
|
return (
|
|
159
159
|
<div className="text-muted-foreground flex h-32 items-center justify-center text-sm">
|
|
160
|
-
{t('common.
|
|
160
|
+
{t('common.states.loading', { defaultValue: 'Loading…' })}
|
|
161
161
|
</div>
|
|
162
162
|
);
|
|
163
163
|
}
|
|
@@ -113,7 +113,7 @@ export function AdminConfigurationSso() {
|
|
|
113
113
|
if (configQuery.isLoading || !core) {
|
|
114
114
|
return (
|
|
115
115
|
<div className="text-muted-foreground flex h-32 items-center justify-center text-sm">
|
|
116
|
-
{t('common.
|
|
116
|
+
{t('common.states.loading', { defaultValue: 'Loading…' })}
|
|
117
117
|
</div>
|
|
118
118
|
);
|
|
119
119
|
}
|
|
@@ -171,7 +171,8 @@ export function AdminConfigurationSso() {
|
|
|
171
171
|
<div>
|
|
172
172
|
<p className="font-medium">{item.name}</p>
|
|
173
173
|
<p className="text-muted-foreground text-xs">
|
|
174
|
-
{t(`configuration.sso.
|
|
174
|
+
{t(`configuration.sso.types.${item.kind}.title`)} ·{' '}
|
|
175
|
+
{item.id}
|
|
175
176
|
</p>
|
|
176
177
|
</div>
|
|
177
178
|
<div className="flex gap-2">
|
|
@@ -42,7 +42,7 @@ export function AdminConfigurationSsoNew() {
|
|
|
42
42
|
if (configQuery.isLoading || !core || !form) {
|
|
43
43
|
return (
|
|
44
44
|
<div className="text-muted-foreground flex h-32 items-center justify-center text-sm">
|
|
45
|
-
{t('common.
|
|
45
|
+
{t('common.states.loading', { defaultValue: 'Loading…' })}
|
|
46
46
|
</div>
|
|
47
47
|
);
|
|
48
48
|
}
|
|
@@ -241,7 +241,7 @@ export function AdminDashboard() {
|
|
|
241
241
|
|
|
242
242
|
<section>
|
|
243
243
|
<h2 className="mb-3 text-lg font-medium">
|
|
244
|
-
{t('
|
|
244
|
+
{t('common.entities.posts', { defaultValue: 'Posts' })}
|
|
245
245
|
</h2>
|
|
246
246
|
<div className="grid min-w-0 gap-3 sm:grid-cols-2 lg:grid-cols-4">
|
|
247
247
|
<MetricCard
|
package/src/pages/admin/Db.tsx
CHANGED
|
@@ -255,7 +255,7 @@ export function AdminDb() {
|
|
|
255
255
|
</p>
|
|
256
256
|
{tablesQuery.isLoading ? (
|
|
257
257
|
<p className="text-muted-foreground text-sm">
|
|
258
|
-
{t('
|
|
258
|
+
{t('common.states.loading', { defaultValue: 'Loading…' })}
|
|
259
259
|
</p>
|
|
260
260
|
) : (
|
|
261
261
|
<ul className="space-y-0.5 text-sm">
|
|
@@ -373,7 +373,7 @@ export function AdminDb() {
|
|
|
373
373
|
<div className="min-h-0 flex-1 overflow-auto rounded border">
|
|
374
374
|
{rowsQuery.isLoading ? (
|
|
375
375
|
<p className="p-3 text-sm">
|
|
376
|
-
{t('
|
|
376
|
+
{t('common.states.loading', {
|
|
377
377
|
defaultValue: 'Loading…',
|
|
378
378
|
})}
|
|
379
379
|
</p>
|
|
@@ -583,20 +583,20 @@ export function AdminDb() {
|
|
|
583
583
|
/>
|
|
584
584
|
<div className="flex justify-end gap-2">
|
|
585
585
|
<Button
|
|
586
|
-
title={t('
|
|
586
|
+
title={t('common.actions.cancel', { defaultValue: 'Cancel' })}
|
|
587
587
|
variant="outline"
|
|
588
588
|
action={() => setEditing(null)}
|
|
589
589
|
>
|
|
590
|
-
{t('
|
|
590
|
+
{t('common.actions.cancel', { defaultValue: 'Cancel' })}
|
|
591
591
|
</Button>
|
|
592
592
|
<Button
|
|
593
|
-
title={t('
|
|
593
|
+
title={t('common.actions.save', { defaultValue: 'Save' })}
|
|
594
594
|
variant="default"
|
|
595
595
|
action={() => {
|
|
596
596
|
void saveEdit();
|
|
597
597
|
}}
|
|
598
598
|
>
|
|
599
|
-
{t('
|
|
599
|
+
{t('common.actions.save', { defaultValue: 'Save' })}
|
|
600
600
|
</Button>
|
|
601
601
|
</div>
|
|
602
602
|
</div>
|
|
@@ -14,7 +14,7 @@ export function AdminDiagnosticsEmail() {
|
|
|
14
14
|
const statsQuery = openpeepsApi.admin.useEmailQueueStats();
|
|
15
15
|
const queueTest = openpeepsApi.admin.queueTestEmailAction();
|
|
16
16
|
|
|
17
|
-
useSetPageHeader(t('
|
|
17
|
+
useSetPageHeader(t('common.labels.email', { defaultValue: 'Email' }));
|
|
18
18
|
|
|
19
19
|
const [recipient, setRecipient] = useState('');
|
|
20
20
|
const [queuing, setQueuing] = useState(false);
|
|
@@ -93,7 +93,7 @@ export function AdminDiagnosticsEmail() {
|
|
|
93
93
|
disabled={queuing}
|
|
94
94
|
>
|
|
95
95
|
{queuing
|
|
96
|
-
? t('common.
|
|
96
|
+
? t('common.states.loading')
|
|
97
97
|
: t('diagnostics.email.queueTest')}
|
|
98
98
|
</Button>
|
|
99
99
|
</div>
|
|
@@ -109,10 +109,10 @@ export function AdminDiagnosticsEmail() {
|
|
|
109
109
|
<p className="font-medium">{t('diagnostics.email.queueTitle')}</p>
|
|
110
110
|
<Button
|
|
111
111
|
variant="secondary"
|
|
112
|
-
title={t('
|
|
112
|
+
title={t('common.actions.refresh')}
|
|
113
113
|
action={() => statsQuery.refetch()}
|
|
114
114
|
>
|
|
115
|
-
{t('
|
|
115
|
+
{t('common.actions.refresh')}
|
|
116
116
|
</Button>
|
|
117
117
|
</div>
|
|
118
118
|
<p className="mb-3 text-sm opacity-80">
|
|
@@ -120,7 +120,7 @@ export function AdminDiagnosticsEmail() {
|
|
|
120
120
|
</p>
|
|
121
121
|
|
|
122
122
|
{statsQuery.isPending ? (
|
|
123
|
-
<p className="text-sm opacity-70">{t('common.
|
|
123
|
+
<p className="text-sm opacity-70">{t('common.states.loading')}</p>
|
|
124
124
|
) : statsQuery.isError ? (
|
|
125
125
|
<p className="text-error text-sm">
|
|
126
126
|
{t('diagnostics.email.statsError')}
|
|
@@ -35,7 +35,7 @@ function JobDetails({
|
|
|
35
35
|
{t('diagnostics.jobs.details', { defaultValue: 'Job details' })}
|
|
36
36
|
</p>
|
|
37
37
|
<Button variant="default" action={onRefresh}>
|
|
38
|
-
{t('
|
|
38
|
+
{t('common.actions.refresh', { defaultValue: 'Refresh' })}
|
|
39
39
|
</Button>
|
|
40
40
|
</div>
|
|
41
41
|
<dl className="grid gap-2 text-sm sm:grid-cols-2">
|
|
@@ -156,7 +156,7 @@ export function AdminDiagnosticsJob() {
|
|
|
156
156
|
if (jobQuery.isLoading) {
|
|
157
157
|
return (
|
|
158
158
|
<p className="p-4 text-sm opacity-70">
|
|
159
|
-
{t('common.
|
|
159
|
+
{t('common.states.loading', { defaultValue: 'Loading…' })}
|
|
160
160
|
</p>
|
|
161
161
|
);
|
|
162
162
|
}
|
|
@@ -29,15 +29,15 @@ export const AdminDiagnosticsLivekit = () => {
|
|
|
29
29
|
|
|
30
30
|
<Button
|
|
31
31
|
variant="outline"
|
|
32
|
-
title={t('
|
|
32
|
+
title={t('common.actions.refresh', { defaultValue: 'Refresh' })}
|
|
33
33
|
action={() => void diagnosisQuery.refetch()}
|
|
34
34
|
>
|
|
35
|
-
{t('
|
|
35
|
+
{t('common.actions.refresh', { defaultValue: 'Refresh' })}
|
|
36
36
|
</Button>
|
|
37
37
|
|
|
38
38
|
{diagnosisQuery.isPending ? (
|
|
39
39
|
<p className="text-muted-foreground text-sm">
|
|
40
|
-
{t('common.
|
|
40
|
+
{t('common.states.loading', { defaultValue: 'Loading…' })}
|
|
41
41
|
</p>
|
|
42
42
|
) : null}
|
|
43
43
|
|
|
@@ -78,16 +78,16 @@ export function AdminDiagnosticsLogs() {
|
|
|
78
78
|
</div>
|
|
79
79
|
<Button
|
|
80
80
|
variant="secondary"
|
|
81
|
-
title={t('
|
|
81
|
+
title={t('common.actions.refresh')}
|
|
82
82
|
action={() => logsQuery.refetch()}
|
|
83
83
|
>
|
|
84
|
-
{t('
|
|
84
|
+
{t('common.actions.refresh')}
|
|
85
85
|
</Button>
|
|
86
86
|
</div>
|
|
87
87
|
|
|
88
88
|
<div className="grid gap-3 md:grid-cols-3">
|
|
89
89
|
<label>
|
|
90
|
-
<span>{t('
|
|
90
|
+
<span>{t('common.labels.date')}</span>
|
|
91
91
|
<input
|
|
92
92
|
type="date"
|
|
93
93
|
value={date}
|
|
@@ -144,7 +144,7 @@ export function AdminDiagnosticsLogs() {
|
|
|
144
144
|
|
|
145
145
|
<div className="border-border bg-surface overflow-hidden rounded-lg border">
|
|
146
146
|
{logsQuery.isPending ? (
|
|
147
|
-
<p className="p-4 text-sm opacity-70">{t('common.
|
|
147
|
+
<p className="p-4 text-sm opacity-70">{t('common.states.loading')}</p>
|
|
148
148
|
) : logsQuery.isError ? (
|
|
149
149
|
<p className="text-error p-4 text-sm">
|
|
150
150
|
{t('diagnostics.logs.loadError')}
|
|
@@ -43,7 +43,7 @@ export const AdminDiagnosticsPerformance = () => {
|
|
|
43
43
|
</strong>
|
|
44
44
|
</span>
|
|
45
45
|
<Button variant="outline" action={() => void statsQuery.refetch()}>
|
|
46
|
-
{t('
|
|
46
|
+
{t('common.actions.refresh', { defaultValue: 'Refresh' })}
|
|
47
47
|
</Button>
|
|
48
48
|
</div>
|
|
49
49
|
|
|
@@ -37,8 +37,8 @@ export function AdminGroupMembers() {
|
|
|
37
37
|
|
|
38
38
|
const group = groupQuery.data;
|
|
39
39
|
const headerTitle = group
|
|
40
|
-
? `${groupName(group)} - ${t('
|
|
41
|
-
: t('
|
|
40
|
+
? `${groupName(group)} - ${t('common.entities.members', { defaultValue: 'Members' })}`
|
|
41
|
+
: t('common.entities.members', { defaultValue: 'Members' });
|
|
42
42
|
useSetPageHeader(headerTitle);
|
|
43
43
|
|
|
44
44
|
if (groupQuery.isLoading || membersQuery.isLoading) {
|
|
@@ -69,7 +69,7 @@ export function AdminGroupMembers() {
|
|
|
69
69
|
{t('admin.members.profileColumn', { defaultValue: 'Profile' })}
|
|
70
70
|
</th>
|
|
71
71
|
<th className="p-2 text-left">
|
|
72
|
-
{t('
|
|
72
|
+
{t('common.labels.handle', { defaultValue: 'Handle' })}
|
|
73
73
|
</th>
|
|
74
74
|
<th className="p-2 text-left">
|
|
75
75
|
{t('admin.members.rolesColumn', { defaultValue: 'Roles' })}
|
|
@@ -156,7 +156,7 @@ function MemberRowActions({
|
|
|
156
156
|
title={t('groups.removeMember.title', {
|
|
157
157
|
defaultValue: 'Remove Member',
|
|
158
158
|
})}
|
|
159
|
-
text={t('
|
|
159
|
+
text={t('common.actions.remove', { defaultValue: 'Remove' })}
|
|
160
160
|
action={() => setActiveModal('remove')}
|
|
161
161
|
danger
|
|
162
162
|
/>
|
|
@@ -229,9 +229,9 @@ function RemoveMemberModal({
|
|
|
229
229
|
</p>
|
|
230
230
|
) : null}
|
|
231
231
|
<DialogActions
|
|
232
|
-
cancelLabel={t('common.cancel', { defaultValue: 'Cancel' })}
|
|
232
|
+
cancelLabel={t('common.actions.cancel', { defaultValue: 'Cancel' })}
|
|
233
233
|
onCancel={onClose}
|
|
234
|
-
actionLabel={t('
|
|
234
|
+
actionLabel={t('common.actions.remove', {
|
|
235
235
|
defaultValue: 'Remove',
|
|
236
236
|
})}
|
|
237
237
|
onAction={submit}
|
|
@@ -48,7 +48,7 @@ export function AdminGroups() {
|
|
|
48
48
|
);
|
|
49
49
|
|
|
50
50
|
useSetPageHeader(
|
|
51
|
-
t('
|
|
51
|
+
t('common.entities.groups', { defaultValue: 'Groups' }),
|
|
52
52
|
headerActions,
|
|
53
53
|
);
|
|
54
54
|
|
|
@@ -152,7 +152,7 @@ function DeleteGroupModal({
|
|
|
152
152
|
</p>
|
|
153
153
|
) : null}
|
|
154
154
|
<DialogActions
|
|
155
|
-
cancelLabel={t('common.cancel', { defaultValue: 'Cancel' })}
|
|
155
|
+
cancelLabel={t('common.actions.cancel', { defaultValue: 'Cancel' })}
|
|
156
156
|
onCancel={onClose}
|
|
157
157
|
actionLabel={t('admin.groups.delete', {
|
|
158
158
|
defaultValue: 'Delete group',
|
|
@@ -85,7 +85,7 @@ export function AdminInvites() {
|
|
|
85
85
|
<thead className="bg-surface">
|
|
86
86
|
<tr>
|
|
87
87
|
<th className="p-2 text-left">
|
|
88
|
-
{t('
|
|
88
|
+
{t('common.labels.link', { defaultValue: 'Link' })}
|
|
89
89
|
</th>
|
|
90
90
|
<th className="p-2 text-left">
|
|
91
91
|
{t('admin.invites.createdByColumn', {
|
|
@@ -93,7 +93,7 @@ export function AdminInvites() {
|
|
|
93
93
|
})}
|
|
94
94
|
</th>
|
|
95
95
|
<th className="p-2 text-left">
|
|
96
|
-
{t('
|
|
96
|
+
{t('common.entities.groups', { defaultValue: 'Groups' })}
|
|
97
97
|
</th>
|
|
98
98
|
<th className="p-2 text-left">
|
|
99
99
|
{t('admin.invites.expirationDateColumn', {
|
|
@@ -182,8 +182,8 @@ function InvitesTablePopup({ invite }: { invite: InviteLinkWithMeta }) {
|
|
|
182
182
|
/>
|
|
183
183
|
<PopupMenuButton
|
|
184
184
|
icon={Pencil}
|
|
185
|
-
title={t('
|
|
186
|
-
text={t('
|
|
185
|
+
title={t('common.actions.edit', { defaultValue: 'Edit' })}
|
|
186
|
+
text={t('common.actions.edit', { defaultValue: 'Edit' })}
|
|
187
187
|
action={() => setShowEdit(true)}
|
|
188
188
|
/>
|
|
189
189
|
{active ? (
|
|
@@ -170,7 +170,7 @@ export const AdminMedia = () => {
|
|
|
170
170
|
|
|
171
171
|
{mediaQuery.isLoading ? (
|
|
172
172
|
<p className="text-muted-foreground text-sm">
|
|
173
|
-
{t('
|
|
173
|
+
{t('common.states.loading', { defaultValue: 'Loading…' })}
|
|
174
174
|
</p>
|
|
175
175
|
) : null}
|
|
176
176
|
{mediaQuery.isError ? (
|
|
@@ -272,7 +272,7 @@ export const AdminMedia = () => {
|
|
|
272
272
|
</p>
|
|
273
273
|
) : null}
|
|
274
274
|
<DialogActions
|
|
275
|
-
cancelLabel={t('
|
|
275
|
+
cancelLabel={t('common.actions.cancel', {
|
|
276
276
|
defaultValue: 'Cancel',
|
|
277
277
|
})}
|
|
278
278
|
onCancel={() => setPending(null)}
|
|
@@ -26,14 +26,14 @@ export function AdminMemberDetail() {
|
|
|
26
26
|
|
|
27
27
|
useSetPageHeader(
|
|
28
28
|
summaryQuery.data?.profile
|
|
29
|
-
? `${summaryQuery.data!.profile.displayName || summaryQuery.data!.profile.handle} — ${t('
|
|
30
|
-
: t('
|
|
29
|
+
? `${summaryQuery.data!.profile.displayName || summaryQuery.data!.profile.handle} — ${t('common.entities.members', { defaultValue: 'Members' })}`
|
|
30
|
+
: t('common.entities.members', { defaultValue: 'Members' }),
|
|
31
31
|
);
|
|
32
32
|
|
|
33
33
|
if (summaryQuery.isLoading) {
|
|
34
34
|
return (
|
|
35
35
|
<div className="text-muted-foreground flex h-32 items-center justify-center text-sm">
|
|
36
|
-
{t('common.
|
|
36
|
+
{t('common.states.loading', { defaultValue: 'Loading…' })}
|
|
37
37
|
</div>
|
|
38
38
|
);
|
|
39
39
|
}
|
|
@@ -119,7 +119,7 @@ export function AdminMemberDetail() {
|
|
|
119
119
|
value={data.followingCount}
|
|
120
120
|
/>
|
|
121
121
|
<StatRow
|
|
122
|
-
label={t('
|
|
122
|
+
label={t('common.entities.posts', {
|
|
123
123
|
defaultValue: 'Posts',
|
|
124
124
|
})}
|
|
125
125
|
value={data.activity.postsCount}
|
|
@@ -131,13 +131,13 @@ export function AdminMemberDetail() {
|
|
|
131
131
|
value={data.activity.repliesCount}
|
|
132
132
|
/>
|
|
133
133
|
<StatRow
|
|
134
|
-
label={t('
|
|
134
|
+
label={t('common.entities.events', {
|
|
135
135
|
defaultValue: 'Events',
|
|
136
136
|
})}
|
|
137
137
|
value={data.activity.eventsCount}
|
|
138
138
|
/>
|
|
139
139
|
<StatRow
|
|
140
|
-
label={t('
|
|
140
|
+
label={t('common.entities.groups', {
|
|
141
141
|
defaultValue: 'Groups',
|
|
142
142
|
})}
|
|
143
143
|
value={data.activity.groupsCount}
|
|
@@ -161,7 +161,7 @@ export function AdminMemberDetail() {
|
|
|
161
161
|
value={data.activity.rsvpsCount}
|
|
162
162
|
/>
|
|
163
163
|
<StatRow
|
|
164
|
-
label={t('
|
|
164
|
+
label={t('common.entities.bookmarks', {
|
|
165
165
|
defaultValue: 'Bookmarks',
|
|
166
166
|
})}
|
|
167
167
|
value={data.activity.bookmarksCount}
|