mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-05-31 10:59:35 +08:00
🐛 fix(frontend):收敛JVM模式选项与标题文案
This commit is contained in:
@@ -11,4 +11,12 @@ describe('jvmRuntimePresentation', () => {
|
||||
it('builds overview tab titles with connection name and mode label', () => {
|
||||
expect(buildJVMTabTitle('Orders JVM', 'overview', 'jmx')).toBe('[Orders JVM] JVM 概览 · JMX');
|
||||
});
|
||||
|
||||
it('builds resource tab titles with the planned label', () => {
|
||||
expect(buildJVMTabTitle('Orders JVM', 'resource', 'endpoint')).toBe('[Orders JVM] JVM 资源 · Endpoint');
|
||||
});
|
||||
|
||||
it('builds audit tab titles with the planned label', () => {
|
||||
expect(buildJVMTabTitle('Orders JVM', 'audit', 'jmx')).toBe('[Orders JVM] JVM 审计 · JMX');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -33,8 +33,8 @@ const JVM_MODE_META_MAP: Record<JVMRuntimeMode, JVMModeMeta> = {
|
||||
|
||||
const JVM_TAB_KIND_LABELS: Record<JVMTabKind, string> = {
|
||||
overview: 'JVM 概览',
|
||||
resource: 'JVM 资源浏览',
|
||||
audit: 'JVM 审计记录',
|
||||
resource: 'JVM 资源',
|
||||
audit: 'JVM 审计',
|
||||
};
|
||||
|
||||
const normalizeMode = (mode: string): string => String(mode || '').trim().toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user