ActivityPub service impl basis

This commit is contained in:
2025-12-29 01:01:47 +08:00
parent eb90dbbc5a
commit bb1a5155ed
31 changed files with 6705 additions and 4091 deletions

View File

@@ -6,6 +6,8 @@ import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:go_router/go_router.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:island/screens/about.dart';
import 'package:island/screens/activitypub/list.dart';
import 'package:island/screens/activitypub/search.dart';
import 'package:island/screens/dashboard/dash.dart';
import 'package:island/screens/developers/app_detail.dart';
import 'package:island/screens/developers/bot_detail.dart';
@@ -185,6 +187,24 @@ final routerProvider = Provider<GoRouter>((ref) {
},
),
GoRoute(
name: 'activitypubSearch',
path: '/activitypub/search',
builder: (context, state) => const ApSearchScreen(),
),
GoRoute(
name: 'activitypubFollowing',
path: '/activitypub/following',
builder: (context, state) =>
const ApListScreen(type: ActivityPubListType.following),
),
GoRoute(
name: 'activitypubFollowers',
path: '/activitypub/followers',
builder: (context, state) =>
const ApListScreen(type: ActivityPubListType.followers),
),
// Main tabs with TabsScreen shell
ShellRoute(
navigatorKey: _tabsShellKey,