2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 05:31:44 +08:00

fix: lint

This commit is contained in:
2026-01-24 19:17:43 +08:00
parent 7d8b1ddb55
commit 760dab260f
2 changed files with 40 additions and 36 deletions

View File

@@ -81,23 +81,25 @@ const handleCopyRootPassword = () => {
<n-flex vertical>
<service-status service="mysqld" />
<n-card :title="$gettext('Root Password')">
<n-alert type="info" mb-4>
{{
$gettext(
'The "root" user password is used to manage the database system. Keep it safe!'
)
}}
</n-alert>
<n-flex>
<n-input-group>
<n-input v-model:value="rootPassword" type="password" show-password-on="click" />
<n-button type="primary" ghost @click="handleCopyRootPassword">
{{ $gettext('Copy') }}
<n-flex vertical>
<n-alert type="info">
{{
$gettext(
'The "root" user password is used to manage the database system. Keep it safe!'
)
}}
</n-alert>
<n-flex>
<n-input-group>
<n-input v-model:value="rootPassword" type="password" show-password-on="click" />
<n-button type="primary" ghost @click="handleCopyRootPassword">
{{ $gettext('Copy') }}
</n-button>
</n-input-group>
<n-button type="primary" @click="handleSetRootPassword">
{{ $gettext('Save') }}
</n-button>
</n-input-group>
<n-button type="primary" @click="handleSetRootPassword">
{{ $gettext('Save') }}
</n-button>
</n-flex>
</n-flex>
</n-card>
</n-flex>

View File

@@ -80,27 +80,29 @@ const handleCopyPostgresPassword = () => {
<n-flex vertical>
<service-status service="postgresql" show-reload />
<n-card :title="$gettext('Super Password')">
<n-alert type="info" mb-4>
{{
$gettext(
'The "postgres" superuser password is used to manage the database system. Keep it safe!'
)
}}
</n-alert>
<n-flex>
<n-input-group>
<n-input
v-model:value="postgresPassword"
type="password"
show-password-on="click"
/>
<n-button type="primary" ghost @click="handleCopyPostgresPassword">
{{ $gettext('Copy') }}
<n-flex vertical>
<n-alert type="info">
{{
$gettext(
'The "postgres" superuser password is used to manage the database system. Keep it safe!'
)
}}
</n-alert>
<n-flex>
<n-input-group>
<n-input
v-model:value="postgresPassword"
type="password"
show-password-on="click"
/>
<n-button type="primary" ghost @click="handleCopyPostgresPassword">
{{ $gettext('Copy') }}
</n-button>
</n-input-group>
<n-button type="primary" @click="handleSetPostgresPassword">
{{ $gettext('Save') }}
</n-button>
</n-input-group>
<n-button type="primary" @click="handleSetPostgresPassword">
{{ $gettext('Save') }}
</n-button>
</n-flex>
</n-flex>
</n-card>
</n-flex>