ultisuite-client/lib/suite/favorite-apps.ts
R3D347HR4Y b95948f980 feat: refactor mail and account settings structure for improved navigation and layout
- Updated routing for mail settings to redirect to the new settings layout.
- Introduced new account layout and section components for better organization.
- Replaced hardcoded paths with constants for account and mail settings to enhance maintainability.
- Removed deprecated mail settings layout and integrated it into the new settings structure.
- Enhanced user experience by streamlining navigation between account and mail settings.
2026-06-16 11:32:58 +02:00

75 lines
1.8 KiB
TypeScript

import { ULTICAL_APP_NAME } from "@/lib/suite/page-metadata"
import { suitePublicAsset } from "@/lib/suite/suite-public-asset"
export type FavoriteApp = {
name: string
icon: string
/** Variante dark mode (gris clairs, surface adaptée). */
iconDark?: string
href?: string
/** Ouvre dans un nouvel onglet (liens externes). */
external?: boolean
/** Logos sombres : blanc en dark via invert + hue-rotate. */
whiteLogoInDark?: boolean
}
export const SUITE_FAVORITE_APPS: FavoriteApp[] = [
{
name: ULTICAL_APP_NAME,
icon: suitePublicAsset("/agenda-mark.svg"),
iconDark: suitePublicAsset("/agenda-mark-dark.svg"),
href: "/agenda",
},
{ name: "Photos", icon: suitePublicAsset("/photos-mark.svg") },
{
name: "Ultimail",
icon: suitePublicAsset("/ultimail-mark.svg"),
href: "/mail",
},
{
name: "UltiDrive",
icon: suitePublicAsset("/ultidrive-mark.svg"),
href: "/drive",
},
{
name: "Contacts",
icon: suitePublicAsset("/contacts-mark.svg"),
href: "/contacts",
},
{
name: "UltiMeet",
icon: suitePublicAsset("/ultimeet-mark.svg"),
href: "/meet",
},
{
name: "Administration",
icon: suitePublicAsset("/admin-mark.svg"),
href: "/admin/settings",
},
{
name: "OpenMaps",
icon: suitePublicAsset("/openstreetmap-mark.svg"),
href: "https://www.openstreetmap.org/",
external: true,
},
{
name: "UltiAI",
icon: suitePublicAsset("/ultiai-mark.svg"),
href: "/chat",
},
{
name: "Qwant",
icon: suitePublicAsset("/qwant-mark.svg"),
href: "https://www.qwant.com/",
external: true,
whiteLogoInDark: true,
},
{
name: "Ground News",
icon: suitePublicAsset("/ground-news-mark.svg"),
href: "https://ground.news/",
external: true,
whiteLogoInDark: true,
},
]