refactor(settings): update event handling and UI interactions in various components

Modified event handling for form submissions in CreateTenantDialog and CredentialResource components to use the `@enter` directive for improved clarity. Removed console log from i18n initialization and updated localization files to include new section labels for the redesigned drawer across multiple languages. Enhanced the UI in Login and McpSettings views by adjusting input types and integrating test connection functionality into the drawer components. Streamlined the layout and interactions in ModelSettings, ParserEngineSettings, StorageEngineSettings, and VectorStoreSettings to ensure consistency and better user experience.
This commit is contained in:
wizardchen
2026-05-31 15:28:00 +08:00
committed by lyingbug
parent 9d1f3001e8
commit d56370b30f
16 changed files with 2835 additions and 1292 deletions
@@ -18,7 +18,7 @@
<t-form ref="formRef" :data="form" :rules="formRules" label-align="top" class="create-tenant-form" @submit.prevent>
<t-form-item :label="$t('tenant.create.nameLabel')" name="name">
<t-input v-model="form.name" :placeholder="$t('tenant.create.namePlaceholder')" :maxlength="128" autofocus
@keydown.enter="handleSubmit" />
@enter="handleSubmit" />
</t-form-item>
<t-form-item :label="$t('tenant.create.descriptionLabel')" name="description">
<t-textarea v-model="form.description" :placeholder="$t('tenant.create.descriptionPlaceholder')"
@@ -118,7 +118,7 @@
<div class="credential-edit">
<t-input v-model="drafts[field.key]" type="password"
:placeholder="field.placeholder ?? t('credential.inputPlaceholder')" :autocomplete="'new-password'"
class="credential-edit-input" @keydown.enter.prevent="onSave(field)">
class="credential-edit-input" @enter="onSave(field)">
<template #prefix-icon><t-icon name="lock-on" /></template>
</t-input>
<div class="credential-edit-actions">