mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-15 09:14:08 +00:00
Create the complete TypeScript foundation for the Vue 3 migration in a parallel scripts-v2/ directory. 72 files, 5430 lines, zero any types, strict mode. - types/ (21 files): Domain interfaces for all 17 entities derived from actual Laravel models and API resources. Enums for all statuses. Generic API response wrappers. - api/ (29 files): Typed axios client with interceptors, endpoint constants from routes/api.php, 25 typed service classes covering every API endpoint. - composables/ (14 files): Vue 3 composition functions for auth, notifications, dialogs, modals, pagination, filters, currency, dates, theme, sidebar, company context, and permissions. - utils/ (5 files): Pure typed utilities for money formatting, date formatting (date-fns), localStorage, and error handling. - config/ (3 files): Typed ability constants, app constants. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
55 lines
1.4 KiB
TypeScript
55 lines
1.4 KiB
TypeScript
export { useApi } from './use-api'
|
|
export type { UseApiReturn } from './use-api'
|
|
|
|
export { useAuth } from './use-auth'
|
|
export type { User, UseAuthReturn } from './use-auth'
|
|
|
|
export { useNotification } from './use-notification'
|
|
export type { Notification, UseNotificationReturn } from './use-notification'
|
|
|
|
export { useDialog } from './use-dialog'
|
|
export type {
|
|
DialogState,
|
|
OpenConfirmOptions,
|
|
UseDialogReturn,
|
|
} from './use-dialog'
|
|
|
|
export { useModal } from './use-modal'
|
|
export type {
|
|
ModalState,
|
|
OpenModalOptions,
|
|
UseModalReturn,
|
|
} from './use-modal'
|
|
|
|
export { usePagination } from './use-pagination'
|
|
export type {
|
|
UsePaginationOptions,
|
|
UsePaginationReturn,
|
|
} from './use-pagination'
|
|
|
|
export { useFilters } from './use-filters'
|
|
export type { UseFiltersOptions, UseFiltersReturn } from './use-filters'
|
|
|
|
export { useCurrency } from './use-currency'
|
|
export type { Currency, UseCurrencyReturn } from './use-currency'
|
|
|
|
export { useDate } from './use-date'
|
|
export type { UseDateReturn } from './use-date'
|
|
|
|
export { useTheme } from './use-theme'
|
|
export type { UseThemeReturn } from './use-theme'
|
|
|
|
export { useSidebar } from './use-sidebar'
|
|
export type { UseSidebarReturn } from './use-sidebar'
|
|
|
|
export { useCompany } from './use-company'
|
|
export type {
|
|
Company,
|
|
CompanySettings,
|
|
CompanyCurrency,
|
|
UseCompanyReturn,
|
|
} from './use-company'
|
|
|
|
export { usePermissions } from './use-permissions'
|
|
export type { UserAbility, UsePermissionsReturn } from './use-permissions'
|