mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-16 21:33:51 +02:00
feat: add hot worlds
This commit is contained in:
@@ -14,6 +14,7 @@ const testDefinitions = [
|
||||
{ key: 'tools', routeName: 'tools' },
|
||||
{ key: 'charts-instance', routeName: 'charts-instance' },
|
||||
{ key: 'charts-mutual', routeName: 'charts-mutual' },
|
||||
{ key: 'charts-hot-worlds', routeName: 'charts-hot-worlds' },
|
||||
{ key: 'notification', routeName: 'notification' },
|
||||
{ key: 'direct-access', action: 'direct-access' }
|
||||
];
|
||||
@@ -283,7 +284,8 @@ describe('sanitizeLayout', () => {
|
||||
expect(chartsFolder).toBeDefined();
|
||||
expect(chartsFolder.items).toEqual([
|
||||
'charts-instance',
|
||||
'charts-mutual'
|
||||
'charts-mutual',
|
||||
'charts-hot-worlds'
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ export function createBaseDefaultNavLayout(t) {
|
||||
nameKey: 'nav_tooltip.charts',
|
||||
name: t('nav_tooltip.charts'),
|
||||
icon: 'ri-pie-chart-line',
|
||||
items: ['charts-instance', 'charts-mutual']
|
||||
items: ['charts-instance', 'charts-mutual', 'charts-hot-worlds']
|
||||
},
|
||||
{ type: 'item', key: 'tools' },
|
||||
{ type: 'item', key: 'direct-access' }
|
||||
|
||||
@@ -44,7 +44,7 @@ export function sanitizeLayout(
|
||||
const normalizedHiddenKeys = normalizeHiddenKeys(hiddenKeys, definitionMap);
|
||||
const hiddenSet = new Set(normalizedHiddenKeys);
|
||||
const normalized = [];
|
||||
const chartsKeys = ['charts-instance', 'charts-mutual'];
|
||||
const chartsKeys = ['charts-instance', 'charts-mutual', 'charts-hot-worlds'];
|
||||
|
||||
const appendItemEntry = (key, target = normalized) => {
|
||||
if (!key || usedKeys.has(key) || !definitionMap.has(key)) {
|
||||
|
||||
Reference in New Issue
Block a user