-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from pet-sitter/40-user-회원가입-로직-구현
Feat: [회원가입] 유저 회원가입 로직 구현
- Loading branch information
Showing
127 changed files
with
2,765 additions
and
3,313 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import 'package:pets_next_door_flutter/app/di/feature_di_interface.dart'; | ||
import 'package:pets_next_door_flutter/app/di/locator.dart'; | ||
import 'package:pets_next_door_flutter/features/auth/auth.dart'; | ||
import 'package:pets_next_door_flutter/features/auth/data/remote/auth_remote_data_source_impl.dart'; | ||
import 'package:pets_next_door_flutter/features/auth/repositories/auth_repository_impl.dart'; | ||
import 'package:pets_next_door_flutter/features/auth/auth.dart'; | ||
import 'package:pets_next_door_flutter/features/auth/usecases/sign_in_oauth_use_case.dart'; | ||
|
||
final class AuthDependencyInjection extends FeatureDependencyInjection { | ||
@override | ||
void dataSources() { | ||
locator.registerLazySingleton<AuthRemoteDataSource>( | ||
AuthRemoteDataSourceImpl.new, | ||
); | ||
} | ||
|
||
@override | ||
void repositories() { | ||
locator.registerLazySingleton<AuthRepository>( | ||
() => AuthRepositoryImpl( | ||
authRemoteDataSource, | ||
), | ||
); | ||
} | ||
|
||
@override | ||
void useCases() { | ||
locator | ||
..registerFactory( | ||
() => SignInOAuthUseCase( | ||
authRepository, | ||
), | ||
) | ||
..registerFactory( | ||
() => SignOutUseCase( | ||
authRepository, | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,4 @@ | ||
class PNDImages { | ||
abstract class PNDImages { | ||
static const String cat = 'assets/imgs/pet/cat.png'; | ||
static const String dog = 'assets/imgs/pet/dog.png'; | ||
|
||
static const String mainIcon = 'assets/svgs/main_icon.svg'; | ||
static const String mainTitleIcon = 'assets/svgs/main_title_icon.svg'; | ||
static const String google = 'assets/svgs/login/google_icon.svg'; | ||
static const String kakao = 'assets/svgs/login/kakao_icon.svg'; | ||
static const String apple = 'assets/svgs/login/apple_icon.svg'; | ||
|
||
static const String home = 'assets/svgs/home/icon_home.svg'; | ||
static const String community = 'assets/svgs/home/icon_community.svg'; | ||
static const String chat = 'assets/svgs/home/icon_chat.svg'; | ||
static const String user = 'assets/svgs/home/icon_user.svg'; | ||
|
||
static const String catActive = 'assets/svgs/pet/cat_active.svg'; | ||
static const String dogActive = 'assets/svgs/pet/dog_active.svg'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
abstract class PNDSvgs { | ||
static const String mainIcon = 'assets/svgs/main_icon.svg'; | ||
static const String mainTitleIcon = 'assets/svgs/main_title_icon.svg'; | ||
static const String google = 'assets/svgs/login/google_icon.svg'; | ||
static const String kakao = 'assets/svgs/login/kakao_icon.svg'; | ||
static const String apple = 'assets/svgs/login/apple_icon.svg'; | ||
|
||
static const String home = 'assets/svgs/home/icon_home.svg'; | ||
static const String community = 'assets/svgs/home/icon_community.svg'; | ||
static const String chat = 'assets/svgs/home/icon_chat.svg'; | ||
static const String user = 'assets/svgs/home/icon_user.svg'; | ||
|
||
static const String catActive = 'assets/svgs/pet/cat_active.svg'; | ||
static const String dogActive = 'assets/svgs/pet/dog_active.svg'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import 'package:pets_next_door_flutter/core/network_handling/exceptions/custom_exception.dart'; | ||
|
||
enum MediaType { | ||
image('image'), | ||
video('video'); | ||
|
||
const MediaType(this.code); | ||
|
||
final code; | ||
|
||
factory MediaType.getByTypeStr({required String type}) { | ||
return MediaType.values.firstWhere( | ||
(element) => element.code == type, | ||
orElse: () => throw ParsingEnumException(), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
extension StringValidationExt on String { | ||
// 공백 존재 여부 | ||
bool get hasSpace { | ||
return RegExp(r'\s').hasMatch(this); | ||
} | ||
|
||
/// 적합한 문자 사용 여부 | ||
/// 한글, 알파벳, 숫자, 언더스코어(_), 하이픈(-)만 사용할 수 있음 | ||
bool get hasProperCharacter { | ||
return RegExp(r'^[a-zA-Z0-9ㄱ-ㅎ가-힣_-]+$').hasMatch(trim()); | ||
} | ||
|
||
/// 2-10자 사이의 닉네임 길이 여부 | ||
bool get hasProperNicknameLength { | ||
return RegExp(r'^{2,10}$').hasMatch(trim()); | ||
} | ||
|
||
/// 욕설, 비속어 필터링 정규식 | ||
bool get hasContainFWord { | ||
return trim().contains( | ||
RegExp( | ||
r'시발|병신|[시씨슈쓔쉬쉽쒸쓉]([0-9]*|[0-9]+ *)[바발벌빠빡빨뻘파팔펄]|[섊좆좇졷좄좃좉졽썅춍]|ㅅㅣㅂㅏㄹ?|ㅂ[0-9]*ㅅ|[ㅄᄲᇪᄺᄡᄣᄦᇠ]|[ㅅㅆᄴ][0-9]*[ㄲㅅㅆᄴㅂ]|[존좉좇][0-9 ]*나|[자보][0-9]+지|보빨|[봊봋봇봈볻봁봍] *[빨이]|[후훚훐훛훋훗훘훟훝훑][장앙]|후빨|[엠앰]창|애[미비]|애자|[^탐]색기|([샊샛세쉐쉑쉨쉒객갞갟갯갰갴겍겎겏겤곅곆곇곗곘곜걕걖걗걧걨걬] *[끼키퀴])|새 *[키퀴]|[병븅]신|미친[가-닣닥-힣]|[믿밑]힌|[염옘]병|[샊샛샜샠섹섺셋셌셐셱솃솄솈섁섂섓섔섘]기|[섹섺섻쎅쎆쎇쎽쎾쎿섁섂섃썍썎썏][스쓰]|지랄|니[애에]미|갈[0-9]*보[^가-힣]|[뻐뻑뻒뻙뻨][0-9]*[뀨큐킹낑)|꼬추|곧휴|[가-힣]슬아치|자박꼼|[병븅]딱|빨통|[사싸](이코|가지|까시)|육시[랄럴]|육실[알얼할헐]|즐[^가-힣]|찌(질이|랭이)|찐따|찐찌버거|창[녀놈]|[가-힣]{2,}충[^가-힣]|[가-힣]{2,}츙|부녀자|화냥년|환[양향]년|호[구모]|조[선센][징]|조센|[쪼쪽쪾]([발빨]이|[바빠]리)|盧|무현|찌끄[레래]기|(하악){2,}|하[앍앜]|[낭당랑앙항남담람암함][ ]?[가-힣]+[띠찌]|느[금급]마|文在|在寅|(?<=[^\n])[家哥]|속냐|[tT]l[qQ]kf|Wls', | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.