Skip to content

Commit

Permalink
홈 패키지 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
leesa-l committed Nov 21, 2023
1 parent d2e9cc2 commit 09ff5ba
Show file tree
Hide file tree
Showing 12 changed files with 104 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@ import com.dkin.chevit.core.mvi.MVIComposeFragment
import com.dkin.chevit.presentation.deeplink.DeepLink
import com.dkin.chevit.presentation.deeplink.DeepLink.OnBoarding
import com.dkin.chevit.presentation.deeplink.deepLink
import com.dkin.chevit.presentation.home.MyPageEffect.NavigateToNotificationSetting
import com.dkin.chevit.presentation.home.MyPageEffect.NavigateToOnBoarding
import com.dkin.chevit.presentation.home.MyPageEffect.NavigateToProfileSetting
import com.dkin.chevit.presentation.home.MyPageEffect.NavigateToTerms
import com.dkin.chevit.presentation.home.contents.template.TemplateEffect
import com.dkin.chevit.presentation.home.contents.template.TemplateState
import com.dkin.chevit.presentation.home.contents.template.TemplateViewModel
import com.dkin.chevit.presentation.home.contents.user.MyPageEffect
import com.dkin.chevit.presentation.home.contents.user.MyPageEffect.NavigateToNotificationSetting
import com.dkin.chevit.presentation.home.contents.user.MyPageEffect.NavigateToOnBoarding
import com.dkin.chevit.presentation.home.contents.user.MyPageEffect.NavigateToProfileSetting
import com.dkin.chevit.presentation.home.contents.user.MyPageEffect.NavigateToTerms
import com.dkin.chevit.presentation.home.contents.user.MyPageIntent
import com.dkin.chevit.presentation.home.contents.user.MyPageState
import com.dkin.chevit.presentation.home.contents.user.MyPageViewModel
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import com.dkin.chevit.presentation.home.component.BottomNavigation
import com.dkin.chevit.presentation.home.contents.HomeTabContents
import com.dkin.chevit.presentation.home.contents.SearchTabContents
import com.dkin.chevit.presentation.home.contents.template.TemplateTabContents
import com.dkin.chevit.presentation.home.contents.template.TemplateViewModel
import com.dkin.chevit.presentation.home.contents.user.MyPageViewModel
import com.dkin.chevit.presentation.home.contents.user.UserTabContents
import com.dkin.chevit.presentation.resource.ChevitTheme
import kotlinx.coroutines.launch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.dkin.chevit.presentation.home
package com.dkin.chevit.presentation.home.contents.template

import androidx.compose.runtime.Stable
import com.dkin.chevit.core.mvi.ViewEffect
import com.dkin.chevit.core.mvi.ViewIntent
import com.dkin.chevit.core.mvi.ViewState
import com.dkin.chevit.presentation.home.model.Template
import com.dkin.chevit.presentation.home.contents.template.model.Template

sealed interface TemplateIntent : ViewIntent

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import com.dkin.chevit.presentation.home.TemplateState
import com.dkin.chevit.presentation.home.TemplateViewModel
import com.dkin.chevit.presentation.home.model.Template
import com.dkin.chevit.presentation.home.contents.template.model.Template
import com.dkin.chevit.presentation.resource.util.clickableNoRipple
import com.dkin.chevit.presentation.resource.ChevitButtonFillMedium
import com.dkin.chevit.presentation.resource.ChevitFloatingButton
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package com.dkin.chevit.presentation.home
package com.dkin.chevit.presentation.home.contents.template

import com.dkin.chevit.core.mvi.MVIViewModel
import com.dkin.chevit.presentation.home.model.Template
import com.dkin.chevit.presentation.home.contents.template.TemplateEffect
import com.dkin.chevit.presentation.home.contents.template.TemplateIntent
import com.dkin.chevit.presentation.home.contents.template.TemplateState
import com.dkin.chevit.presentation.home.contents.template.model.Template
import com.dkin.chevit.presentation.resource.TemplateColor
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dkin.chevit.presentation.home.model
package com.dkin.chevit.presentation.home.contents.template.model

