[release] v0.18.0-unstable93

This commit is contained in:
Yann Stepienik
2025-02-18 20:41:00 +00:00
parent b2f4b3e25f
commit dbf2789368
3 changed files with 9 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
// assets
import { HomeOutlined, AppstoreOutlined, DashboardOutlined, AppstoreAddOutlined, CheckOutlined } from '@ant-design/icons';
import { isDomain } from '../utils/indexs';
// icons
const icons = {
@@ -8,11 +9,13 @@ const icons = {
// ==============================|| MENU ITEMS - DASHBOARD ||============================== //
const isLocal = !isDomain(window.location.hostname) || window.location.hostname.endsWith('.local');
const dashboard = {
id: 'group-dashboard',
title: 'menu-items.navigation',
type: 'group',
children: [
children: ([
{
id: 'home',
title: 'menu-items.navigation.home',
@@ -38,15 +41,15 @@ const dashboard = {
icon: AppstoreAddOutlined,
breadcrumbs: false
},
{
isLocal ? {
id: 'trust',
title: 'menu-items.navigation.trustTitle',
type: 'item',
url: '/cosmos-ui/trust',
icon: CheckOutlined,
breadcrumbs: false
},
]
} : [],
]).flat(),
};
export default dashboard;

View File

@@ -21,6 +21,7 @@ import TrustPage from '../pages/config/trust';
import AllBackupsIndex from '../pages/backups';
import SingleBackupIndex from '../pages/backups/single-backup-index';
import SingleRepoIndex from '../pages/backups/single-repo-index';
import { isDomain } from '../utils/indexs';
// ==============================|| MAIN ROUTING ||============================== //

View File

@@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.18.0-unstable92",
"version": "0.18.0-unstable93",
"description": "",
"main": "test-server.js",
"bugs": {