refactor(stores): unify data sources pattern and extract BaseManager base class
All checks were successful
Frontend CI / build-and-push-web (push) Successful in 3m4s
Frontend CI / ota-android (push) Successful in 11m9s
Frontend CI / build-android-apk (push) Successful in 1h23m57s

- Add BaseManager/CachedManager base classes to eliminate duplicate cache logic
- Add postListSources.ts with IPostListPagedSource interface
- Add groupListSources.ts with IGroupListPagedSource interface
- Refactor postManager to use CachedManager and Sources pattern
- Refactor groupManager to use CachedManager and Sources pattern
- Clean up duplicate methods in groupService.ts
- Fix TypeScript errors and remove mock data
This commit is contained in:
2026-03-26 16:46:22 +08:00
parent b6583e07c8
commit 4b89b50006
13 changed files with 858 additions and 628 deletions

View File

@@ -201,7 +201,7 @@ export const SubjectMaterialsScreen: React.FC = () => {
if (isLoading) {
return (
<View style={styles.centerContainer}>
<Loading size="large" />
<Loading size="lg" />
</View>
);
}
@@ -254,7 +254,7 @@ export const SubjectMaterialsScreen: React.FC = () => {
</TouchableOpacity>
</View>
<View style={styles.headerCenter}>
<Text style={[styles.headerTitle, isWideScreen && styles.headerTitleWide]}>
<Text style={isWideScreen ? [styles.headerTitle, styles.headerTitleWide] : styles.headerTitle}>
{subject?.name || '资料列表'}
</Text>
</View>