Skip to content

Commit

Permalink
Merge pull request #783 from tatsutakein-jp/improve/GH-782
Browse files Browse the repository at this point in the history
refactor: page 系を screen 系にリネーム
  • Loading branch information
tatsutakein authored Jan 10, 2025
2 parents 1f8d230 + e28bba0 commit 30779dc
Show file tree
Hide file tree
Showing 66 changed files with 783 additions and 684 deletions.
771 changes: 426 additions & 345 deletions app/backend/lib/graphql/__generated__/schema.schema.gql.g.dart

Large diffs are not rendered by default.

28 changes: 15 additions & 13 deletions app/backend/lib/graphql/news/__generated__/GetNews.data.gql.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 13 additions & 12 deletions app/backend/lib/graphql/news/__generated__/GetNews.req.gql.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/backend/routes/v1/_middleware.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Handler middleware(Handler handler) {
),
HttpAuthLink(
url: env.backendUrl,
)
),
],
),
cache: Cache(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import 'package:flutter/material.dart';
import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook;

@widgetbook.UseCase(
name: 'AuthPage',
type: AuthPage,
name: 'AuthScreen',
type: AuthScreen,
path: '[Feature]/auth',
)
AuthPage authPageUseCase(BuildContext context) {
return AuthPage(
AuthScreen authScreenUseCase(BuildContext context) {
return AuthScreen(
onLoginSuccess: () {},
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import 'package:flutter/material.dart';
import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook;

@widgetbook.UseCase(
name: 'HomePage',
type: HomePage,
name: 'HomeScreen',
type: HomeScreen,
path: '[Feature]/home',
)
HomePage homePageUseCase(BuildContext context) {
return HomePage(
HomeScreen homeScreenUseCase(BuildContext context) {
return HomeScreen(
onTapNotification: () {},
onQuickAddButtonPressed: () {},
onTapQuestListItem: (_) {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import 'package:flutter/material.dart';
import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook;

@widgetbook.UseCase(
name: 'SettingsPage',
type: SettingsPage,
name: 'SettingsScreen',
type: SettingsScreen,
path: '[Feature]/my',
)
SettingsPage settingsPageUseCase(BuildContext context) {
return SettingsPage(
SettingsScreen settingsScreenUseCase(BuildContext context) {
return SettingsScreen(
onTapThemeSetting: () {},
onTapOpenSourceLicense: () {},
onSignOutSuccess: () {},
Expand Down
15 changes: 15 additions & 0 deletions app/catalog/lib/feature/onboarding/screen/onboarding_screen.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import 'package:feature_onboarding/feature_onboarding.dart';
import 'package:flutter/material.dart';
import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook;

@widgetbook.UseCase(
name: 'OnboardingScreen',
type: OnboardingScreen,
path: '[Feature]/onboarding',
)
OnboardingScreen onboardingScreenUseCase(BuildContext context) {
return OnboardingScreen(
onPopInvoked: () {},
onAgreeAndContinue: () {},
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import 'package:flutter/material.dart';
import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook;

@widgetbook.UseCase(
name: 'QuestAddPage',
type: QuestAddPage,
name: 'QuestAddScreen',
type: QuestAddScreen,
path: '[Feature]/quest',
)
QuestAddPage questAddPageUseCase(BuildContext context) {
return QuestAddPage(
QuestAddScreen questAddScreenUseCase(BuildContext context) {
return QuestAddScreen(
onAddQuestCompleted: () {},
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import 'package:flutter/material.dart';
import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook;

@widgetbook.UseCase(
name: 'QuestDetailPage',
type: QuestDetailPage,
name: 'QuestDetailScreen',
type: QuestDetailScreen,
path: '[Feature]/quest',
)
QuestDetailPage questPageUseCase(BuildContext context) {
return const QuestDetailPage(questId: '1');
QuestDetailScreen questDetailScreenUseCase(BuildContext context) {
return const QuestDetailScreen(
id: 'quest_id',
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import 'package:flutter/material.dart';
import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook;

@widgetbook.UseCase(
name: 'QuestPage',
type: QuestListPage,
name: 'QuestListScreen',
type: QuestListScreen,
path: '[Feature]/quest',
)
QuestListPage questPageUseCase(BuildContext context) {
return QuestListPage(
onTapQuestListItem: (quest) {},
QuestListScreen questListScreenUseCase(BuildContext context) {
return QuestListScreen(
onTapQuestListItem: (_) {},
onTapQuestAddButton: () {},
);
}
Loading

0 comments on commit 30779dc

Please sign in to comment.