feat: 优化架构
Some checks failed
Frontend CI / build-and-push-web (push) Successful in 2m39s
Frontend CI / ota-android (push) Successful in 10m22s
Frontend CI / build-android-apk (push) Has been cancelled

This commit is contained in:
lafay
2026-04-13 01:30:37 +08:00
parent 2adc9360a5
commit fe6a03da5d
93 changed files with 386 additions and 211 deletions

View File

@@ -28,7 +28,7 @@ import {
} from '../../theme';
import { Text } from '../../components/common';
import { useResponsive, useResponsiveSpacing } from '../../hooks';
import { checkForAPKUpdate, type VersionCheckResult } from '../../services/apkUpdateService';
import { checkForAPKUpdate, type VersionCheckResult } from '@/services/platform';
import * as hrefs from '../../navigation/hrefs';
const CONTENT_MAX_WIDTH = 720;

View File

@@ -16,8 +16,8 @@ import { useResponsive, useResponsiveSpacing } from '../../hooks';
// 内容最大宽度
const CONTENT_MAX_WIDTH = 720;
import { authService, resolveAuthApiError } from '../../services/authService';
import { showPrompt } from '../../services/promptService';
import { authService, resolveAuthApiError } from '@/services/auth';
import { showPrompt } from '@/services/ui';
import { useAuthStore } from '../../stores';
export const AccountSecurityScreen: React.FC = () => {

View File

@@ -22,9 +22,9 @@ import {
setPushNotificationsPreference,
setSoundPreference,
setVibrationPreference,
} from '../../services/notificationPreferences';
} from '@/services/notification';
import { useResponsive, useResponsiveSpacing } from '../../hooks';
import { backgroundSyncManager, BackgroundSyncMode } from '../../services/BackgroundSyncManager';
import { backgroundSyncManager, BackgroundSyncMode } from '@/services/background';
// 内容最大宽度
const CONTENT_MAX_WIDTH = 720;

View File

@@ -23,7 +23,7 @@ import {
useVerificationStatus,
useVerificationLoading,
} from '../../stores/verificationStore';
import { showPrompt } from '../../services/promptService';
import { showPrompt } from '@/services/ui';
import * as hrefs from '../../navigation/hrefs';
const STATUS_CONFIG = {

View File

@@ -12,7 +12,7 @@ import { Post, User } from '../../types';
import { useUserStore } from '../../stores';
import { useCurrentUser } from '../../stores/authStore';
import { postService, authService, messageService } from '../../services';
import { postSyncService } from '../../services/post/PostSyncService';
import { postSyncService } from '@/services/post';
import { userManager } from '../../stores/userManager';
import * as hrefs from '../../navigation/hrefs';
import { PostCardAction } from '../../components/business/PostCard';