import com.dkin.chevit.presentation.resource.TemplateColor

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dkin.chevit.presentation.home
package com.dkin.chevit.presentation.home.contents.user

import androidx.compose.runtime.Stable
import com.dkin.chevit.core.mvi.ViewEffect
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
package com.dkin.chevit.presentation.home
package com.dkin.chevit.presentation.home.contents.user

import com.dkin.chevit.core.mvi.MVIViewModel
import com.dkin.chevit.domain.base.get
import com.dkin.chevit.domain.base.onComplete
import com.dkin.chevit.domain.usecase.auth.GetUserUseCase
import com.dkin.chevit.domain.usecase.auth.SignOutUseCase
import com.dkin.chevit.domain.usecase.auth.WithDrawUserUseCase
import com.dkin.chevit.domain.usecase.notification.GetNotificationSettingUseCase
import com.dkin.chevit.domain.usecase.notification.UpdateNotificationEnableStateUseCase
import com.dkin.chevit.presentation.home.MyPageIntent.AlarmSwitchClicked
import com.dkin.chevit.presentation.home.MyPageIntent.NotificationSettingClicked
import com.dkin.chevit.presentation.home.MyPageIntent.ProfileSettingClicked
import com.dkin.chevit.presentation.home.MyPageIntent.SignOutClicked
import com.dkin.chevit.presentation.home.MyPageIntent.TermsClicked
import com.dkin.chevit.presentation.home.MyPageIntent.ViewCreated
import com.dkin.chevit.presentation.home.MyPageIntent.WithDrawClicked
import com.dkin.chevit.presentation.home.contents.user.MyPageEffect
import com.dkin.chevit.presentation.home.contents.user.MyPageIntent
import com.dkin.chevit.presentation.home.contents.user.MyPageIntent.AlarmSwitchClicked
import com.dkin.chevit.presentation.home.contents.user.MyPageIntent.NotificationSettingClicked
import com.dkin.chevit.presentation.home.contents.user.MyPageIntent.ProfileSettingClicked
import com.dkin.chevit.presentation.home.contents.user.MyPageIntent.SignOutClicked
import com.dkin.chevit.presentation.home.contents.user.MyPageIntent.TermsClicked
import com.dkin.chevit.presentation.home.contents.user.MyPageIntent.ViewCreated
import com.dkin.chevit.presentation.home.contents.user.MyPageIntent.WithDrawClicked
import com.dkin.chevit.presentation.home.contents.user.MyPageState
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
import kotlinx.coroutines.awaitAll

@HiltViewModel
class MyPageViewModel @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.unit.dp
import androidx.lifecycle.Lifecycle
import com.dkin.chevit.presentation.home.MyPageIntent
import com.dkin.chevit.presentation.home.MyPageState
import com.dkin.chevit.presentation.home.MyPageViewModel
import com.dkin.chevit.presentation.resource.ChevitButtonChip
import com.dkin.chevit.presentation.resource.ChevitTheme
import com.dkin.chevit.presentation.resource.icon.ChevitIcon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import androidx.navigation.compose.composable
import androidx.navigation.compose.dialog
import androidx.navigation.compose.rememberNavController
import com.dkin.chevit.presentation.home.HomeViewModel
import com.dkin.chevit.presentation.home.MyPageIntent
import com.dkin.chevit.presentation.home.MyPageViewModel
import com.dkin.chevit.presentation.resource.ChevitDialog
import com.dkin.chevit.presentation.resource.util.clickableNoRipple

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
package com.dkin.chevit.presentation.resource.icon

import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.ImageVector.Builder
import androidx.compose.ui.graphics.vector.group
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

