Skip to content

Commit

Permalink
更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyu committed Feb 3, 2023
1 parent cccfb4d commit 7f66887
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 11 additions & 1 deletion app/src/main/java/com/yx/chatrobot/ui/component/DrawerViews.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.platform.LocalUriHandler
import androidx.compose.ui.platform.UriHandler
import androidx.compose.ui.res.colorResource
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.font.FontWeight
Expand All @@ -24,7 +26,6 @@ import com.yx.chatrobot.ui.AppViewModelProvider
import kotlinx.coroutines.launch



@Composable
fun DrawerMenuView(
currentScreen: MutableState<Screen>,
Expand Down Expand Up @@ -117,6 +118,7 @@ fun ModelDrawerContentBody(
scaffoldState: ScaffoldState,
) {
val scope = rememberCoroutineScope()
val uriHandler: UriHandler = LocalUriHandler.current
Column(modifier = Modifier.fillMaxWidth()) {
screens.forEach { screen ->
DrawerButton(
Expand All @@ -130,6 +132,14 @@ fun ModelDrawerContentBody(
}
})
}

DrawerButton(
icon = Icons.Filled.OpenInNew,
isSelected = false,
label = "开源",
action = {
uriHandler.openUri("https://gitee.com/jdysya/chatRobot")
})
}
}

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<resources>
<string name="app_name">聊天机器人</string>
<string name="help_text">
这是一个基于OpenAI官方提供的 api 所制作而成的聊天机器人应用,配置项中的各项参数的设置请参考官方文档
这是一个基于OpenAI官方提供的 api 所制作而成的聊天机器人应用,配置项中的各项参数的设置请参考官方文档,同时本项目已开源,若
需要了解后续更新以及更详细的文档,请关注开源仓库,我会及时推送代码以及更新发行版。
</string>

<string name="help_author">
Expand Down

0 comments on commit 7f66887

Please sign in to comment.