feat: add web upload for EML/MBOX files #260

This commit is contained in:
rustmailer
2026-06-26 17:49:35 +08:00
parent db36272bae
commit cdf27f2dd4
35 changed files with 2910 additions and 44 deletions

View File

@@ -22,7 +22,7 @@ import {
IconLayoutDashboard,
IconSettings
} from '@tabler/icons-react'
import { IdCard, Inbox, Paperclip, Search, Users2 } from 'lucide-react'
import { IdCard, Inbox, Paperclip, Search, Upload, Users2 } from 'lucide-react'
import { type SidebarData } from '../types'
import { useTranslation } from 'react-i18next'
import { useCurrentUser } from '@/hooks/use-current-user'
@@ -57,6 +57,12 @@ export function useSidebarData(): SidebarData {
url: '/search',
icon: Search,
},
{
title: t('import.title', 'Import'),
url: '/import',
icon: Upload,
visible: require_any_permission(['data:import:batch']),
},
{
title: t('navigation.attachment'),
url: '/attachment',