-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
149 additions
and
3 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
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
15 changes: 15 additions & 0 deletions
15
apps/admin/src/pages/chat/components/ChatHistorySidebar/index.vue
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 @@ | ||
<script setup lang="ts"> | ||
defineOptions({ | ||
name: "ChatHistorySidebar", | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div> | ||
ChatHistorySidebar | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
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,49 @@ | ||
<script setup lang="ts"> | ||
import ChatHistorySidebar from "./ChatHistorySidebar/index.vue"; | ||
import ChatPanel from "./ChatPanel/index.vue"; | ||
import RoleManagementSidebar from "./RoleManagementSidebar/index.vue"; | ||
</script> | ||
|
||
<template> | ||
<!-- 采用了分栏布局,包括一个左侧边栏和一个右侧边栏,以及一个中央面板。 | ||
左侧边栏是用于管理系统角色的区域,允许用户创建、编辑和删除系统角色。 | ||
右侧边栏显示了每个角色的聊天记录,并且可以根据用户选择的角色动态加载相应的聊天记录。 | ||
中央面板则用于展示选定角色的实时对话界面,可能包含一个消息输入框以及用于加载历史对话记录的功能。 --> | ||
<div class="chat-layout rounded-2xl w-full h-full min-h-full "> | ||
<NLayout has-sider sider-placement="left" class="h-full"> | ||
<NLayoutSider | ||
collapse-mode="width" | ||
:collapsed-width="240" | ||
:width="360" | ||
:native-scrollbar="true" | ||
show-trigger="arrow-circle" | ||
content-style="padding: 24px;" | ||
bordered | ||
> | ||
<ChatHistorySidebar /> | ||
</NLayoutSider> | ||
<NLayoutContent> | ||
<NLayout has-sider sider-placement="right" class="h-full"> | ||
<NLayoutContent content-style="padding: 24px;"> | ||
<ChatPanel /> | ||
</NLayoutContent> | ||
<NLayoutSider | ||
collapse-mode="width" | ||
:collapsed-width="240" | ||
:width="360" | ||
:native-scrollbar="true" | ||
show-trigger="arrow-circle" | ||
content-style="padding: 24px;" | ||
bordered | ||
> | ||
<RoleManagementSidebar /> | ||
</NLayoutSider> | ||
</NLayout> | ||
</NLayoutContent> | ||
</NLayout> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
13 changes: 13 additions & 0 deletions
13
apps/admin/src/pages/chat/components/ChatPanel/ChatConversation.vue
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,13 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<div> | ||
ChatConversation | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
11 changes: 11 additions & 0 deletions
11
apps/admin/src/pages/chat/components/ChatPanel/Message.vue
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,11 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<div /> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
13 changes: 13 additions & 0 deletions
13
apps/admin/src/pages/chat/components/ChatPanel/MessageInput.vue
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,13 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<div> | ||
MessageInput | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
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,23 @@ | ||
<script setup lang="ts"> | ||
import MessageInput from "~/pages/chat/components/ChatPanel/MessageInput.vue"; | ||
import ChatConversation from "~/pages/chat/components/ChatPanel/ChatConversation.vue"; | ||
defineOptions({ | ||
name: "ChatPanel", | ||
}); | ||
</script> | ||
|
||
<template> | ||
<NSplit direction="vertical" :default-size="0.8"> | ||
<template #1> | ||
<ChatConversation /> | ||
</template> | ||
<template #2> | ||
<MessageInput /> | ||
</template> | ||
</NSplit> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
13 changes: 13 additions & 0 deletions
13
apps/admin/src/pages/chat/components/RoleManagementSidebar/index.vue
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,13 @@ | ||
<script setup lang="ts"> | ||
defineOptions({ | ||
name: "RoleManagementSidebar", | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div>RoleManagementSidebar</div> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
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