-
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 branch 'develop' into epic/moneymong-122-로그인-회원가입
- Loading branch information
Showing
41 changed files
with
649 additions
and
175 deletions.
There are no files selected for viewing
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
66 changes: 66 additions & 0 deletions
66
.../main/java/com/moneymong/moneymong/design_system/component/selection/SelectionDefaults.kt
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,66 @@ | ||
package com.moneymong.moneymong.design_system.component.selection | ||
|
||
import androidx.compose.ui.graphics.Color | ||
import com.moneymong.moneymong.design_system.theme.Blue01 | ||
import com.moneymong.moneymong.design_system.theme.Blue04 | ||
import com.moneymong.moneymong.design_system.theme.Gray03 | ||
import com.moneymong.moneymong.design_system.theme.Gray04 | ||
import com.moneymong.moneymong.design_system.theme.Gray05 | ||
import com.moneymong.moneymong.design_system.theme.White | ||
|
||
|
||
enum class MDSSelectionType( | ||
val backgroundColor: Color, | ||
val contentColor: Color | ||
) { | ||
PRIMARY( | ||
backgroundColor = Blue04, | ||
contentColor = White | ||
), | ||
SECONDARY( | ||
backgroundColor = Blue01, | ||
contentColor = Blue04 | ||
) | ||
} | ||
|
||
internal val unSelectedBackgroundColor = White | ||
internal val unSelectedContentColor = Gray05 | ||
|
||
internal val disabledBackgroundColor = Gray03 | ||
internal val disabledContentColor = Gray04 | ||
|
||
internal val selectionBackgroundColor: ( | ||
enabled: Boolean, | ||
isSelected: Boolean, | ||
type: MDSSelectionType | ||
) -> Color = { enabled, isSelected, type -> | ||
when { | ||
enabled.not() -> disabledBackgroundColor | ||
isSelected.not() -> unSelectedBackgroundColor | ||
else -> type.backgroundColor | ||
} | ||
} | ||
|
||
internal val selectionContentColor: ( | ||
enabled: Boolean, | ||
isSelected: Boolean, | ||
type: MDSSelectionType | ||
) -> Color = { enabled, isSelected, type -> | ||
when { | ||
enabled.not() -> disabledContentColor | ||
isSelected.not() -> unSelectedContentColor | ||
else -> type.contentColor | ||
} | ||
} | ||
|
||
internal val selectionBorderColor: ( | ||
enabled: Boolean, | ||
isSelected: Boolean, | ||
type: MDSSelectionType | ||
) -> Color = { enabled, isSelected, type -> | ||
when { | ||
enabled.not() -> disabledBackgroundColor | ||
isSelected.not() -> Gray03 | ||
else -> type.backgroundColor | ||
} | ||
} |
25 changes: 0 additions & 25 deletions
25
.../src/main/java/com/moneymong/moneymong/design_system/component/selection/SelectionType.kt
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
core/model/src/main/java/com/moneymong/moneymong/model/sign/UnivResponse.kt
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,6 +1,6 @@ | ||
package com.moneymong.moneymong.model.sign | ||
|
||
data class UnivResponse( | ||
val universityName: String, | ||
val universityName: String?, | ||
val grade: Int | ||
) |
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
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
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
10 changes: 8 additions & 2 deletions
10
.../src/main/java/com/moneymong/moneymong/data/datasource/signup/UnivRemoteDataSourceImpl.kt
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,17 +1,23 @@ | ||
package com.moneymong.moneymong.data.datasource.signup | ||
|
||
import com.moneymong.moneymong.network.api.UniversityApi | ||
import com.moneymong.moneymong.model.sign.SearchQueryRequest | ||
import com.moneymong.moneymong.model.sign.UnivRequest | ||
import com.moneymong.moneymong.model.sign.UnivResponse | ||
import com.moneymong.moneymong.model.sign.UniversitiesResponse | ||
import com.moneymong.moneymong.network.api.UniversityApi | ||
import javax.inject.Inject | ||
|
||
class UnivRemoteDataSourceImpl @Inject constructor(private val universityApi: UniversityApi) : UnivRemoteDataSource { | ||
class UnivRemoteDataSourceImpl @Inject constructor(private val universityApi: UniversityApi) : | ||
UnivRemoteDataSource { | ||
override suspend fun createUniv(body: UnivRequest): Result<Unit> { | ||
return universityApi.createUniv(body = body) | ||
} | ||
|
||
override suspend fun searchUniv(searchQuery: SearchQueryRequest): Result<UniversitiesResponse> { | ||
return universityApi.searchUniv(searchQuery.searchQuery) | ||
} | ||
|
||
override suspend fun getMyUniv(): Result<UnivResponse> { | ||
return universityApi.getMyUniv() | ||
} | ||
} |
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
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.