Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wangrui06 committed Apr 10, 2024
1 parent 2332293 commit 21c8845
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/MemoInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@



<Textarea autocomplete="new-text" v-model="content" rows="2" placeholder="今天发点什么呢?" class=" dark:bg-slate-500"></Textarea>
<Textarea autocomplete="new-text" v-model="content" rows="4" placeholder="今天发点什么呢?" class=" dark:bg-slate-500"></Textarea>
<div class="absolute right-2 bottom-1 cursor-pointer text-xl" @click="toggleShowEmoji" ref="showEmojiRef">😊</div>
</div>

Expand Down
3 changes: 2 additions & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Footer />
</div>
<div class="fixed right-10 bottom-10">
<LogIn :size="30" class="cursor-pointer my-4" color="#9FC84A"
<LogIn :size="30" class="cursor-pointer my-4" color="#9FC84A" v-if="!token"
@click="navigateTo('/login')" />
<Sun color="#FDE047" :size="30" class="cursor-pointer" v-if="colorMode.value === 'dark'"
@click="colorMode.value = 'light'" />
Expand All @@ -24,6 +24,7 @@ const colorMode = useColorMode()
const {data:res} = await useFetch('/api/user/settings/get')
useState<User>('userinfo', () => (res.value?.data as any as User))
const token = useCookie('token')
useHead({
Expand Down
1 change: 1 addition & 0 deletions prisma/migrations/20240410051113_/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
update User set coverUrl = '/cover.webp',avatarUrl = '/avatar.webp' where id = 1;
Binary file removed public/avatar.png
Binary file not shown.
Binary file added public/avatar.webp
Binary file not shown.
Binary file added public/cover.webp
Binary file not shown.

0 comments on commit 21c8845

Please sign in to comment.