-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added the ability to turn on self-start
- Loading branch information
Showing
17 changed files
with
199 additions
and
89 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script setup lang="ts"> | ||
import { useSettingsStore } from '@/stores' | ||
const { shortcutKey } = storeToRefs(useSettingsStore()) | ||
</script> | ||
|
||
<template> | ||
<div class="text-5 flex h-full flex-col items-center justify-center gap-4"> | ||
<!-- 唤醒窗口 --> | ||
<span> | ||
<template v-for="(item, index) of shortcutKey" :key="index"> | ||
<a-typography-text code>{{ item }}</a-typography-text> | ||
<template v-if="index < shortcutKey.length - 1"> + </template> | ||
</template> | ||
唤醒窗口 | ||
</span> | ||
<!-- 换行 --> | ||
<span> | ||
<a-typography-text code>Shift</a-typography-text> + | ||
<a-typography-text code>Enter</a-typography-text> 换行 | ||
</span> | ||
<!-- 发送消息 --> | ||
<span><a-typography-text code>Enter</a-typography-text> 发送消息</span> | ||
</div> | ||
</template> |
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,11 +1,30 @@ | ||
<script setup lang="ts"> | ||
import { useSessionStore } from '@/stores' | ||
import { useSettingsStore, useSessionStore, useRoleStore } from '@/stores' | ||
const { currentSession } = storeToRefs(useSessionStore()) | ||
const { uuid } = storeToRefs(useSettingsStore()) | ||
const { currentSession, sessionDataList } = storeToRefs(useSessionStore()) | ||
const { currentRole } = storeToRefs(useRoleStore()) | ||
</script> | ||
|
||
<template> | ||
{{ currentSession }} | ||
<div class="flex-1 cursor-default overflow-auto"> | ||
<template v-if="sessionDataList.length"> | ||
<h3>当前session{{ currentSession?.id }}{{ currentSession?.title }}</h3> | ||
<div | ||
class="flex items-start p-2" | ||
v-for="(item, index) in sessionDataList" | ||
:key="item.time" | ||
> | ||
<Avatar class="w-14!" :value="index % 2 ? uuid : currentRole?.name" /> | ||
<div> | ||
{{ item.messages }} | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<!-- 当前无会话 --> | ||
<NoSession v-else /> | ||
</div> | ||
</template> | ||
|
||
<style scoped lang="scss"></style> |
Oops, something went wrong.