mirror of
https://github.com/azukaar/Cosmos-Server.git
synced 2025-12-31 09:19:43 -06:00
[release] v0.18.0-unstable93
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 ||============================== //
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cosmos-server",
|
||||
"version": "0.18.0-unstable92",
|
||||
"version": "0.18.0-unstable93",
|
||||
"description": "",
|
||||
"main": "test-server.js",
|
||||
"bugs": {
|
||||
|
||||
Reference in New Issue
Block a user