Skip to content

Commit d3d574b

Browse files
committed
style: improve style
style improve
1 parent 249cc61 commit d3d574b

File tree

8 files changed

+25
-24
lines changed

8 files changed

+25
-24
lines changed

app/pages/auth/login.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ useHead({
7373
</script>
7474

7575
<template>
76-
<div class="max-w-md mx-auto pt-16">
76+
<div class="max-w-md mx-auto px-4 pt-16">
7777
<h1 class="text-3xl font-bold text-center mb-8">
7878
登录
7979
</h1>
@@ -103,7 +103,7 @@ useHead({
103103

104104
<div>
105105
<p class="block text-sm font-medium mb-3">
106-
选择登录方式
106+
登录方式
107107
</p>
108108
<div class="space-y-3">
109109
<label

app/pages/auth/register.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ useHead({
6969
</script>
7070

7171
<template>
72-
<div class="max-w-md mx-auto pt-16">
72+
<div class="max-w-md mx-auto px-4 pt-16">
7373
<h1 class="text-3xl font-bold text-center mb-8">
7474
注册
7575
</h1>

app/pages/auth/reset.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ useHead({
7676
</script>
7777

7878
<template>
79-
<div class="max-w-md mx-auto pt-16">
79+
<div class="max-w-md mx-auto px-4 pt-16">
8080
<div class="space-y-2 text-center">
8181
<p class="text-xs uppercase tracking-[0.25em] text-warning">
8282
必须操作

app/pages/index.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const maimaiVersion = computed(() => {
9696
<button class="cursor-pointer" @click="triggerCrawl({ date: dateLimit || '', time: timeLimit || '', maid: maimaiMaid || '' })">
9797
<div class="p-1 rounded-full bg-white dark:bg-gray-800" aria-label="rocket" role="img">
9898
<svg
99-
xmlns="http://www.w3.org/2000/svg" style="width: 2.8vmin;" viewBox="-4 -4 32 32"
99+
xmlns="http://www.w3.org/2000/svg" class="footer-icon" viewBox="-4 -4 32 32"
100100
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
101101
stroke-linejoin="round" aria-hidden="true"
102102
>
@@ -115,7 +115,7 @@ const maimaiVersion = computed(() => {
115115
<NuxtLink to="/preference">
116116
<div class="p-1 rounded-full bg-white dark:bg-gray-800" aria-label="settings" role="img">
117117
<svg
118-
xmlns="http://www.w3.org/2000/svg" style="width: 2.8vmin;" viewBox="-4 -4 32 32"
118+
xmlns="http://www.w3.org/2000/svg" class="footer-icon" viewBox="-4 -4 32 32"
119119
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
120120
stroke-linejoin="round" aria-hidden="true"
121121
>
@@ -152,7 +152,7 @@ const maimaiVersion = computed(() => {
152152
}
153153
154154
.footer-widget {
155-
width: 85%;
155+
width: 80%;
156156
padding-left: 3%;
157157
padding-right: 3%;
158158
}
@@ -162,6 +162,10 @@ const maimaiVersion = computed(() => {
162162
line-height: 120%;
163163
}
164164
165+
.footer-icon {
166+
width: clamp(2dvh, 4dvw, 3vmin);;
167+
}
168+
165169
.qr-front {
166170
bottom: 7%;
167171
right: 1%;

app/pages/preference.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,37 +159,37 @@ function goToPrev() {
159159
<section class="rounded-box border border-base-200 bg-base-100 p-4 shadow-sm">
160160
<div class="flex flex-wrap items-center gap-4">
161161
<div class="avatar">
162-
<div class="w-16 rounded-full border border-base-200">
162+
<div class="w-10 rounded-full border border-base-200">
163163
<img src="../assets/icons/logo.webp">
164164
</div>
165165
</div>
166166
<div class="flex-1">
167-
<p class="text-lg font-semibold">
167+
<p class="text-md font-semibold">
168168
{{ user?.username }}
169169
</p>
170-
<p class="text-sm text-base-content/70">
170+
<p class="text-xs text-base-content/70">
171171
{{ user?.email }}
172172
</p>
173173
</div>
174-
<div class="flex items-center gap-2">
174+
<div class="flex items-center gap-1">
175175
<button class="btn btn-outline btn-sm" type="button" :disabled="!loggedIn" @click="handleLogout">
176-
<span>退出登录</span>
176+
<span>登出</span>
177177
</button>
178-
<div class="dropdown dropdown-end">
179-
<div tabindex="0" role="button" class="btn btn-ghost btn-sm">
178+
<details class="dropdown">
179+
<summary class="btn btn-ghost btn-sm">
180180
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
181181
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h.01M12 12h.01M19 12h.01" />
182182
</svg>
183-
</div>
184-
<ul tabindex="0" class="dropdown-content menu menu-sm bg-base-100 rounded-box border border-base-200 z-10 w-48 p-2 shadow">
183+
</summary>
184+
<ul class="menu dropdown-content bg-base-300 rounded-box z-1 w-52 p-2 shadow-sm">
185185
<li>
186186
<NuxtLink class="justify-between" to="/auth/merge">
187187
合并账户
188188
<span class="badge badge-outline badge-xs">Beta</span>
189189
</NuxtLink>
190190
</li>
191191
</ul>
192-
</div>
192+
</details>
193193
</div>
194194
</div>
195195
</section>

server/api/[...leporid].ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ export default defineEventHandler(async (event) => {
4444
{
4545
const method = event.node?.req?.method ?? 'UNKNOWN'
4646
const userId = session?.user?.username ?? 'anonymous'
47+
const safeUrl = event.node.req.url?.split('?')[0] ?? ''
4748

48-
console.info(
49-
`[proxy] ${new Date().toISOString()} ${method} ${event.node.req.url} -> ${proxyUrl} user=${userId}`,
50-
)
49+
console.info(`[proxy] ${new Date().toISOString()} ${method} ${safeUrl} -> ${proxyUrl} user=${userId}`)
5150
}
5251

5352
return proxyRequest(event, target, { headers })

server/api/otoge/[...otoge].ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ export default defineEventHandler(async (event) => {
88

99
{
1010
const method = event.node?.req?.method ?? 'UNKNOWN'
11+
const safeUrl = event.node.req.url?.split('?')[0] ?? ''
1112

12-
console.info(
13-
`[proxy] ${new Date().toISOString()} ${method} ${event.node.req.url} -> ${proxyUrl}`,
14-
)
13+
console.info(`[proxy] ${new Date().toISOString()} ${method} ${safeUrl} -> ${proxyUrl}`)
1514
}
1615

1716
return proxyRequest(event, target)

server/plugins/mitmproxy.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,5 @@ export default defineNitroPlugin((_nitroApp) => {
9191
}
9292
})
9393

94-
console.log(`Starting mitmproxy on ${config.mitmproxy.listenHost}:${config.mitmproxy.listenPort}`)
9594
proxy.listen({ port: config.mitmproxy.listenPort, host: config.mitmproxy.listenHost })
9695
})

0 commit comments

Comments
 (0)