ultisuite-client/lib/mail-settings/settings-search-index.ts
R3D347HR4Y 6ec95262af Add OnlyOffice integration and update project configurations
- Updated .env.example to include configuration for OnlyOffice Document Server.
- Modified the workspace configuration to remove the drive-suite path.
- Adjusted TypeScript environment imports for consistency.
- Enhanced Next.js configuration to disable canvas in Webpack.
- Updated package.json to include new dependencies for OnlyOffice and PDF.js.
- Added global styles for OnlyOffice theme integration in the CSS.
- Created new layout and page components for the Drive feature, including public sharing and editing functionalities.
- Updated metadata handling across various layouts to reflect the new app structure.
2026-06-07 15:49:21 +02:00

69 lines
3.4 KiB
TypeScript

import { MAIL_SETTINGS_NAV, type MailSettingsSectionId } from "@/lib/mail-settings/settings-nav"
export type MailSettingsSearchEntry = {
id: string
label: string
description?: string
sectionId: MailSettingsSectionId
sectionLabel: string
href: string
keywords: string
}
function sectionHref(sectionId: MailSettingsSectionId): string {
return MAIL_SETTINGS_NAV.find((item) => item.id === sectionId)?.href ?? "/mail/settings"
}
function sectionLabel(sectionId: MailSettingsSectionId): string {
return MAIL_SETTINGS_NAV.find((item) => item.id === sectionId)?.label ?? "Affichage"
}
function entry(
sectionId: MailSettingsSectionId,
id: string,
label: string,
keywords: string,
description?: string
): MailSettingsSearchEntry {
return {
id,
label,
description,
sectionId,
sectionLabel: sectionLabel(sectionId),
href: sectionHref(sectionId),
keywords,
}
}
/** Index statique des réglages recherchables (sections + sous-rubriques). */
export const MAIL_SETTINGS_SEARCH_INDEX: MailSettingsSearchEntry[] = [
...MAIL_SETTINGS_NAV.map((item) =>
entry(item.id, `section-${item.id}`, item.label, `${item.description} réglages paramètres`, item.description)
),
entry("display", "density", "Densité", "compact normal défaut espacement liste messages"),
entry("display", "theme", "Thème", "clair sombre dark light mode apparence couleurs"),
entry("display", "background", "Arrière-plan", "fond wallpaper image thème décor"),
entry("display", "inbox-type", "Type de boîte de réception", "important non lus suivis starred tri inbox"),
entry("display", "reading-pane", "Volet de lecture", "split panneau droite aperçu message"),
entry("display", "conversation", "Mode Conversation", "fil discussion thread regrouper messages"),
entry("accounts", "add-account", "Ajouter un compte mail", "imap smtp oauth connecter serveur"),
entry("accounts", "identities", "Identités d'envoi", "alias from expéditeur adresse envoi"),
entry("accounts", "imap", "IMAP", "réception serveur entrant synchronisation"),
entry("accounts", "smtp", "SMTP", "envoi serveur sortant"),
entry("signatures", "signature-library", "Bibliothèque de signatures", "créer modifier supprimer signature html"),
entry("signatures", "signature-assign", "Attribution des signatures", "identité signature par défaut"),
entry("labels", "labels", "Libellés", "tags couleur étiquettes organisation"),
entry("labels", "folders", "Dossiers", "imap unified unifiés arborescence"),
entry("labels", "unified-folders", "Dossiers unifiés", "cross-comptes organisation partagée"),
entry("notifications", "desktop-new", "Nouveaux messages (bureau)", "notification desktop alerte push"),
entry("notifications", "desktop-mentions", "Mentions et réponses", "notification mention reply"),
entry("notifications", "email-digest", "Résumé quotidien par e-mail", "digest récap quotidien"),
entry("notifications", "sound", "Son de notification", "audio alerte sonore"),
entry("automation", "rules", "Règles de tri", "automatisation filtre tri forward réponse"),
entry("automation", "webhooks", "Webhooks", "http post template payload externe"),
entry("automation", "llm", "Fournisseurs LLM", "ia openai tri intelligent llm"),
entry("automation", "search-providers", "Fournisseurs de recherche", "web search api recherche"),
entry("automation", "api-tokens", "Tokens API", "agent ia accès programmatique fine-grained"),
]