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>
|
||||
<div :class="purpose === 'pool' ? '' : 'gate'">
|
||||
<ThemeButton v-if="purpose !== 'pool'" />
|
||||
<section class="gate-card">
|
||||
<div class="gate-brand">
|
||||
<div class="brand-mark" aria-hidden="true">D</div>
|
||||
<h1>{{ purpose === "pool" ? "添加账号" : "DecomEval" }}</h1>
|
||||
</div>
|
||||
<form class="login-form" @submit.prevent="submitLogin">
|
||||
<section class="lv-side">
|
||||
<div class="lv-brand"><div class="lv-mark" aria-hidden="true">D</div><h1>{{ purpose === "pool" ? "添加账号" : "DecomEval" }}</h1></div>
|
||||
<form @submit.prevent="submitLogin">
|
||||
<n-alert v-if="route.query.notice === 'already'" type="info">这个数据库已经安装过,请使用原来的管理员账号登录。</n-alert>
|
||||
<n-alert v-if="errorText" type="error">{{ errorText }}</n-alert>
|
||||
<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>
|
||||
<div class="login-field"><n-input v-model:value="password" type="password" @keyup.enter="submitLogin" /></div>
|
||||
<template v-if="mode === 'nqi' && captchaUrl">
|
||||
<label>验证码</label>
|
||||
<div class="login-field">
|
||||
<n-input v-model:value="captcha" @keyup.enter="submitLogin" />
|
||||
<img class="captcha" :src="captchaUrl" alt="验证码" @click="refreshCaptcha" />
|
||||
</div>
|
||||
<template v-if="smsRequired">
|
||||
<label>短信验证码</label>
|
||||
<div class="login-field"><n-input v-model:value="smsCode" @keyup.enter="submitLogin" /></div>
|
||||
</template>
|
||||
</template>
|
||||
<div class="login-submit">
|
||||
<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>
|
||||
</div>
|
||||
<n-input v-model:value="password" type="password" @keyup.enter="submitLogin" />
|
||||
<template v-if="mode === 'nqi' && captchaUrl">
|
||||
<label>验证码</label>
|
||||
<div class="lv-captcha">
|
||||
<n-input v-model:value="captcha" @keyup.enter="submitLogin" />
|
||||
<img class="captcha" :src="captchaUrl" alt="验证码" @click="refreshCaptcha" />
|
||||
</div>
|
||||
<template v-if="smsRequired">
|
||||
<label>短信验证码</label>
|
||||
<n-input v-model:value="smsCode" @keyup.enter="submitLogin" />
|
||||
</template>
|
||||
</template>
|
||||
<n-button v-if="mode === 'nqi' && captchaUrl" attr-type="button" :loading="busy" @click="sendSms">发送短信验证码</n-button>
|
||||
<n-button class="lv-go" type="primary" attr-type="submit" :loading="busy">{{ mode === "local" || captchaUrl ? "登录" : "继续" }}</n-button>
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
+40
-19
@@ -106,32 +106,53 @@ button, input, select { font: inherit; }
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.12em;
|
||||
}
|
||||
.gate .gate-card:not(.wide) {
|
||||
.lv-side {
|
||||
width: max-content;
|
||||
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;
|
||||
grid-template-columns: max-content 240px;
|
||||
gap: 12px;
|
||||
place-items: center;
|
||||
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;
|
||||
}
|
||||
.login-form label { justify-self: end; }
|
||||
.login-form .n-alert { grid-column: 1 / -1; }
|
||||
.login-field { min-width: 0; }
|
||||
.login-field .n-input { width: 100%; }
|
||||
.login-submit {
|
||||
grid-column: 2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
.lv-side label { margin: 0; justify-self: end; }
|
||||
.lv-side .n-alert { grid-column: 1 / -1; }
|
||||
.lv-side .n-button { grid-column: 2; width: 100%; }
|
||||
.lv-side .lv-go {
|
||||
height: 36px;
|
||||
margin-top: 4px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
.login-submit .n-button {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
}
|
||||
.login-submit .gate-submit.n-button { margin-top: 4px; }
|
||||
.lv-side .lv-captcha { display: flex; gap: 8px; align-items: center; min-width: 0; }
|
||||
.lv-side .lv-captcha .n-input { flex: 1; min-width: 0; }
|
||||
.gate-brand {
|
||||
display: flex;
|
||||
gap: 14px;
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ export default defineConfig({
|
||||
server: {
|
||||
port: 5173,
|
||||
proxy: {
|
||||
"/api": "http://127.0.0.1:8000",
|
||||
"/api": "http://127.0.0.1:8010",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user