mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 15:32:35 +00:00
Plugins base (#613)
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
This commit is contained in:
@ -19,13 +19,6 @@ export default function Layout({
|
||||
secondNavTitle?: string;
|
||||
}>) {
|
||||
const page = usePage<SharedData>();
|
||||
// const [sidebarOpen, setSidebarOpen] = useState(
|
||||
// (localStorage.getItem('sidebar') === 'true' || false) && !!(secondNavItems && secondNavItems.length > 0),
|
||||
// );
|
||||
// const sidebarOpenChange = (open: boolean) => {
|
||||
// setSidebarOpen(open);
|
||||
// localStorage.setItem('sidebar', String(open));
|
||||
// };
|
||||
|
||||
if (page.props.flash && page.props.flash.success) {
|
||||
toast(
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { type NavItem } from '@/types';
|
||||
import {
|
||||
BoxIcon,
|
||||
ChartLineIcon,
|
||||
ClockIcon,
|
||||
CloudIcon,
|
||||
@ -59,6 +60,7 @@ export default function ServerLayout({ children }: { children: ReactNode }) {
|
||||
href: route('databases', { server: page.props.server.id }),
|
||||
icon: DatabaseIcon,
|
||||
isDisabled: isMenuDisabled,
|
||||
hidden: !page.props.server.services['database'],
|
||||
children: [
|
||||
{
|
||||
title: 'Databases',
|
||||
@ -98,6 +100,11 @@ export default function ServerLayout({ children }: { children: ReactNode }) {
|
||||
onlyActivePath: route('application', { server: page.props.server.id, site: site.id }),
|
||||
icon: RocketIcon,
|
||||
},
|
||||
{
|
||||
title: 'Features',
|
||||
href: route('site-features', { server: page.props.server.id, site: site.id }),
|
||||
icon: BoxIcon,
|
||||
},
|
||||
{
|
||||
title: 'Commands',
|
||||
href: route('commands', { server: page.props.server.id, site: site.id }),
|
||||
|
Reference in New Issue
Block a user