Skip to content

Commit 2cc98d4

Browse files
authored
feat: refresh default avatars (#690)
* feat: refresh default avatars Signed-off-by: Bob Du <i@bobdu.cc> * feat: refine default avatar Signed-off-by: Bob Du <i@bobdu.cc> --------- Signed-off-by: Bob Du <i@bobdu.cc>
1 parent 061f3c3 commit 2cc98d4

File tree

8 files changed

+29
-7
lines changed

8 files changed

+29
-7
lines changed

service/src/utils/templates/mail.admin.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class="avatar"
1919
style="
2020
background-color: #eee;
21-
background-image: url('https://ghproxy.com/https://raw.githubusercontent.com/Chanzhaoyu/chatgpt-web/main/src/assets/avatar.jpg');
21+
background-image: url('https://ghproxy.com/https://raw.githubusercontent.com/Chanzhaoyu/chatgpt-web/main/src/assets/avatar.svg');
2222
width: 10em;
2323
height: 10em;
2424
margin: 5em auto 0;

service/src/utils/templates/mail.notice.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class="avatar"
1919
style="
2020
background-color: #eee;
21-
background-image: url('https://ghproxy.com/https://raw.githubusercontent.com/Chanzhaoyu/chatgpt-web/main/src/assets/avatar.jpg');
21+
background-image: url('https://ghproxy.com/https://raw.githubusercontent.com/Chanzhaoyu/chatgpt-web/main/src/assets/avatar.svg');
2222
width: 10em;
2323
height: 10em;
2424
margin: 5em auto 0;

service/src/utils/templates/mail.resetpassword.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class="avatar"
1919
style="
2020
background-color: #eee;
21-
background-image: url('https://ghproxy.com/https://raw.githubusercontent.com/Chanzhaoyu/chatgpt-web/main/src/assets/avatar.jpg');
21+
background-image: url('https://ghproxy.com/https://raw.githubusercontent.com/Chanzhaoyu/chatgpt-web/main/src/assets/avatar.svg');
2222
width: 10em;
2323
height: 10em;
2424
margin: 5em auto 0;

service/src/utils/templates/mail.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class="avatar"
1919
style="
2020
background-color: #eee;
21-
background-image: url('https://ghproxy.com/https://raw.githubusercontent.com/Chanzhaoyu/chatgpt-web/main/src/assets/avatar.jpg');
21+
background-image: url('https://ghproxy.com/https://raw.githubusercontent.com/Chanzhaoyu/chatgpt-web/main/src/assets/avatar.svg');
2222
width: 10em;
2323
height: 10em;
2424
margin: 5em auto 0;

src/assets/avatar.jpg

-5.03 KB
Binary file not shown.

src/assets/avatar.svg

Lines changed: 17 additions & 0 deletions
Loading

src/components/common/UserAvatar/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang='ts'>
2-
import defaultAvatar from '@/assets/avatar.jpg'
2+
import defaultAvatar from '@/assets/avatar.svg'
33
import { useBasicLayout } from '@/hooks/useBasicLayout'
44
import { useAuthStore, useUserStore } from '@/store'
55
import { isString } from '@/utils/is'

src/views/chat/components/Message/Avatar.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts" setup>
2-
import defaultAvatar from '@/assets/avatar.jpg'
2+
import defaultAvatar from '@/assets/avatar.svg'
33
import { useUserStore } from '@/store'
44
import { isString } from '@/utils/is'
55
@@ -21,7 +21,12 @@ const avatar = computed(() => userStore.userInfo.avatar)
2121
</template>
2222
<span v-else class="text-[28px] dark:text-white">
2323
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" aria-hidden="true" width="1em" height="1em">
24-
<path d="M29.71,13.09A8.09,8.09,0,0,0,20.34,2.68a8.08,8.08,0,0,0-13.7,2.9A8.08,8.08,0,0,0,2.3,18.9,8,8,0,0,0,3,25.45a8.08,8.08,0,0,0,8.69,3.87,8,8,0,0,0,6,2.68,8.09,8.09,0,0,0,7.7-5.61,8,8,0,0,0,5.33-3.86A8.09,8.09,0,0,0,29.71,13.09Zm-12,16.82a6,6,0,0,1-3.84-1.39l.19-.11,6.37-3.68a1,1,0,0,0,.53-.91v-9l2.69,1.56a.08.08,0,0,1,.05.07v7.44A6,6,0,0,1,17.68,29.91ZM4.8,24.41a6,6,0,0,1-.71-4l.19.11,6.37,3.68a1,1,0,0,0,1,0l7.79-4.49V22.8a.09.09,0,0,1,0,.08L13,26.6A6,6,0,0,1,4.8,24.41ZM3.12,10.53A6,6,0,0,1,6.28,7.9v7.57a1,1,0,0,0,.51.9l7.75,4.47L11.85,22.4a.14.14,0,0,1-.09,0L5.32,18.68a6,6,0,0,1-2.2-8.18Zm22.13,5.14-7.78-4.52L20.16,9.6a.08.08,0,0,1,.09,0l6.44,3.72a6,6,0,0,1-.9,10.81V16.56A1.06,1.06,0,0,0,25.25,15.67Zm2.68-4-.19-.12-6.36-3.7a1,1,0,0,0-1.05,0l-7.78,4.49V9.2a.09.09,0,0,1,0-.09L19,5.4a6,6,0,0,1,8.91,6.21ZM11.08,17.15,8.38,15.6a.14.14,0,0,1-.05-.08V8.1a6,6,0,0,1,9.84-4.61L18,3.6,11.61,7.28a1,1,0,0,0-.53.91ZM12.54,14,16,12l3.47,2v4L16,20l-3.47-2Z" fill="currentColor" />
24+
<g fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
25+
<rect x="6" y="8" width="20" height="16" rx="3" />
26+
<circle cx="12.5" cy="16" r="2" />
27+
<circle cx="19.5" cy="16" r="2" />
28+
<path d="M16 6v-3" />
29+
</g>
2530
</svg>
2631
</span>
2732
</template>

0 commit comments

Comments
 (0)