diff --git a/apps/webui/src/app/dashboard/[guildId]/commands/loading.tsx b/apps/webui/src/app/dashboard/[guildId]/commands/loading.tsx new file mode 100644 index 0000000..aa95b3b --- /dev/null +++ b/apps/webui/src/app/dashboard/[guildId]/commands/loading.tsx @@ -0,0 +1,13 @@ +import { Skeleton } from '@/components/ui/skeleton'; + +export default function CommandsLoading() { + return ( +
{t(locale, 'modulePages.commands.description')}
+{t(locale, 'dashboard.overview.activityMessages')}
+{activitySummary.messageCount.toLocaleString(locale === 'de' ? 'de-DE' : 'en-US')}
+{t(locale, 'dashboard.overview.activityVoiceMinutes')}
+{activitySummary.voiceMinutes.toLocaleString(locale === 'de' ? 'de-DE' : 'en-US')}
+{t(locale, 'dashboard.overview.activityActiveUsers')}
+{activitySummary.activeUserCount.toLocaleString(locale === 'de' ? 'de-DE' : 'en-US')}
+{t(locale, 'dashboard.overview.activityHint')}
+{t('modulePages.commands.empty')}
+ )} + {filtered.map((entry) => ( +/{entry.commandName}
+{t('modulePages.commands.cooldownSeconds')}
+ + patchLocal(entry.commandName, { + cooldownSeconds: event.target.value === '' ? null : Number(event.target.value) + }) + } + placeholder={t('common.optional')} + /> +{t('modulePages.commands.allowedRoleIds')}
+ patchLocal(entry.commandName, { allowedRoleIds: fromCsv(event.target.value) })} + placeholder={t('modulePages.commands.idsPlaceholder')} + /> +{t('modulePages.commands.deniedRoleIds')}
+ patchLocal(entry.commandName, { deniedRoleIds: fromCsv(event.target.value) })} + placeholder={t('modulePages.commands.idsPlaceholder')} + /> +{t('modulePages.commands.allowedChannelIds')}
+ + patchLocal(entry.commandName, { allowedChannelIds: fromCsv(event.target.value) }) + } + placeholder={t('modulePages.commands.idsPlaceholder')} + /> +{t('modulePages.commands.deniedChannelIds')}
+ + patchLocal(entry.commandName, { deniedChannelIds: fromCsv(event.target.value) }) + } + placeholder={t('modulePages.commands.idsPlaceholder')} + /> +