mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-15 17:24:10 +00:00
Complete scripts-v2 TypeScript migration — all imports resolved,
build passes Create all missing components (modals, dropdowns, icons, tabs, mail drivers, customer partials), fix all @/scripts/ imports to @v2/, wire up vite entry point and blade template. 382 files, 48883 lines. - 27 settings components: modals (tax, payment, custom field, note, category, role, exchange rate, unit, mail test), dropdowns (6), customization tabs (4), mail driver forms (4) - 22 icon components: 5 utility icons, 4 dashboard icons, 13 editor toolbar icons with typed barrel export - 3 customer components: info, chart placeholder, custom fields single - Fixed usePopper composable, client/format-money import patterns - Zero remaining @/scripts/ imports in scripts-v2/ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { User } from '../../types/domain/user'
|
||||
import type { ApiResponse } from '../../types/api'
|
||||
import type { User } from '@v2/types/domain/user'
|
||||
import type { ApiResponse } from '@v2/types/api'
|
||||
|
||||
export interface LoginPayload {
|
||||
email: string
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { ApiResponse, ListParams } from '../../types/api'
|
||||
import type { ApiResponse, ListParams } from '@v2/types/api'
|
||||
|
||||
export interface Backup {
|
||||
id: number
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { User, UserSetting } from '../../types/domain/user'
|
||||
import type { Company } from '../../types/domain/company'
|
||||
import type { Currency } from '../../types/domain/currency'
|
||||
import type { Ability } from '../../types/domain/role'
|
||||
import type { User, UserSetting } from '@v2/types/domain/user'
|
||||
import type { Company } from '@v2/types/domain/company'
|
||||
import type { Currency } from '@v2/types/domain/currency'
|
||||
import type { Ability } from '@v2/types/domain/role'
|
||||
|
||||
export interface MenuItem {
|
||||
title: string
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { Company } from '../../types/domain/company'
|
||||
import type { ApiResponse } from '../../types/api'
|
||||
import type { Company } from '@v2/types/domain/company'
|
||||
import type { ApiResponse } from '@v2/types/api'
|
||||
|
||||
export interface UpdateCompanyPayload {
|
||||
name: string
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { CustomField } from '../../types/domain/custom-field'
|
||||
import type { ApiResponse, ListParams } from '../../types/api'
|
||||
import type { CustomField } from '@v2/types/domain/custom-field'
|
||||
import type { ApiResponse, ListParams } from '@v2/types/api'
|
||||
|
||||
export interface CustomFieldListParams extends ListParams {
|
||||
model_type?: string
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { Customer, CreateCustomerPayload } from '../../types/domain/customer'
|
||||
import type { Customer, CreateCustomerPayload } from '@v2/types/domain/customer'
|
||||
import type {
|
||||
ApiResponse,
|
||||
ListParams,
|
||||
DeletePayload,
|
||||
} from '../../types/api'
|
||||
} from '@v2/types/api'
|
||||
|
||||
export interface CustomerListParams extends ListParams {
|
||||
display_name?: string
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { ApiResponse, ListParams } from '../../types/api'
|
||||
import type { ApiResponse, ListParams } from '@v2/types/api'
|
||||
|
||||
export interface Disk {
|
||||
id: number
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { Estimate, CreateEstimatePayload } from '../../types/domain/estimate'
|
||||
import type { Invoice } from '../../types/domain/invoice'
|
||||
import type { Estimate, CreateEstimatePayload } from '@v2/types/domain/estimate'
|
||||
import type { Invoice } from '@v2/types/domain/invoice'
|
||||
import type {
|
||||
ApiResponse,
|
||||
ListParams,
|
||||
DateRangeParams,
|
||||
NextNumberResponse,
|
||||
DeletePayload,
|
||||
} from '../../types/api'
|
||||
} from '@v2/types/api'
|
||||
|
||||
export interface EstimateListParams extends ListParams, DateRangeParams {
|
||||
status?: string
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { ExchangeRateProvider, Currency } from '../../types/domain/currency'
|
||||
import type { ApiResponse, ListParams } from '../../types/api'
|
||||
import type { ExchangeRateProvider, Currency } from '@v2/types/domain/currency'
|
||||
import type { ApiResponse, ListParams } from '@v2/types/api'
|
||||
|
||||
export interface CreateExchangeRateProviderPayload {
|
||||
driver: string
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { Expense, ExpenseCategory, CreateExpensePayload } from '../../types/domain/expense'
|
||||
import type { Expense, ExpenseCategory, CreateExpensePayload } from '@v2/types/domain/expense'
|
||||
import type {
|
||||
ApiResponse,
|
||||
ListParams,
|
||||
DateRangeParams,
|
||||
DeletePayload,
|
||||
} from '../../types/api'
|
||||
} from '@v2/types/api'
|
||||
|
||||
export interface ExpenseListParams extends ListParams, DateRangeParams {
|
||||
expense_category_id?: number
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { Invoice, CreateInvoicePayload } from '../../types/domain/invoice'
|
||||
import type { Invoice, CreateInvoicePayload } from '@v2/types/domain/invoice'
|
||||
import type {
|
||||
ApiResponse,
|
||||
PaginatedResponse,
|
||||
@@ -8,7 +8,7 @@ import type {
|
||||
DateRangeParams,
|
||||
NextNumberResponse,
|
||||
DeletePayload,
|
||||
} from '../../types/api'
|
||||
} from '@v2/types/api'
|
||||
|
||||
export interface InvoiceListParams extends ListParams, DateRangeParams {
|
||||
status?: string
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { Item, Unit } from '../../types/domain/item'
|
||||
import type { Item, Unit } from '@v2/types/domain/item'
|
||||
import type {
|
||||
ApiResponse,
|
||||
ListParams,
|
||||
DeletePayload,
|
||||
} from '../../types/api'
|
||||
} from '@v2/types/api'
|
||||
|
||||
export interface ItemListParams extends ListParams {
|
||||
filter?: Record<string, unknown>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { User } from '../../types/domain/user'
|
||||
import type { CompanyInvitation } from '../../types/domain/company'
|
||||
import type { ApiResponse, PaginatedResponse, ListParams } from '../../types/api'
|
||||
import type { User } from '@v2/types/domain/user'
|
||||
import type { CompanyInvitation } from '@v2/types/domain/company'
|
||||
import type { ApiResponse, PaginatedResponse, ListParams } from '@v2/types/api'
|
||||
|
||||
export interface MemberListParams extends ListParams {
|
||||
display_name?: string
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { ApiResponse } from '../../types/api'
|
||||
import type { ApiResponse } from '@v2/types/api'
|
||||
|
||||
export interface Module {
|
||||
name: string
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { Note } from '../../types/domain/note'
|
||||
import type { ApiResponse, ListParams } from '../../types/api'
|
||||
import type { Note } from '@v2/types/domain/note'
|
||||
import type { ApiResponse, ListParams } from '@v2/types/api'
|
||||
|
||||
export interface CreateNotePayload {
|
||||
type: string
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { Payment, PaymentMethod, CreatePaymentPayload } from '../../types/domain/payment'
|
||||
import type { Payment, PaymentMethod, CreatePaymentPayload } from '@v2/types/domain/payment'
|
||||
import type {
|
||||
ApiResponse,
|
||||
ListParams,
|
||||
NextNumberResponse,
|
||||
DeletePayload,
|
||||
} from '../../types/api'
|
||||
} from '@v2/types/api'
|
||||
|
||||
export interface PaymentListParams extends ListParams {
|
||||
customer_id?: number
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { RecurringInvoice, CreateRecurringInvoicePayload } from '../../types/domain/recurring-invoice'
|
||||
import type { RecurringInvoice, CreateRecurringInvoicePayload } from '@v2/types/domain/recurring-invoice'
|
||||
import type {
|
||||
ApiResponse,
|
||||
ListParams,
|
||||
DeletePayload,
|
||||
} from '../../types/api'
|
||||
} from '@v2/types/api'
|
||||
|
||||
export interface RecurringInvoiceListParams extends ListParams {
|
||||
status?: string
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { DateRangeParams } from '../../types/api'
|
||||
import type { DateRangeParams } from '@v2/types/api'
|
||||
|
||||
export interface ReportParams extends DateRangeParams {
|
||||
report_type?: string
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { Role, Ability } from '../../types/domain/role'
|
||||
import type { ApiResponse, ListParams } from '../../types/api'
|
||||
import type { Role, Ability } from '@v2/types/domain/role'
|
||||
import type { ApiResponse, ListParams } from '@v2/types/api'
|
||||
|
||||
export interface CreateRolePayload {
|
||||
name: string
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { Country } from '../../types/domain/customer'
|
||||
import type { Currency } from '../../types/domain/currency'
|
||||
import type { Country } from '@v2/types/domain/customer'
|
||||
import type { Currency } from '@v2/types/domain/currency'
|
||||
|
||||
export interface DateFormat {
|
||||
display_date: string
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { TaxType } from '../../types/domain/tax'
|
||||
import type { ApiResponse, ListParams } from '../../types/api'
|
||||
import type { TaxType } from '@v2/types/domain/tax'
|
||||
import type { ApiResponse, ListParams } from '@v2/types/api'
|
||||
|
||||
export interface CreateTaxTypePayload {
|
||||
name: string
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { client } from '../client'
|
||||
import { API } from '../endpoints'
|
||||
import type { User } from '../../types/domain/user'
|
||||
import type { ApiResponse } from '../../types/api'
|
||||
import type { User } from '@v2/types/domain/user'
|
||||
import type { ApiResponse } from '@v2/types/api'
|
||||
|
||||
export interface UpdateProfilePayload {
|
||||
name: string
|
||||
|
||||
Reference in New Issue
Block a user