fix: 采用选中的横排登录卡片
This commit is contained in:
@@ -0,0 +1,32 @@
|
|||||||
|
# impeccable-live-ignore-start
|
||||||
|
.impeccable/hook.cache.json
|
||||||
|
.impeccable/hook.pending.json
|
||||||
|
.impeccable/config.local.json
|
||||||
|
.impeccable/live/server.json
|
||||||
|
.impeccable/live/roots.json
|
||||||
|
.impeccable/live/app-root.json
|
||||||
|
.impeccable/live/inject-journal.json
|
||||||
|
.impeccable/live/sessions/
|
||||||
|
.impeccable/live/previews/
|
||||||
|
.impeccable/live/annotations/
|
||||||
|
.impeccable/live/artifacts/
|
||||||
|
.impeccable/live/accept-receipts/
|
||||||
|
.impeccable/live/locks/
|
||||||
|
.impeccable/live/cache/
|
||||||
|
.impeccable/live/manual-edit-apply-transaction.json
|
||||||
|
.impeccable/live/manual-edit-events.jsonl
|
||||||
|
.impeccable/live/manual-edit-evidence/
|
||||||
|
.impeccable/live/pending-manual-edits.json
|
||||||
|
.impeccable/live/deferred-svelte-component-accepts.json
|
||||||
|
.impeccable-live.json
|
||||||
|
.impeccable-live/
|
||||||
|
app/.impeccable-live/
|
||||||
|
src/.impeccable-live/
|
||||||
|
node_modules/.impeccable-live/
|
||||||
|
src/lib/impeccable/ImpeccableLiveRoot.svelte
|
||||||
|
src/lib/impeccable/__runtime.js
|
||||||
|
src/lib/impeccable/[0-9a-f]*/
|
||||||
|
plugins/impeccable-live.client.ts
|
||||||
|
app/plugins/impeccable-live.client.ts
|
||||||
|
src/plugins/impeccable-live.client.ts
|
||||||
|
# impeccable-live-ignore-end
|
||||||
@@ -146,33 +146,28 @@ async function finishNqi() {
|
|||||||
<template>
|
<template>
|
||||||
<div :class="purpose === 'pool' ? '' : 'gate'">
|
<div :class="purpose === 'pool' ? '' : 'gate'">
|
||||||
<ThemeButton v-if="purpose !== 'pool'" />
|
<ThemeButton v-if="purpose !== 'pool'" />
|
||||||
<section class="gate-card">
|
<section class="lv-side">
|
||||||
<div class="gate-brand">
|
<div class="lv-brand"><div class="lv-mark" aria-hidden="true">D</div><h1>{{ purpose === "pool" ? "添加账号" : "DecomEval" }}</h1></div>
|
||||||
<div class="brand-mark" aria-hidden="true">D</div>
|
<form @submit.prevent="submitLogin">
|
||||||
<h1>{{ purpose === "pool" ? "添加账号" : "DecomEval" }}</h1>
|
|
||||||
</div>
|
|
||||||
<form class="login-form" @submit.prevent="submitLogin">
|
|
||||||
<n-alert v-if="route.query.notice === 'already'" type="info">这个数据库已经安装过,请使用原来的管理员账号登录。</n-alert>
|
<n-alert v-if="route.query.notice === 'already'" type="info">这个数据库已经安装过,请使用原来的管理员账号登录。</n-alert>
|
||||||
<n-alert v-if="errorText" type="error">{{ errorText }}</n-alert>
|
<n-alert v-if="errorText" type="error">{{ errorText }}</n-alert>
|
||||||
<label>账号</label>
|
<label>账号</label>
|
||||||
<div class="login-field"><n-input v-model:value="username" @keyup.enter="submitLogin" /></div>
|
<n-input v-model:value="username" @keyup.enter="submitLogin" />
|
||||||
<label>密码</label>
|
<label>密码</label>
|
||||||
<div class="login-field"><n-input v-model:value="password" type="password" @keyup.enter="submitLogin" /></div>
|
<n-input v-model:value="password" type="password" @keyup.enter="submitLogin" />
|
||||||
<template v-if="mode === 'nqi' && captchaUrl">
|
<template v-if="mode === 'nqi' && captchaUrl">
|
||||||
<label>验证码</label>
|
<label>验证码</label>
|
||||||
<div class="login-field">
|
<div class="lv-captcha">
|
||||||
<n-input v-model:value="captcha" @keyup.enter="submitLogin" />
|
<n-input v-model:value="captcha" @keyup.enter="submitLogin" />
|
||||||
<img class="captcha" :src="captchaUrl" alt="验证码" @click="refreshCaptcha" />
|
<img class="captcha" :src="captchaUrl" alt="验证码" @click="refreshCaptcha" />
|
||||||
</div>
|
</div>
|
||||||
<template v-if="smsRequired">
|
<template v-if="smsRequired">
|
||||||
<label>短信验证码</label>
|
<label>短信验证码</label>
|
||||||
<div class="login-field"><n-input v-model:value="smsCode" @keyup.enter="submitLogin" /></div>
|
<n-input v-model:value="smsCode" @keyup.enter="submitLogin" />
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
<div class="login-submit">
|
|
||||||
<n-button v-if="mode === 'nqi' && captchaUrl" attr-type="button" :loading="busy" @click="sendSms">发送短信验证码</n-button>
|
<n-button v-if="mode === 'nqi' && captchaUrl" attr-type="button" :loading="busy" @click="sendSms">发送短信验证码</n-button>
|
||||||
<n-button class="gate-submit" type="primary" attr-type="submit" :loading="busy">{{ mode === "local" || captchaUrl ? "登录" : "继续" }}</n-button>
|
<n-button class="lv-go" type="primary" attr-type="submit" :loading="busy">{{ mode === "local" || captchaUrl ? "登录" : "继续" }}</n-button>
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+40
-19
@@ -106,32 +106,53 @@ button, input, select { font: inherit; }
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
letter-spacing: 0.12em;
|
letter-spacing: 0.12em;
|
||||||
}
|
}
|
||||||
.gate .gate-card:not(.wide) {
|
.lv-side {
|
||||||
width: max-content;
|
width: max-content;
|
||||||
max-width: calc(100% - 32px);
|
max-width: calc(100% - 32px);
|
||||||
|
box-sizing: border-box;
|
||||||
|
background: var(--panel);
|
||||||
|
color: var(--ink);
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 28px 24px 20px;
|
||||||
}
|
}
|
||||||
.login-form {
|
.lv-side .lv-brand {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 10px;
|
||||||
|
margin-bottom: 18px;
|
||||||
|
}
|
||||||
|
.lv-side .lv-mark {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: max-content 240px;
|
place-items: center;
|
||||||
gap: 12px;
|
border: 1px solid var(--accent);
|
||||||
|
color: var(--accent);
|
||||||
|
border-radius: 4px;
|
||||||
|
font-weight: 650;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
.lv-side h1 { margin: 0; font-size: 18px; }
|
||||||
|
.lv-side form {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: max-content 220px;
|
||||||
|
column-gap: 8px;
|
||||||
|
row-gap: 10px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.login-form label { justify-self: end; }
|
.lv-side label { margin: 0; justify-self: end; }
|
||||||
.login-form .n-alert { grid-column: 1 / -1; }
|
.lv-side .n-alert { grid-column: 1 / -1; }
|
||||||
.login-field { min-width: 0; }
|
.lv-side .n-button { grid-column: 2; width: 100%; }
|
||||||
.login-field .n-input { width: 100%; }
|
.lv-side .lv-go {
|
||||||
.login-submit {
|
height: 36px;
|
||||||
grid-column: 2;
|
margin-top: 4px;
|
||||||
display: flex;
|
font-weight: 600;
|
||||||
flex-direction: column;
|
letter-spacing: 0.08em;
|
||||||
gap: 12px;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
}
|
||||||
.login-submit .n-button {
|
.lv-side .lv-captcha { display: flex; gap: 8px; align-items: center; min-width: 0; }
|
||||||
width: 100%;
|
.lv-side .lv-captcha .n-input { flex: 1; min-width: 0; }
|
||||||
height: 40px;
|
|
||||||
}
|
|
||||||
.login-submit .gate-submit.n-button { margin-top: 4px; }
|
|
||||||
.gate-brand {
|
.gate-brand {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 14px;
|
gap: 14px;
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
port: 5173,
|
port: 5173,
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": "http://127.0.0.1:8000",
|
"/api": "http://127.0.0.1:8010",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user