refactor(workspace): decompose project into multiple crates

This commit is contained in:
rustmailer
2026-04-23 21:45:34 +08:00
parent 5b884125f7
commit 0b866c81ff
171 changed files with 2203 additions and 2042 deletions
+1 -3
View File
@@ -55,7 +55,6 @@ export interface DashboardStats {
top_largest_emails: LargestEmail[]; // Top 10 largest emails
top_largest_attachments: LargestAttachment[]; // Top 10 largest attachments
system_version: string, //The semantic version string of the currently running backend service
commit_hash: string //Git commit hash used to build this system version
}
export const INITIAL_DASHBOARD_STATS: DashboardStats = {
@@ -71,8 +70,7 @@ export const INITIAL_DASHBOARD_STATS: DashboardStats = {
without_attachment_count: 0,
top_largest_emails: [],
top_largest_attachments: [],
system_version: '0.0.0',
commit_hash: 'n/a'
system_version: '0.0.0'
};
-1
View File
@@ -233,7 +233,6 @@ export default function MailArchiveDashboard() {
</div>
<div className="flex items-center gap-1.5 mt-1">
<GithubIcon className="h-5 w-5 text-muted-foreground" />
<p className="text-xs text-muted-foreground font-mono truncate">{stats1.commit_hash?.substring(0, 7) ?? 'N/A'}</p>
</div>
</CardContent>
</Card>
@@ -267,7 +267,7 @@ export function UserProfileForm({ user }: UserProfileFormProps) {
{hasAccess && (
<div className="space-y-4">
<h2 className="text-sm font-semibold text-muted-foreground uppercase tracking-wider">
<h2 className="text-xs font-semibold text-muted-foreground uppercase tracking-wider">
{t('settings.profile.section.accounts', {
count: accessibleAccountIds.length,
})}