mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-05 15:38:34 +08:00
feat: |Admin Portal| optimized UI (#632)
This commit is contained in:
@@ -212,7 +212,8 @@ const columns = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ default: () => t('viewMails') }
|
{ default: () => t('viewMails') }
|
||||||
)
|
),
|
||||||
|
show: row.mail_count > 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: () => h(NButton,
|
label: () => h(NButton,
|
||||||
@@ -224,7 +225,8 @@ const columns = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ default: () => t('viewSendBox') }
|
{ default: () => t('viewSendBox') }
|
||||||
)
|
),
|
||||||
|
show: row.send_count > 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: () => h(NButton,
|
label: () => h(NButton,
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ const { t } = useI18n({
|
|||||||
prefix: 'Prefix',
|
prefix: 'Prefix',
|
||||||
domains: 'Domains',
|
domains: 'Domains',
|
||||||
roleDonotExist: 'Current Role does not exist',
|
roleDonotExist: 'Current Role does not exist',
|
||||||
userAddressManagement: 'User Address Management',
|
userAddressManagement: 'Address Management',
|
||||||
},
|
},
|
||||||
zh: {
|
zh: {
|
||||||
success: '成功',
|
success: '成功',
|
||||||
@@ -59,7 +59,7 @@ const { t } = useI18n({
|
|||||||
prefix: '前缀',
|
prefix: '前缀',
|
||||||
domains: '域名',
|
domains: '域名',
|
||||||
roleDonotExist: '当前角色不存在',
|
roleDonotExist: '当前角色不存在',
|
||||||
userAddressManagement: '用户地址管理',
|
userAddressManagement: '地址管理',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -219,12 +219,25 @@ const columns = [
|
|||||||
title: t('address_count'),
|
title: t('address_count'),
|
||||||
key: "address_count",
|
key: "address_count",
|
||||||
render(row) {
|
render(row) {
|
||||||
return h(NBadge, {
|
return h(NButton,
|
||||||
value: row.address_count,
|
{
|
||||||
'show-zero': true,
|
text: true,
|
||||||
max: 99,
|
onClick: () => {
|
||||||
type: "success"
|
if (row.address_count <= 0) return;
|
||||||
})
|
curUserId.value = row.id;
|
||||||
|
showUserAddressManagement.value = true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: () => h(NBadge, {
|
||||||
|
value: row.address_count,
|
||||||
|
'show-zero': true,
|
||||||
|
max: 99,
|
||||||
|
type: "success"
|
||||||
|
}),
|
||||||
|
default: () => row.address_count > 0 ? t('userAddressManagement') : ""
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -255,6 +268,7 @@ const columns = [
|
|||||||
},
|
},
|
||||||
{ default: () => t('userAddressManagement') }
|
{ default: () => t('userAddressManagement') }
|
||||||
),
|
),
|
||||||
|
show: row.address_count > 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: () => h(NButton,
|
label: () => h(NButton,
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ const deleteAccount = async () => {
|
|||||||
<n-modal v-model:show="showLogout" preset="dialog" :title="t('logout')">
|
<n-modal v-model:show="showLogout" preset="dialog" :title="t('logout')">
|
||||||
<p>{{ t('logoutConfirm') }}</p>
|
<p>{{ t('logoutConfirm') }}</p>
|
||||||
<template #action>
|
<template #action>
|
||||||
<n-button :loading="loading" @click="logout" size="small" tertiary type="primary">
|
<n-button :loading="loading" @click="logout" size="small" tertiary type="warning">
|
||||||
{{ t('logout') }}
|
{{ t('logout') }}
|
||||||
</n-button>
|
</n-button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ const renamePasskey = async () => {
|
|||||||
<n-modal v-model:show="showLogout" preset="dialog" :title="t('logout')">
|
<n-modal v-model:show="showLogout" preset="dialog" :title="t('logout')">
|
||||||
<p>{{ t('logoutConfirm') }}</p>
|
<p>{{ t('logoutConfirm') }}</p>
|
||||||
<template #action>
|
<template #action>
|
||||||
<n-button :loading="loading" @click="logout" size="small" tertiary type="primary">
|
<n-button :loading="loading" @click="logout" size="small" tertiary type="warning">
|
||||||
{{ t('logout') }}
|
{{ t('logout') }}
|
||||||
</n-button>
|
</n-button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user