Skip to content

Commit c2dc1a7

Browse files
Kinplemelonysfscream
authored andcommitted
refactor(auth): adjust some text
1 parent 0093ac7 commit c2dc1a7

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

src/i18n/Auth.ts

+10-6
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ export default {
107107
zh: '启用外部资源缓存',
108108
en: 'Enable External Resource Cache',
109109
},
110+
enableNodeCacheDesc: {
111+
zh: '启用外部资源缓存后,EMQX 将缓存外部资源(如 MySQL、MongoDB 等)的查询结果,以提高效率;对于本地数据源,如内置数据库或文件等不进行缓存。',
112+
en: 'After enabling external resource cache, EMQX will cache the query results of external resources (such as MySQL, MongoDB, etc.), to improve efficiency; for local data sources, such as built-in databases or file, are not cached.',
113+
},
110114
nodeCacheMaxCount: {
111115
zh: '缓存最大数量',
112116
en: 'Maximum Number of Cached Items',
@@ -136,16 +140,16 @@ export default {
136140
en: 'Authorization Settings',
137141
},
138142
enableCache: {
139-
zh: '启用缓存',
140-
en: 'Enable Cache',
143+
zh: '启用客户端缓存',
144+
en: 'Enable Client Cache',
141145
},
142146
clearCache: {
143-
zh: '清除缓存',
144-
en: 'Clear cache',
147+
zh: '清除客户端缓存',
148+
en: 'Clear Client Cache',
145149
},
146150
clearCacheDesc: {
147-
zh: '清除当前所有授权结果缓存。',
148-
en: 'Clears all current authorization result caches.',
151+
zh: '清除当前所有客户端缓存。',
152+
en: 'Clears all current client caches.',
149153
},
150154
clearCacheConfirm: {
151155
zh: '是否确认清除缓存',

src/views/Auth/components/NodeCache.vue

+7-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
v-loading="isSettingsLoading"
2626
:label-width="236"
2727
>
28-
<el-form-item :label="tl('enableNodeCache')">
28+
<el-form-item>
29+
<template #label>
30+
<FormItemLabel :label="tl('enableNodeCache')" :desc="tl('enableNodeCacheDesc')" />
31+
</template>
2932
<el-switch v-model="record.enable" />
3033
</el-form-item>
3134

@@ -65,7 +68,7 @@
6568
destroy-on-close
6669
append-to-body
6770
class="node-cache-status-drawer"
68-
:size="900"
71+
:size="960"
6972
:title="tl('nodeCacheStatus')"
7073
>
7174
<div v-loading="isCacheMetricsLoading">
@@ -385,15 +388,15 @@ const getRateValueStr = (val: number, unit = 'Auth.rateUnit') =>
385388
align-items: center;
386389
.rate-item {
387390
position: relative;
388-
margin-right: 12px;
391+
margin-right: 24px;
389392
color: var(--el-text-color-secondary);
390393
&:not(:last-child):after {
391394
position: absolute;
392395
content: '';
393396
width: 1px;
394397
height: 12px;
395398
background-color: var(--el-border-color);
396-
right: -6px;
399+
right: -12px;
397400
top: 50%;
398401
transform: translateY(-50%);
399402
opacity: 0.75;

0 commit comments

Comments
 (0)