update icon and styles
This commit is contained in:
1 parent
de088445f6
commit
301dab1ca5
10 files changed
+186
-17
No files matched your search
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<div class="navigator">
|
||||
<div class="conversations">
|
||||
<navigator-item icon="fa-regular fa-user" :title="$t('common.nav.newChat')" @click="onNewConversation" />
|
||||
<navigator-item icon="fa-solid fa-plus" :title="$t('common.nav.newChat')" @click="onNewConversation" />
|
||||
<navigator-item
|
||||
v-for="(conversation, conversationIndex) in conversations"
|
||||
:key="conversationIndex"
|
||||
icon="fa-regular fa-user"
|
||||
icon="fa-regular fa-comment"
|
||||
:title="conversation.title"
|
||||
@click="onSelectConversation(conversation.id)"
|
||||
/>
|
||||
@@ -13,17 +13,17 @@
|
||||
<div class="operators">
|
||||
<navigator-item
|
||||
v-show="!confirming"
|
||||
icon="fa-regular fa-user"
|
||||
icon="fa-solid fa-trash"
|
||||
:title="$t('common.nav.clearConversations')"
|
||||
@click="confirming = true"
|
||||
/>
|
||||
<navigator-item
|
||||
v-show="confirming"
|
||||
icon="fa-regular fa-user"
|
||||
icon="fa-solid fa-check"
|
||||
:title="$t('common.nav.confirmClearConversations')"
|
||||
@click="onClearConversations"
|
||||
/>
|
||||
<navigator-item icon="fa-regular fa-user" :title="$t('common.nav.logOut')" @click="onLogout" />
|
||||
<navigator-item icon="fa-solid fa-arrow-right-from-bracket" :title="$t('common.nav.logOut')" @click="onLogout" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
<template>
|
||||
<div class="introduction">
|
||||
<h2 class="title">ChatGPT</h2>
|
||||
<el-row class="introduction-items" :gutter="15">
|
||||
<el-col :span="8">
|
||||
<div class="text-center">
|
||||
<font-awesome-icon icon="fa-regular fa-sun" class="icon icon-rotate" />
|
||||
</div>
|
||||
<h3 class="subtitle">{{ $t('conversation.title.example') }}</h3>
|
||||
<introduction-item
|
||||
:content="$t('conversation.message.writeCode')"
|
||||
class="cursor-pointer"
|
||||
@click="$emit('draft', $t('conversation.message.writeCode'))"
|
||||
/>
|
||||
<introduction-item
|
||||
:content="$t('conversation.message.writeEmail')"
|
||||
class="cursor-pointer"
|
||||
@click="$emit('draft', $t('conversation.message.writeEmail'))"
|
||||
/>
|
||||
<introduction-item
|
||||
:content="$t('conversation.message.explainDefinition')"
|
||||
class="cursor-pointer"
|
||||
@click="$emit('draft', $t('conversation.message.explainDefinition'))"
|
||||
/>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<div class="text-center">
|
||||
<font-awesome-icon icon="fa-solid fa-bolt" class="icon icon-rotate" />
|
||||
</div>
|
||||
<h3 class="subtitle">{{ $t('conversation.title.capabilities') }}</h3>
|
||||
<introduction-item :content="$t('conversation.message.rememberHistory')" />
|
||||
<introduction-item :content="$t('conversation.message.supportStream')" />
|
||||
<introduction-item :content="$t('conversation.message.rejectInvalidPrompt')" />
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<div class="text-center">
|
||||
<font-awesome-icon icon="fa-solid fa-triangle-exclamation" class="icon icon-rotate" />
|
||||
</div>
|
||||
<h3 class="subtitle">{{ $t('conversation.title.limitations') }}</h3>
|
||||
<introduction-item :content="$t('conversation.message.generateInCorrect')" />
|
||||
<introduction-item :content="$t('conversation.message.generateHarmfulInfo')" />
|
||||
<introduction-item :content="$t('conversation.message.onlyKnowBefore2021')" />
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import IntroductionItem from './IntroductionItem.vue';
|
||||
import { ElRow, ElCol } from 'element-plus';
|
||||
export default defineComponent({
|
||||
name: 'ConversationIntroduction',
|
||||
components: {
|
||||
FontAwesomeIcon,
|
||||
IntroductionItem,
|
||||
ElRow,
|
||||
ElCol
|
||||
},
|
||||
emits: ['draft'],
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
computed: {}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.introduction {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
|
||||
.title {
|
||||
height: 70px;
|
||||
text-align: center;
|
||||
display: block;
|
||||
font-size: 36px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
.introduction-items {
|
||||
height: fit-content;
|
||||
margin-bottom: 100px;
|
||||
.icon {
|
||||
font-size: 20px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.subtitle {
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.introduction-item {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div class="introduction-item">
|
||||
{{ content }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ConversationIntroductionItem',
|
||||
props: {
|
||||
content: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
computed: {}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.introduction-item {
|
||||
font-size: 14px;
|
||||
background-color: #eee;
|
||||
color: #333;
|
||||
padding: 10px 20px;
|
||||
}
|
||||
</style>
|
||||
@@ -35,9 +35,6 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
computed: {
|
||||
conversationId() {
|
||||
return this.$route.params?.id?.toString();
|
||||
|
||||
@@ -28,9 +28,6 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
computed: {
|
||||
conversationId() {
|
||||
return this.$route.params?.id?.toString();
|
||||
|
||||
Reference in new issue
Block a user