migration done

This commit is contained in:
Fabian Freund
2025-09-19 11:50:34 +02:00
parent b01012c76c
commit 79da47d11b
198 changed files with 17341 additions and 15711 deletions
+67 -98
View File
@@ -18,11 +18,10 @@ List<RouteBase> get $appRoutes => [
RouteBase get $aboutRoute => GoRouteData.$route(
path: '/about',
name: 'AboutRoute',
factory: _$AboutRoute._fromState,
factory: $AboutRoute._fromState,
);
mixin _$AboutRoute on GoRouteData {
mixin $AboutRoute on GoRouteData {
static AboutRoute _fromState(GoRouterState state) => AboutRoute();
@override
@@ -45,14 +44,13 @@ mixin _$AboutRoute on GoRouteData {
RouteBase get $onboardingRoute => GoRouteData.$route(
path: '/onboarding/:currentRevision/:targetRevision',
name: 'OnboardingRoute',
factory: _$OnboardingRoute._fromState,
factory: $OnboardingRoute._fromState,
);
mixin _$OnboardingRoute on GoRouteData {
mixin $OnboardingRoute on GoRouteData {
static OnboardingRoute _fromState(GoRouterState state) => OnboardingRoute(
currentRevision: int.parse(state.pathParameters['currentRevision']!)!,
targetRevision: int.parse(state.pathParameters['targetRevision']!)!,
currentRevision: int.parse(state.pathParameters['currentRevision']!),
targetRevision: int.parse(state.pathParameters['targetRevision']!),
);
OnboardingRoute get _self => this as OnboardingRoute;
@@ -79,38 +77,32 @@ mixin _$OnboardingRoute on GoRouteData {
RouteBase get $settingsRoute => GoRouteData.$route(
path: '/settings',
name: 'SettingsRoute',
factory: _$SettingsRoute._fromState,
factory: $SettingsRoute._fromState,
routes: [
GoRouteData.$route(
path: 'general',
name: 'GeneralSettingsRoute',
factory: _$GeneralSettingsRoute._fromState,
factory: $GeneralSettingsRoute._fromState,
),
GoRouteData.$route(
path: 'bang',
name: 'BangSettingsRoute',
factory: _$BangSettingsRoute._fromState,
factory: $BangSettingsRoute._fromState,
),
GoRouteData.$route(
path: 'web_engine',
name: 'WebEngineSettingsRoute',
factory: _$WebEngineSettingsRoute._fromState,
factory: $WebEngineSettingsRoute._fromState,
routes: [
GoRouteData.$route(
path: 'hardening',
name: 'WebEngineHardeningRoute',
factory: _$WebEngineHardeningRoute._fromState,
factory: $WebEngineHardeningRoute._fromState,
routes: [
GoRouteData.$route(
path: 'group/:group',
name: 'WebEngineHardeningGroupRoute',
factory: _$WebEngineHardeningGroupRoute._fromState,
factory: $WebEngineHardeningGroupRoute._fromState,
),
],
),
@@ -119,13 +111,12 @@ RouteBase get $settingsRoute => GoRouteData.$route(
GoRouteData.$route(
path: 'developer',
name: 'DeveloperSettingsRoute',
factory: _$DeveloperSettingsRoute._fromState,
factory: $DeveloperSettingsRoute._fromState,
),
],
);
mixin _$SettingsRoute on GoRouteData {
mixin $SettingsRoute on GoRouteData {
static SettingsRoute _fromState(GoRouterState state) => SettingsRoute();
@override
@@ -145,7 +136,7 @@ mixin _$SettingsRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$GeneralSettingsRoute on GoRouteData {
mixin $GeneralSettingsRoute on GoRouteData {
static GeneralSettingsRoute _fromState(GoRouterState state) =>
GeneralSettingsRoute();
@@ -166,7 +157,7 @@ mixin _$GeneralSettingsRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$BangSettingsRoute on GoRouteData {
mixin $BangSettingsRoute on GoRouteData {
static BangSettingsRoute _fromState(GoRouterState state) =>
BangSettingsRoute();
@@ -187,7 +178,7 @@ mixin _$BangSettingsRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$WebEngineSettingsRoute on GoRouteData {
mixin $WebEngineSettingsRoute on GoRouteData {
static WebEngineSettingsRoute _fromState(GoRouterState state) =>
WebEngineSettingsRoute();
@@ -208,7 +199,7 @@ mixin _$WebEngineSettingsRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$WebEngineHardeningRoute on GoRouteData {
mixin $WebEngineHardeningRoute on GoRouteData {
static WebEngineHardeningRoute _fromState(GoRouterState state) =>
WebEngineHardeningRoute();
@@ -230,7 +221,7 @@ mixin _$WebEngineHardeningRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$WebEngineHardeningGroupRoute on GoRouteData {
mixin $WebEngineHardeningGroupRoute on GoRouteData {
static WebEngineHardeningGroupRoute _fromState(GoRouterState state) =>
WebEngineHardeningGroupRoute(group: state.pathParameters['group']!);
@@ -256,7 +247,7 @@ mixin _$WebEngineHardeningGroupRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$DeveloperSettingsRoute on GoRouteData {
mixin $DeveloperSettingsRoute on GoRouteData {
static DeveloperSettingsRoute _fromState(GoRouterState state) =>
DeveloperSettingsRoute();
@@ -280,75 +271,64 @@ mixin _$DeveloperSettingsRoute on GoRouteData {
RouteBase get $browserRoute => GoRouteData.$route(
path: '/',
name: 'BrowserRoute',
factory: _$BrowserRoute._fromState,
factory: $BrowserRoute._fromState,
routes: [
GoRouteData.$route(
path: 'search/:tabType/:searchText',
name: 'SearchRoute',
factory: _$SearchRoute._fromState,
factory: $SearchRoute._fromState,
),
GoRouteData.$route(
path: 'tor_proxy',
name: 'TorProxyRoute',
factory: _$TorProxyRoute._fromState,
factory: $TorProxyRoute._fromState,
),
GoRouteData.$route(
path: 'history',
name: 'HistoryRoute',
factory: _$HistoryRoute._fromState,
factory: $HistoryRoute._fromState,
),
GoRouteData.$route(
path: 'context_menu',
name: 'ContextMenuRoute',
factory: _$ContextMenuRoute._fromState,
factory: $ContextMenuRoute._fromState,
),
GoRouteData.$route(
path: 'containers',
name: 'ContainerListRoute',
factory: _$ContainerListRoute._fromState,
factory: $ContainerListRoute._fromState,
routes: [
GoRouteData.$route(
path: 'create',
name: 'ContainerCreateRoute',
factory: _$ContainerCreateRoute._fromState,
factory: $ContainerCreateRoute._fromState,
),
GoRouteData.$route(
path: 'edit',
name: 'ContainerEditRoute',
factory: _$ContainerEditRoute._fromState,
factory: $ContainerEditRoute._fromState,
),
],
),
GoRouteData.$route(
path: 'select_container',
name: 'ContainerSelectionRoute',
factory: _$ContainerSelectionRoute._fromState,
factory: $ContainerSelectionRoute._fromState,
),
GoRouteData.$route(
path: 'tab_tree/:rootTabId',
name: 'TabTreeRoute',
factory: _$TabTreeRoute._fromState,
factory: $TabTreeRoute._fromState,
),
GoRouteData.$route(
path: 'open_content',
name: 'OpenSharedContentRoute',
factory: _$OpenSharedContentRoute._fromState,
factory: $OpenSharedContentRoute._fromState,
),
],
);
mixin _$BrowserRoute on GoRouteData {
mixin $BrowserRoute on GoRouteData {
static BrowserRoute _fromState(GoRouterState state) => BrowserRoute();
@override
@@ -368,7 +348,7 @@ mixin _$BrowserRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$SearchRoute on GoRouteData {
mixin $SearchRoute on GoRouteData {
static SearchRoute _fromState(GoRouterState state) => SearchRoute(
tabType: _$TabTypeEnumMap._$fromName(state.pathParameters['tabType']!)!,
searchText:
@@ -405,7 +385,7 @@ const _$TabTypeEnumMap = {
TabType.child: 'child',
};
mixin _$TorProxyRoute on GoRouteData {
mixin $TorProxyRoute on GoRouteData {
static TorProxyRoute _fromState(GoRouterState state) => TorProxyRoute();
@override
@@ -425,7 +405,7 @@ mixin _$TorProxyRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$HistoryRoute on GoRouteData {
mixin $HistoryRoute on GoRouteData {
static HistoryRoute _fromState(GoRouterState state) => HistoryRoute();
@override
@@ -445,7 +425,7 @@ mixin _$HistoryRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$ContextMenuRoute on GoRouteData {
mixin $ContextMenuRoute on GoRouteData {
static ContextMenuRoute _fromState(GoRouterState state) =>
ContextMenuRoute(state.extra as String);
@@ -470,7 +450,7 @@ mixin _$ContextMenuRoute on GoRouteData {
context.replace(location, extra: _self.$extra);
}
mixin _$ContainerListRoute on GoRouteData {
mixin $ContainerListRoute on GoRouteData {
static ContainerListRoute _fromState(GoRouterState state) =>
ContainerListRoute();
@@ -491,7 +471,7 @@ mixin _$ContainerListRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$ContainerCreateRoute on GoRouteData {
mixin $ContainerCreateRoute on GoRouteData {
static ContainerCreateRoute _fromState(GoRouterState state) =>
ContainerCreateRoute(state.extra as ContainerData);
@@ -516,7 +496,7 @@ mixin _$ContainerCreateRoute on GoRouteData {
context.replace(location, extra: _self.$extra);
}
mixin _$ContainerEditRoute on GoRouteData {
mixin $ContainerEditRoute on GoRouteData {
static ContainerEditRoute _fromState(GoRouterState state) =>
ContainerEditRoute(state.extra as ContainerDataWithCount);
@@ -541,7 +521,7 @@ mixin _$ContainerEditRoute on GoRouteData {
context.replace(location, extra: _self.$extra);
}
mixin _$ContainerSelectionRoute on GoRouteData {
mixin $ContainerSelectionRoute on GoRouteData {
static ContainerSelectionRoute _fromState(GoRouterState state) =>
ContainerSelectionRoute();
@@ -562,7 +542,7 @@ mixin _$ContainerSelectionRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$TabTreeRoute on GoRouteData {
mixin $TabTreeRoute on GoRouteData {
static TabTreeRoute _fromState(GoRouterState state) =>
TabTreeRoute(state.pathParameters['rootTabId']!);
@@ -587,7 +567,7 @@ mixin _$TabTreeRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$OpenSharedContentRoute on GoRouteData {
mixin $OpenSharedContentRoute on GoRouteData {
static OpenSharedContentRoute _fromState(GoRouterState state) =>
OpenSharedContentRoute(state.extra as Uri);
@@ -620,33 +600,29 @@ extension<T extends Enum> on Map<T, String> {
RouteBase get $bangCategoriesRoute => GoRouteData.$route(
path: '/bangs',
name: 'BangRoute',
factory: _$BangCategoriesRoute._fromState,
factory: $BangCategoriesRoute._fromState,
routes: [
GoRouteData.$route(
path: 'search/:searchText',
name: 'BangSearchRoute',
factory: _$BangSearchRoute._fromState,
factory: $BangSearchRoute._fromState,
),
GoRouteData.$route(
path: 'category/:category',
name: 'BangCategoryRoute',
factory: _$BangCategoryRoute._fromState,
factory: $BangCategoryRoute._fromState,
routes: [
GoRouteData.$route(
path: ':subCategory',
name: 'BangSubCategoryRoute',
factory: _$BangSubCategoryRoute._fromState,
factory: $BangSubCategoryRoute._fromState,
),
],
),
],
);
mixin _$BangCategoriesRoute on GoRouteData {
mixin $BangCategoriesRoute on GoRouteData {
static BangCategoriesRoute _fromState(GoRouterState state) =>
BangCategoriesRoute();
@@ -667,7 +643,7 @@ mixin _$BangCategoriesRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$BangSearchRoute on GoRouteData {
mixin $BangSearchRoute on GoRouteData {
static BangSearchRoute _fromState(GoRouterState state) => BangSearchRoute(
searchText:
state.pathParameters['searchText'] ?? BangSearchRoute.emptySearchText,
@@ -694,7 +670,7 @@ mixin _$BangSearchRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$BangCategoryRoute on GoRouteData {
mixin $BangCategoryRoute on GoRouteData {
static BangCategoryRoute _fromState(GoRouterState state) =>
BangCategoryRoute(category: state.pathParameters['category']!);
@@ -719,7 +695,7 @@ mixin _$BangCategoryRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$BangSubCategoryRoute on GoRouteData {
mixin $BangSubCategoryRoute on GoRouteData {
static BangSubCategoryRoute _fromState(GoRouterState state) =>
BangSubCategoryRoute(
category: state.pathParameters['category']!,
@@ -750,49 +726,42 @@ mixin _$BangSubCategoryRoute on GoRouteData {
RouteBase get $feedListRoute => GoRouteData.$route(
path: '/feeds',
name: 'FeedListRoute',
factory: _$FeedListRoute._fromState,
factory: $FeedListRoute._fromState,
routes: [
GoRouteData.$route(
path: 'add',
name: 'FeedAddRoute',
factory: _$FeedAddRoute._fromState,
factory: $FeedAddRoute._fromState,
),
GoRouteData.$route(
path: 'articles/:feedId',
name: 'FeedArticleListRoute',
factory: _$FeedArticleListRoute._fromState,
factory: $FeedArticleListRoute._fromState,
),
GoRouteData.$route(
path: 'article/:articleId',
name: 'FeedArticleRoute',
factory: _$FeedArticleRoute._fromState,
factory: $FeedArticleRoute._fromState,
),
GoRouteData.$route(
path: 'create/:feedId',
name: 'FeedCreateRoute',
factory: _$FeedCreateRoute._fromState,
factory: $FeedCreateRoute._fromState,
),
GoRouteData.$route(
path: 'available/:feedsJson',
name: 'SelectFeedDialogRoute',
factory: _$SelectFeedDialogRoute._fromState,
factory: $SelectFeedDialogRoute._fromState,
),
GoRouteData.$route(
path: 'edit/:feedId',
name: 'FeedEditRoute',
factory: _$FeedEditRoute._fromState,
factory: $FeedEditRoute._fromState,
),
],
);
mixin _$FeedListRoute on GoRouteData {
mixin $FeedListRoute on GoRouteData {
static FeedListRoute _fromState(GoRouterState state) => FeedListRoute();
@override
@@ -812,7 +781,7 @@ mixin _$FeedListRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$FeedAddRoute on GoRouteData {
mixin $FeedAddRoute on GoRouteData {
static FeedAddRoute _fromState(GoRouterState state) =>
FeedAddRoute($extra: state.extra as Uri?);
@@ -837,9 +806,9 @@ mixin _$FeedAddRoute on GoRouteData {
context.replace(location, extra: _self.$extra);
}
mixin _$FeedArticleListRoute on GoRouteData {
mixin $FeedArticleListRoute on GoRouteData {
static FeedArticleListRoute _fromState(GoRouterState state) =>
FeedArticleListRoute(feedId: Uri.parse(state.pathParameters['feedId']!)!);
FeedArticleListRoute(feedId: Uri.parse(state.pathParameters['feedId']!));
FeedArticleListRoute get _self => this as FeedArticleListRoute;
@@ -862,7 +831,7 @@ mixin _$FeedArticleListRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$FeedArticleRoute on GoRouteData {
mixin $FeedArticleRoute on GoRouteData {
static FeedArticleRoute _fromState(GoRouterState state) =>
FeedArticleRoute(articleId: state.pathParameters['articleId']!);
@@ -887,9 +856,9 @@ mixin _$FeedArticleRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$FeedCreateRoute on GoRouteData {
mixin $FeedCreateRoute on GoRouteData {
static FeedCreateRoute _fromState(GoRouterState state) =>
FeedCreateRoute(feedId: Uri.parse(state.pathParameters['feedId']!)!);
FeedCreateRoute(feedId: Uri.parse(state.pathParameters['feedId']!));
FeedCreateRoute get _self => this as FeedCreateRoute;
@@ -912,7 +881,7 @@ mixin _$FeedCreateRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$SelectFeedDialogRoute on GoRouteData {
mixin $SelectFeedDialogRoute on GoRouteData {
static SelectFeedDialogRoute _fromState(GoRouterState state) =>
SelectFeedDialogRoute(feedsJson: state.pathParameters['feedsJson']!);
@@ -937,9 +906,9 @@ mixin _$SelectFeedDialogRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin _$FeedEditRoute on GoRouteData {
mixin $FeedEditRoute on GoRouteData {
static FeedEditRoute _fromState(GoRouterState state) =>
FeedEditRoute(feedId: Uri.parse(state.pathParameters['feedId']!)!);
FeedEditRoute(feedId: Uri.parse(state.pathParameters['feedId']!));
FeedEditRoute get _self => this as FeedEditRoute;