Skip to content

Commit 4ec5750

Browse files
Jinyu XuJinyu Xu
authored andcommitted
fix mobile exchange API settings entry
1 parent 30eb1f2 commit 4ec5750

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

src/views/profile/index.vue

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@
8080
<div class="menu-section">
8181
<span class="menu-section-title">{{ $t('profile.section_account') }}</span>
8282
<div class="menu-group">
83+
<div class="menu-item" @click="$router.push('/profile/credentials')">
84+
<div class="menu-icon c-amber"><van-icon name="key-o" /></div>
85+
<div class="menu-copy">
86+
<span class="label">{{ $t('profile.credentials') }}</span>
87+
<span class="menu-description">{{ $t('profile.credentials_sub') }}</span>
88+
</div>
89+
<van-icon name="arrow" class="arrow" />
90+
</div>
8391
<div class="menu-item" @click="$router.push('/profile/referral')">
8492
<div class="menu-icon c-green"><van-icon name="friends-o" /></div>
8593
<span class="label">{{ $t('profile.referral') }}</span>
@@ -677,6 +685,24 @@ export default {
677685
.menu-icon.c-pink { background: var(--c-pink); }
678686
.menu-icon.c-slate { background: var(--c-slate); }
679687
688+
.menu-copy {
689+
flex: 1;
690+
min-width: 0;
691+
display: flex;
692+
flex-direction: column;
693+
gap: 2px;
694+
}
695+
696+
.menu-copy .label {
697+
flex: none;
698+
}
699+
700+
.menu-description {
701+
color: var(--text-3);
702+
font-size: 11px;
703+
line-height: 1.35;
704+
}
705+
680706
.label {
681707
flex: 1;
682708
color: var(--text);

tests/unit/mobile-usage-boundary.test.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ test('signal and live configuration expose only relevant fields', () => {
230230
test('market, chart, and accounts provide a complete mobile path', () => {
231231
const market = read('src/views/market/index.vue')
232232
const chart = read('src/views/indicator/Chart.vue')
233+
const profile = read('src/views/profile/index.vue')
233234
const credentials = read('src/views/profile/Credentials.vue')
234235

235236
assert.match(market, /emptyStateTitle/)
@@ -239,6 +240,8 @@ test('market, chart, and accounts provide a complete mobile path', () => {
239240
assert.match(chart, /timeTicks\(\)/)
240241
assert.match(chart, /latestSignalLabel/)
241242
assert.match(chart, /ChartTradePanel/)
243+
assert.match(profile, /\$router\.push\('\/profile\/credentials'\)/)
244+
assert.match(profile, /profile\.credentials_sub/)
242245
assert.ok(credentials.indexOf('primary-list') < credentials.indexOf('Egress IP card'))
243246
assert.match(credentials, /credentialHealthLabel/)
244247
})

0 commit comments

Comments
 (0)