Added a global `notify` method via Nuxt plugin to replace `useNotification`. Improved messaging structure by embedding progress bars and handled dynamic durations. Updated usage across composables and components for consistency. - Replaced `useNotification` with `$notify` in all applicable files. - Updated `app.config.ts` to support customizable notification positions. - Refactored affected composables for simplified notification calls. - Enhanced progress indicator display within notifications. Breaking Changes: `useNotification` is removed, requiring migration to the new `$notify` API.
19 lines
385 B
TypeScript
19 lines
385 B
TypeScript
declare module 'nuxt/schema' {
|
|
interface AppConfig {
|
|
i18n: {
|
|
supportedLocales: Array<{
|
|
code: string;
|
|
file: string;
|
|
default: boolean;
|
|
}>;
|
|
};
|
|
ui: {
|
|
showBreadcrumbs: boolean;
|
|
showSearchBar: boolean;
|
|
isHeaderFixed: boolean;
|
|
isAuthModals: boolean;
|
|
notificationPosition: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
};
|
|
}
|
|
}
|
|
export {};
|