migrate mobile ui utils to typescript

This commit is contained in:
MaysWind
2025-01-11 00:53:22 +08:00
parent 8da3d2aa35
commit b2e36a24fd
25 changed files with 88 additions and 65 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ import {
} from '@/lib/server_settings.ts';
import { getDesktopVersionPath } from '@/lib/version.ts';
import { setExpenseAndIncomeAmountColor } from '@/lib/ui/common.ts';
import { isModalShowing } from '@/lib/ui/mobile.js';
import { isModalShowing } from '@/lib/ui/mobile.ts';
export default {
props: [
+1 -1
View File
@@ -83,7 +83,7 @@ import {
getWebAuthnCredentialId
} from '@/lib/userstate.ts';
import { setExpenseAndIncomeAmountColor } from '@/lib/ui/common.ts';
import { isModalShowing } from '@/lib/ui/mobile.js';
import { isModalShowing } from '@/lib/ui/mobile.ts';
export default {
props: [
+1 -1
View File
@@ -181,7 +181,7 @@ import { useAccountsStore } from '@/stores/account.js';
import { useExchangeRatesStore } from '@/stores/exchangeRates.ts';
import { AccountType, AccountCategory } from '@/core/account.ts';
import { onSwipeoutDeleted } from '@/lib/ui/mobile.js';
import { onSwipeoutDeleted } from '@/lib/ui/mobile.ts';
export default {
props: [
+1 -1
View File
@@ -96,7 +96,7 @@ import {
getFirstShowingId,
getLastShowingId
} from '@/lib/category.js';
import { onSwipeoutDeleted } from '@/lib/ui/mobile.js';
import { onSwipeoutDeleted } from '@/lib/ui/mobile.ts';
export default {
props: [
@@ -118,7 +118,7 @@ import { useUserStore } from '@/stores/user.ts';
import { FontSize } from '@/core/font.ts';
import { getCurrentUnixTime, getDay, getDayOfWeekName } from '@/lib/datetime.ts';
import { setAppFontSize, getFontSizePreviewClassName } from '@/lib/ui/mobile.js';
import { setAppFontSize, getFontSizePreviewClassName } from '@/lib/ui/mobile.ts';
export default {
props: [
@@ -349,7 +349,7 @@ import {
getDateTypeByDateRange,
getDateRangeByDateType
} from '@/lib/datetime.ts';
import { scrollToSelectedItem } from '@/lib/ui/mobile.js';
import { scrollToSelectedItem } from '@/lib/ui/mobile.ts';
export default {
props: [
+1 -1
View File
@@ -152,7 +152,7 @@ import {
getFirstShowingId,
getLastShowingId
} from '@/lib/tag.js';
import { onSwipeoutDeleted } from '@/lib/ui/mobile.js';
import { onSwipeoutDeleted } from '@/lib/ui/mobile.ts';
export default {
props: [
+1 -1
View File
@@ -95,7 +95,7 @@ import {
getFirstShowingId,
getLastShowingId
} from '@/lib/template.js';
import { onSwipeoutDeleted } from '@/lib/ui/mobile.js';
import { onSwipeoutDeleted } from '@/lib/ui/mobile.ts';
export default {
props: [
+1 -1
View File
@@ -551,7 +551,7 @@ import {
import { categoryTypeToTransactionType, transactionTypeToCategoryType } from '@/lib/category.js';
import { getUnifiedSelectedAccountsCurrencyOrDefaultCurrency } from '@/lib/account.js';
import { getTransactionDisplayAmount } from '@/lib/transaction.js';
import { onSwipeoutDeleted, scrollToSelectedItem } from '@/lib/ui/mobile.js';
import { onSwipeoutDeleted, scrollToSelectedItem } from '@/lib/ui/mobile.ts';
export default {
props: [
+1 -1
View File
@@ -50,7 +50,7 @@ import { useTokensStore } from '@/stores/token.ts';
import { isEquals } from '@/lib/common.ts';
import { parseSessionInfo } from '@/lib/session.ts';
import { onSwipeoutDeleted } from '@/lib/ui/mobile.js';
import { onSwipeoutDeleted } from '@/lib/ui/mobile.ts';
export default {
props: [