public val ChevitIcon.IconCameraFill: ImageVector
get() {
if (_iconCameraFill != null) {
return _iconCameraFill!!
}
_iconCameraFill = Builder(name = "IconCameraFill", defaultWidth = 25.0.dp, defaultHeight =
25.0.dp, viewportWidth = 25.0f, viewportHeight = 25.0f).apply {
group {
path(fill = SolidColor(Color(0xFFffffff)), stroke = null, strokeLineWidth = 0.0f,
strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,
pathFillType = NonZero) {
moveTo(9.9648f, 3.4558f)
horizontalLineTo(15.9648f)
lineTo(17.9648f, 5.4558f)
horizontalLineTo(21.9648f)
curveTo(22.2301f, 5.4558f, 22.4844f, 5.5612f, 22.672f, 5.7487f)
curveTo(22.8595f, 5.9362f, 22.9648f, 6.1906f, 22.9648f, 6.4558f)
verticalLineTo(20.4558f)
curveTo(22.9648f, 20.721f, 22.8595f, 20.9754f, 22.672f, 21.1629f)
curveTo(22.4844f, 21.3505f, 22.2301f, 21.4558f, 21.9648f, 21.4558f)
horizontalLineTo(3.9648f)
curveTo(3.6996f, 21.4558f, 3.4453f, 21.3505f, 3.2577f, 21.1629f)
curveTo(3.0702f, 20.9754f, 2.9648f, 20.721f, 2.9648f, 20.4558f)
verticalLineTo(6.4558f)
curveTo(2.9648f, 6.1906f, 3.0702f, 5.9362f, 3.2577f, 5.7487f)
curveTo(3.4453f, 5.5612f, 3.6996f, 5.4558f, 3.9648f, 5.4558f)
horizontalLineTo(7.9648f)
lineTo(9.9648f, 3.4558f)
close()
moveTo(12.9648f, 19.4558f)
curveTo(14.5561f, 19.4558f, 16.0823f, 18.8237f, 17.2075f, 17.6985f)
curveTo(18.3327f, 16.5732f, 18.9648f, 15.0471f, 18.9648f, 13.4558f)
curveTo(18.9648f, 11.8645f, 18.3327f, 10.3384f, 17.2075f, 9.2132f)
curveTo(16.0823f, 8.0879f, 14.5561f, 7.4558f, 12.9648f, 7.4558f)
curveTo(11.3735f, 7.4558f, 9.8474f, 8.0879f, 8.7222f, 9.2132f)
curveTo(7.597f, 10.3384f, 6.9648f, 11.8645f, 6.9648f, 13.4558f)
curveTo(6.9648f, 15.0471f, 7.597f, 16.5732f, 8.7222f, 17.6985f)
curveTo(9.8474f, 18.8237f, 11.3735f, 19.4558f, 12.9648f, 19.4558f)
close()
moveTo(12.9648f, 17.4558f)
curveTo(11.904f, 17.4558f, 10.8866f, 17.0344f, 10.1364f, 16.2842f)
curveTo(9.3863f, 15.5341f, 8.9648f, 14.5167f, 8.9648f, 13.4558f)
curveTo(8.9648f, 12.3949f, 9.3863f, 11.3775f, 10.1364f, 10.6274f)
curveTo(10.8866f, 9.8772f, 11.904f, 9.4558f, 12.9648f, 9.4558f)
curveTo(14.0257f, 9.4558f, 15.0431f, 9.8772f, 15.7933f, 10.6274f)
curveTo(16.5434f, 11.3775f, 16.9648f, 12.3949f, 16.9648f, 13.4558f)
curveTo(16.9648f, 14.5167f, 16.5434f, 15.5341f, 15.7933f, 16.2842f)
curveTo(15.0431f, 17.0344f, 14.0257f, 17.4558f, 12.9648f, 17.4558f)
close()
}
}
}
.build()
return _iconCameraFill!!
}

private var _iconCameraFill: ImageVector? = null
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 09ff5ba

Please sign in to comment.